google-cloud-network_security-v1beta1 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,6 +36,9 @@ module Google
36
36
  # information.
37
37
  #
38
38
  class Client
39
+ # @private
40
+ API_VERSION = ""
41
+
39
42
  # @private
40
43
  DEFAULT_ENDPOINT_TEMPLATE = "networksecurity.$UNIVERSE_DOMAIN$"
41
44
 
@@ -160,15 +163,27 @@ module Google
160
163
  endpoint: @config.endpoint,
161
164
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
162
165
  universe_domain: @config.universe_domain,
163
- credentials: credentials
166
+ credentials: credentials,
167
+ logger: @config.logger
164
168
  )
165
169
 
170
+ @network_security_stub.logger(stub: true)&.info do |entry|
171
+ entry.set_system_name
172
+ entry.set_service
173
+ entry.message = "Created client for #{entry.service}"
174
+ entry.set_credentials_fields credentials
175
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
176
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
177
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
178
+ end
179
+
166
180
  @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
167
181
  config.credentials = credentials
168
182
  config.quota_project = @quota_project_id
169
183
  config.endpoint = @network_security_stub.endpoint
170
184
  config.universe_domain = @network_security_stub.universe_domain
171
185
  config.bindings_override = @config.bindings_override
186
+ config.logger = @network_security_stub.logger if config.respond_to? :logger=
172
187
  end
173
188
 
174
189
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
@@ -177,6 +192,7 @@ module Google
177
192
  config.endpoint = @network_security_stub.endpoint
178
193
  config.universe_domain = @network_security_stub.universe_domain
179
194
  config.bindings_override = @config.bindings_override
195
+ config.logger = @network_security_stub.logger if config.respond_to? :logger=
180
196
  end
181
197
  end
182
198
 
@@ -201,6 +217,15 @@ module Google
201
217
  #
202
218
  attr_reader :iam_policy_client
203
219
 
220
+ ##
221
+ # The logger used for request/response debug logging.
222
+ #
223
+ # @return [Logger]
224
+ #
225
+ def logger
226
+ @network_security_stub.logger
227
+ end
228
+
204
229
  # Service calls
205
230
 
206
231
  ##
@@ -270,12 +295,13 @@ module Google
270
295
  # Customize the options with defaults
271
296
  call_metadata = @config.rpcs.list_authorization_policies.metadata.to_h
272
297
 
273
- # Set x-goog-api-client and x-goog-user-project headers
298
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
274
299
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
275
300
  lib_name: @config.lib_name, lib_version: @config.lib_version,
276
301
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
277
302
  transports_version_send: [:rest]
278
303
 
304
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
279
305
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
280
306
 
281
307
  options.apply_defaults timeout: @config.rpcs.list_authorization_policies.timeout,
@@ -289,7 +315,7 @@ module Google
289
315
  @network_security_stub.list_authorization_policies request, options do |result, operation|
290
316
  result = ::Gapic::Rest::PagedEnumerable.new @network_security_stub, :list_authorization_policies, "authorization_policies", request, result, options
291
317
  yield result, operation if block_given?
292
- return result
318
+ throw :response, result
293
319
  end
294
320
  rescue ::Gapic::Rest::Error => e
295
321
  raise ::Google::Cloud::Error.from_error(e)
@@ -350,12 +376,13 @@ module Google
350
376
  # Customize the options with defaults
351
377
  call_metadata = @config.rpcs.get_authorization_policy.metadata.to_h
352
378
 
353
- # Set x-goog-api-client and x-goog-user-project headers
379
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
354
380
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
355
381
  lib_name: @config.lib_name, lib_version: @config.lib_version,
356
382
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
357
383
  transports_version_send: [:rest]
358
384
 
385
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
359
386
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
360
387
 
361
388
  options.apply_defaults timeout: @config.rpcs.get_authorization_policy.timeout,
@@ -368,7 +395,6 @@ module Google
368
395
 
369
396
  @network_security_stub.get_authorization_policy request, options do |result, operation|
370
397
  yield result, operation if block_given?
371
- return result
372
398
  end
373
399
  rescue ::Gapic::Rest::Error => e
374
400
  raise ::Google::Cloud::Error.from_error(e)
@@ -443,12 +469,13 @@ module Google
443
469
  # Customize the options with defaults
444
470
  call_metadata = @config.rpcs.create_authorization_policy.metadata.to_h
445
471
 
446
- # Set x-goog-api-client and x-goog-user-project headers
472
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
447
473
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
448
474
  lib_name: @config.lib_name, lib_version: @config.lib_version,
449
475
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
450
476
  transports_version_send: [:rest]
451
477
 
478
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
452
479
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
453
480
 
