google-cloud-contact_center_insights-v1 1.2.0 → 1.3.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.
@@ -163,14 +163,26 @@ module Google
163
163
  endpoint: @config.endpoint,
164
164
  endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
165
165
  universe_domain: @config.universe_domain,
166
- credentials: credentials
166
+ credentials: credentials,
167
+ logger: @config.logger
167
168
  )
168
169
 
170
+ @contact_center_insights_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
+
169
180
  @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
170
181
  config.credentials = credentials
171
182
  config.quota_project = @quota_project_id
172
183
  config.endpoint = @contact_center_insights_stub.endpoint
173
184
  config.universe_domain = @contact_center_insights_stub.universe_domain
185
+ config.logger = @contact_center_insights_stub.logger if config.respond_to? :logger=
174
186
  end
175
187
  end
176
188
 
@@ -188,6 +200,15 @@ module Google
188
200
  #
189
201
  attr_reader :iam_policy_client
190
202
 
203
+ ##
204
+ # The logger used for request/response debug logging.
205
+ #
206
+ # @return [Logger]
207
+ #
208
+ def logger
209
+ @contact_center_insights_stub.logger
210
+ end
211
+
191
212
  # Service calls
192
213
 
193
214
  ##
@@ -274,7 +295,6 @@ module Google
274
295
 
275
296
  @contact_center_insights_stub.create_conversation request, options do |result, operation|
276
297
  yield result, operation if block_given?
277
- return result
278
298
  end
279
299
  rescue ::Gapic::Rest::Error => e
280
300
  raise ::Google::Cloud::Error.from_error(e)
@@ -378,7 +398,7 @@ module Google
378
398
  @contact_center_insights_stub.upload_conversation request, options do |result, operation|
379
399
  result = ::Gapic::Operation.new result, @operations_client, options: options
380
400
  yield result, operation if block_given?
381
- return result
401
+ throw :response, result
382
402
  end
383
403
  rescue ::Gapic::Rest::Error => e
384
404
  raise ::Google::Cloud::Error.from_error(e)
@@ -472,7 +492,6 @@ module Google
472
492
 
473
493
  @contact_center_insights_stub.update_conversation request, options do |result, operation|
474
494
  yield result, operation if block_given?
475
- return result
476
495
  end
477
496
  rescue ::Gapic::Rest::Error => e
478
497
  raise ::Google::Cloud::Error.from_error(e)
@@ -553,7 +572,6 @@ module Google
553
572
 
554
573
  @contact_center_insights_stub.get_conversation request, options do |result, operation|
555
574
  yield result, operation if block_given?
556
- return result
557
575
  end
558
576
  rescue ::Gapic::Rest::Error => e
559
577
  raise ::Google::Cloud::Error.from_error(e)
@@ -667,7 +685,7 @@ module Google
667
685
  @contact_center_insights_stub.list_conversations request, options do |result, operation|
668
686
  result = ::Gapic::Rest::PagedEnumerable.new @contact_center_insights_stub, :list_conversations, "conversations", request, result, options
669
687
  yield result, operation if block_given?
670
- return result
688
+ throw :response, result
671
689
  end
672
690
  rescue ::Gapic::Rest::Error => e
673
691
  raise ::Google::Cloud::Error.from_error(e)
@@ -750,7 +768,6 @@ module Google
750
768
 
751
769
  @contact_center_insights_stub.delete_conversation request, options do |result, operation|
752
770
  yield result, operation if block_given?
753
- return result
754
771
  end
755
772
  rescue ::Gapic::Rest::Error => e
756
773
  raise ::Google::Cloud::Error.from_error(e)
@@ -840,7 +857,7 @@ module Google
840
857
  @contact_center_insights_stub.create_analysis request, options do |result, operation|
841
858
  result = ::Gapic::Operation.new result, @operations_client, options: options
842
859
  yield result, operation if block_given?
843
- return result
860
+ throw :response, result
844
861
  end
845
862
  rescue ::Gapic::Rest::Error => e
846
863
  raise ::Google::Cloud::Error.from_error(e)
@@ -919,7 +936,6 @@ module Google
919
936
 
920
937
  @contact_center_insights_stub.get_analysis request, options do |result, operation|
921
938
  yield result, operation if block_given?
922
- return result
923
939
  end
924
940
  rescue ::Gapic::Rest::Error => e
