google-cloud-data_catalog-v1 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 990f9830aae1710a4d8c96c06665881c16a853281770e82e0a497ee403c2da93
4
- data.tar.gz: 397def9fde3c20b1978bce38d97e4d1ce607bf4860fda2fd9a1db862643c130b
3
+ metadata.gz: f5fdf2a7b9890e4c91dc7d815cabc2e289c04a959d87873fd163836da072e4bc
4
+ data.tar.gz: 2392a2ca15e105cf99246ad1f2b1e257645c2476fb59c5ddc7def08604899f2e
5
5
  SHA512:
6
- metadata.gz: 8c7dff149b1d6fae5acb40b9070e73c4bcd2cd86821bf04106b7c184b2305724e146c3bf86fd3e68c0921fe483f22171c332e58f6cd523a79ec51b5f4dfe5ef1
7
- data.tar.gz: d0f33019b41d8fc8fa79e13d73eb09d208cdae5013ee92d7d5b3b919ddea46c6150450aa6af0f0675fd75c33e0ec80f64e4c1c5513adb7d7417df96dfe921477
6
+ metadata.gz: 423f3dd072cbff107ab56e48807fcf7fc7dfa4ccac5fdfc3505ee6f4939c71670b943a27a26166ce7121661e5ac40eb1108e84590557739fdedeed1e542e98a6
7
+ data.tar.gz: 05574c10d6eb5944ffcbd6f3927b6d0a4a9a230e2998cd81cc9b4a0fe20881bd8c3f5c5157dc7d6b151ddc8a893807aa4eaec901bf8feafb23208cd95fd7792b
data/README.md CHANGED
@@ -43,33 +43,43 @@ for class and method documentation.
43
43
  See also the [Product Documentation](https://cloud.google.com/data-catalog)
44
44
  for general usage information.
45
45
 
46
- ## Enabling Logging
47
-
48
- To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
- that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
- and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
-
54
- Configuring a Ruby stdlib logger:
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/data_catalog/v1"
57
76
  require "logger"
58
77
 
59
- module MyLogger
60
- LOGGER = Logger.new $stderr, level: Logger::WARN
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::DataCatalog::V1::DataCatalog::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).
@@ -171,14 +171,26 @@ module Google
171
171
  universe_domain: @config.universe_domain,
172
172
  channel_args: @config.channel_args,
173
173
  interceptors: @config.interceptors,
174
- channel_pool_config: @config.channel_pool
174
+ channel_pool_config: @config.channel_pool,
175
+ logger: @config.logger
175
176
  )
176
177
 
178
+ @data_catalog_stub.stub_logger&.info do |entry|
179
+ entry.set_system_name
180
+ entry.set_service
181
+ entry.message = "Created client for #{entry.service}"
182
+ entry.set_credentials_fields credentials
183
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
184
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
185
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
186
+ end
187
+
177
188
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
178
189
  config.credentials = credentials
179
190
  config.quota_project = @quota_project_id
180
191
  config.endpoint = @data_catalog_stub.endpoint
181
192
  config.universe_domain = @data_catalog_stub.universe_domain
193
+ config.logger = @data_catalog_stub.logger if config.respond_to? :logger=
182
194
  end
183
195
  end
184
196
 
@@ -196,6 +208,15 @@ module Google
196
208
  #
197
209
  attr_reader :iam_policy_client
198
210
 
211
+ ##
212
+ # The logger used for request/response debug logging.
213
+ #
214
+ # @return [Logger]
215
+ #
216
+ def logger
217
+ @data_catalog_stub.logger
218
+ end
219
+
199
220
  # Service calls
200
221
 
201
222
  ##
@@ -344,7 +365,7 @@ module Google
344
365
  @data_catalog_stub.call_rpc :search_catalog, request, options: options do |response, operation|
345
366
  response = ::Gapic::PagedEnumerable.new @data_catalog_stub, :search_catalog, request, response, operation, options
346
367
  yield response, operation if block_given?
347
- return response
368
+ throw :response, response
348
369
  end
349
370
  rescue ::GRPC::BadStatus => e
350
371
  raise ::Google::Cloud::Error.from_error(e)
@@ -468,7 +489,6 @@ module Google
468
489
 
469
490
  @data_catalog_stub.call_rpc :create_entry_group, request, options: options do |response, operation|
470
491
  yield response, operation if block_given?
471
- return response
472
492
  end
473
493
  rescue ::GRPC::BadStatus => e
474
494
  raise ::Google::Cloud::Error.from_error(e)