454
481
  options.apply_defaults timeout: @config.rpcs.create_authorization_policy.timeout,
@@ -462,7 +489,7 @@ module Google
462
489
  @network_security_stub.create_authorization_policy request, options do |result, operation|
463
490
  result = ::Gapic::Operation.new result, @operations_client, options: options
464
491
  yield result, operation if block_given?
465
- return result
492
+ throw :response, result
466
493
  end
467
494
  rescue ::Gapic::Rest::Error => e
468
495
  raise ::Google::Cloud::Error.from_error(e)
@@ -535,12 +562,13 @@ module Google
535
562
  # Customize the options with defaults
536
563
  call_metadata = @config.rpcs.update_authorization_policy.metadata.to_h
537
564
 
538
- # Set x-goog-api-client and x-goog-user-project headers
565
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
539
566
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
540
567
  lib_name: @config.lib_name, lib_version: @config.lib_version,
541
568
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
542
569
  transports_version_send: [:rest]
543
570
 
571
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
544
572
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
545
573
 
546
574
  options.apply_defaults timeout: @config.rpcs.update_authorization_policy.timeout,
@@ -554,7 +582,7 @@ module Google
554
582
  @network_security_stub.update_authorization_policy request, options do |result, operation|
555
583
  result = ::Gapic::Operation.new result, @operations_client, options: options
556
584
  yield result, operation if block_given?
557
- return result
585
+ throw :response, result
558
586
  end
559
587
  rescue ::Gapic::Rest::Error => e
560
588
  raise ::Google::Cloud::Error.from_error(e)
@@ -622,12 +650,13 @@ module Google
622
650
  # Customize the options with defaults
623
651
  call_metadata = @config.rpcs.delete_authorization_policy.metadata.to_h
624
652
 
625
- # Set x-goog-api-client and x-goog-user-project headers
653
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
626
654
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
627
655
  lib_name: @config.lib_name, lib_version: @config.lib_version,
628
656
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
629
657
  transports_version_send: [:rest]
630
658
 
659
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
631
660
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
632
661
 
633
662
  options.apply_defaults timeout: @config.rpcs.delete_authorization_policy.timeout,
@@ -641,7 +670,7 @@ module Google
641
670
  @network_security_stub.delete_authorization_policy request, options do |result, operation|
642
671
  result = ::Gapic::Operation.new result, @operations_client, options: options
643
672
  yield result, operation if block_given?
644
- return result
673
+ throw :response, result
645
674
  end
646
675
  rescue ::Gapic::Rest::Error => e
647
676
  raise ::Google::Cloud::Error.from_error(e)
@@ -713,12 +742,13 @@ module Google
713
742
  # Customize the options with defaults
714
743
  call_metadata = @config.rpcs.list_server_tls_policies.metadata.to_h
715
744
 
716
- # Set x-goog-api-client and x-goog-user-project headers
745
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
717
746
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
718
747
  lib_name: @config.lib_name, lib_version: @config.lib_version,
719
748
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
720
749
  transports_version_send: [:rest]
721
750
 
751
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
722
752
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
723
753
 
724
754
  options.apply_defaults timeout: @config.rpcs.list_server_tls_policies.timeout,
@@ -732,7 +762,7 @@ module Google
732
762
  @network_security_stub.list_server_tls_policies request, options do |result, operation|
733
763
  result = ::Gapic::Rest::PagedEnumerable.new @network_security_stub, :list_server_tls_policies, "server_tls_policies", request, result, options
734
764
  yield result, operation if block_given?
735
- return result
765
+ throw :response, result
736
766
  end
737
767
  rescue ::Gapic::Rest::Error => e
738
768
  raise ::Google::Cloud::Error.from_error(e)
@@ -793,12 +823,13 @@ module Google
793
823
  # Customize the options with defaults
794
824
  call_metadata = @config.rpcs.get_server_tls_policy.metadata.to_h
795
825
 
796
- # Set x-goog-api-client and x-goog-user-project headers
826
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
797
827
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
798
828
  lib_name: @config.lib_name, lib_version: @config.lib_version,
799
829
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
800
830
  transports_version_send: [:rest]
801
831
 
832
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
802
833
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
803
834
 
804
835
  options.apply_defaults timeout: @config.rpcs.get_server_tls_policy.timeout,
@@ -811,7 +842,6 @@ module Google
811
842
 
812
843
  @network_security_stub.get_server_tls_policy request, options do |result, operation|
813
844
  yield result, operation if block_given?
814
- return result
815
845
  end
816
846
  rescue ::Gapic::Rest::Error => e
817
847
  raise ::Google::Cloud::Error.from_error(e)
@@ -886,12 +916,13 @@ module Google
886
916
  # Customize the options with defaults
