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.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/client.rb +55 -75
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/operations.rb +9 -5
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest/client.rb +55 -75
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest/operations.rb +40 -28
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest/service_stub.rb +606 -446
- data/lib/google/cloud/contact_center_insights/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +19 -0
- metadata +5 -5
@@ -170,14 +170,26 @@ module Google
|
|
170
170
|
universe_domain: @config.universe_domain,
|
171
171
|
channel_args: @config.channel_args,
|
172
172
|
interceptors: @config.interceptors,
|
173
|
-
channel_pool_config: @config.channel_pool
|
173
|
+
channel_pool_config: @config.channel_pool,
|
174
|
+
logger: @config.logger
|
174
175
|
)
|
175
176
|
|
177
|
+
@contact_center_insights_stub.stub_logger&.info do |entry|
|
178
|
+
entry.set_system_name
|
179
|
+
entry.set_service
|
180
|
+
entry.message = "Created client for #{entry.service}"
|
181
|
+
entry.set_credentials_fields credentials
|
182
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
183
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
184
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
185
|
+
end
|
186
|
+
|
176
187
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
177
188
|
config.credentials = credentials
|
178
189
|
config.quota_project = @quota_project_id
|
179
190
|
config.endpoint = @contact_center_insights_stub.endpoint
|
180
191
|
config.universe_domain = @contact_center_insights_stub.universe_domain
|
192
|
+
config.logger = @contact_center_insights_stub.logger if config.respond_to? :logger=
|
181
193
|
end
|
182
194
|
end
|
183
195
|
|
@@ -195,6 +207,15 @@ module Google
|
|
195
207
|
#
|
196
208
|
attr_reader :iam_policy_client
|
197
209
|
|
210
|
+
##
|
211
|
+
# The logger used for request/response debug logging.
|
212
|
+
#
|
213
|
+
# @return [Logger]
|
214
|
+
#
|
215
|
+
def logger
|
216
|
+
@contact_center_insights_stub.logger
|
217
|
+
end
|
218
|
+
|
198
219
|
# Service calls
|
199
220
|
|
200
221
|
##
|
@@ -288,7 +309,6 @@ module Google
|
|
288
309
|
|
289
310
|
@contact_center_insights_stub.call_rpc :create_conversation, request, options: options do |response, operation|
|
290
311
|
yield response, operation if block_given?
|
291
|
-
return response
|
292
312
|
end
|
293
313
|
rescue ::GRPC::BadStatus => e
|
294
314
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -399,7 +419,7 @@ module Google
|
|
399
419
|
@contact_center_insights_stub.call_rpc :upload_conversation, request, options: options do |response, operation|
|
400
420
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
401
421
|
yield response, operation if block_given?
|
402
|
-
|
422
|
+
throw :response, response
|
403
423
|
end
|
404
424
|
rescue ::GRPC::BadStatus => e
|
405
425
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -500,7 +520,6 @@ module Google
|
|
500
520
|
|
501
521
|
@contact_center_insights_stub.call_rpc :update_conversation, request, options: options do |response, operation|
|
502
522
|
yield response, operation if block_given?
|
503
|
-
return response
|
504
523
|
end
|
505
524
|
rescue ::GRPC::BadStatus => e
|
506
525
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -588,7 +607,6 @@ module Google
|
|
588
607
|
|
589
608
|
@contact_center_insights_stub.call_rpc :get_conversation, request, options: options do |response, operation|
|
590
609
|
yield response, operation if block_given?
|
591
|
-
return response
|
592
610
|
end
|
593
611
|
rescue ::GRPC::BadStatus => e
|
594
612
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -709,7 +727,7 @@ module Google
|
|
709
727
|
@contact_center_insights_stub.call_rpc :list_conversations, request, options: options do |response, operation|
|
710
728
|
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_conversations, request, response, operation, options
|
711
729
|
yield response, operation if block_given?
|
712
|
-
|
730
|
+
throw :response, response
|
713
731
|
end
|
714
732
|
rescue ::GRPC::BadStatus => e
|
715
733
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -799,7 +817,6 @@ module Google
|
|
799
817
|
|
800
818
|
@contact_center_insights_stub.call_rpc :delete_conversation, request, options: options do |response, operation|
|
801
819
|
yield response, operation if block_given?
|
802
|
-
return response
|
803
820
|
end
|
804
821
|
rescue ::GRPC::BadStatus => e
|
805
822
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -896,7 +913,7 @@ module Google
|
|
896
913
|
@contact_center_insights_stub.call_rpc :create_analysis, request, options: options do |response, operation|
|
897
914
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
898
915
|
yield response, operation if block_given?
|
899
|
-
|
916
|
+
throw :response, response
|
900
917
|
end
|
901
918
|
rescue ::GRPC::BadStatus => e
|
902
919
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -982,7 +999,6 @@ module Google
|
|
982
999
|
|
983
1000
|
@contact_center_insights_stub.call_rpc :get_analysis, request, options: options do |response, operation|
|
984
1001
|
yield response, operation if block_given?
|
985
|
-
return response
|
986
1002
|
end
|
987
1003
|
rescue ::GRPC::BadStatus => e
|
988
1004
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1085,7 +1101,7 @@ module Google
|
|
1085
1101
|
@contact_center_insights_stub.call_rpc :list_analyses, request, options: options do |response, operation|
|
1086
1102
|
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_analyses, request, response, operation, options
|
1087
1103
|
yield response, operation if block_given?
|
1088
|
-
|
1104
|
+
throw :response, response
|
1089
1105
|
end
|
1090
1106
|
rescue ::GRPC::BadStatus => e
|
1091
1107
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1171,7 +1187,6 @@ module Google
|
|
1171
1187
|
|
1172
1188
|
@contact_center_insights_stub.call_rpc :delete_analysis, request, options: options do |response, operation|
|
1173
1189
|
yield response, operation if block_given?
|
1174
|
-
return response
|
1175
1190
|
end
|
1176
1191
|
rescue ::GRPC::BadStatus => e
|
1177
1192
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1273,7 +1288,7 @@ module Google
|
|
1273
1288
|
@contact_center_insights_stub.call_rpc :bulk_analyze_conversations, request, options: options do |response, operation|
|
1274
1289
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1275
1290
|
yield response, operation if block_given?
|
1276
|
-
|
1291
|
+
throw :response, response
|
1277
1292
|
end
|
1278
1293
|
rescue ::GRPC::BadStatus => e
|
1279
1294
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1377,7 +1392,7 @@ module Google
|
|
1377
1392
|
@contact_center_insights_stub.call_rpc :bulk_delete_conversations, request, options: options do |response, operation|
|
1378
1393
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1379
1394
|
yield response, operation if block_given?
|
1380
|
-
|
1395
|
+
throw :response, response
|
1381
1396
|
end
|
1382
1397
|
rescue ::GRPC::BadStatus => e
|
1383
1398
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1490,7 +1505,7 @@ module Google
|
|
1490
1505
|
@contact_center_insights_stub.call_rpc :ingest_conversations, request, options: options do |response, operation|
|
1491
1506
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1492
1507
|
yield response, operation if block_given?
|
1493
|
-
|
1508
|
+
throw :response, response
|
1494
1509
|
end
|
1495
1510
|
rescue ::GRPC::BadStatus => e
|
1496
1511
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1595,7 +1610,7 @@ module Google
|
|
1595
1610
|
@contact_center_insights_stub.call_rpc :export_insights_data, request, options: options do |response, operation|
|
1596
1611
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1597
1612
|
yield response, operation if block_given?
|
1598
|
-
|
1613
|
+
throw :response, response
|
1599
1614
|
end
|
1600
1615
|
rescue ::GRPC::BadStatus => e
|
1601
1616
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1691,7 +1706,7 @@ module Google
|
|
1691
1706
|
@contact_center_insights_stub.call_rpc :create_issue_model, request, options: options do |response, operation|
|
1692
1707
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1693
1708
|
yield response, operation if block_given?
|
1694
|
-
|
1709
|
+
throw :response, response
|
1695
1710
|
end
|
1696
1711
|
rescue ::GRPC::BadStatus => e
|
1697
1712
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1779,7 +1794,6 @@ module Google
|
|
1779
1794
|
|
1780
1795
|
@contact_center_insights_stub.call_rpc :update_issue_model, request, options: options do |response, operation|
|
1781
1796
|
yield response, operation if block_given?
|
1782
|
-
return response
|
1783
1797
|
end
|
1784
1798
|
rescue ::GRPC::BadStatus => e
|
1785
1799
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1865,7 +1879,6 @@ module Google
|
|
1865
1879
|
|
1866
1880
|
@contact_center_insights_stub.call_rpc :get_issue_model, request, options: options do |response, operation|
|
1867
1881
|
yield response, operation if block_given?
|
1868
|
-
return response
|
1869
1882
|
end
|
1870
1883
|
rescue ::GRPC::BadStatus => e
|
1871
1884
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1951,7 +1964,6 @@ module Google
|
|
1951
1964
|
|
1952
1965
|
@contact_center_insights_stub.call_rpc :list_issue_models, request, options: options do |response, operation|
|
1953
1966
|
yield response, operation if block_given?
|
1954
|
-
return response
|
1955
1967
|
end
|
1956
1968
|
rescue ::GRPC::BadStatus => e
|
1957
1969
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2045,7 +2057,7 @@ module Google
|
|
2045
2057
|
@contact_center_insights_stub.call_rpc :delete_issue_model, request, options: options do |response, operation|
|
2046
2058
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2047
2059
|
yield response, operation if block_given?
|
2048
|
-
|
2060
|
+
throw :response, response
|
2049
2061
|
end
|
2050
2062
|
rescue ::GRPC::BadStatus => e
|
2051
2063
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2140,7 +2152,7 @@ module Google
|
|
2140
2152
|
@contact_center_insights_stub.call_rpc :deploy_issue_model, request, options: options do |response, operation|
|
2141
2153
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2142
2154
|
yield response, operation if block_given?
|
2143
|
-
|
2155
|
+
throw :response, response
|
2144
2156
|
end
|
2145
2157
|
rescue ::GRPC::BadStatus => e
|
2146
2158
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2235,7 +2247,7 @@ module Google
|
|
2235
2247
|
@contact_center_insights_stub.call_rpc :undeploy_issue_model, request, options: options do |response, operation|
|
2236
2248
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2237
2249
|
yield response, operation if block_given?
|
2238
|
-
|
2250
|
+
throw :response, response
|
2239
2251
|
end
|
2240
2252
|
rescue ::GRPC::BadStatus => e
|
2241
2253
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2331,7 +2343,7 @@ module Google
|
|
2331
2343
|
@contact_center_insights_stub.call_rpc :export_issue_model, request, options: options do |response, operation|
|
2332
2344
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2333
2345
|
yield response, operation if block_given?
|
2334
|
-
|
2346
|
+
throw :response, response
|
2335
2347
|
end
|
2336
2348
|
rescue ::GRPC::BadStatus => e
|
2337
2349
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2431,7 +2443,7 @@ module Google
|
|
2431
2443
|
@contact_center_insights_stub.call_rpc :import_issue_model, request, options: options do |response, operation|
|
2432
2444
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2433
2445
|
yield response, operation if block_given?
|
2434
|
-
|
2446
|
+
throw :response, response
|
2435
2447
|
end
|
2436
2448
|
rescue ::GRPC::BadStatus => e
|
2437
2449
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2517,7 +2529,6 @@ module Google
|
|
2517
2529
|
|
2518
2530
|
@contact_center_insights_stub.call_rpc :get_issue, request, options: options do |response, operation|
|
2519
2531
|
yield response, operation if block_given?
|
2520
|
-
return response
|
2521
2532
|
end
|
2522
2533
|
rescue ::GRPC::BadStatus => e
|
2523
2534
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2603,7 +2614,6 @@ module Google
|
|
2603
2614
|
|
2604
2615
|
@contact_center_insights_stub.call_rpc :list_issues, request, options: options do |response, operation|
|
2605
2616
|
yield response, operation if block_given?
|
2606
|
-
return response
|
2607
2617
|
end
|
2608
2618
|
rescue ::GRPC::BadStatus => e
|
2609
2619
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2691,7 +2701,6 @@ module Google
|
|
2691
2701
|
|
2692
2702
|
@contact_center_insights_stub.call_rpc :update_issue, request, options: options do |response, operation|
|
2693
2703
|
yield response, operation if block_given?
|
2694
|
-
return response
|
2695
2704
|
end
|
2696
2705
|
rescue ::GRPC::BadStatus => e
|
2697
2706
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2777,7 +2786,6 @@ module Google
|
|
2777
2786
|
|
2778
2787
|
@contact_center_insights_stub.call_rpc :delete_issue, request, options: options do |response, operation|
|
2779
2788
|
yield response, operation if block_given?
|
2780
|
-
return response
|
2781
2789
|
end
|
2782
2790
|
rescue ::GRPC::BadStatus => e
|
2783
2791
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2863,7 +2871,6 @@ module Google
|
|
2863
2871
|
|
2864
2872
|
@contact_center_insights_stub.call_rpc :calculate_issue_model_stats, request, options: options do |response, operation|
|
2865
2873
|
yield response, operation if block_given?
|
2866
|
-
return response
|
2867
2874
|
end
|
2868
2875
|
rescue ::GRPC::BadStatus => e
|
2869
2876
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2954,7 +2961,6 @@ module Google
|
|
2954
2961
|
|
2955
2962
|
@contact_center_insights_stub.call_rpc :create_phrase_matcher, request, options: options do |response, operation|
|
2956
2963
|
yield response, operation if block_given?
|
2957
|
-
return response
|
2958
2964
|
end
|
2959
2965
|
rescue ::GRPC::BadStatus => e
|
2960
2966
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3040,7 +3046,6 @@ module Google
|
|
3040
3046
|
|
3041
3047
|
@contact_center_insights_stub.call_rpc :get_phrase_matcher, request, options: options do |response, operation|
|
3042
3048
|
yield response, operation if block_given?
|
3043
|
-
return response
|
3044
3049
|
end
|
3045
3050
|
rescue ::GRPC::BadStatus => e
|
3046
3051
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3143,7 +3148,7 @@ module Google
|
|
3143
3148
|
@contact_center_insights_stub.call_rpc :list_phrase_matchers, request, options: options do |response, operation|
|
3144
3149
|
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_phrase_matchers, request, response, operation, options
|
3145
3150
|
yield response, operation if block_given?
|
3146
|
-
|
3151
|
+
throw :response, response
|
3147
3152
|
end
|
3148
3153
|
rescue ::GRPC::BadStatus => e
|
3149
3154
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3229,7 +3234,6 @@ module Google
|
|
3229
3234
|
|
3230
3235
|
@contact_center_insights_stub.call_rpc :delete_phrase_matcher, request, options: options do |response, operation|
|
3231
3236
|
yield response, operation if block_given?
|
3232
|
-
return response
|
3233
3237
|
end
|
3234
3238
|
rescue ::GRPC::BadStatus => e
|
3235
3239
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3317,7 +3321,6 @@ module Google
|
|
3317
3321
|
|
3318
3322
|
@contact_center_insights_stub.call_rpc :update_phrase_matcher, request, options: options do |response, operation|
|
3319
3323
|
yield response, operation if block_given?
|
3320
|
-
return response
|
3321
3324
|
end
|
3322
3325
|
rescue ::GRPC::BadStatus => e
|
3323
3326
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3406,7 +3409,6 @@ module Google
|
|
3406
3409
|
|
3407
3410
|
@contact_center_insights_stub.call_rpc :calculate_stats, request, options: options do |response, operation|
|
3408
3411
|
yield response, operation if block_given?
|
3409
|
-
return response
|
3410
3412
|
end
|
3411
3413
|
rescue ::GRPC::BadStatus => e
|
3412
3414
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3492,7 +3494,6 @@ module Google
|
|
3492
3494
|
|
3493
3495
|
@contact_center_insights_stub.call_rpc :get_settings, request, options: options do |response, operation|
|
3494
3496
|
yield response, operation if block_given?
|
3495
|
-
return response
|
3496
3497
|
end
|
3497
3498
|
rescue ::GRPC::BadStatus => e
|
3498
3499
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3580,7 +3581,6 @@ module Google
|
|
3580
3581
|
|
3581
3582
|
@contact_center_insights_stub.call_rpc :update_settings, request, options: options do |response, operation|
|
3582
3583
|
yield response, operation if block_given?
|
3583
|
-
return response
|
3584
3584
|
end
|
3585
3585
|
rescue ::GRPC::BadStatus => e
|
3586
3586
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3671,7 +3671,6 @@ module Google
|
|
3671
3671
|
|
3672
3672
|
@contact_center_insights_stub.call_rpc :create_analysis_rule, request, options: options do |response, operation|
|
3673
3673
|
yield response, operation if block_given?
|
3674
|
-
return response
|
3675
3674
|
end
|
3676
3675
|
rescue ::GRPC::BadStatus => e
|
3677
3676
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3757,7 +3756,6 @@ module Google
|
|
3757
3756
|
|
3758
3757
|
@contact_center_insights_stub.call_rpc :get_analysis_rule, request, options: options do |response, operation|
|
3759
3758
|
yield response, operation if block_given?
|
3760
|
-
return response
|
3761
3759
|
end
|
3762
3760
|
rescue ::GRPC::BadStatus => e
|
3763
3761
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3857,7 +3855,7 @@ module Google
|
|
3857
3855
|
@contact_center_insights_stub.call_rpc :list_analysis_rules, request, options: options do |response, operation|
|
3858
3856
|
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_analysis_rules, request, response, operation, options
|
3859
3857
|
yield response, operation if block_given?
|
3860
|
-
|
3858
|
+
throw :response, response
|
3861
3859
|
end
|
3862
3860
|
rescue ::GRPC::BadStatus => e
|
3863
3861
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3947,7 +3945,6 @@ module Google
|
|
3947
3945
|
|
3948
3946
|
@contact_center_insights_stub.call_rpc :update_analysis_rule, request, options: options do |response, operation|
|
3949
3947
|
yield response, operation if block_given?
|
3950
|
-
return response
|
3951
3948
|
end
|
3952
3949
|
rescue ::GRPC::BadStatus => e
|
3953
3950
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4033,7 +4030,6 @@ module Google
|
|
4033
4030
|
|
4034
4031
|
@contact_center_insights_stub.call_rpc :delete_analysis_rule, request, options: options do |response, operation|
|
4035
4032
|
yield response, operation if block_given?
|
4036
|
-
return response
|
4037
4033
|
end
|
4038
4034
|
rescue ::GRPC::BadStatus => e
|
4039
4035
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4119,7 +4115,6 @@ module Google
|
|
4119
4115
|
|
4120
4116
|
@contact_center_insights_stub.call_rpc :get_encryption_spec, request, options: options do |response, operation|
|
4121
4117
|
yield response, operation if block_given?
|
4122
|
-
return response
|
4123
4118
|
end
|
4124
4119
|
rescue ::GRPC::BadStatus => e
|
4125
4120
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4220,7 +4215,7 @@ module Google
|
|
4220
4215
|
@contact_center_insights_stub.call_rpc :initialize_encryption_spec, request, options: options do |response, operation|
|
4221
4216
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
4222
4217
|
yield response, operation if block_given?
|
4223
|
-
|
4218
|
+
throw :response, response
|
4224
4219
|
end
|
4225
4220
|
rescue ::GRPC::BadStatus => e
|
4226
4221
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4311,7 +4306,6 @@ module Google
|
|
4311
4306
|
|
4312
4307
|
@contact_center_insights_stub.call_rpc :create_view, request, options: options do |response, operation|
|
4313
4308
|
yield response, operation if block_given?
|
4314
|
-
return response
|
4315
4309
|
end
|
4316
4310
|
rescue ::GRPC::BadStatus => e
|
4317
4311
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4397,7 +4391,6 @@ module Google
|
|
4397
4391
|
|
4398
4392
|
@contact_center_insights_stub.call_rpc :get_view, request, options: options do |response, operation|
|
4399
4393
|
yield response, operation if block_given?
|
4400
|
-
return response
|
4401
4394
|
end
|
4402
4395
|
rescue ::GRPC::BadStatus => e
|
4403
4396
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4497,7 +4490,7 @@ module Google
|
|
4497
4490
|
@contact_center_insights_stub.call_rpc :list_views, request, options: options do |response, operation|
|
4498
4491
|
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_views, request, response, operation, options
|
4499
4492
|
yield response, operation if block_given?
|
4500
|
-
|
4493
|
+
throw :response, response
|
4501
4494
|
end
|
4502
4495
|
rescue ::GRPC::BadStatus => e
|
4503
4496
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4585,7 +4578,6 @@ module Google
|
|
4585
4578
|
|
4586
4579
|
@contact_center_insights_stub.call_rpc :update_view, request, options: options do |response, operation|
|
4587
4580
|
yield response, operation if block_given?
|
4588
|
-
return response
|
4589
4581
|
end
|
4590
4582
|
rescue ::GRPC::BadStatus => e
|
4591
4583
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4671,7 +4663,6 @@ module Google
|
|
4671
4663
|
|
4672
4664
|
@contact_center_insights_stub.call_rpc :delete_view, request, options: options do |response, operation|
|
4673
4665
|
yield response, operation if block_given?
|
4674
|
-
return response
|
4675
4666
|
end
|
4676
4667
|
rescue ::GRPC::BadStatus => e
|
4677
4668
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4788,7 +4779,7 @@ module Google
|
|
4788
4779
|
@contact_center_insights_stub.call_rpc :query_metrics, request, options: options do |response, operation|
|
4789
4780
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
4790
4781
|
yield response, operation if block_given?
|
4791
|
-
|
4782
|
+
throw :response, response
|
4792
4783
|
end
|
4793
4784
|
rescue ::GRPC::BadStatus => e
|
4794
4785
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4883,7 +4874,6 @@ module Google
|
|
4883
4874
|
|
4884
4875
|
@contact_center_insights_stub.call_rpc :create_qa_question, request, options: options do |response, operation|
|
4885
4876
|
yield response, operation if block_given?
|
4886
|
-
return response
|
4887
4877
|
end
|
4888
4878
|
rescue ::GRPC::BadStatus => e
|
4889
4879
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4969,7 +4959,6 @@ module Google
|
|
4969
4959
|
|
4970
4960
|
@contact_center_insights_stub.call_rpc :get_qa_question, request, options: options do |response, operation|
|
4971
4961
|
yield response, operation if block_given?
|
4972
|
-
return response
|
4973
4962
|
end
|
4974
4963
|
rescue ::GRPC::BadStatus => e
|
4975
4964
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5066,7 +5055,6 @@ module Google
|
|
5066
5055
|
|
5067
5056
|
@contact_center_insights_stub.call_rpc :update_qa_question, request, options: options do |response, operation|
|
5068
5057
|
yield response, operation if block_given?
|
5069
|
-
return response
|
5070
5058
|
end
|
5071
5059
|
rescue ::GRPC::BadStatus => e
|
5072
5060
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5152,7 +5140,6 @@ module Google
|
|
5152
5140
|
|
5153
5141
|
@contact_center_insights_stub.call_rpc :delete_qa_question, request, options: options do |response, operation|
|
5154
5142
|
yield response, operation if block_given?
|
5155
|
-
return response
|
5156
5143
|
end
|
5157
5144
|
rescue ::GRPC::BadStatus => e
|
5158
5145
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5252,7 +5239,7 @@ module Google
|
|
5252
5239
|
@contact_center_insights_stub.call_rpc :list_qa_questions, request, options: options do |response, operation|
|
5253
5240
|
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_qa_questions, request, response, operation, options
|
5254
5241
|
yield response, operation if block_given?
|
5255
|
-
|
5242
|
+
throw :response, response
|
5256
5243
|
end
|
5257
5244
|
rescue ::GRPC::BadStatus => e
|
5258
5245
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5347,7 +5334,6 @@ module Google
|
|
5347
5334
|
|
5348
5335
|
@contact_center_insights_stub.call_rpc :create_qa_scorecard, request, options: options do |response, operation|
|
5349
5336
|
yield response, operation if block_given?
|
5350
|
-
return response
|
5351
5337
|
end
|
5352
5338
|
rescue ::GRPC::BadStatus => e
|
5353
5339
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5433,7 +5419,6 @@ module Google
|
|
5433
5419
|
|
5434
5420
|
@contact_center_insights_stub.call_rpc :get_qa_scorecard, request, options: options do |response, operation|
|
5435
5421
|
yield response, operation if block_given?
|
5436
|
-
return response
|
5437
5422
|
end
|
5438
5423
|
rescue ::GRPC::BadStatus => e
|
5439
5424
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5526,7 +5511,6 @@ module Google
|
|
5526
5511
|
|
5527
5512
|
@contact_center_insights_stub.call_rpc :update_qa_scorecard, request, options: options do |response, operation|
|
5528
5513
|
yield response, operation if block_given?
|
5529
|
-
return response
|
5530
5514
|
end
|
5531
5515
|
rescue ::GRPC::BadStatus => e
|
5532
5516
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5615,7 +5599,6 @@ module Google
|
|
5615
5599
|
|
5616
5600
|
@contact_center_insights_stub.call_rpc :delete_qa_scorecard, request, options: options do |response, operation|
|
5617
5601
|
yield response, operation if block_given?
|
5618
|
-
return response
|
5619
5602
|
end
|
5620
5603
|
rescue ::GRPC::BadStatus => e
|
5621
5604
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5715,7 +5698,7 @@ module Google
|
|
5715
5698
|
@contact_center_insights_stub.call_rpc :list_qa_scorecards, request, options: options do |response, operation|
|
5716
5699
|
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_qa_scorecards, request, response, operation, options
|
5717
5700
|
yield response, operation if block_given?
|
5718
|
-
|
5701
|
+
throw :response, response
|
5719
5702
|
end
|
5720
5703
|
rescue ::GRPC::BadStatus => e
|
5721
5704
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5810,7 +5793,6 @@ module Google
|
|
5810
5793
|
|
5811
5794
|
@contact_center_insights_stub.call_rpc :create_qa_scorecard_revision, request, options: options do |response, operation|
|
5812
5795
|
yield response, operation if block_given?
|
5813
|
-
return response
|
5814
5796
|
end
|
5815
5797
|
rescue ::GRPC::BadStatus => e
|
5816
5798
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5896,7 +5878,6 @@ module Google
|
|
5896
5878
|
|
5897
5879
|
@contact_center_insights_stub.call_rpc :get_qa_scorecard_revision, request, options: options do |response, operation|
|
5898
5880
|
yield response, operation if block_given?
|
5899
|
-
return response
|
5900
5881
|
end
|
5901
5882
|
rescue ::GRPC::BadStatus => e
|
5902
5883
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6001,7 +5982,7 @@ module Google
|
|
6001
5982
|
@contact_center_insights_stub.call_rpc :tune_qa_scorecard_revision, request, options: options do |response, operation|
|
6002
5983
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
6003
5984
|
yield response, operation if block_given?
|
6004
|
-
|
5985
|
+
throw :response, response
|
6005
5986
|
end
|
6006
5987
|
rescue ::GRPC::BadStatus => e
|
6007
5988
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6087,7 +6068,6 @@ module Google
|
|
6087
6068
|
|
6088
6069
|
@contact_center_insights_stub.call_rpc :deploy_qa_scorecard_revision, request, options: options do |response, operation|
|
6089
6070
|
yield response, operation if block_given?
|
6090
|
-
return response
|
6091
6071
|
end
|
6092
6072
|
rescue ::GRPC::BadStatus => e
|
6093
6073
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6173,7 +6153,6 @@ module Google
|
|
6173
6153
|
|
6174
6154
|
@contact_center_insights_stub.call_rpc :undeploy_qa_scorecard_revision, request, options: options do |response, operation|
|
6175
6155
|
yield response, operation if block_given?
|
6176
|
-
return response
|
6177
6156
|
end
|
6178
6157
|
rescue ::GRPC::BadStatus => e
|
6179
6158
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6263,7 +6242,6 @@ module Google
|
|
6263
6242
|
|
6264
6243
|
@contact_center_insights_stub.call_rpc :delete_qa_scorecard_revision, request, options: options do |response, operation|
|
6265
6244
|
yield response, operation if block_given?
|
6266
|
-
return response
|
6267
6245
|
end
|
6268
6246
|
rescue ::GRPC::BadStatus => e
|
6269
6247
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6369,7 +6347,7 @@ module Google
|
|
6369
6347
|
@contact_center_insights_stub.call_rpc :list_qa_scorecard_revisions, request, options: options do |response, operation|
|
6370
6348
|
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_qa_scorecard_revisions, request, response, operation, options
|
6371
6349
|
yield response, operation if block_given?
|
6372
|
-
|
6350
|
+
throw :response, response
|
6373
6351
|
end
|
6374
6352
|
rescue ::GRPC::BadStatus => e
|
6375
6353
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6460,7 +6438,6 @@ module Google
|
|
6460
6438
|
|
6461
6439
|
@contact_center_insights_stub.call_rpc :create_feedback_label, request, options: options do |response, operation|
|
6462
6440
|
yield response, operation if block_given?
|
6463
|
-
return response
|
6464
6441
|
end
|
6465
6442
|
rescue ::GRPC::BadStatus => e
|
6466
6443
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6576,7 +6553,7 @@ module Google
|
|
6576
6553
|
@contact_center_insights_stub.call_rpc :list_feedback_labels, request, options: options do |response, operation|
|
6577
6554
|
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_feedback_labels, request, response, operation, options
|
6578
6555
|
yield response, operation if block_given?
|
6579
|
-
|
6556
|
+
throw :response, response
|
6580
6557
|
end
|
6581
6558
|
rescue ::GRPC::BadStatus => e
|
6582
6559
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6662,7 +6639,6 @@ module Google
|
|
6662
6639
|
|
6663
6640
|
@contact_center_insights_stub.call_rpc :get_feedback_label, request, options: options do |response, operation|
|
6664
6641
|
yield response, operation if block_given?
|
6665
|
-
return response
|
6666
6642
|
end
|
6667
6643
|
rescue ::GRPC::BadStatus => e
|
6668
6644
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6750,7 +6726,6 @@ module Google
|
|
6750
6726
|
|
6751
6727
|
@contact_center_insights_stub.call_rpc :update_feedback_label, request, options: options do |response, operation|
|
6752
6728
|
yield response, operation if block_given?
|
6753
|
-
return response
|
6754
6729
|
end
|
6755
6730
|
rescue ::GRPC::BadStatus => e
|
6756
6731
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6836,7 +6811,6 @@ module Google
|
|
6836
6811
|
|
6837
6812
|
@contact_center_insights_stub.call_rpc :delete_feedback_label, request, options: options do |response, operation|
|
6838
6813
|
yield response, operation if block_given?
|
6839
|
-
return response
|
6840
6814
|
end
|
6841
6815
|
rescue ::GRPC::BadStatus => e
|
6842
6816
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6950,7 +6924,7 @@ module Google
|
|
6950
6924
|
@contact_center_insights_stub.call_rpc :list_all_feedback_labels, request, options: options do |response, operation|
|
6951
6925
|
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_all_feedback_labels, request, response, operation, options
|
6952
6926
|
yield response, operation if block_given?
|
6953
|
-
|
6927
|
+
throw :response, response
|
6954
6928
|
end
|
6955
6929
|
rescue ::GRPC::BadStatus => e
|
6956
6930
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -7050,7 +7024,7 @@ module Google
|
|
7050
7024
|
@contact_center_insights_stub.call_rpc :bulk_upload_feedback_labels, request, options: options do |response, operation|
|
7051
7025
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
7052
7026
|
yield response, operation if block_given?
|
7053
|
-
|
7027
|
+
throw :response, response
|
7054
7028
|
end
|
7055
7029
|
rescue ::GRPC::BadStatus => e
|
7056
7030
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -7175,7 +7149,7 @@ module Google
|
|
7175
7149
|
@contact_center_insights_stub.call_rpc :bulk_download_feedback_labels, request, options: options do |response, operation|
|
7176
7150
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
7177
7151
|
yield response, operation if block_given?
|
7178
|
-
|
7152
|
+
throw :response, response
|
7179
7153
|
end
|
7180
7154
|
rescue ::GRPC::BadStatus => e
|
7181
7155
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -7264,6 +7238,11 @@ module Google
|
|
7264
7238
|
# default endpoint URL. The default value of nil uses the environment
|
7265
7239
|
# universe (usually the default "googleapis.com" universe).
|
7266
7240
|
# @return [::String,nil]
|
7241
|
+
# @!attribute [rw] logger
|
7242
|
+
# A custom logger to use for request/response debug logging, or the value
|
7243
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
7244
|
+
# explicitly disable logging.
|
7245
|
+
# @return [::Logger,:default,nil]
|
7267
7246
|
#
|
7268
7247
|
class Configuration
|
7269
7248
|
extend ::Gapic::Config
|
@@ -7288,6 +7267,7 @@ module Google
|
|
7288
7267
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
7289
7268
|
config_attr :quota_project, nil, ::String, nil
|
7290
7269
|
config_attr :universe_domain, nil, ::String, nil
|
7270
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
7291
7271
|
|
7292
7272
|
# @private
|
7293
7273
|
def initialize parent_config = nil
|