@@ -556,7 +576,6 @@ module Google
556
576
 
557
577
  @data_catalog_stub.call_rpc :get_entry_group, request, options: options do |response, operation|
558
578
  yield response, operation if block_given?
559
- return response
560
579
  end
561
580
  rescue ::GRPC::BadStatus => e
562
581
  raise ::Google::Cloud::Error.from_error(e)
@@ -653,7 +672,6 @@ module Google
653
672
 
654
673
  @data_catalog_stub.call_rpc :update_entry_group, request, options: options do |response, operation|
655
674
  yield response, operation if block_given?
656
- return response
657
675
  end
658
676
  rescue ::GRPC::BadStatus => e
659
677
  raise ::Google::Cloud::Error.from_error(e)
@@ -746,7 +764,6 @@ module Google
746
764
 
747
765
  @data_catalog_stub.call_rpc :delete_entry_group, request, options: options do |response, operation|
748
766
  yield response, operation if block_given?
749
- return response
750
767
  end
751
768
  rescue ::GRPC::BadStatus => e
752
769
  raise ::Google::Cloud::Error.from_error(e)
@@ -847,7 +864,7 @@ module Google
847
864
  @data_catalog_stub.call_rpc :list_entry_groups, request, options: options do |response, operation|
848
865
  response = ::Gapic::PagedEnumerable.new @data_catalog_stub, :list_entry_groups, request, response, operation, options
849
866
  yield response, operation if block_given?
850
- return response
867
+ throw :response, response
851
868
  end
852
869
  rescue ::GRPC::BadStatus => e
853
870
  raise ::Google::Cloud::Error.from_error(e)
@@ -954,7 +971,6 @@ module Google
954
971
 
955
972
  @data_catalog_stub.call_rpc :create_entry, request, options: options do |response, operation|
956
973
  yield response, operation if block_given?
957
- return response
958
974
  end
959
975
  rescue ::GRPC::BadStatus => e
960
976
  raise ::Google::Cloud::Error.from_error(e)
@@ -1075,7 +1091,6 @@ module Google
1075
1091
 
1076
1092
  @data_catalog_stub.call_rpc :update_entry, request, options: options do |response, operation|
1077
1093
  yield response, operation if block_given?
1078
- return response
1079
1094
  end
1080
1095
  rescue ::GRPC::BadStatus => e
1081
1096
  raise ::Google::Cloud::Error.from_error(e)
@@ -1170,7 +1185,6 @@ module Google
1170
1185
 
1171
1186
  @data_catalog_stub.call_rpc :delete_entry, request, options: options do |response, operation|
1172
1187
  yield response, operation if block_given?
1173
- return response
1174
1188
  end
1175
1189
  rescue ::GRPC::BadStatus => e
1176
1190
  raise ::Google::Cloud::Error.from_error(e)
@@ -1256,7 +1270,6 @@ module Google
1256
1270
 
1257
1271
  @data_catalog_stub.call_rpc :get_entry, request, options: options do |response, operation|
1258
1272
  yield response, operation if block_given?
1259
- return response
1260
1273
  end
1261
1274
  rescue ::GRPC::BadStatus => e
1262
1275
  raise ::Google::Cloud::Error.from_error(e)
@@ -1383,7 +1396,6 @@ module Google
1383
1396
 
1384
1397
  @data_catalog_stub.call_rpc :lookup_entry, request, options: options do |response, operation|
1385
1398
  yield response, operation if block_given?
1386
- return response
1387
1399
  end
1388
1400
  rescue ::GRPC::BadStatus => e
1389
1401
  raise ::Google::Cloud::Error.from_error(e)
@@ -1492,7 +1504,7 @@ module Google
1492
1504
  @data_catalog_stub.call_rpc :list_entries, request, options: options do |response, operation|
1493
1505
  response = ::Gapic::PagedEnumerable.new @data_catalog_stub, :list_entries, request, response, operation, options
1494
1506
  yield response, operation if block_given?
1495
- return response
1507
+ throw :response, response
1496
1508
  end
1497
1509
  rescue ::GRPC::BadStatus => e
1498
1510
  raise ::Google::Cloud::Error.from_error(e)
@@ -1584,7 +1596,6 @@ module Google
1584
1596
 
1585
1597
  @data_catalog_stub.call_rpc :modify_entry_overview, request, options: options do |response, operation|
1586
1598
  yield response, operation if block_given?
1587
- return response
1588
1599
  end
1589
1600
  rescue ::GRPC::BadStatus => e