925
941
  raise ::Google::Cloud::Error.from_error(e)
@@ -1015,7 +1031,7 @@ module Google
1015
1031
  @contact_center_insights_stub.list_analyses request, options do |result, operation|
1016
1032
  result = ::Gapic::Rest::PagedEnumerable.new @contact_center_insights_stub, :list_analyses, "analyses", request, result, options
1017
1033
  yield result, operation if block_given?
1018
- return result
1034
+ throw :response, result
1019
1035
  end
1020
1036
  rescue ::Gapic::Rest::Error => e
1021
1037
  raise ::Google::Cloud::Error.from_error(e)
@@ -1094,7 +1110,6 @@ module Google
1094
1110
 
1095
1111
  @contact_center_insights_stub.delete_analysis request, options do |result, operation|
1096
1112
  yield result, operation if block_given?
1097
- return result
1098
1113
  end
1099
1114
  rescue ::Gapic::Rest::Error => e
1100
1115
  raise ::Google::Cloud::Error.from_error(e)
@@ -1189,7 +1204,7 @@ module Google
1189
1204
  @contact_center_insights_stub.bulk_analyze_conversations request, options do |result, operation|
1190
1205
  result = ::Gapic::Operation.new result, @operations_client, options: options
1191
1206
  yield result, operation if block_given?
1192
- return result
1207
+ throw :response, result
1193
1208
  end
1194
1209
  rescue ::Gapic::Rest::Error => e
1195
1210
  raise ::Google::Cloud::Error.from_error(e)
@@ -1286,7 +1301,7 @@ module Google
1286
1301
  @contact_center_insights_stub.bulk_delete_conversations request, options do |result, operation|
1287
1302
  result = ::Gapic::Operation.new result, @operations_client, options: options
1288
1303
  yield result, operation if block_given?
1289
- return result
1304
+ throw :response, result
1290
1305
  end
1291
1306
  rescue ::Gapic::Rest::Error => e
1292
1307
  raise ::Google::Cloud::Error.from_error(e)
@@ -1392,7 +1407,7 @@ module Google
1392
1407
  @contact_center_insights_stub.ingest_conversations request, options do |result, operation|
1393
1408
  result = ::Gapic::Operation.new result, @operations_client, options: options
1394
1409
  yield result, operation if block_given?
1395
- return result
1410
+ throw :response, result
1396
1411
  end
1397
1412
  rescue ::Gapic::Rest::Error => e
1398
1413
  raise ::Google::Cloud::Error.from_error(e)
@@ -1490,7 +1505,7 @@ module Google
1490
1505
  @contact_center_insights_stub.export_insights_data request, options do |result, operation|
1491
1506
  result = ::Gapic::Operation.new result, @operations_client, options: options
1492
1507
  yield result, operation if block_given?
1493
- return result
1508
+ throw :response, result
1494
1509
  end
1495
1510
  rescue ::Gapic::Rest::Error => e
1496
1511
  raise ::Google::Cloud::Error.from_error(e)
@@ -1579,7 +1594,7 @@ module Google
1579
1594
  @contact_center_insights_stub.create_issue_model request, options do |result, operation|
1580
1595
  result = ::Gapic::Operation.new result, @operations_client, options: options
1581
1596
  yield result, operation if block_given?
1582
- return result
1597
+ throw :response, result
1583
1598
  end
1584
1599
  rescue ::Gapic::Rest::Error => e
1585
1600
  raise ::Google::Cloud::Error.from_error(e)
@@ -1660,7 +1675,6 @@ module Google
1660
1675
 
1661
1676
  @contact_center_insights_stub.update_issue_model request, options do |result, operation|
1662
1677
  yield result, operation if block_given?
1663
- return result
1664
1678
  end
1665
1679
  rescue ::Gapic::Rest::Error => e
1666
1680
  raise ::Google::Cloud::Error.from_error(e)
@@ -1739,7 +1753,6 @@ module Google
1739
1753
 
1740
1754
  @contact_center_insights_stub.get_issue_model request, options do |result, operation|
1741
1755
  yield result, operation if block_given?
1742
- return result
1743
1756
  end
1744
1757
  rescue ::Gapic::Rest::Error => e
1745
1758
  raise ::Google::Cloud::Error.from_error(e)
@@ -1818,7 +1831,6 @@ module Google
1818
1831
 