887
917
  call_metadata = @config.rpcs.create_server_tls_policy.metadata.to_h
888
918
 
889
- # Set x-goog-api-client and x-goog-user-project headers
919
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
890
920
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
891
921
  lib_name: @config.lib_name, lib_version: @config.lib_version,
892
922
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
893
923
  transports_version_send: [:rest]
894
924
 
925
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
895
926
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
896
927
 
897
928
  options.apply_defaults timeout: @config.rpcs.create_server_tls_policy.timeout,
@@ -905,7 +936,7 @@ module Google
905
936
  @network_security_stub.create_server_tls_policy request, options do |result, operation|
906
937
  result = ::Gapic::Operation.new result, @operations_client, options: options
907
938
  yield result, operation if block_given?
908
- return result
939
+ throw :response, result
909
940
  end
910
941
  rescue ::Gapic::Rest::Error => e
911
942
  raise ::Google::Cloud::Error.from_error(e)
@@ -979,12 +1010,13 @@ module Google
979
1010
  # Customize the options with defaults
980
1011
  call_metadata = @config.rpcs.update_server_tls_policy.metadata.to_h
981
1012
 
982
- # Set x-goog-api-client and x-goog-user-project headers
1013
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
983
1014
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
984
1015
  lib_name: @config.lib_name, lib_version: @config.lib_version,
985
1016
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
986
1017
  transports_version_send: [:rest]
987
1018
 
1019
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
988
1020
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
989
1021
 
990
1022
  options.apply_defaults timeout: @config.rpcs.update_server_tls_policy.timeout,
@@ -998,7 +1030,7 @@ module Google
998
1030
  @network_security_stub.update_server_tls_policy request, options do |result, operation|
999
1031
  result = ::Gapic::Operation.new result, @operations_client, options: options
1000
1032
  yield result, operation if block_given?
1001
- return result
1033
+ throw :response, result
1002
1034
  end
1003
1035
  rescue ::Gapic::Rest::Error => e
1004
1036
  raise ::Google::Cloud::Error.from_error(e)
@@ -1066,12 +1098,13 @@ module Google
1066
1098
  # Customize the options with defaults
1067
1099
  call_metadata = @config.rpcs.delete_server_tls_policy.metadata.to_h
1068
1100
 
1069
- # Set x-goog-api-client and x-goog-user-project headers
1101
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1070
1102
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1071
1103
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1072
1104
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
1073
1105
  transports_version_send: [:rest]
1074
1106
 
1107
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1075
1108
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1076
1109
 
1077
1110
  options.apply_defaults timeout: @config.rpcs.delete_server_tls_policy.timeout,
@@ -1085,7 +1118,7 @@ module Google
1085
1118
  @network_security_stub.delete_server_tls_policy request, options do |result, operation|
1086
1119
  result = ::Gapic::Operation.new result, @operations_client, options: options
1087
1120
  yield result, operation if block_given?
1088
- return result
1121
+ throw :response, result
1089
1122
  end
1090
1123
  rescue ::Gapic::Rest::Error => e
1091
1124
  raise ::Google::Cloud::Error.from_error(e)
@@ -1157,12 +1190,13 @@ module Google
1157
1190
  # Customize the options with defaults
1158
1191
  call_metadata = @config.rpcs.list_client_tls_policies.metadata.to_h
1159
1192
 
1160
- # Set x-goog-api-client and x-goog-user-project headers
1193
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1161
1194
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1162
1195
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1163
1196
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
1164
1197
  transports_version_send: [:rest]
1165
1198
 
1199
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1166
1200
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1167
1201
 
1168
1202
  options.apply_defaults timeout: @config.rpcs.list_client_tls_policies.timeout,
@@ -1176,7 +1210,7 @@ module Google
1176
1210
  @network_security_stub.list_client_tls_policies request, options do |result, operation|
1177
1211
  result = ::Gapic::Rest::PagedEnumerable.new @network_security_stub, :list_client_tls_policies, "client_tls_policies", request, result, options
1178
1212
  yield result, operation if block_given?
1179
- return result
1213
+ throw :response, result
1180
1214
  end
1181
1215
  rescue ::Gapic::Rest::Error => e
1182
1216
  raise ::Google::Cloud::Error.from_error(e)
@@ -1237,12 +1271,13 @@ module Google
1237
1271
  # Customize the options with defaults
1238
1272
  call_metadata = @config.rpcs.get_client_tls_policy.metadata.to_h
1239
1273
 
1240
- # Set x-goog-api-client and x-goog-user-project headers
1274
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1241
1275
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1242
1276
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1243
1277
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
1244
1278
  transports_version_send: [:rest]
1245
1279
 