1590
1601
  raise ::Google::Cloud::Error.from_error(e)
@@ -1676,7 +1687,6 @@ module Google
1676
1687
 
1677
1688
  @data_catalog_stub.call_rpc :modify_entry_contacts, request, options: options do |response, operation|
1678
1689
  yield response, operation if block_given?
1679
- return response
1680
1690
  end
1681
1691
  rescue ::GRPC::BadStatus => e
1682
1692
  raise ::Google::Cloud::Error.from_error(e)
@@ -1776,7 +1786,6 @@ module Google
1776
1786
 
1777
1787
  @data_catalog_stub.call_rpc :create_tag_template, request, options: options do |response, operation|
1778
1788
  yield response, operation if block_given?
1779
- return response
1780
1789
  end
1781
1790
  rescue ::GRPC::BadStatus => e
1782
1791
  raise ::Google::Cloud::Error.from_error(e)
@@ -1862,7 +1871,6 @@ module Google
1862
1871
 
1863
1872
  @data_catalog_stub.call_rpc :get_tag_template, request, options: options do |response, operation|
1864
1873
  yield response, operation if block_given?
1865
- return response
1866
1874
  end
1867
1875
  rescue ::GRPC::BadStatus => e
1868
1876
  raise ::Google::Cloud::Error.from_error(e)
@@ -1966,7 +1974,6 @@ module Google
1966
1974
 
1967
1975
  @data_catalog_stub.call_rpc :update_tag_template, request, options: options do |response, operation|
1968
1976
  yield response, operation if block_given?
1969
- return response
1970
1977
  end
1971
1978
  rescue ::GRPC::BadStatus => e
1972
1979
  raise ::Google::Cloud::Error.from_error(e)
@@ -2060,7 +2067,6 @@ module Google
2060
2067
 
2061
2068
  @data_catalog_stub.call_rpc :delete_tag_template, request, options: options do |response, operation|
2062
2069
  yield response, operation if block_given?
2063
- return response
2064
2070
  end
2065
2071
  rescue ::GRPC::BadStatus => e
2066
2072
  raise ::Google::Cloud::Error.from_error(e)
@@ -2162,7 +2168,6 @@ module Google
2162
2168
 
2163
2169
  @data_catalog_stub.call_rpc :create_tag_template_field, request, options: options do |response, operation|
2164
2170
  yield response, operation if block_given?
2165
- return response
2166
2171
  end
2167
2172
  rescue ::GRPC::BadStatus => e
2168
2173
  raise ::Google::Cloud::Error.from_error(e)
@@ -2274,7 +2279,6 @@ module Google
2274
2279
 
2275
2280
  @data_catalog_stub.call_rpc :update_tag_template_field, request, options: options do |response, operation|
2276
2281
  yield response, operation if block_given?
2277
- return response
2278
2282
  end
2279
2283
  rescue ::GRPC::BadStatus => e
2280
2284
  raise ::Google::Cloud::Error.from_error(e)
@@ -2367,7 +2371,6 @@ module Google
2367
2371
 
2368
2372
  @data_catalog_stub.call_rpc :rename_tag_template_field, request, options: options do |response, operation|
2369
2373
  yield response, operation if block_given?
2370
- return response
2371
2374
  end
2372
2375
  rescue ::GRPC::BadStatus => e
2373
2376
  raise ::Google::Cloud::Error.from_error(e)
@@ -2458,7 +2461,6 @@ module Google
2458
2461
 
2459
2462
  @data_catalog_stub.call_rpc :rename_tag_template_field_enum_value, request, options: options do |response, operation|
2460
2463
  yield response, operation if block_given?
2461
- return response
2462
2464
  end
2463
2465
  rescue ::GRPC::BadStatus => e
2464
2466
  raise ::Google::Cloud::Error.from_error(e)
@@ -2553,7 +2555,6 @@ module Google
2553
2555
 
2554
2556
  @data_catalog_stub.call_rpc :delete_tag_template_field, request, options: options do |response, operation|
2555
2557
  yield response, operation if block_given?
2556
- return response
2557
2558
  end
2558
2559
  rescue ::GRPC::BadStatus => e
2559
2560
  raise ::Google::Cloud::Error.from_error(e)
@@ -2658,7 +2659,6 @@ module Google
2658
2659
 
2659
2660
  @data_catalog_stub.call_rpc :create_tag, request, options: options do |response, operation|
2660
2661
  yield response, operation if block_given?
2661
- return response
2662
2662
  end
2663
2663
  rescue ::GRPC::BadStatus => e