1819
1832
  @contact_center_insights_stub.list_issue_models request, options do |result, operation|
1820
1833
  yield result, operation if block_given?
1821
- return result
1822
1834
  end
1823
1835
  rescue ::Gapic::Rest::Error => e
1824
1836
  raise ::Google::Cloud::Error.from_error(e)
@@ -1905,7 +1917,7 @@ module Google
1905
1917
  @contact_center_insights_stub.delete_issue_model request, options do |result, operation|
1906
1918
  result = ::Gapic::Operation.new result, @operations_client, options: options
1907
1919
  yield result, operation if block_given?
1908
- return result
1920
+ throw :response, result
1909
1921
  end
1910
1922
  rescue ::Gapic::Rest::Error => e
1911
1923
  raise ::Google::Cloud::Error.from_error(e)
@@ -1993,7 +2005,7 @@ module Google
1993
2005
  @contact_center_insights_stub.deploy_issue_model request, options do |result, operation|
1994
2006
  result = ::Gapic::Operation.new result, @operations_client, options: options
1995
2007
  yield result, operation if block_given?
1996
- return result
2008
+ throw :response, result
1997
2009
  end
1998
2010
  rescue ::Gapic::Rest::Error => e
1999
2011
  raise ::Google::Cloud::Error.from_error(e)
@@ -2081,7 +2093,7 @@ module Google
2081
2093
  @contact_center_insights_stub.undeploy_issue_model request, options do |result, operation|
2082
2094
  result = ::Gapic::Operation.new result, @operations_client, options: options
2083
2095
  yield result, operation if block_given?
2084
- return result
2096
+ throw :response, result
2085
2097
  end
2086
2098
  rescue ::Gapic::Rest::Error => e
2087
2099
  raise ::Google::Cloud::Error.from_error(e)
@@ -2170,7 +2182,7 @@ module Google
2170
2182
  @contact_center_insights_stub.export_issue_model request, options do |result, operation|
2171
2183
  result = ::Gapic::Operation.new result, @operations_client, options: options
2172
2184
  yield result, operation if block_given?
2173
- return result
2185
+ throw :response, result
2174
2186
  end
2175
2187
  rescue ::Gapic::Rest::Error => e
2176
2188
  raise ::Google::Cloud::Error.from_error(e)
@@ -2263,7 +2275,7 @@ module Google
2263
2275
  @contact_center_insights_stub.import_issue_model request, options do |result, operation|
2264
2276
  result = ::Gapic::Operation.new result, @operations_client, options: options
2265
2277
  yield result, operation if block_given?
2266
- return result
2278
+ throw :response, result
2267
2279
  end
2268
2280
  rescue ::Gapic::Rest::Error => e
2269
2281
  raise ::Google::Cloud::Error.from_error(e)
@@ -2342,7 +2354,6 @@ module Google
2342
2354
 
2343
2355
  @contact_center_insights_stub.get_issue request, options do |result, operation|
2344
2356
  yield result, operation if block_given?
2345
- return result
2346
2357
  end
2347
2358
  rescue ::Gapic::Rest::Error => e
2348
2359
  raise ::Google::Cloud::Error.from_error(e)
@@ -2421,7 +2432,6 @@ module Google
2421
2432
 
2422
2433
  @contact_center_insights_stub.list_issues request, options do |result, operation|
2423
2434
  yield result, operation if block_given?
2424
- return result
2425
2435
  end
2426
2436
  rescue ::Gapic::Rest::Error => e
2427
2437
  raise ::Google::Cloud::Error.from_error(e)
@@ -2502,7 +2512,6 @@ module Google
2502
2512
 
2503
2513
  @contact_center_insights_stub.update_issue request, options do |result, operation|
2504
2514
  yield result, operation if block_given?
2505
- return result
2506
2515
  end
2507
2516
  rescue ::Gapic::Rest::Error => e
2508
2517
  raise ::Google::Cloud::Error.from_error(e)
@@ -2581,7 +2590,6 @@ module Google
2581
2590
 
2582
2591
  @contact_center_insights_stub.delete_issue request, options do |result, operation|
2583
2592
  yield result, operation if block_given?
2584
- return result
2585
2593
  end
2586
2594
  rescue ::Gapic::Rest::Error => e
2587
2595
  raise ::Google::Cloud::Error.from_error(e)