1280
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1246
1281
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1247
1282
 
1248
1283
  options.apply_defaults timeout: @config.rpcs.get_client_tls_policy.timeout,
@@ -1255,7 +1290,6 @@ module Google
1255
1290
 
1256
1291
  @network_security_stub.get_client_tls_policy request, options do |result, operation|
1257
1292
  yield result, operation if block_given?
1258
- return result
1259
1293
  end
1260
1294
  rescue ::Gapic::Rest::Error => e
1261
1295
  raise ::Google::Cloud::Error.from_error(e)
@@ -1330,12 +1364,13 @@ module Google
1330
1364
  # Customize the options with defaults
1331
1365
  call_metadata = @config.rpcs.create_client_tls_policy.metadata.to_h
1332
1366
 
1333
- # Set x-goog-api-client and x-goog-user-project headers
1367
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1334
1368
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1335
1369
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1336
1370
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
1337
1371
  transports_version_send: [:rest]
1338
1372
 
1373
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1339
1374
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1340
1375
 
1341
1376
  options.apply_defaults timeout: @config.rpcs.create_client_tls_policy.timeout,
@@ -1349,7 +1384,7 @@ module Google
1349
1384
  @network_security_stub.create_client_tls_policy request, options do |result, operation|
1350
1385
  result = ::Gapic::Operation.new result, @operations_client, options: options
1351
1386
  yield result, operation if block_given?
1352
- return result
1387
+ throw :response, result
1353
1388
  end
1354
1389
  rescue ::Gapic::Rest::Error => e
1355
1390
  raise ::Google::Cloud::Error.from_error(e)
@@ -1423,12 +1458,13 @@ module Google
1423
1458
  # Customize the options with defaults
1424
1459
  call_metadata = @config.rpcs.update_client_tls_policy.metadata.to_h
1425
1460
 
1426
- # Set x-goog-api-client and x-goog-user-project headers
1461
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1427
1462
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1428
1463
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1429
1464
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
1430
1465
  transports_version_send: [:rest]
1431
1466
 
1467
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1432
1468
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1433
1469
 
1434
1470
  options.apply_defaults timeout: @config.rpcs.update_client_tls_policy.timeout,
@@ -1442,7 +1478,7 @@ module Google
1442
1478
  @network_security_stub.update_client_tls_policy request, options do |result, operation|
1443
1479
  result = ::Gapic::Operation.new result, @operations_client, options: options
1444
1480
  yield result, operation if block_given?
1445
- return result
1481
+ throw :response, result
1446
1482
  end
1447
1483
  rescue ::Gapic::Rest::Error => e
1448
1484
  raise ::Google::Cloud::Error.from_error(e)
@@ -1510,12 +1546,13 @@ module Google
1510
1546
  # Customize the options with defaults
1511
1547
  call_metadata = @config.rpcs.delete_client_tls_policy.metadata.to_h
1512
1548
 
1513
- # Set x-goog-api-client and x-goog-user-project headers
1549
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1514
1550
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1515
1551
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1516
1552
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
1517
1553
  transports_version_send: [:rest]
1518
1554
 
1555
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1519
1556
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1520
1557
 
1521
1558
  options.apply_defaults timeout: @config.rpcs.delete_client_tls_policy.timeout,
@@ -1529,7 +1566,7 @@ module Google
1529
1566
  @network_security_stub.delete_client_tls_policy request, options do |result, operation|
1530
1567
  result = ::Gapic::Operation.new result, @operations_client, options: options
1531
1568
  yield result, operation if block_given?
1532
- return result
1569
+ throw :response, result
1533
1570
  end
1534
1571
  rescue ::Gapic::Rest::Error => e
1535
1572
  raise ::Google::Cloud::Error.from_error(e)
@@ -1609,6 +1646,11 @@ module Google
1609
1646
  # default endpoint URL. The default value of nil uses the environment
1610
1647
  # universe (usually the default "googleapis.com" universe).
1611
1648
  # @return [::String,nil]
1649
+ # @!attribute [rw] logger
1650
+ # A custom logger to use for request/response debug logging, or the value
1651
+ # `:default` (the default) to construct a default logger, or `nil` to
1652
+ # explicitly disable logging.
1653
+ # @return [::Logger,:default,nil]
1612
1654
  #
1613
1655
  class Configuration
1614
1656
  extend ::Gapic::Config
@@ -1637,6 +1679,7 @@ module Google
1637
1679
  # by the host service.
1638
1680
  # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
1639
1681
  config_attr :bindings_override, {}, ::Hash, nil
1682
+ config_attr :logger, :default, ::Logger, nil, :default
1640
1683
 
1641
1684
  # @private
1642
1685
  def initialize parent_config = nil