2664
2664
  raise ::Google::Cloud::Error.from_error(e)
@@ -2751,7 +2751,6 @@ module Google
2751
2751
 
2752
2752
  @data_catalog_stub.call_rpc :update_tag, request, options: options do |response, operation|
2753
2753
  yield response, operation if block_given?
2754
- return response
2755
2754
  end
2756
2755
  rescue ::GRPC::BadStatus => e
2757
2756
  raise ::Google::Cloud::Error.from_error(e)
@@ -2837,7 +2836,6 @@ module Google
2837
2836
 
2838
2837
  @data_catalog_stub.call_rpc :delete_tag, request, options: options do |response, operation|
2839
2838
  yield response, operation if block_given?
2840
- return response
2841
2839
  end
2842
2840
  rescue ::GRPC::BadStatus => e
2843
2841
  raise ::Google::Cloud::Error.from_error(e)
@@ -2939,7 +2937,7 @@ module Google
2939
2937
  @data_catalog_stub.call_rpc :list_tags, request, options: options do |response, operation|
2940
2938
  response = ::Gapic::PagedEnumerable.new @data_catalog_stub, :list_tags, request, response, operation, options
2941
2939
  yield response, operation if block_given?
2942
- return response
2940
+ throw :response, response
2943
2941
  end
2944
2942
  rescue ::GRPC::BadStatus => e
2945
2943
  raise ::Google::Cloud::Error.from_error(e)
@@ -3056,7 +3054,7 @@ module Google
3056
3054
  @data_catalog_stub.call_rpc :reconcile_tags, request, options: options do |response, operation|
3057
3055
  response = ::Gapic::Operation.new response, @operations_client, options: options
3058
3056
  yield response, operation if block_given?
3059
- return response
3057
+ throw :response, response
3060
3058
  end
3061
3059
  rescue ::GRPC::BadStatus => e
3062
3060
  raise ::Google::Cloud::Error.from_error(e)
@@ -3143,7 +3141,6 @@ module Google
3143
3141
 
3144
3142
  @data_catalog_stub.call_rpc :star_entry, request, options: options do |response, operation|
3145
3143
  yield response, operation if block_given?
3146
- return response
3147
3144
  end
3148
3145
  rescue ::GRPC::BadStatus => e
3149
3146
  raise ::Google::Cloud::Error.from_error(e)
@@ -3230,7 +3227,6 @@ module Google
3230
3227
 
3231
3228
  @data_catalog_stub.call_rpc :unstar_entry, request, options: options do |response, operation|
3232
3229
  yield response, operation if block_given?
3233
- return response
3234
3230
  end
3235
3231
  rescue ::GRPC::BadStatus => e
3236
3232
  raise ::Google::Cloud::Error.from_error(e)
@@ -3344,7 +3340,6 @@ module Google
3344
3340
 
3345
3341
  @data_catalog_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
3346
3342
  yield response, operation if block_given?
3347
- return response
3348
3343
  end
3349
3344
  rescue ::GRPC::BadStatus => e
3350
3345
  raise ::Google::Cloud::Error.from_error(e)
@@ -3454,7 +3449,6 @@ module Google
3454
3449
 
3455
3450
  @data_catalog_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
3456
3451
  yield response, operation if block_given?
3457
- return response
3458
3452
  end
3459
3453
  rescue ::GRPC::BadStatus => e
3460
3454
  raise ::Google::Cloud::Error.from_error(e)
@@ -3559,7 +3553,6 @@ module Google
3559
3553
 
3560
3554
  @data_catalog_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
3561
3555
  yield response, operation if block_given?
3562
- return response
3563
3556
  end
3564
3557
  rescue ::GRPC::BadStatus => e
3565
3558
  raise ::Google::Cloud::Error.from_error(e)
@@ -3675,7 +3668,7 @@ module Google
3675
3668
  @data_catalog_stub.call_rpc :import_entries, request, options: options do |response, operation|
3676
3669
  response = ::Gapic::Operation.new response, @operations_client, options: options
3677
3670
  yield response, operation if block_given?
3678
- return response
3671
+ throw :response, response
3679
3672
  end
3680
3673
  rescue ::GRPC::BadStatus => e
3681
3674
  raise ::Google::Cloud::Error.from_error(e)
@@ -3766,7 +3759,6 @@ module Google
3766
3759
 
3767
3760
  @data_catalog_stub.call_rpc :set_config, request, options: options do |response, operation|
3768
3761
  yield response, operation if block_given?
3769
- return response
3770
3762
  end