@@ -2660,7 +2668,6 @@ module Google
2660
2668
 
2661
2669
  @contact_center_insights_stub.calculate_issue_model_stats request, options do |result, operation|
2662
2670
  yield result, operation if block_given?
2663
- return result
2664
2671
  end
2665
2672
  rescue ::Gapic::Rest::Error => e
2666
2673
  raise ::Google::Cloud::Error.from_error(e)
@@ -2744,7 +2751,6 @@ module Google
2744
2751
 
2745
2752
  @contact_center_insights_stub.create_phrase_matcher request, options do |result, operation|
2746
2753
  yield result, operation if block_given?
2747
- return result
2748
2754
  end
2749
2755
  rescue ::Gapic::Rest::Error => e
2750
2756
  raise ::Google::Cloud::Error.from_error(e)
@@ -2823,7 +2829,6 @@ module Google
2823
2829
 
2824
2830
  @contact_center_insights_stub.get_phrase_matcher request, options do |result, operation|
2825
2831
  yield result, operation if block_given?
2826
- return result
2827
2832
  end
2828
2833
  rescue ::Gapic::Rest::Error => e
2829
2834
  raise ::Google::Cloud::Error.from_error(e)
@@ -2919,7 +2924,7 @@ module Google
2919
2924
  @contact_center_insights_stub.list_phrase_matchers request, options do |result, operation|
2920
2925
  result = ::Gapic::Rest::PagedEnumerable.new @contact_center_insights_stub, :list_phrase_matchers, "phrase_matchers", request, result, options
2921
2926
  yield result, operation if block_given?
2922
- return result
2927
+ throw :response, result
2923
2928
  end
2924
2929
  rescue ::Gapic::Rest::Error => e
2925
2930
  raise ::Google::Cloud::Error.from_error(e)
@@ -2998,7 +3003,6 @@ module Google
2998
3003
 
2999
3004
  @contact_center_insights_stub.delete_phrase_matcher request, options do |result, operation|
3000
3005
  yield result, operation if block_given?
3001
- return result
3002
3006
  end
3003
3007
  rescue ::Gapic::Rest::Error => e
3004
3008
  raise ::Google::Cloud::Error.from_error(e)
@@ -3079,7 +3083,6 @@ module Google
3079
3083
 
3080
3084
  @contact_center_insights_stub.update_phrase_matcher request, options do |result, operation|
3081
3085
  yield result, operation if block_given?
3082
- return result
3083
3086
  end
3084
3087
  rescue ::Gapic::Rest::Error => e
3085
3088
  raise ::Google::Cloud::Error.from_error(e)
@@ -3161,7 +3164,6 @@ module Google
3161
3164
 
3162
3165
  @contact_center_insights_stub.calculate_stats request, options do |result, operation|
3163
3166
  yield result, operation if block_given?
3164
- return result
3165
3167
  end
3166
3168
  rescue ::Gapic::Rest::Error => e
3167
3169
  raise ::Google::Cloud::Error.from_error(e)
@@ -3240,7 +3242,6 @@ module Google
3240
3242
 
3241
3243
  @contact_center_insights_stub.get_settings request, options do |result, operation|
3242
3244
  yield result, operation if block_given?
3243
- return result
3244
3245
  end
3245
3246
  rescue ::Gapic::Rest::Error => e
3246
3247
  raise ::Google::Cloud::Error.from_error(e)
@@ -3321,7 +3322,6 @@ module Google
3321
3322
 
3322
3323
  @contact_center_insights_stub.update_settings request, options do |result, operation|
3323
3324
  yield result, operation if block_given?
3324
- return result
3325
3325
  end
3326
3326
  rescue ::Gapic::Rest::Error => e
3327
3327
  raise ::Google::Cloud::Error.from_error(e)
@@ -3405,7 +3405,6 @@ module Google
3405
3405
 
3406
3406
  @contact_center_insights_stub.create_analysis_rule request, options do |result, operation|
3407
3407
  yield result, operation if block_given?
3408
- return result
3409
3408
  end
3410
3409
  rescue ::Gapic::Rest::Error => e
3411
3410
  raise ::Google::Cloud::Error.from_error(e)
@@ -3484,7 +3483,6 @@ module Google
3484
3483
 
3485
3484
  @contact_center_insights_stub.get_analysis_rule request, options do |result, operation|
3486
3485
  yield result, operation if block_given?
3487
- return result
3488
3486
  end
3489
3487
  rescue ::Gapic::Rest::Error => e
3490
3488
  raise ::Google::Cloud::Error.from_error(e)
@@ -3577,7 +3575,7 @@ module Google
3577
3575
  @contact_center_insights_stub.list_analysis_rules request, options do |result, operation|
3578
3576
  result = ::Gapic::Rest::PagedEnumerable.new @contact_center_insights_stub, :list_analysis_rules, "analysis_rules", request, result, options
3579
3577
  yield result, operation if block_given?
3580
- return result
3578
+ throw :response, result
3581
3579
  end
3582
3580
  rescue ::Gapic::Rest::Error => e
3583
3581
  raise ::Google::Cloud::Error.from_error(e)
@@ -3660,7 +3658,6 @@ module Google
3660
3658
 
3661
3659
  @contact_center_insights_stub.update_analysis_rule request, options do |result, operation|
3662
3660
  yield result, operation if block_given?
3663
- return result
3664
3661
  end
3665
3662
  rescue ::Gapic::Rest::Error => e
3666
3663
  raise ::Google::Cloud::Error.from_error(e)
@@ -3739,7 +3736,6 @@ module Google
3739
3736
 
3740
3737
  @contact_center_insights_stub.delete_analysis_rule request, options do |result, operation|
3741
3738
  yield result, operation if block_given?
3742
- return result
3743
3739
  end
3744
3740
  rescue ::Gapic::Rest::Error => e
3745
3741
  raise ::Google::Cloud::Error.from_error(e)
@@ -3818,7 +3814,6 @@ module Google
3818
3814
 
3819
3815
  @contact_center_insights_stub.get_encryption_spec request, options do |result, operation|
3820
3816
  yield result, operation if block_given?
3821
- return result
3822
3817
  end
3823
3818
  rescue ::Gapic::Rest::Error => e
3824
3819
  raise ::Google::Cloud::Error.from_error(e)
@@ -3912,7 +3907,7 @@ module Google
3912
3907
  @contact_center_insights_stub.initialize_encryption_spec request, options do |result, operation|
3913
3908
  result = ::Gapic::Operation.new result, @operations_client, options: options
3914
3909
  yield result, operation if block_given?
3915
- return result
3910
+ throw :response, result
3916
3911
  end
3917
3912
  rescue ::Gapic::Rest::Error => e
3918
3913
  raise ::Google::Cloud::Error.from_error(e)
@@ -3996,7 +3991,6 @@ module Google
3996
3991
 
3997
3992
  @contact_center_insights_stub.create_view request, options do |result, operation|
3998
3993
  yield result, operation if block_given?
3999
- return result
4000
3994
  end
4001
3995
  rescue ::Gapic::Rest::Error => e
4002
3996
  raise ::Google::Cloud::Error.from_error(e)
@@ -4075,7 +4069,6 @@ module Google
4075
4069
 
4076
4070
  @contact_center_insights_stub.get_view request, options do |result, operation|
4077
4071
  yield result, operation if block_given?
4078
- return result
4079
4072
  end
4080
4073
  rescue ::Gapic::Rest::Error => e
4081
4074
  raise ::Google::Cloud::Error.from_error(e)
@@ -4168,7 +4161,7 @@ module Google
4168
4161
  @contact_center_insights_stub.list_views request, options do |result, operation|
4169
4162
  result = ::Gapic::Rest::PagedEnumerable.new @contact_center_insights_stub, :list_views, "views", request, result, options
4170
4163
  yield result, operation if block_given?
4171
- return result
4164
+ throw :response, result
4172
4165
  end
4173
4166
  rescue ::Gapic::Rest::Error => e
4174
4167
  raise ::Google::Cloud::Error.from_error(e)
@@ -4249,7 +4242,6 @@ module Google
4249
4242
 
4250
4243
  @contact_center_insights_stub.update_view request, options do |result, operation|
4251
4244
  yield result, operation if block_given?
4252
- return result
4253
4245
  end
4254
4246
  rescue ::Gapic::Rest::Error => e
4255
4247
  raise ::Google::Cloud::Error.from_error(e)
@@ -4328,7 +4320,6 @@ module Google
4328
4320
 
4329
4321
  @contact_center_insights_stub.delete_view request, options do |result, operation|