3771
3763
  rescue ::GRPC::BadStatus => e
3772
3764
  raise ::Google::Cloud::Error.from_error(e)
@@ -3854,7 +3846,6 @@ module Google
3854
3846
 
3855
3847
  @data_catalog_stub.call_rpc :retrieve_config, request, options: options do |response, operation|
3856
3848
  yield response, operation if block_given?
3857
- return response
3858
3849
  end
3859
3850
  rescue ::GRPC::BadStatus => e
3860
3851
  raise ::Google::Cloud::Error.from_error(e)
@@ -3944,7 +3935,6 @@ module Google
3944
3935
 
3945
3936
  @data_catalog_stub.call_rpc :retrieve_effective_config, request, options: options do |response, operation|
3946
3937
  yield response, operation if block_given?
3947
- return response
3948
3938
  end
3949
3939
  rescue ::GRPC::BadStatus => e
3950
3940
  raise ::Google::Cloud::Error.from_error(e)
@@ -4033,6 +4023,11 @@ module Google
4033
4023
  # default endpoint URL. The default value of nil uses the environment
4034
4024
  # universe (usually the default "googleapis.com" universe).
4035
4025
  # @return [::String,nil]
4026
+ # @!attribute [rw] logger
4027
+ # A custom logger to use for request/response debug logging, or the value
4028
+ # `:default` (the default) to construct a default logger, or `nil` to
4029
+ # explicitly disable logging.
4030
+ # @return [::Logger,:default,nil]
4036
4031
  #
4037
4032
  class Configuration
4038
4033
  extend ::Gapic::Config
@@ -4057,6 +4052,7 @@ module Google
4057
4052
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
4058
4053
  config_attr :quota_project, nil, ::String, nil
4059
4054
  config_attr :universe_domain, nil, ::String, nil
4055
+ config_attr :logger, :default, ::Logger, nil, :default
4060
4056
 
4061
4057
  # @private
4062
4058
  def initialize parent_config = nil
@@ -213,7 +213,7 @@ module Google
213
213
  wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client }
214
214
  response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
215
215
  yield response, operation if block_given?
216
- return response
216
+ throw :response, response
217
217
  end
218
218
  rescue ::GRPC::BadStatus => e
219
219
  raise ::Google::Cloud::Error.from_error(e)
@@ -309,7 +309,7 @@ module Google
309
309
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
310
310
  response = ::Gapic::Operation.new response, @operations_client, options: options
311
311
  yield response, operation if block_given?
312
- return response
312
+ throw :response, response
313
313
  end
314
314
  rescue ::GRPC::BadStatus => e
315
315
  raise ::Google::Cloud::Error.from_error(e)
@@ -398,7 +398,6 @@ module Google
398
398
 
399
399
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
400
400
  yield response, operation if block_given?
401
- return response
402
401
  end
403
402
  rescue ::GRPC::BadStatus => e
404
403
  raise ::Google::Cloud::Error.from_error(e)
@@ -494,7 +493,6 @@ module Google
494
493
 
495
494
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
496
495
  yield response, operation if block_given?
497
- return response
498
496
  end
499
497
  rescue ::GRPC::BadStatus => e
500
498
  raise ::Google::Cloud::Error.from_error(e)
@@ -592,7 +590,7 @@ module Google
592
590
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
593
591
  response = ::Gapic::Operation.new response, @operations_client, options: options
594
592
  yield response, operation if block_given?
595
- return response
593
+ throw :response, response
596
594
  end
597
595
  rescue ::GRPC::BadStatus => e
598
596
  raise ::Google::Cloud::Error.from_error(e)
@@ -681,6 +679,11 @@ module Google
681
679
  # default endpoint URL. The default value of nil uses the environment
682
680
  # universe (usually the default "googleapis.com" universe).
683
681
  # @return [::String,nil]
682
+ # @!attribute [rw] logger
683
+ # A custom logger to use for request/response debug logging, or the value
684
+ # `:default` (the default) to construct a default logger, or `nil` to
685
+ # explicitly disable logging.
686
+ # @return [::Logger,:default,nil]
684
687
  #
685
688
  class Configuration
686
689
  extend ::Gapic::Config
@@ -705,6 +708,7 @@ module Google
705
708
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
706
709
  config_attr :quota_project, nil, ::String, nil
707
710
  config_attr :universe_domain, nil, ::String, nil
711
+ config_attr :logger, :default, ::Logger, nil, :default
708
712
 
709
713
  # @private
710
714
  def initialize parent_config = nil