4330
4322
  yield result, operation if block_given?
4331
- return result
4332
4323
  end
4333
4324
  rescue ::Gapic::Rest::Error => e
4334
4325
  raise ::Google::Cloud::Error.from_error(e)
@@ -4438,7 +4429,7 @@ module Google
4438
4429
  @contact_center_insights_stub.query_metrics request, options do |result, operation|
4439
4430
  result = ::Gapic::Operation.new result, @operations_client, options: options
4440
4431
  yield result, operation if block_given?
4441
- return result
4432
+ throw :response, result
4442
4433
  end
4443
4434
  rescue ::Gapic::Rest::Error => e
4444
4435
  raise ::Google::Cloud::Error.from_error(e)
@@ -4526,7 +4517,6 @@ module Google
4526
4517
 
4527
4518
  @contact_center_insights_stub.create_qa_question request, options do |result, operation|
4528
4519
  yield result, operation if block_given?
4529
- return result
4530
4520
  end
4531
4521
  rescue ::Gapic::Rest::Error => e
4532
4522
  raise ::Google::Cloud::Error.from_error(e)
@@ -4605,7 +4595,6 @@ module Google
4605
4595
 
4606
4596
  @contact_center_insights_stub.get_qa_question request, options do |result, operation|
4607
4597
  yield result, operation if block_given?
4608
- return result
4609
4598
  end
4610
4599
  rescue ::Gapic::Rest::Error => e
4611
4600
  raise ::Google::Cloud::Error.from_error(e)
@@ -4695,7 +4684,6 @@ module Google
4695
4684
 
4696
4685
  @contact_center_insights_stub.update_qa_question request, options do |result, operation|
4697
4686
  yield result, operation if block_given?
4698
- return result
4699
4687
  end
4700
4688
  rescue ::Gapic::Rest::Error => e
4701
4689
  raise ::Google::Cloud::Error.from_error(e)
@@ -4774,7 +4762,6 @@ module Google
4774
4762
 
4775
4763
  @contact_center_insights_stub.delete_qa_question request, options do |result, operation|
4776
4764
  yield result, operation if block_given?
4777
- return result
4778
4765
  end
4779
4766
  rescue ::Gapic::Rest::Error => e
4780
4767
  raise ::Google::Cloud::Error.from_error(e)
@@ -4867,7 +4854,7 @@ module Google
4867
4854
  @contact_center_insights_stub.list_qa_questions request, options do |result, operation|
4868
4855
  result = ::Gapic::Rest::PagedEnumerable.new @contact_center_insights_stub, :list_qa_questions, "qa_questions", request, result, options
4869
4856
  yield result, operation if block_given?
4870
- return result
4857
+ throw :response, result
4871
4858
  end
4872
4859
  rescue ::Gapic::Rest::Error => e
4873
4860
  raise ::Google::Cloud::Error.from_error(e)
@@ -4955,7 +4942,6 @@ module Google
4955
4942
 
4956
4943
  @contact_center_insights_stub.create_qa_scorecard request, options do |result, operation|
4957
4944
  yield result, operation if block_given?
4958
- return result
4959
4945
  end
4960
4946
  rescue ::Gapic::Rest::Error => e
4961
4947
  raise ::Google::Cloud::Error.from_error(e)
@@ -5034,7 +5020,6 @@ module Google
5034
5020
 
5035
5021
  @contact_center_insights_stub.get_qa_scorecard request, options do |result, operation|
5036
5022
  yield result, operation if block_given?
5037
- return result
5038
5023
  end
5039
5024
  rescue ::Gapic::Rest::Error => e
5040
5025
  raise ::Google::Cloud::Error.from_error(e)
@@ -5120,7 +5105,6 @@ module Google
5120
5105
 
5121
5106
  @contact_center_insights_stub.update_qa_scorecard request, options do |result, operation|
5122
5107
  yield result, operation if block_given?
5123
- return result
5124
5108
  end
5125
5109
  rescue ::Gapic::Rest::Error => e
5126
5110
  raise ::Google::Cloud::Error.from_error(e)
@@ -5202,7 +5186,6 @@ module Google
5202
5186
 
5203
5187
  @contact_center_insights_stub.delete_qa_scorecard request, options do |result, operation|
5204
5188
  yield result, operation if block_given?
5205
- return result
5206
5189
  end
5207
5190
  rescue ::Gapic::Rest::Error => e
5208
5191
  raise ::Google::Cloud::Error.from_error(e)
@@ -5295,7 +5278,7 @@ module Google
5295
5278
  @contact_center_insights_stub.list_qa_scorecards request, options do |result, operation|
5296
5279
  result = ::Gapic::Rest::PagedEnumerable.new @contact_center_insights_stub, :list_qa_scorecards, "qa_scorecards", request, result, options
5297
5280
  yield result, operation if block_given?
5298
- return result
5281
+ throw :response, result
5299
5282
  end
5300
5283
  rescue ::Gapic::Rest::Error => e
5301
5284
  raise ::Google::Cloud::Error.from_error(e)
@@ -5383,7 +5366,6 @@ module Google
5383
5366
 
5384
5367
  @contact_center_insights_stub.create_qa_scorecard_revision request, options do |result, operation|
5385
5368
  yield result, operation if block_given?
5386
- return result
5387
5369
  end
5388
5370
  rescue ::Gapic::Rest::Error => e
5389
5371
  raise ::Google::Cloud::Error.from_error(e)
@@ -5462,7 +5444,6 @@ module Google
5462
5444
 
5463
5445
  @contact_center_insights_stub.get_qa_scorecard_revision request, options do |result, operation|
5464
5446
  yield result, operation if block_given?
5465
- return result
5466
5447
  end
5467
5448
  rescue ::Gapic::Rest::Error => e
5468
5449
  raise ::Google::Cloud::Error.from_error(e)
@@ -5560,7 +5541,7 @@ module Google
5560
5541
  @contact_center_insights_stub.tune_qa_scorecard_revision request, options do |result, operation|
5561
5542
  result = ::Gapic::Operation.new result, @operations_client, options: options
5562
5543
  yield result, operation if block_given?
5563
- return result
5544
+ throw :response, result
5564
5545
  end
5565
5546
  rescue ::Gapic::Rest::Error => e
5566
5547
  raise ::Google::Cloud::Error.from_error(e)
@@ -5639,7 +5620,6 @@ module Google
5639
5620
 
5640
5621
  @contact_center_insights_stub.deploy_qa_scorecard_revision request, options do |result, operation|
5641
5622
  yield result, operation if block_given?
5642
- return result
5643
5623
  end
5644
5624
  rescue ::Gapic::Rest::Error => e
5645
5625
  raise ::Google::Cloud::Error.from_error(e)
@@ -5718,7 +5698,6 @@ module Google
5718
5698
 
5719
5699
  @contact_center_insights_stub.undeploy_qa_scorecard_revision request, options do |result, operation|
5720
5700
  yield result, operation if block_given?
5721
- return result
5722
5701
  end
5723
5702
  rescue ::Gapic::Rest::Error => e
5724
5703
  raise ::Google::Cloud::Error.from_error(e)
@@ -5801,7 +5780,6 @@ module Google
5801
5780
 
5802
5781
  @contact_center_insights_stub.delete_qa_scorecard_revision request, options do |result, operation|
5803
5782
  yield result, operation if block_given?
5804
- return result
5805
5783
  end
5806
5784
  rescue ::Gapic::Rest::Error => e
5807
5785
  raise ::Google::Cloud::Error.from_error(e)
@@ -5900,7 +5878,7 @@ module Google
5900
5878
  @contact_center_insights_stub.list_qa_scorecard_revisions request, options do |result, operation|
5901
5879
  result = ::Gapic::Rest::PagedEnumerable.new @contact_center_insights_stub, :list_qa_scorecard_revisions, "qa_scorecard_revisions", request, result, options
5902
5880
  yield result, operation if block_given?
5903
- return result
5881
+ throw :response, result
5904
5882
  end
5905
5883
  rescue ::Gapic::Rest::Error => e
5906
5884
  raise ::Google::Cloud::Error.from_error(e)
@@ -5984,7 +5962,6 @@ module Google
5984
5962
 
5985
5963
  @contact_center_insights_stub.create_feedback_label request, options do |result, operation|
5986
5964
  yield result, operation if block_given?
5987
- return result
5988
5965
  end
5989
5966
  rescue ::Gapic::Rest::Error => e
5990
5967
  raise ::Google::Cloud::Error.from_error(e)
@@ -6093,7 +6070,7 @@ module Google
6093
6070
  @contact_center_insights_stub.list_feedback_labels request, options do |result, operation|
6094
6071
  result = ::Gapic::Rest::PagedEnumerable.new @contact_center_insights_stub, :list_feedback_labels, "feedback_labels", request, result, options
6095
6072
  yield result, operation if block_given?
6096
- return result
6073
+ throw :response, result
6097
6074
  end
6098
6075
  rescue ::Gapic::Rest::Error => e
6099
6076
  raise ::Google::Cloud::Error.from_error(e)
@@ -6172,7 +6149,6 @@ module Google
6172
6149
 
6173
6150
  @contact_center_insights_stub.get_feedback_label request, options do |result, operation|
6174
6151
  yield result, operation if block_given?
6175
- return result
6176
6152
  end
6177
6153
  rescue ::Gapic::Rest::Error => e
6178
6154
  raise ::Google::Cloud::Error.from_error(e)
@@ -6253,7 +6229,6 @@ module Google
6253
6229
 
6254
6230
  @contact_center_insights_stub.update_feedback_label request, options do |result, operation|
6255
6231
  yield result, operation if block_given?
6256
- return result
6257
6232
  end
6258
6233
  rescue ::Gapic::Rest::Error => e
6259
6234
  raise ::Google::Cloud::Error.from_error(e)
@@ -6332,7 +6307,6 @@ module Google
6332
6307
 
6333
6308
  @contact_center_insights_stub.delete_feedback_label request, options do |result, operation|
6334
6309
  yield result, operation if block_given?
6335
- return result
6336
6310
  end
6337
6311
  rescue ::Gapic::Rest::Error => e
6338
6312
  raise ::Google::Cloud::Error.from_error(e)
@@ -6439,7 +6413,7 @@ module Google
6439
6413
  @contact_center_insights_stub.list_all_feedback_labels request, options do |result, operation|
6440
6414
  result = ::Gapic::Rest::PagedEnumerable.new @contact_center_insights_stub, :list_all_feedback_labels, "feedback_labels", request, result, options
6441
6415
  yield result, operation if block_given?
6442
- return result
6416
+ throw :response, result
6443
6417
  end
6444
6418
  rescue ::Gapic::Rest::Error => e
6445
6419
  raise ::Google::Cloud::Error.from_error(e)
@@ -6532,7 +6506,7 @@ module Google
6532
6506
  @contact_center_insights_stub.bulk_upload_feedback_labels request, options do |result, operation|
6533
6507
  result = ::Gapic::Operation.new result, @operations_client, options: options
6534
6508
  yield result, operation if block_given?
6535
- return result
6509
+ throw :response, result
6536
6510
  end
6537
6511
  rescue ::Gapic::Rest::Error => e
6538
6512
  raise ::Google::Cloud::Error.from_error(e)
@@ -6650,7 +6624,7 @@ module Google
6650
6624
  @contact_center_insights_stub.bulk_download_feedback_labels request, options do |result, operation|
6651
6625
  result = ::Gapic::Operation.new result, @operations_client, options: options
6652
6626
  yield result, operation if block_given?
6653
- return result
6627
+ throw :response, result
6654
6628
  end
6655
6629
  rescue ::Gapic::Rest::Error => e
6656
6630
  raise ::Google::Cloud::Error.from_error(e)
@@ -6730,6 +6704,11 @@ module Google
6730
6704
  # default endpoint URL. The default value of nil uses the environment
6731
6705
  # universe (usually the default "googleapis.com" universe).
6732
6706
  # @return [::String,nil]
6707
+ # @!attribute [rw] logger
6708
+ # A custom logger to use for request/response debug logging, or the value
6709
+ # `:default` (the default) to construct a default logger, or `nil` to
6710
+ # explicitly disable logging.
6711
+ # @return [::Logger,:default,nil]
6733
6712
  #
6734
6713
  class Configuration
6735
6714
  extend ::Gapic::Config
@@ -6751,6 +6730,7 @@ module Google
6751
6730
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
6752
6731
  config_attr :quota_project, nil, ::String, nil
6753
6732
  config_attr :universe_domain, nil, ::String, nil
6733
+ config_attr :logger, :default, ::Logger, nil, :default
6754
6734
 
6755
6735
  # @private
6756
6736
  def initialize parent_config = nil