google-cloud-contact_center_insights-v1 1.1.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/client.rb +3411 -242
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/operations.rb +12 -15
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb +122 -0
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest/client.rb +3181 -229
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest/operations.rb +43 -38
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest/service_stub.rb +2531 -527
- data/lib/google/cloud/contact_center_insights/v1/version.rb +1 -1
- data/lib/google/cloud/contactcenterinsights/v1/contact_center_insights_pb.rb +70 -1
- data/lib/google/cloud/contactcenterinsights/v1/contact_center_insights_services_pb.rb +65 -3
- data/lib/google/cloud/contactcenterinsights/v1/resources_pb.rb +21 -1
- data/proto_docs/google/api/client.rb +39 -0
- data/proto_docs/google/cloud/contactcenterinsights/v1/contact_center_insights.rb +1165 -3
- data/proto_docs/google/cloud/contactcenterinsights/v1/resources.rb +496 -7
- data/proto_docs/google/longrunning/operations.rb +19 -14
- data/proto_docs/google/type/interval.rb +45 -0
- metadata +26 -5
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/contactcenterinsights/v1/contact_center_insights_pb"
|
21
|
+
require "google/iam/v1"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -169,8 +170,27 @@ module Google
|
|
169
170
|
universe_domain: @config.universe_domain,
|
170
171
|
channel_args: @config.channel_args,
|
171
172
|
interceptors: @config.interceptors,
|
172
|
-
channel_pool_config: @config.channel_pool
|
173
|
+
channel_pool_config: @config.channel_pool,
|
174
|
+
logger: @config.logger
|
173
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
|
+
|
187
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
188
|
+
config.credentials = credentials
|
189
|
+
config.quota_project = @quota_project_id
|
190
|
+
config.endpoint = @contact_center_insights_stub.endpoint
|
191
|
+
config.universe_domain = @contact_center_insights_stub.universe_domain
|
192
|
+
config.logger = @contact_center_insights_stub.logger if config.respond_to? :logger=
|
193
|
+
end
|
174
194
|
end
|
175
195
|
|
176
196
|
##
|
@@ -180,6 +200,22 @@ module Google
|
|
180
200
|
#
|
181
201
|
attr_reader :operations_client
|
182
202
|
|
203
|
+
##
|
204
|
+
# Get the associated client for mix-in of the IAMPolicy.
|
205
|
+
#
|
206
|
+
# @return [Google::Iam::V1::IAMPolicy::Client]
|
207
|
+
#
|
208
|
+
attr_reader :iam_policy_client
|
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
|
+
|
183
219
|
# Service calls
|
184
220
|
|
185
221
|
##
|
@@ -273,7 +309,6 @@ module Google
|
|
273
309
|
|
274
310
|
@contact_center_insights_stub.call_rpc :create_conversation, request, options: options do |response, operation|
|
275
311
|
yield response, operation if block_given?
|
276
|
-
return response
|
277
312
|
end
|
278
313
|
rescue ::GRPC::BadStatus => e
|
279
314
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -384,7 +419,7 @@ module Google
|
|
384
419
|
@contact_center_insights_stub.call_rpc :upload_conversation, request, options: options do |response, operation|
|
385
420
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
386
421
|
yield response, operation if block_given?
|
387
|
-
|
422
|
+
throw :response, response
|
388
423
|
end
|
389
424
|
rescue ::GRPC::BadStatus => e
|
390
425
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -485,7 +520,6 @@ module Google
|
|
485
520
|
|
486
521
|
@contact_center_insights_stub.call_rpc :update_conversation, request, options: options do |response, operation|
|
487
522
|
yield response, operation if block_given?
|
488
|
-
return response
|
489
523
|
end
|
490
524
|
rescue ::GRPC::BadStatus => e
|
491
525
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -573,7 +607,6 @@ module Google
|
|
573
607
|
|
574
608
|
@contact_center_insights_stub.call_rpc :get_conversation, request, options: options do |response, operation|
|
575
609
|
yield response, operation if block_given?
|
576
|
-
return response
|
577
610
|
end
|
578
611
|
rescue ::GRPC::BadStatus => e
|
579
612
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -694,7 +727,7 @@ module Google
|
|
694
727
|
@contact_center_insights_stub.call_rpc :list_conversations, request, options: options do |response, operation|
|
695
728
|
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_conversations, request, response, operation, options
|
696
729
|
yield response, operation if block_given?
|
697
|
-
|
730
|
+
throw :response, response
|
698
731
|
end
|
699
732
|
rescue ::GRPC::BadStatus => e
|
700
733
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -784,7 +817,6 @@ module Google
|
|
784
817
|
|
785
818
|
@contact_center_insights_stub.call_rpc :delete_conversation, request, options: options do |response, operation|
|
786
819
|
yield response, operation if block_given?
|
787
|
-
return response
|
788
820
|
end
|
789
821
|
rescue ::GRPC::BadStatus => e
|
790
822
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -881,7 +913,7 @@ module Google
|
|
881
913
|
@contact_center_insights_stub.call_rpc :create_analysis, request, options: options do |response, operation|
|
882
914
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
883
915
|
yield response, operation if block_given?
|
884
|
-
|
916
|
+
throw :response, response
|
885
917
|
end
|
886
918
|
rescue ::GRPC::BadStatus => e
|
887
919
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -967,7 +999,6 @@ module Google
|
|
967
999
|
|
968
1000
|
@contact_center_insights_stub.call_rpc :get_analysis, request, options: options do |response, operation|
|
969
1001
|
yield response, operation if block_given?
|
970
|
-
return response
|
971
1002
|
end
|
972
1003
|
rescue ::GRPC::BadStatus => e
|
973
1004
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1070,7 +1101,7 @@ module Google
|
|
1070
1101
|
@contact_center_insights_stub.call_rpc :list_analyses, request, options: options do |response, operation|
|
1071
1102
|
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_analyses, request, response, operation, options
|
1072
1103
|
yield response, operation if block_given?
|
1073
|
-
|
1104
|
+
throw :response, response
|
1074
1105
|
end
|
1075
1106
|
rescue ::GRPC::BadStatus => e
|
1076
1107
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1156,7 +1187,6 @@ module Google
|
|
1156
1187
|
|
1157
1188
|
@contact_center_insights_stub.call_rpc :delete_analysis, request, options: options do |response, operation|
|
1158
1189
|
yield response, operation if block_given?
|
1159
|
-
return response
|
1160
1190
|
end
|
1161
1191
|
rescue ::GRPC::BadStatus => e
|
1162
1192
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1258,7 +1288,7 @@ module Google
|
|
1258
1288
|
@contact_center_insights_stub.call_rpc :bulk_analyze_conversations, request, options: options do |response, operation|
|
1259
1289
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1260
1290
|
yield response, operation if block_given?
|
1261
|
-
|
1291
|
+
throw :response, response
|
1262
1292
|
end
|
1263
1293
|
rescue ::GRPC::BadStatus => e
|
1264
1294
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1362,7 +1392,7 @@ module Google
|
|
1362
1392
|
@contact_center_insights_stub.call_rpc :bulk_delete_conversations, request, options: options do |response, operation|
|
1363
1393
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1364
1394
|
yield response, operation if block_given?
|
1365
|
-
|
1395
|
+
throw :response, response
|
1366
1396
|
end
|
1367
1397
|
rescue ::GRPC::BadStatus => e
|
1368
1398
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1475,7 +1505,7 @@ module Google
|
|
1475
1505
|
@contact_center_insights_stub.call_rpc :ingest_conversations, request, options: options do |response, operation|
|
1476
1506
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1477
1507
|
yield response, operation if block_given?
|
1478
|
-
|
1508
|
+
throw :response, response
|
1479
1509
|
end
|
1480
1510
|
rescue ::GRPC::BadStatus => e
|
1481
1511
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1580,7 +1610,7 @@ module Google
|
|
1580
1610
|
@contact_center_insights_stub.call_rpc :export_insights_data, request, options: options do |response, operation|
|
1581
1611
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1582
1612
|
yield response, operation if block_given?
|
1583
|
-
|
1613
|
+
throw :response, response
|
1584
1614
|
end
|
1585
1615
|
rescue ::GRPC::BadStatus => e
|
1586
1616
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1676,7 +1706,7 @@ module Google
|
|
1676
1706
|
@contact_center_insights_stub.call_rpc :create_issue_model, request, options: options do |response, operation|
|
1677
1707
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1678
1708
|
yield response, operation if block_given?
|
1679
|
-
|
1709
|
+
throw :response, response
|
1680
1710
|
end
|
1681
1711
|
rescue ::GRPC::BadStatus => e
|
1682
1712
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1764,7 +1794,6 @@ module Google
|
|
1764
1794
|
|
1765
1795
|
@contact_center_insights_stub.call_rpc :update_issue_model, request, options: options do |response, operation|
|
1766
1796
|
yield response, operation if block_given?
|
1767
|
-
return response
|
1768
1797
|
end
|
1769
1798
|
rescue ::GRPC::BadStatus => e
|
1770
1799
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1850,7 +1879,6 @@ module Google
|
|
1850
1879
|
|
1851
1880
|
@contact_center_insights_stub.call_rpc :get_issue_model, request, options: options do |response, operation|
|
1852
1881
|
yield response, operation if block_given?
|
1853
|
-
return response
|
1854
1882
|
end
|
1855
1883
|
rescue ::GRPC::BadStatus => e
|
1856
1884
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1936,7 +1964,6 @@ module Google
|
|
1936
1964
|
|
1937
1965
|
@contact_center_insights_stub.call_rpc :list_issue_models, request, options: options do |response, operation|
|
1938
1966
|
yield response, operation if block_given?
|
1939
|
-
return response
|
1940
1967
|
end
|
1941
1968
|
rescue ::GRPC::BadStatus => e
|
1942
1969
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2030,7 +2057,7 @@ module Google
|
|
2030
2057
|
@contact_center_insights_stub.call_rpc :delete_issue_model, request, options: options do |response, operation|
|
2031
2058
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2032
2059
|
yield response, operation if block_given?
|
2033
|
-
|
2060
|
+
throw :response, response
|
2034
2061
|
end
|
2035
2062
|
rescue ::GRPC::BadStatus => e
|
2036
2063
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2125,7 +2152,7 @@ module Google
|
|
2125
2152
|
@contact_center_insights_stub.call_rpc :deploy_issue_model, request, options: options do |response, operation|
|
2126
2153
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2127
2154
|
yield response, operation if block_given?
|
2128
|
-
|
2155
|
+
throw :response, response
|
2129
2156
|
end
|
2130
2157
|
rescue ::GRPC::BadStatus => e
|
2131
2158
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2220,7 +2247,7 @@ module Google
|
|
2220
2247
|
@contact_center_insights_stub.call_rpc :undeploy_issue_model, request, options: options do |response, operation|
|
2221
2248
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2222
2249
|
yield response, operation if block_given?
|
2223
|
-
|
2250
|
+
throw :response, response
|
2224
2251
|
end
|
2225
2252
|
rescue ::GRPC::BadStatus => e
|
2226
2253
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2316,7 +2343,7 @@ module Google
|
|
2316
2343
|
@contact_center_insights_stub.call_rpc :export_issue_model, request, options: options do |response, operation|
|
2317
2344
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2318
2345
|
yield response, operation if block_given?
|
2319
|
-
|
2346
|
+
throw :response, response
|
2320
2347
|
end
|
2321
2348
|
rescue ::GRPC::BadStatus => e
|
2322
2349
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2416,7 +2443,7 @@ module Google
|
|
2416
2443
|
@contact_center_insights_stub.call_rpc :import_issue_model, request, options: options do |response, operation|
|
2417
2444
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2418
2445
|
yield response, operation if block_given?
|
2419
|
-
|
2446
|
+
throw :response, response
|
2420
2447
|
end
|
2421
2448
|
rescue ::GRPC::BadStatus => e
|
2422
2449
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2502,7 +2529,6 @@ module Google
|
|
2502
2529
|
|
2503
2530
|
@contact_center_insights_stub.call_rpc :get_issue, request, options: options do |response, operation|
|
2504
2531
|
yield response, operation if block_given?
|
2505
|
-
return response
|
2506
2532
|
end
|
2507
2533
|
rescue ::GRPC::BadStatus => e
|
2508
2534
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2588,7 +2614,6 @@ module Google
|
|
2588
2614
|
|
2589
2615
|
@contact_center_insights_stub.call_rpc :list_issues, request, options: options do |response, operation|
|
2590
2616
|
yield response, operation if block_given?
|
2591
|
-
return response
|
2592
2617
|
end
|
2593
2618
|
rescue ::GRPC::BadStatus => e
|
2594
2619
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2676,7 +2701,6 @@ module Google
|
|
2676
2701
|
|
2677
2702
|
@contact_center_insights_stub.call_rpc :update_issue, request, options: options do |response, operation|
|
2678
2703
|
yield response, operation if block_given?
|
2679
|
-
return response
|
2680
2704
|
end
|
2681
2705
|
rescue ::GRPC::BadStatus => e
|
2682
2706
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2762,7 +2786,6 @@ module Google
|
|
2762
2786
|
|
2763
2787
|
@contact_center_insights_stub.call_rpc :delete_issue, request, options: options do |response, operation|
|
2764
2788
|
yield response, operation if block_given?
|
2765
|
-
return response
|
2766
2789
|
end
|
2767
2790
|
rescue ::GRPC::BadStatus => e
|
2768
2791
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2848,7 +2871,6 @@ module Google
|
|
2848
2871
|
|
2849
2872
|
@contact_center_insights_stub.call_rpc :calculate_issue_model_stats, request, options: options do |response, operation|
|
2850
2873
|
yield response, operation if block_given?
|
2851
|
-
return response
|
2852
2874
|
end
|
2853
2875
|
rescue ::GRPC::BadStatus => e
|
2854
2876
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2939,7 +2961,6 @@ module Google
|
|
2939
2961
|
|
2940
2962
|
@contact_center_insights_stub.call_rpc :create_phrase_matcher, request, options: options do |response, operation|
|
2941
2963
|
yield response, operation if block_given?
|
2942
|
-
return response
|
2943
2964
|
end
|
2944
2965
|
rescue ::GRPC::BadStatus => e
|
2945
2966
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3025,7 +3046,6 @@ module Google
|
|
3025
3046
|
|
3026
3047
|
@contact_center_insights_stub.call_rpc :get_phrase_matcher, request, options: options do |response, operation|
|
3027
3048
|
yield response, operation if block_given?
|
3028
|
-
return response
|
3029
3049
|
end
|
3030
3050
|
rescue ::GRPC::BadStatus => e
|
3031
3051
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3128,7 +3148,7 @@ module Google
|
|
3128
3148
|
@contact_center_insights_stub.call_rpc :list_phrase_matchers, request, options: options do |response, operation|
|
3129
3149
|
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_phrase_matchers, request, response, operation, options
|
3130
3150
|
yield response, operation if block_given?
|
3131
|
-
|
3151
|
+
throw :response, response
|
3132
3152
|
end
|
3133
3153
|
rescue ::GRPC::BadStatus => e
|
3134
3154
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3214,7 +3234,6 @@ module Google
|
|
3214
3234
|
|
3215
3235
|
@contact_center_insights_stub.call_rpc :delete_phrase_matcher, request, options: options do |response, operation|
|
3216
3236
|
yield response, operation if block_given?
|
3217
|
-
return response
|
3218
3237
|
end
|
3219
3238
|
rescue ::GRPC::BadStatus => e
|
3220
3239
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3302,7 +3321,6 @@ module Google
|
|
3302
3321
|
|
3303
3322
|
@contact_center_insights_stub.call_rpc :update_phrase_matcher, request, options: options do |response, operation|
|
3304
3323
|
yield response, operation if block_given?
|
3305
|
-
return response
|
3306
3324
|
end
|
3307
3325
|
rescue ::GRPC::BadStatus => e
|
3308
3326
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3391,7 +3409,6 @@ module Google
|
|
3391
3409
|
|
3392
3410
|
@contact_center_insights_stub.call_rpc :calculate_stats, request, options: options do |response, operation|
|
3393
3411
|
yield response, operation if block_given?
|
3394
|
-
return response
|
3395
3412
|
end
|
3396
3413
|
rescue ::GRPC::BadStatus => e
|
3397
3414
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3477,7 +3494,6 @@ module Google
|
|
3477
3494
|
|
3478
3495
|
@contact_center_insights_stub.call_rpc :get_settings, request, options: options do |response, operation|
|
3479
3496
|
yield response, operation if block_given?
|
3480
|
-
return response
|
3481
3497
|
end
|
3482
3498
|
rescue ::GRPC::BadStatus => e
|
3483
3499
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3565,38 +3581,42 @@ module Google
|
|
3565
3581
|
|
3566
3582
|
@contact_center_insights_stub.call_rpc :update_settings, request, options: options do |response, operation|
|
3567
3583
|
yield response, operation if block_given?
|
3568
|
-
return response
|
3569
3584
|
end
|
3570
3585
|
rescue ::GRPC::BadStatus => e
|
3571
3586
|
raise ::Google::Cloud::Error.from_error(e)
|
3572
3587
|
end
|
3573
3588
|
|
3574
3589
|
##
|
3575
|
-
#
|
3590
|
+
# Creates a analysis rule.
|
3576
3591
|
#
|
3577
|
-
# @overload
|
3578
|
-
# Pass arguments to `
|
3579
|
-
# {::Google::Cloud::ContactCenterInsights::V1::
|
3592
|
+
# @overload create_analysis_rule(request, options = nil)
|
3593
|
+
# Pass arguments to `create_analysis_rule` via a request object, either of type
|
3594
|
+
# {::Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRuleRequest} or an equivalent Hash.
|
3580
3595
|
#
|
3581
|
-
# @param request [::Google::Cloud::ContactCenterInsights::V1::
|
3596
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRuleRequest, ::Hash]
|
3582
3597
|
# A request object representing the call parameters. Required. To specify no
|
3583
3598
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3584
3599
|
# @param options [::Gapic::CallOptions, ::Hash]
|
3585
3600
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3586
3601
|
#
|
3587
|
-
# @overload
|
3588
|
-
# Pass arguments to `
|
3602
|
+
# @overload create_analysis_rule(parent: nil, analysis_rule: nil)
|
3603
|
+
# Pass arguments to `create_analysis_rule` via keyword arguments. Note that at
|
3589
3604
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
3590
3605
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
3591
3606
|
#
|
3592
|
-
# @param
|
3593
|
-
# Required. The
|
3607
|
+
# @param parent [::String]
|
3608
|
+
# Required. The parent resource of the analysis rule. Required. The location
|
3609
|
+
# to create a analysis rule for. Format: `projects/<Project
|
3610
|
+
# ID>/locations/<Location ID>` or `projects/<Project
|
3611
|
+
# Number>/locations/<Location ID>`
|
3612
|
+
# @param analysis_rule [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule, ::Hash]
|
3613
|
+
# Required. The analysis rule resource to create.
|
3594
3614
|
#
|
3595
3615
|
# @yield [response, operation] Access the result along with the RPC operation
|
3596
|
-
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::
|
3616
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
3597
3617
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3598
3618
|
#
|
3599
|
-
# @return [::Google::Cloud::ContactCenterInsights::V1::
|
3619
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
3600
3620
|
#
|
3601
3621
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3602
3622
|
#
|
@@ -3607,24 +3627,24 @@ module Google
|
|
3607
3627
|
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
3608
3628
|
#
|
3609
3629
|
# # Create a request. To set request fields, pass in keyword arguments.
|
3610
|
-
# request = Google::Cloud::ContactCenterInsights::V1::
|
3630
|
+
# request = Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRuleRequest.new
|
3611
3631
|
#
|
3612
|
-
# # Call the
|
3613
|
-
# result = client.
|
3632
|
+
# # Call the create_analysis_rule method.
|
3633
|
+
# result = client.create_analysis_rule request
|
3614
3634
|
#
|
3615
|
-
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::
|
3635
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::AnalysisRule.
|
3616
3636
|
# p result
|
3617
3637
|
#
|
3618
|
-
def
|
3638
|
+
def create_analysis_rule request, options = nil
|
3619
3639
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3620
3640
|
|
3621
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::
|
3641
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRuleRequest
|
3622
3642
|
|
3623
3643
|
# Converts hash and nil to an options object
|
3624
3644
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3625
3645
|
|
3626
3646
|
# Customize the options with defaults
|
3627
|
-
metadata = @config.rpcs.
|
3647
|
+
metadata = @config.rpcs.create_analysis_rule.metadata.to_h
|
3628
3648
|
|
3629
3649
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3630
3650
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -3634,62 +3654,54 @@ module Google
|
|
3634
3654
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3635
3655
|
|
3636
3656
|
header_params = {}
|
3637
|
-
if request.
|
3638
|
-
header_params["
|
3657
|
+
if request.parent
|
3658
|
+
header_params["parent"] = request.parent
|
3639
3659
|
end
|
3640
3660
|
|
3641
3661
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3642
3662
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3643
3663
|
|
3644
|
-
options.apply_defaults timeout: @config.rpcs.
|
3664
|
+
options.apply_defaults timeout: @config.rpcs.create_analysis_rule.timeout,
|
3645
3665
|
metadata: metadata,
|
3646
|
-
retry_policy: @config.rpcs.
|
3666
|
+
retry_policy: @config.rpcs.create_analysis_rule.retry_policy
|
3647
3667
|
|
3648
3668
|
options.apply_defaults timeout: @config.timeout,
|
3649
3669
|
metadata: @config.metadata,
|
3650
3670
|
retry_policy: @config.retry_policy
|
3651
3671
|
|
3652
|
-
@contact_center_insights_stub.call_rpc :
|
3672
|
+
@contact_center_insights_stub.call_rpc :create_analysis_rule, request, options: options do |response, operation|
|
3653
3673
|
yield response, operation if block_given?
|
3654
|
-
return response
|
3655
3674
|
end
|
3656
3675
|
rescue ::GRPC::BadStatus => e
|
3657
3676
|
raise ::Google::Cloud::Error.from_error(e)
|
3658
3677
|
end
|
3659
3678
|
|
3660
3679
|
##
|
3661
|
-
#
|
3662
|
-
# be thrown if the location has resources already created before the
|
3663
|
-
# initialization. Once the encryption specification is initialized at a
|
3664
|
-
# location, it is immutable and all newly created resources under the
|
3665
|
-
# location will be encrypted with the existing specification.
|
3680
|
+
# Get a analysis rule.
|
3666
3681
|
#
|
3667
|
-
# @overload
|
3668
|
-
# Pass arguments to `
|
3669
|
-
# {::Google::Cloud::ContactCenterInsights::V1::
|
3682
|
+
# @overload get_analysis_rule(request, options = nil)
|
3683
|
+
# Pass arguments to `get_analysis_rule` via a request object, either of type
|
3684
|
+
# {::Google::Cloud::ContactCenterInsights::V1::GetAnalysisRuleRequest} or an equivalent Hash.
|
3670
3685
|
#
|
3671
|
-
# @param request [::Google::Cloud::ContactCenterInsights::V1::
|
3686
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::GetAnalysisRuleRequest, ::Hash]
|
3672
3687
|
# A request object representing the call parameters. Required. To specify no
|
3673
3688
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3674
3689
|
# @param options [::Gapic::CallOptions, ::Hash]
|
3675
3690
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3676
3691
|
#
|
3677
|
-
# @overload
|
3678
|
-
# Pass arguments to `
|
3692
|
+
# @overload get_analysis_rule(name: nil)
|
3693
|
+
# Pass arguments to `get_analysis_rule` via keyword arguments. Note that at
|
3679
3694
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
3680
3695
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
3681
3696
|
#
|
3682
|
-
# @param
|
3683
|
-
# Required. The
|
3684
|
-
# the kms key is in the same region as the endpoint. The same key will be
|
3685
|
-
# used for all provisioned resources, if encryption is available. If the
|
3686
|
-
# kms_key_name is left empty, no encryption will be enforced.
|
3697
|
+
# @param name [::String]
|
3698
|
+
# Required. The name of the AnalysisRule to get.
|
3687
3699
|
#
|
3688
3700
|
# @yield [response, operation] Access the result along with the RPC operation
|
3689
|
-
# @yieldparam response [::
|
3701
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
3690
3702
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3691
3703
|
#
|
3692
|
-
# @return [::
|
3704
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
3693
3705
|
#
|
3694
3706
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3695
3707
|
#
|
@@ -3700,31 +3712,24 @@ module Google
|
|
3700
3712
|
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
3701
3713
|
#
|
3702
3714
|
# # Create a request. To set request fields, pass in keyword arguments.
|
3703
|
-
# request = Google::Cloud::ContactCenterInsights::V1::
|
3715
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetAnalysisRuleRequest.new
|
3704
3716
|
#
|
3705
|
-
# # Call the
|
3706
|
-
# result = client.
|
3717
|
+
# # Call the get_analysis_rule method.
|
3718
|
+
# result = client.get_analysis_rule request
|
3707
3719
|
#
|
3708
|
-
# # The returned object is of type
|
3709
|
-
#
|
3710
|
-
# # Here is how to wait for a response.
|
3711
|
-
# result.wait_until_done! timeout: 60
|
3712
|
-
# if result.response?
|
3713
|
-
# p result.response
|
3714
|
-
# else
|
3715
|
-
# puts "No response received."
|
3716
|
-
# end
|
3720
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::AnalysisRule.
|
3721
|
+
# p result
|
3717
3722
|
#
|
3718
|
-
def
|
3723
|
+
def get_analysis_rule request, options = nil
|
3719
3724
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3720
3725
|
|
3721
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::
|
3726
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::GetAnalysisRuleRequest
|
3722
3727
|
|
3723
3728
|
# Converts hash and nil to an options object
|
3724
3729
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3725
3730
|
|
3726
3731
|
# Customize the options with defaults
|
3727
|
-
metadata = @config.rpcs.
|
3732
|
+
metadata = @config.rpcs.get_analysis_rule.metadata.to_h
|
3728
3733
|
|
3729
3734
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3730
3735
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -3734,61 +3739,63 @@ module Google
|
|
3734
3739
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3735
3740
|
|
3736
3741
|
header_params = {}
|
3737
|
-
if request.
|
3738
|
-
header_params["
|
3742
|
+
if request.name
|
3743
|
+
header_params["name"] = request.name
|
3739
3744
|
end
|
3740
3745
|
|
3741
3746
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3742
3747
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3743
3748
|
|
3744
|
-
options.apply_defaults timeout: @config.rpcs.
|
3749
|
+
options.apply_defaults timeout: @config.rpcs.get_analysis_rule.timeout,
|
3745
3750
|
metadata: metadata,
|
3746
|
-
retry_policy: @config.rpcs.
|
3751
|
+
retry_policy: @config.rpcs.get_analysis_rule.retry_policy
|
3747
3752
|
|
3748
3753
|
options.apply_defaults timeout: @config.timeout,
|
3749
3754
|
metadata: @config.metadata,
|
3750
3755
|
retry_policy: @config.retry_policy
|
3751
3756
|
|
3752
|
-
@contact_center_insights_stub.call_rpc :
|
3753
|
-
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3757
|
+
@contact_center_insights_stub.call_rpc :get_analysis_rule, request, options: options do |response, operation|
|
3754
3758
|
yield response, operation if block_given?
|
3755
|
-
return response
|
3756
3759
|
end
|
3757
3760
|
rescue ::GRPC::BadStatus => e
|
3758
3761
|
raise ::Google::Cloud::Error.from_error(e)
|
3759
3762
|
end
|
3760
3763
|
|
3761
3764
|
##
|
3762
|
-
#
|
3765
|
+
# Lists analysis rules.
|
3763
3766
|
#
|
3764
|
-
# @overload
|
3765
|
-
# Pass arguments to `
|
3766
|
-
# {::Google::Cloud::ContactCenterInsights::V1::
|
3767
|
+
# @overload list_analysis_rules(request, options = nil)
|
3768
|
+
# Pass arguments to `list_analysis_rules` via a request object, either of type
|
3769
|
+
# {::Google::Cloud::ContactCenterInsights::V1::ListAnalysisRulesRequest} or an equivalent Hash.
|
3767
3770
|
#
|
3768
|
-
# @param request [::Google::Cloud::ContactCenterInsights::V1::
|
3771
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::ListAnalysisRulesRequest, ::Hash]
|
3769
3772
|
# A request object representing the call parameters. Required. To specify no
|
3770
3773
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3771
3774
|
# @param options [::Gapic::CallOptions, ::Hash]
|
3772
3775
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3773
3776
|
#
|
3774
|
-
# @overload
|
3775
|
-
# Pass arguments to `
|
3777
|
+
# @overload list_analysis_rules(parent: nil, page_size: nil, page_token: nil)
|
3778
|
+
# Pass arguments to `list_analysis_rules` via keyword arguments. Note that at
|
3776
3779
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
3777
3780
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
3778
3781
|
#
|
3779
3782
|
# @param parent [::String]
|
3780
|
-
# Required. The parent resource of the
|
3781
|
-
#
|
3782
|
-
#
|
3783
|
-
#
|
3784
|
-
#
|
3785
|
-
#
|
3783
|
+
# Required. The parent resource of the analysis rules.
|
3784
|
+
# @param page_size [::Integer]
|
3785
|
+
# Optional. The maximum number of analysis rule to return in the response. If
|
3786
|
+
# this value is zero, the service will select a default size. A call may
|
3787
|
+
# return fewer objects than requested. A non-empty `next_page_token` in the
|
3788
|
+
# response indicates that more data is available.
|
3789
|
+
# @param page_token [::String]
|
3790
|
+
# Optional. The value returned by the last `ListAnalysisRulesResponse`;
|
3791
|
+
# indicates that this is a continuation of a prior `ListAnalysisRules` call
|
3792
|
+
# and the system should return the next page of data.
|
3786
3793
|
#
|
3787
3794
|
# @yield [response, operation] Access the result along with the RPC operation
|
3788
|
-
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::
|
3795
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::AnalysisRule>]
|
3789
3796
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3790
3797
|
#
|
3791
|
-
# @return [::Google::Cloud::ContactCenterInsights::V1::
|
3798
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::AnalysisRule>]
|
3792
3799
|
#
|
3793
3800
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3794
3801
|
#
|
@@ -3799,24 +3806,28 @@ module Google
|
|
3799
3806
|
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
3800
3807
|
#
|
3801
3808
|
# # Create a request. To set request fields, pass in keyword arguments.
|
3802
|
-
# request = Google::Cloud::ContactCenterInsights::V1::
|
3809
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ListAnalysisRulesRequest.new
|
3803
3810
|
#
|
3804
|
-
# # Call the
|
3805
|
-
# result = client.
|
3811
|
+
# # Call the list_analysis_rules method.
|
3812
|
+
# result = client.list_analysis_rules request
|
3806
3813
|
#
|
3807
|
-
# # The returned object is of type
|
3808
|
-
#
|
3814
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
3815
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
3816
|
+
# result.each do |item|
|
3817
|
+
# # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::AnalysisRule.
|
3818
|
+
# p item
|
3819
|
+
# end
|
3809
3820
|
#
|
3810
|
-
def
|
3821
|
+
def list_analysis_rules request, options = nil
|
3811
3822
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3812
3823
|
|
3813
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::
|
3824
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::ListAnalysisRulesRequest
|
3814
3825
|
|
3815
3826
|
# Converts hash and nil to an options object
|
3816
3827
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3817
3828
|
|
3818
3829
|
# Customize the options with defaults
|
3819
|
-
metadata = @config.rpcs.
|
3830
|
+
metadata = @config.rpcs.list_analysis_rules.metadata.to_h
|
3820
3831
|
|
3821
3832
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3822
3833
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -3833,48 +3844,53 @@ module Google
|
|
3833
3844
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3834
3845
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3835
3846
|
|
3836
|
-
options.apply_defaults timeout: @config.rpcs.
|
3847
|
+
options.apply_defaults timeout: @config.rpcs.list_analysis_rules.timeout,
|
3837
3848
|
metadata: metadata,
|
3838
|
-
retry_policy: @config.rpcs.
|
3849
|
+
retry_policy: @config.rpcs.list_analysis_rules.retry_policy
|
3839
3850
|
|
3840
3851
|
options.apply_defaults timeout: @config.timeout,
|
3841
3852
|
metadata: @config.metadata,
|
3842
3853
|
retry_policy: @config.retry_policy
|
3843
3854
|
|
3844
|
-
@contact_center_insights_stub.call_rpc :
|
3855
|
+
@contact_center_insights_stub.call_rpc :list_analysis_rules, request, options: options do |response, operation|
|
3856
|
+
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_analysis_rules, request, response, operation, options
|
3845
3857
|
yield response, operation if block_given?
|
3846
|
-
|
3858
|
+
throw :response, response
|
3847
3859
|
end
|
3848
3860
|
rescue ::GRPC::BadStatus => e
|
3849
3861
|
raise ::Google::Cloud::Error.from_error(e)
|
3850
3862
|
end
|
3851
3863
|
|
3852
3864
|
##
|
3853
|
-
#
|
3865
|
+
# Updates a analysis rule.
|
3854
3866
|
#
|
3855
|
-
# @overload
|
3856
|
-
# Pass arguments to `
|
3857
|
-
# {::Google::Cloud::ContactCenterInsights::V1::
|
3867
|
+
# @overload update_analysis_rule(request, options = nil)
|
3868
|
+
# Pass arguments to `update_analysis_rule` via a request object, either of type
|
3869
|
+
# {::Google::Cloud::ContactCenterInsights::V1::UpdateAnalysisRuleRequest} or an equivalent Hash.
|
3858
3870
|
#
|
3859
|
-
# @param request [::Google::Cloud::ContactCenterInsights::V1::
|
3871
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::UpdateAnalysisRuleRequest, ::Hash]
|
3860
3872
|
# A request object representing the call parameters. Required. To specify no
|
3861
3873
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3862
3874
|
# @param options [::Gapic::CallOptions, ::Hash]
|
3863
3875
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3864
3876
|
#
|
3865
|
-
# @overload
|
3866
|
-
# Pass arguments to `
|
3877
|
+
# @overload update_analysis_rule(analysis_rule: nil, update_mask: nil)
|
3878
|
+
# Pass arguments to `update_analysis_rule` via keyword arguments. Note that at
|
3867
3879
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
3868
3880
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
3869
3881
|
#
|
3870
|
-
# @param
|
3871
|
-
# Required. The
|
3882
|
+
# @param analysis_rule [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule, ::Hash]
|
3883
|
+
# Required. The new analysis rule.
|
3884
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
3885
|
+
# Optional. The list of fields to be updated.
|
3886
|
+
# If the update_mask is not provided, the update will be applied to all
|
3887
|
+
# fields.
|
3872
3888
|
#
|
3873
3889
|
# @yield [response, operation] Access the result along with the RPC operation
|
3874
|
-
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::
|
3890
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
3875
3891
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3876
3892
|
#
|
3877
|
-
# @return [::Google::Cloud::ContactCenterInsights::V1::
|
3893
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::AnalysisRule]
|
3878
3894
|
#
|
3879
3895
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3880
3896
|
#
|
@@ -3885,24 +3901,24 @@ module Google
|
|
3885
3901
|
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
3886
3902
|
#
|
3887
3903
|
# # Create a request. To set request fields, pass in keyword arguments.
|
3888
|
-
# request = Google::Cloud::ContactCenterInsights::V1::
|
3904
|
+
# request = Google::Cloud::ContactCenterInsights::V1::UpdateAnalysisRuleRequest.new
|
3889
3905
|
#
|
3890
|
-
# # Call the
|
3891
|
-
# result = client.
|
3906
|
+
# # Call the update_analysis_rule method.
|
3907
|
+
# result = client.update_analysis_rule request
|
3892
3908
|
#
|
3893
|
-
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::
|
3909
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::AnalysisRule.
|
3894
3910
|
# p result
|
3895
3911
|
#
|
3896
|
-
def
|
3912
|
+
def update_analysis_rule request, options = nil
|
3897
3913
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3898
3914
|
|
3899
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::
|
3915
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::UpdateAnalysisRuleRequest
|
3900
3916
|
|
3901
3917
|
# Converts hash and nil to an options object
|
3902
3918
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3903
3919
|
|
3904
3920
|
# Customize the options with defaults
|
3905
|
-
metadata = @config.rpcs.
|
3921
|
+
metadata = @config.rpcs.update_analysis_rule.metadata.to_h
|
3906
3922
|
|
3907
3923
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3908
3924
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -3912,64 +3928,54 @@ module Google
|
|
3912
3928
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3913
3929
|
|
3914
3930
|
header_params = {}
|
3915
|
-
if request.name
|
3916
|
-
header_params["name"] = request.name
|
3931
|
+
if request.analysis_rule&.name
|
3932
|
+
header_params["analysis_rule.name"] = request.analysis_rule.name
|
3917
3933
|
end
|
3918
3934
|
|
3919
3935
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3920
3936
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
3921
3937
|
|
3922
|
-
options.apply_defaults timeout: @config.rpcs.
|
3938
|
+
options.apply_defaults timeout: @config.rpcs.update_analysis_rule.timeout,
|
3923
3939
|
metadata: metadata,
|
3924
|
-
retry_policy: @config.rpcs.
|
3940
|
+
retry_policy: @config.rpcs.update_analysis_rule.retry_policy
|
3925
3941
|
|
3926
3942
|
options.apply_defaults timeout: @config.timeout,
|
3927
3943
|
metadata: @config.metadata,
|
3928
3944
|
retry_policy: @config.retry_policy
|
3929
3945
|
|
3930
|
-
@contact_center_insights_stub.call_rpc :
|
3946
|
+
@contact_center_insights_stub.call_rpc :update_analysis_rule, request, options: options do |response, operation|
|
3931
3947
|
yield response, operation if block_given?
|
3932
|
-
return response
|
3933
3948
|
end
|
3934
3949
|
rescue ::GRPC::BadStatus => e
|
3935
3950
|
raise ::Google::Cloud::Error.from_error(e)
|
3936
3951
|
end
|
3937
3952
|
|
3938
3953
|
##
|
3939
|
-
#
|
3954
|
+
# Deletes a analysis rule.
|
3940
3955
|
#
|
3941
|
-
# @overload
|
3942
|
-
# Pass arguments to `
|
3943
|
-
# {::Google::Cloud::ContactCenterInsights::V1::
|
3956
|
+
# @overload delete_analysis_rule(request, options = nil)
|
3957
|
+
# Pass arguments to `delete_analysis_rule` via a request object, either of type
|
3958
|
+
# {::Google::Cloud::ContactCenterInsights::V1::DeleteAnalysisRuleRequest} or an equivalent Hash.
|
3944
3959
|
#
|
3945
|
-
# @param request [::Google::Cloud::ContactCenterInsights::V1::
|
3960
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::DeleteAnalysisRuleRequest, ::Hash]
|
3946
3961
|
# A request object representing the call parameters. Required. To specify no
|
3947
3962
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3948
3963
|
# @param options [::Gapic::CallOptions, ::Hash]
|
3949
3964
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3950
3965
|
#
|
3951
|
-
# @overload
|
3952
|
-
# Pass arguments to `
|
3966
|
+
# @overload delete_analysis_rule(name: nil)
|
3967
|
+
# Pass arguments to `delete_analysis_rule` via keyword arguments. Note that at
|
3953
3968
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
3954
3969
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
3955
3970
|
#
|
3956
|
-
# @param
|
3957
|
-
# Required. The
|
3958
|
-
# @param page_size [::Integer]
|
3959
|
-
# The maximum number of views to return in the response. If this
|
3960
|
-
# value is zero, the service will select a default size. A call may return
|
3961
|
-
# fewer objects than requested. A non-empty `next_page_token` in the response
|
3962
|
-
# indicates that more data is available.
|
3963
|
-
# @param page_token [::String]
|
3964
|
-
# The value returned by the last `ListViewsResponse`; indicates
|
3965
|
-
# that this is a continuation of a prior `ListViews` call and
|
3966
|
-
# the system should return the next page of data.
|
3971
|
+
# @param name [::String]
|
3972
|
+
# Required. The name of the analysis rule to delete.
|
3967
3973
|
#
|
3968
3974
|
# @yield [response, operation] Access the result along with the RPC operation
|
3969
|
-
# @yieldparam response [::
|
3975
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
3970
3976
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3971
3977
|
#
|
3972
|
-
# @return [::
|
3978
|
+
# @return [::Google::Protobuf::Empty]
|
3973
3979
|
#
|
3974
3980
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3975
3981
|
#
|
@@ -3980,28 +3986,24 @@ module Google
|
|
3980
3986
|
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
3981
3987
|
#
|
3982
3988
|
# # Create a request. To set request fields, pass in keyword arguments.
|
3983
|
-
# request = Google::Cloud::ContactCenterInsights::V1::
|
3989
|
+
# request = Google::Cloud::ContactCenterInsights::V1::DeleteAnalysisRuleRequest.new
|
3984
3990
|
#
|
3985
|
-
# # Call the
|
3986
|
-
# result = client.
|
3991
|
+
# # Call the delete_analysis_rule method.
|
3992
|
+
# result = client.delete_analysis_rule request
|
3987
3993
|
#
|
3988
|
-
# # The returned object is of type
|
3989
|
-
#
|
3990
|
-
# result.each do |item|
|
3991
|
-
# # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::View.
|
3992
|
-
# p item
|
3993
|
-
# end
|
3994
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
3995
|
+
# p result
|
3994
3996
|
#
|
3995
|
-
def
|
3997
|
+
def delete_analysis_rule request, options = nil
|
3996
3998
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3997
3999
|
|
3998
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::
|
4000
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::DeleteAnalysisRuleRequest
|
3999
4001
|
|
4000
4002
|
# Converts hash and nil to an options object
|
4001
4003
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4002
4004
|
|
4003
4005
|
# Customize the options with defaults
|
4004
|
-
metadata = @config.rpcs.
|
4006
|
+
metadata = @config.rpcs.delete_analysis_rule.metadata.to_h
|
4005
4007
|
|
4006
4008
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4007
4009
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -4011,58 +4013,54 @@ module Google
|
|
4011
4013
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4012
4014
|
|
4013
4015
|
header_params = {}
|
4014
|
-
if request.
|
4015
|
-
header_params["
|
4016
|
+
if request.name
|
4017
|
+
header_params["name"] = request.name
|
4016
4018
|
end
|
4017
4019
|
|
4018
4020
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4019
4021
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4020
4022
|
|
4021
|
-
options.apply_defaults timeout: @config.rpcs.
|
4023
|
+
options.apply_defaults timeout: @config.rpcs.delete_analysis_rule.timeout,
|
4022
4024
|
metadata: metadata,
|
4023
|
-
retry_policy: @config.rpcs.
|
4025
|
+
retry_policy: @config.rpcs.delete_analysis_rule.retry_policy
|
4024
4026
|
|
4025
4027
|
options.apply_defaults timeout: @config.timeout,
|
4026
4028
|
metadata: @config.metadata,
|
4027
4029
|
retry_policy: @config.retry_policy
|
4028
4030
|
|
4029
|
-
@contact_center_insights_stub.call_rpc :
|
4030
|
-
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_views, request, response, operation, options
|
4031
|
+
@contact_center_insights_stub.call_rpc :delete_analysis_rule, request, options: options do |response, operation|
|
4031
4032
|
yield response, operation if block_given?
|
4032
|
-
return response
|
4033
4033
|
end
|
4034
4034
|
rescue ::GRPC::BadStatus => e
|
4035
4035
|
raise ::Google::Cloud::Error.from_error(e)
|
4036
4036
|
end
|
4037
4037
|
|
4038
4038
|
##
|
4039
|
-
#
|
4039
|
+
# Gets location-level encryption key specification.
|
4040
4040
|
#
|
4041
|
-
# @overload
|
4042
|
-
# Pass arguments to `
|
4043
|
-
# {::Google::Cloud::ContactCenterInsights::V1::
|
4041
|
+
# @overload get_encryption_spec(request, options = nil)
|
4042
|
+
# Pass arguments to `get_encryption_spec` via a request object, either of type
|
4043
|
+
# {::Google::Cloud::ContactCenterInsights::V1::GetEncryptionSpecRequest} or an equivalent Hash.
|
4044
4044
|
#
|
4045
|
-
# @param request [::Google::Cloud::ContactCenterInsights::V1::
|
4045
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::GetEncryptionSpecRequest, ::Hash]
|
4046
4046
|
# A request object representing the call parameters. Required. To specify no
|
4047
4047
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4048
4048
|
# @param options [::Gapic::CallOptions, ::Hash]
|
4049
4049
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4050
4050
|
#
|
4051
|
-
# @overload
|
4052
|
-
# Pass arguments to `
|
4051
|
+
# @overload get_encryption_spec(name: nil)
|
4052
|
+
# Pass arguments to `get_encryption_spec` via keyword arguments. Note that at
|
4053
4053
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
4054
4054
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
4055
4055
|
#
|
4056
|
-
# @param
|
4057
|
-
# Required. The
|
4058
|
-
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
4059
|
-
# The list of fields to be updated.
|
4056
|
+
# @param name [::String]
|
4057
|
+
# Required. The name of the encryption spec resource to get.
|
4060
4058
|
#
|
4061
4059
|
# @yield [response, operation] Access the result along with the RPC operation
|
4062
|
-
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::
|
4060
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::EncryptionSpec]
|
4063
4061
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4064
4062
|
#
|
4065
|
-
# @return [::Google::Cloud::ContactCenterInsights::V1::
|
4063
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::EncryptionSpec]
|
4066
4064
|
#
|
4067
4065
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4068
4066
|
#
|
@@ -4073,24 +4071,24 @@ module Google
|
|
4073
4071
|
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
4074
4072
|
#
|
4075
4073
|
# # Create a request. To set request fields, pass in keyword arguments.
|
4076
|
-
# request = Google::Cloud::ContactCenterInsights::V1::
|
4074
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetEncryptionSpecRequest.new
|
4077
4075
|
#
|
4078
|
-
# # Call the
|
4079
|
-
# result = client.
|
4076
|
+
# # Call the get_encryption_spec method.
|
4077
|
+
# result = client.get_encryption_spec request
|
4080
4078
|
#
|
4081
|
-
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::
|
4079
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::EncryptionSpec.
|
4082
4080
|
# p result
|
4083
4081
|
#
|
4084
|
-
def
|
4082
|
+
def get_encryption_spec request, options = nil
|
4085
4083
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4086
4084
|
|
4087
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::
|
4085
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::GetEncryptionSpecRequest
|
4088
4086
|
|
4089
4087
|
# Converts hash and nil to an options object
|
4090
4088
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4091
4089
|
|
4092
4090
|
# Customize the options with defaults
|
4093
|
-
metadata = @config.rpcs.
|
4091
|
+
metadata = @config.rpcs.get_encryption_spec.metadata.to_h
|
4094
4092
|
|
4095
4093
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4096
4094
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -4100,55 +4098,2870 @@ module Google
|
|
4100
4098
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4101
4099
|
|
4102
4100
|
header_params = {}
|
4103
|
-
if request.
|
4104
|
-
header_params["
|
4101
|
+
if request.name
|
4102
|
+
header_params["name"] = request.name
|
4105
4103
|
end
|
4106
4104
|
|
4107
4105
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4108
4106
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4109
4107
|
|
4110
|
-
options.apply_defaults timeout: @config.rpcs.
|
4108
|
+
options.apply_defaults timeout: @config.rpcs.get_encryption_spec.timeout,
|
4111
4109
|
metadata: metadata,
|
4112
|
-
retry_policy: @config.rpcs.
|
4110
|
+
retry_policy: @config.rpcs.get_encryption_spec.retry_policy
|
4113
4111
|
|
4114
4112
|
options.apply_defaults timeout: @config.timeout,
|
4115
4113
|
metadata: @config.metadata,
|
4116
4114
|
retry_policy: @config.retry_policy
|
4117
4115
|
|
4118
|
-
@contact_center_insights_stub.call_rpc :
|
4116
|
+
@contact_center_insights_stub.call_rpc :get_encryption_spec, request, options: options do |response, operation|
|
4119
4117
|
yield response, operation if block_given?
|
4120
|
-
return response
|
4121
4118
|
end
|
4122
4119
|
rescue ::GRPC::BadStatus => e
|
4123
4120
|
raise ::Google::Cloud::Error.from_error(e)
|
4124
4121
|
end
|
4125
4122
|
|
4126
4123
|
##
|
4127
|
-
#
|
4124
|
+
# Initializes a location-level encryption key specification. An error will
|
4125
|
+
# result if the location has resources already created before the
|
4126
|
+
# initialization. After the encryption specification is initialized at a
|
4127
|
+
# location, it is immutable and all newly created resources under the
|
4128
|
+
# location will be encrypted with the existing specification.
|
4128
4129
|
#
|
4129
|
-
# @overload
|
4130
|
-
# Pass arguments to `
|
4131
|
-
# {::Google::Cloud::ContactCenterInsights::V1::
|
4130
|
+
# @overload initialize_encryption_spec(request, options = nil)
|
4131
|
+
# Pass arguments to `initialize_encryption_spec` via a request object, either of type
|
4132
|
+
# {::Google::Cloud::ContactCenterInsights::V1::InitializeEncryptionSpecRequest} or an equivalent Hash.
|
4132
4133
|
#
|
4133
|
-
# @param request [::Google::Cloud::ContactCenterInsights::V1::
|
4134
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::InitializeEncryptionSpecRequest, ::Hash]
|
4134
4135
|
# A request object representing the call parameters. Required. To specify no
|
4135
4136
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4136
4137
|
# @param options [::Gapic::CallOptions, ::Hash]
|
4137
4138
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4138
4139
|
#
|
4139
|
-
# @overload
|
4140
|
-
# Pass arguments to `
|
4140
|
+
# @overload initialize_encryption_spec(encryption_spec: nil)
|
4141
|
+
# Pass arguments to `initialize_encryption_spec` via keyword arguments. Note that at
|
4141
4142
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
4142
4143
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
4143
4144
|
#
|
4144
|
-
# @param
|
4145
|
-
# Required. The
|
4145
|
+
# @param encryption_spec [::Google::Cloud::ContactCenterInsights::V1::EncryptionSpec, ::Hash]
|
4146
|
+
# Required. The encryption spec used for CMEK encryption. It is required that
|
4147
|
+
# the kms key is in the same region as the endpoint. The same key will be
|
4148
|
+
# used for all provisioned resources, if encryption is available. If the
|
4149
|
+
# `kms_key_name` field is left empty, no encryption will be enforced.
|
4146
4150
|
#
|
4147
4151
|
# @yield [response, operation] Access the result along with the RPC operation
|
4148
|
-
# @yieldparam response [::
|
4152
|
+
# @yieldparam response [::Gapic::Operation]
|
4149
4153
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4150
4154
|
#
|
4151
|
-
# @return [::
|
4155
|
+
# @return [::Gapic::Operation]
|
4156
|
+
#
|
4157
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4158
|
+
#
|
4159
|
+
# @example Basic example
|
4160
|
+
# require "google/cloud/contact_center_insights/v1"
|
4161
|
+
#
|
4162
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4163
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
4164
|
+
#
|
4165
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4166
|
+
# request = Google::Cloud::ContactCenterInsights::V1::InitializeEncryptionSpecRequest.new
|
4167
|
+
#
|
4168
|
+
# # Call the initialize_encryption_spec method.
|
4169
|
+
# result = client.initialize_encryption_spec request
|
4170
|
+
#
|
4171
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
4172
|
+
# # check the status of an operation, cancel it, or wait for results.
|
4173
|
+
# # Here is how to wait for a response.
|
4174
|
+
# result.wait_until_done! timeout: 60
|
4175
|
+
# if result.response?
|
4176
|
+
# p result.response
|
4177
|
+
# else
|
4178
|
+
# puts "No response received."
|
4179
|
+
# end
|
4180
|
+
#
|
4181
|
+
def initialize_encryption_spec request, options = nil
|
4182
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4183
|
+
|
4184
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::InitializeEncryptionSpecRequest
|
4185
|
+
|
4186
|
+
# Converts hash and nil to an options object
|
4187
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4188
|
+
|
4189
|
+
# Customize the options with defaults
|
4190
|
+
metadata = @config.rpcs.initialize_encryption_spec.metadata.to_h
|
4191
|
+
|
4192
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4193
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4194
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4195
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
4196
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4197
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4198
|
+
|
4199
|
+
header_params = {}
|
4200
|
+
if request.encryption_spec&.name
|
4201
|
+
header_params["encryption_spec.name"] = request.encryption_spec.name
|
4202
|
+
end
|
4203
|
+
|
4204
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4205
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4206
|
+
|
4207
|
+
options.apply_defaults timeout: @config.rpcs.initialize_encryption_spec.timeout,
|
4208
|
+
metadata: metadata,
|
4209
|
+
retry_policy: @config.rpcs.initialize_encryption_spec.retry_policy
|
4210
|
+
|
4211
|
+
options.apply_defaults timeout: @config.timeout,
|
4212
|
+
metadata: @config.metadata,
|
4213
|
+
retry_policy: @config.retry_policy
|
4214
|
+
|
4215
|
+
@contact_center_insights_stub.call_rpc :initialize_encryption_spec, request, options: options do |response, operation|
|
4216
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
4217
|
+
yield response, operation if block_given?
|
4218
|
+
throw :response, response
|
4219
|
+
end
|
4220
|
+
rescue ::GRPC::BadStatus => e
|
4221
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4222
|
+
end
|
4223
|
+
|
4224
|
+
##
|
4225
|
+
# Creates a view.
|
4226
|
+
#
|
4227
|
+
# @overload create_view(request, options = nil)
|
4228
|
+
# Pass arguments to `create_view` via a request object, either of type
|
4229
|
+
# {::Google::Cloud::ContactCenterInsights::V1::CreateViewRequest} or an equivalent Hash.
|
4230
|
+
#
|
4231
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::CreateViewRequest, ::Hash]
|
4232
|
+
# A request object representing the call parameters. Required. To specify no
|
4233
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4234
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4235
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4236
|
+
#
|
4237
|
+
# @overload create_view(parent: nil, view: nil)
|
4238
|
+
# Pass arguments to `create_view` via keyword arguments. Note that at
|
4239
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4240
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4241
|
+
#
|
4242
|
+
# @param parent [::String]
|
4243
|
+
# Required. The parent resource of the view. Required. The location to create
|
4244
|
+
# a view for.
|
4245
|
+
# Format: `projects/<Project ID>/locations/<Location ID>` or
|
4246
|
+
# `projects/<Project Number>/locations/<Location ID>`
|
4247
|
+
# @param view [::Google::Cloud::ContactCenterInsights::V1::View, ::Hash]
|
4248
|
+
# Required. The view resource to create.
|
4249
|
+
#
|
4250
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
4251
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::View]
|
4252
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4253
|
+
#
|
4254
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::View]
|
4255
|
+
#
|
4256
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4257
|
+
#
|
4258
|
+
# @example Basic example
|
4259
|
+
# require "google/cloud/contact_center_insights/v1"
|
4260
|
+
#
|
4261
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4262
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
4263
|
+
#
|
4264
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4265
|
+
# request = Google::Cloud::ContactCenterInsights::V1::CreateViewRequest.new
|
4266
|
+
#
|
4267
|
+
# # Call the create_view method.
|
4268
|
+
# result = client.create_view request
|
4269
|
+
#
|
4270
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::View.
|
4271
|
+
# p result
|
4272
|
+
#
|
4273
|
+
def create_view request, options = nil
|
4274
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4275
|
+
|
4276
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::CreateViewRequest
|
4277
|
+
|
4278
|
+
# Converts hash and nil to an options object
|
4279
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4280
|
+
|
4281
|
+
# Customize the options with defaults
|
4282
|
+
metadata = @config.rpcs.create_view.metadata.to_h
|
4283
|
+
|
4284
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4285
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4286
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4287
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
4288
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4289
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4290
|
+
|
4291
|
+
header_params = {}
|
4292
|
+
if request.parent
|
4293
|
+
header_params["parent"] = request.parent
|
4294
|
+
end
|
4295
|
+
|
4296
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4297
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4298
|
+
|
4299
|
+
options.apply_defaults timeout: @config.rpcs.create_view.timeout,
|
4300
|
+
metadata: metadata,
|
4301
|
+
retry_policy: @config.rpcs.create_view.retry_policy
|
4302
|
+
|
4303
|
+
options.apply_defaults timeout: @config.timeout,
|
4304
|
+
metadata: @config.metadata,
|
4305
|
+
retry_policy: @config.retry_policy
|
4306
|
+
|
4307
|
+
@contact_center_insights_stub.call_rpc :create_view, request, options: options do |response, operation|
|
4308
|
+
yield response, operation if block_given?
|
4309
|
+
end
|
4310
|
+
rescue ::GRPC::BadStatus => e
|
4311
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4312
|
+
end
|
4313
|
+
|
4314
|
+
##
|
4315
|
+
# Gets a view.
|
4316
|
+
#
|
4317
|
+
# @overload get_view(request, options = nil)
|
4318
|
+
# Pass arguments to `get_view` via a request object, either of type
|
4319
|
+
# {::Google::Cloud::ContactCenterInsights::V1::GetViewRequest} or an equivalent Hash.
|
4320
|
+
#
|
4321
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::GetViewRequest, ::Hash]
|
4322
|
+
# A request object representing the call parameters. Required. To specify no
|
4323
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4324
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4325
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4326
|
+
#
|
4327
|
+
# @overload get_view(name: nil)
|
4328
|
+
# Pass arguments to `get_view` via keyword arguments. Note that at
|
4329
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4330
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4331
|
+
#
|
4332
|
+
# @param name [::String]
|
4333
|
+
# Required. The name of the view to get.
|
4334
|
+
#
|
4335
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
4336
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::View]
|
4337
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4338
|
+
#
|
4339
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::View]
|
4340
|
+
#
|
4341
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4342
|
+
#
|
4343
|
+
# @example Basic example
|
4344
|
+
# require "google/cloud/contact_center_insights/v1"
|
4345
|
+
#
|
4346
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4347
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
4348
|
+
#
|
4349
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4350
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetViewRequest.new
|
4351
|
+
#
|
4352
|
+
# # Call the get_view method.
|
4353
|
+
# result = client.get_view request
|
4354
|
+
#
|
4355
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::View.
|
4356
|
+
# p result
|
4357
|
+
#
|
4358
|
+
def get_view request, options = nil
|
4359
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4360
|
+
|
4361
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::GetViewRequest
|
4362
|
+
|
4363
|
+
# Converts hash and nil to an options object
|
4364
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4365
|
+
|
4366
|
+
# Customize the options with defaults
|
4367
|
+
metadata = @config.rpcs.get_view.metadata.to_h
|
4368
|
+
|
4369
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4370
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4371
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4372
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
4373
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4374
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4375
|
+
|
4376
|
+
header_params = {}
|
4377
|
+
if request.name
|
4378
|
+
header_params["name"] = request.name
|
4379
|
+
end
|
4380
|
+
|
4381
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4382
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4383
|
+
|
4384
|
+
options.apply_defaults timeout: @config.rpcs.get_view.timeout,
|
4385
|
+
metadata: metadata,
|
4386
|
+
retry_policy: @config.rpcs.get_view.retry_policy
|
4387
|
+
|
4388
|
+
options.apply_defaults timeout: @config.timeout,
|
4389
|
+
metadata: @config.metadata,
|
4390
|
+
retry_policy: @config.retry_policy
|
4391
|
+
|
4392
|
+
@contact_center_insights_stub.call_rpc :get_view, request, options: options do |response, operation|
|
4393
|
+
yield response, operation if block_given?
|
4394
|
+
end
|
4395
|
+
rescue ::GRPC::BadStatus => e
|
4396
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4397
|
+
end
|
4398
|
+
|
4399
|
+
##
|
4400
|
+
# Lists views.
|
4401
|
+
#
|
4402
|
+
# @overload list_views(request, options = nil)
|
4403
|
+
# Pass arguments to `list_views` via a request object, either of type
|
4404
|
+
# {::Google::Cloud::ContactCenterInsights::V1::ListViewsRequest} or an equivalent Hash.
|
4405
|
+
#
|
4406
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::ListViewsRequest, ::Hash]
|
4407
|
+
# A request object representing the call parameters. Required. To specify no
|
4408
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4409
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4410
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4411
|
+
#
|
4412
|
+
# @overload list_views(parent: nil, page_size: nil, page_token: nil)
|
4413
|
+
# Pass arguments to `list_views` via keyword arguments. Note that at
|
4414
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4415
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4416
|
+
#
|
4417
|
+
# @param parent [::String]
|
4418
|
+
# Required. The parent resource of the views.
|
4419
|
+
# @param page_size [::Integer]
|
4420
|
+
# The maximum number of views to return in the response. If this
|
4421
|
+
# value is zero, the service will select a default size. A call may return
|
4422
|
+
# fewer objects than requested. A non-empty `next_page_token` in the response
|
4423
|
+
# indicates that more data is available.
|
4424
|
+
# @param page_token [::String]
|
4425
|
+
# The value returned by the last `ListViewsResponse`; indicates
|
4426
|
+
# that this is a continuation of a prior `ListViews` call and
|
4427
|
+
# the system should return the next page of data.
|
4428
|
+
#
|
4429
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
4430
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::View>]
|
4431
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4432
|
+
#
|
4433
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::View>]
|
4434
|
+
#
|
4435
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4436
|
+
#
|
4437
|
+
# @example Basic example
|
4438
|
+
# require "google/cloud/contact_center_insights/v1"
|
4439
|
+
#
|
4440
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4441
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
4442
|
+
#
|
4443
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4444
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ListViewsRequest.new
|
4445
|
+
#
|
4446
|
+
# # Call the list_views method.
|
4447
|
+
# result = client.list_views request
|
4448
|
+
#
|
4449
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
4450
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
4451
|
+
# result.each do |item|
|
4452
|
+
# # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::View.
|
4453
|
+
# p item
|
4454
|
+
# end
|
4455
|
+
#
|
4456
|
+
def list_views request, options = nil
|
4457
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4458
|
+
|
4459
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::ListViewsRequest
|
4460
|
+
|
4461
|
+
# Converts hash and nil to an options object
|
4462
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4463
|
+
|
4464
|
+
# Customize the options with defaults
|
4465
|
+
metadata = @config.rpcs.list_views.metadata.to_h
|
4466
|
+
|
4467
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4468
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4469
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4470
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
4471
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4472
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4473
|
+
|
4474
|
+
header_params = {}
|
4475
|
+
if request.parent
|
4476
|
+
header_params["parent"] = request.parent
|
4477
|
+
end
|
4478
|
+
|
4479
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4480
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4481
|
+
|
4482
|
+
options.apply_defaults timeout: @config.rpcs.list_views.timeout,
|
4483
|
+
metadata: metadata,
|
4484
|
+
retry_policy: @config.rpcs.list_views.retry_policy
|
4485
|
+
|
4486
|
+
options.apply_defaults timeout: @config.timeout,
|
4487
|
+
metadata: @config.metadata,
|
4488
|
+
retry_policy: @config.retry_policy
|
4489
|
+
|
4490
|
+
@contact_center_insights_stub.call_rpc :list_views, request, options: options do |response, operation|
|
4491
|
+
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_views, request, response, operation, options
|
4492
|
+
yield response, operation if block_given?
|
4493
|
+
throw :response, response
|
4494
|
+
end
|
4495
|
+
rescue ::GRPC::BadStatus => e
|
4496
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4497
|
+
end
|
4498
|
+
|
4499
|
+
##
|
4500
|
+
# Updates a view.
|
4501
|
+
#
|
4502
|
+
# @overload update_view(request, options = nil)
|
4503
|
+
# Pass arguments to `update_view` via a request object, either of type
|
4504
|
+
# {::Google::Cloud::ContactCenterInsights::V1::UpdateViewRequest} or an equivalent Hash.
|
4505
|
+
#
|
4506
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::UpdateViewRequest, ::Hash]
|
4507
|
+
# A request object representing the call parameters. Required. To specify no
|
4508
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4509
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4510
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4511
|
+
#
|
4512
|
+
# @overload update_view(view: nil, update_mask: nil)
|
4513
|
+
# Pass arguments to `update_view` via keyword arguments. Note that at
|
4514
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4515
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4516
|
+
#
|
4517
|
+
# @param view [::Google::Cloud::ContactCenterInsights::V1::View, ::Hash]
|
4518
|
+
# Required. The new view.
|
4519
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
4520
|
+
# The list of fields to be updated.
|
4521
|
+
#
|
4522
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
4523
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::View]
|
4524
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4525
|
+
#
|
4526
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::View]
|
4527
|
+
#
|
4528
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4529
|
+
#
|
4530
|
+
# @example Basic example
|
4531
|
+
# require "google/cloud/contact_center_insights/v1"
|
4532
|
+
#
|
4533
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4534
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
4535
|
+
#
|
4536
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4537
|
+
# request = Google::Cloud::ContactCenterInsights::V1::UpdateViewRequest.new
|
4538
|
+
#
|
4539
|
+
# # Call the update_view method.
|
4540
|
+
# result = client.update_view request
|
4541
|
+
#
|
4542
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::View.
|
4543
|
+
# p result
|
4544
|
+
#
|
4545
|
+
def update_view request, options = nil
|
4546
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4547
|
+
|
4548
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::UpdateViewRequest
|
4549
|
+
|
4550
|
+
# Converts hash and nil to an options object
|
4551
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4552
|
+
|
4553
|
+
# Customize the options with defaults
|
4554
|
+
metadata = @config.rpcs.update_view.metadata.to_h
|
4555
|
+
|
4556
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4557
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4558
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4559
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
4560
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4561
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4562
|
+
|
4563
|
+
header_params = {}
|
4564
|
+
if request.view&.name
|
4565
|
+
header_params["view.name"] = request.view.name
|
4566
|
+
end
|
4567
|
+
|
4568
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4569
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4570
|
+
|
4571
|
+
options.apply_defaults timeout: @config.rpcs.update_view.timeout,
|
4572
|
+
metadata: metadata,
|
4573
|
+
retry_policy: @config.rpcs.update_view.retry_policy
|
4574
|
+
|
4575
|
+
options.apply_defaults timeout: @config.timeout,
|
4576
|
+
metadata: @config.metadata,
|
4577
|
+
retry_policy: @config.retry_policy
|
4578
|
+
|
4579
|
+
@contact_center_insights_stub.call_rpc :update_view, request, options: options do |response, operation|
|
4580
|
+
yield response, operation if block_given?
|
4581
|
+
end
|
4582
|
+
rescue ::GRPC::BadStatus => e
|
4583
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4584
|
+
end
|
4585
|
+
|
4586
|
+
##
|
4587
|
+
# Deletes a view.
|
4588
|
+
#
|
4589
|
+
# @overload delete_view(request, options = nil)
|
4590
|
+
# Pass arguments to `delete_view` via a request object, either of type
|
4591
|
+
# {::Google::Cloud::ContactCenterInsights::V1::DeleteViewRequest} or an equivalent Hash.
|
4592
|
+
#
|
4593
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::DeleteViewRequest, ::Hash]
|
4594
|
+
# A request object representing the call parameters. Required. To specify no
|
4595
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4596
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4597
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4598
|
+
#
|
4599
|
+
# @overload delete_view(name: nil)
|
4600
|
+
# Pass arguments to `delete_view` via keyword arguments. Note that at
|
4601
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4602
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4603
|
+
#
|
4604
|
+
# @param name [::String]
|
4605
|
+
# Required. The name of the view to delete.
|
4606
|
+
#
|
4607
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
4608
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
4609
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4610
|
+
#
|
4611
|
+
# @return [::Google::Protobuf::Empty]
|
4612
|
+
#
|
4613
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4614
|
+
#
|
4615
|
+
# @example Basic example
|
4616
|
+
# require "google/cloud/contact_center_insights/v1"
|
4617
|
+
#
|
4618
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4619
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
4620
|
+
#
|
4621
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4622
|
+
# request = Google::Cloud::ContactCenterInsights::V1::DeleteViewRequest.new
|
4623
|
+
#
|
4624
|
+
# # Call the delete_view method.
|
4625
|
+
# result = client.delete_view request
|
4626
|
+
#
|
4627
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
4628
|
+
# p result
|
4629
|
+
#
|
4630
|
+
def delete_view request, options = nil
|
4631
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4632
|
+
|
4633
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::DeleteViewRequest
|
4634
|
+
|
4635
|
+
# Converts hash and nil to an options object
|
4636
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4637
|
+
|
4638
|
+
# Customize the options with defaults
|
4639
|
+
metadata = @config.rpcs.delete_view.metadata.to_h
|
4640
|
+
|
4641
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4642
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4643
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4644
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
4645
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4646
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4647
|
+
|
4648
|
+
header_params = {}
|
4649
|
+
if request.name
|
4650
|
+
header_params["name"] = request.name
|
4651
|
+
end
|
4652
|
+
|
4653
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4654
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4655
|
+
|
4656
|
+
options.apply_defaults timeout: @config.rpcs.delete_view.timeout,
|
4657
|
+
metadata: metadata,
|
4658
|
+
retry_policy: @config.rpcs.delete_view.retry_policy
|
4659
|
+
|
4660
|
+
options.apply_defaults timeout: @config.timeout,
|
4661
|
+
metadata: @config.metadata,
|
4662
|
+
retry_policy: @config.retry_policy
|
4663
|
+
|
4664
|
+
@contact_center_insights_stub.call_rpc :delete_view, request, options: options do |response, operation|
|
4665
|
+
yield response, operation if block_given?
|
4666
|
+
end
|
4667
|
+
rescue ::GRPC::BadStatus => e
|
4668
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4669
|
+
end
|
4670
|
+
|
4671
|
+
##
|
4672
|
+
# Query metrics.
|
4673
|
+
#
|
4674
|
+
# @overload query_metrics(request, options = nil)
|
4675
|
+
# Pass arguments to `query_metrics` via a request object, either of type
|
4676
|
+
# {::Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest} or an equivalent Hash.
|
4677
|
+
#
|
4678
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest, ::Hash]
|
4679
|
+
# A request object representing the call parameters. Required. To specify no
|
4680
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4681
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4682
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4683
|
+
#
|
4684
|
+
# @overload query_metrics(location: nil, filter: nil, time_granularity: nil, dimensions: nil, measure_mask: nil)
|
4685
|
+
# Pass arguments to `query_metrics` via keyword arguments. Note that at
|
4686
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4687
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4688
|
+
#
|
4689
|
+
# @param location [::String]
|
4690
|
+
# Required. The location of the data.
|
4691
|
+
# "projects/\\{project}/locations/\\{location}"
|
4692
|
+
# @param filter [::String]
|
4693
|
+
# Required. Filter to select a subset of conversations to compute the
|
4694
|
+
# metrics. Must specify a window of the conversation create time to compute
|
4695
|
+
# the metrics. The returned metrics will be from the range [DATE(starting
|
4696
|
+
# create time), DATE(ending create time)).
|
4697
|
+
# @param time_granularity [::Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest::TimeGranularity]
|
4698
|
+
# The time granularity of each data point in the time series.
|
4699
|
+
# Defaults to NONE if this field is unspecified.
|
4700
|
+
# @param dimensions [::Array<::Google::Cloud::ContactCenterInsights::V1::Dimension, ::Hash>]
|
4701
|
+
# The dimensions that determine the grouping key for the query. Defaults to
|
4702
|
+
# no dimension if this field is unspecified. If a dimension is specified,
|
4703
|
+
# its key must also be specified. Each dimension's key must be unique.
|
4704
|
+
#
|
4705
|
+
# If a time granularity is also specified, metric values in the dimension
|
4706
|
+
# will be bucketed by this granularity.
|
4707
|
+
#
|
4708
|
+
# Up to one dimension is supported for now.
|
4709
|
+
# @param measure_mask [::Google::Protobuf::FieldMask, ::Hash]
|
4710
|
+
# Measures to return. Defaults to all measures if this field is unspecified.
|
4711
|
+
# A valid mask should traverse from the `measure` field from the response.
|
4712
|
+
# For example, a path from a measure mask to get the conversation count is
|
4713
|
+
# "conversation_measure.count".
|
4714
|
+
#
|
4715
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
4716
|
+
# @yieldparam response [::Gapic::Operation]
|
4717
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4718
|
+
#
|
4719
|
+
# @return [::Gapic::Operation]
|
4720
|
+
#
|
4721
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4722
|
+
#
|
4723
|
+
# @example Basic example
|
4724
|
+
# require "google/cloud/contact_center_insights/v1"
|
4725
|
+
#
|
4726
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4727
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
4728
|
+
#
|
4729
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4730
|
+
# request = Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest.new
|
4731
|
+
#
|
4732
|
+
# # Call the query_metrics method.
|
4733
|
+
# result = client.query_metrics request
|
4734
|
+
#
|
4735
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
4736
|
+
# # check the status of an operation, cancel it, or wait for results.
|
4737
|
+
# # Here is how to wait for a response.
|
4738
|
+
# result.wait_until_done! timeout: 60
|
4739
|
+
# if result.response?
|
4740
|
+
# p result.response
|
4741
|
+
# else
|
4742
|
+
# puts "No response received."
|
4743
|
+
# end
|
4744
|
+
#
|
4745
|
+
def query_metrics request, options = nil
|
4746
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4747
|
+
|
4748
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest
|
4749
|
+
|
4750
|
+
# Converts hash and nil to an options object
|
4751
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4752
|
+
|
4753
|
+
# Customize the options with defaults
|
4754
|
+
metadata = @config.rpcs.query_metrics.metadata.to_h
|
4755
|
+
|
4756
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4757
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4758
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4759
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
4760
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4761
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4762
|
+
|
4763
|
+
header_params = {}
|
4764
|
+
if request.location
|
4765
|
+
header_params["location"] = request.location
|
4766
|
+
end
|
4767
|
+
|
4768
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4769
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4770
|
+
|
4771
|
+
options.apply_defaults timeout: @config.rpcs.query_metrics.timeout,
|
4772
|
+
metadata: metadata,
|
4773
|
+
retry_policy: @config.rpcs.query_metrics.retry_policy
|
4774
|
+
|
4775
|
+
options.apply_defaults timeout: @config.timeout,
|
4776
|
+
metadata: @config.metadata,
|
4777
|
+
retry_policy: @config.retry_policy
|
4778
|
+
|
4779
|
+
@contact_center_insights_stub.call_rpc :query_metrics, request, options: options do |response, operation|
|
4780
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
4781
|
+
yield response, operation if block_given?
|
4782
|
+
throw :response, response
|
4783
|
+
end
|
4784
|
+
rescue ::GRPC::BadStatus => e
|
4785
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4786
|
+
end
|
4787
|
+
|
4788
|
+
##
|
4789
|
+
# Create a QaQuestion.
|
4790
|
+
#
|
4791
|
+
# @overload create_qa_question(request, options = nil)
|
4792
|
+
# Pass arguments to `create_qa_question` via a request object, either of type
|
4793
|
+
# {::Google::Cloud::ContactCenterInsights::V1::CreateQaQuestionRequest} or an equivalent Hash.
|
4794
|
+
#
|
4795
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::CreateQaQuestionRequest, ::Hash]
|
4796
|
+
# A request object representing the call parameters. Required. To specify no
|
4797
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4798
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4799
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4800
|
+
#
|
4801
|
+
# @overload create_qa_question(parent: nil, qa_question: nil, qa_question_id: nil)
|
4802
|
+
# Pass arguments to `create_qa_question` via keyword arguments. Note that at
|
4803
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4804
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4805
|
+
#
|
4806
|
+
# @param parent [::String]
|
4807
|
+
# Required. The parent resource of the QaQuestion.
|
4808
|
+
# @param qa_question [::Google::Cloud::ContactCenterInsights::V1::QaQuestion, ::Hash]
|
4809
|
+
# Required. The QaQuestion to create.
|
4810
|
+
# @param qa_question_id [::String]
|
4811
|
+
# Optional. A unique ID for the new question. This ID will become the final
|
4812
|
+
# component of the question's resource name. If no ID is specified, a
|
4813
|
+
# server-generated ID will be used.
|
4814
|
+
#
|
4815
|
+
# This value should be 4-64 characters and must match the regular
|
4816
|
+
# expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`.
|
4817
|
+
#
|
4818
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
4819
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
4820
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4821
|
+
#
|
4822
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
4823
|
+
#
|
4824
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4825
|
+
#
|
4826
|
+
# @example Basic example
|
4827
|
+
# require "google/cloud/contact_center_insights/v1"
|
4828
|
+
#
|
4829
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4830
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
4831
|
+
#
|
4832
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4833
|
+
# request = Google::Cloud::ContactCenterInsights::V1::CreateQaQuestionRequest.new
|
4834
|
+
#
|
4835
|
+
# # Call the create_qa_question method.
|
4836
|
+
# result = client.create_qa_question request
|
4837
|
+
#
|
4838
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaQuestion.
|
4839
|
+
# p result
|
4840
|
+
#
|
4841
|
+
def create_qa_question request, options = nil
|
4842
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4843
|
+
|
4844
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::CreateQaQuestionRequest
|
4845
|
+
|
4846
|
+
# Converts hash and nil to an options object
|
4847
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4848
|
+
|
4849
|
+
# Customize the options with defaults
|
4850
|
+
metadata = @config.rpcs.create_qa_question.metadata.to_h
|
4851
|
+
|
4852
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4853
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4854
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4855
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
4856
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4857
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4858
|
+
|
4859
|
+
header_params = {}
|
4860
|
+
if request.parent
|
4861
|
+
header_params["parent"] = request.parent
|
4862
|
+
end
|
4863
|
+
|
4864
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4865
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4866
|
+
|
4867
|
+
options.apply_defaults timeout: @config.rpcs.create_qa_question.timeout,
|
4868
|
+
metadata: metadata,
|
4869
|
+
retry_policy: @config.rpcs.create_qa_question.retry_policy
|
4870
|
+
|
4871
|
+
options.apply_defaults timeout: @config.timeout,
|
4872
|
+
metadata: @config.metadata,
|
4873
|
+
retry_policy: @config.retry_policy
|
4874
|
+
|
4875
|
+
@contact_center_insights_stub.call_rpc :create_qa_question, request, options: options do |response, operation|
|
4876
|
+
yield response, operation if block_given?
|
4877
|
+
end
|
4878
|
+
rescue ::GRPC::BadStatus => e
|
4879
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4880
|
+
end
|
4881
|
+
|
4882
|
+
##
|
4883
|
+
# Gets a QaQuestion.
|
4884
|
+
#
|
4885
|
+
# @overload get_qa_question(request, options = nil)
|
4886
|
+
# Pass arguments to `get_qa_question` via a request object, either of type
|
4887
|
+
# {::Google::Cloud::ContactCenterInsights::V1::GetQaQuestionRequest} or an equivalent Hash.
|
4888
|
+
#
|
4889
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::GetQaQuestionRequest, ::Hash]
|
4890
|
+
# A request object representing the call parameters. Required. To specify no
|
4891
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4892
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4893
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4894
|
+
#
|
4895
|
+
# @overload get_qa_question(name: nil)
|
4896
|
+
# Pass arguments to `get_qa_question` via keyword arguments. Note that at
|
4897
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4898
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4899
|
+
#
|
4900
|
+
# @param name [::String]
|
4901
|
+
# Required. The name of the QaQuestion to get.
|
4902
|
+
#
|
4903
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
4904
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
4905
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
4906
|
+
#
|
4907
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
4908
|
+
#
|
4909
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4910
|
+
#
|
4911
|
+
# @example Basic example
|
4912
|
+
# require "google/cloud/contact_center_insights/v1"
|
4913
|
+
#
|
4914
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4915
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
4916
|
+
#
|
4917
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4918
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetQaQuestionRequest.new
|
4919
|
+
#
|
4920
|
+
# # Call the get_qa_question method.
|
4921
|
+
# result = client.get_qa_question request
|
4922
|
+
#
|
4923
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaQuestion.
|
4924
|
+
# p result
|
4925
|
+
#
|
4926
|
+
def get_qa_question request, options = nil
|
4927
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
4928
|
+
|
4929
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::GetQaQuestionRequest
|
4930
|
+
|
4931
|
+
# Converts hash and nil to an options object
|
4932
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4933
|
+
|
4934
|
+
# Customize the options with defaults
|
4935
|
+
metadata = @config.rpcs.get_qa_question.metadata.to_h
|
4936
|
+
|
4937
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4938
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4939
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4940
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
4941
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4942
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4943
|
+
|
4944
|
+
header_params = {}
|
4945
|
+
if request.name
|
4946
|
+
header_params["name"] = request.name
|
4947
|
+
end
|
4948
|
+
|
4949
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4950
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
4951
|
+
|
4952
|
+
options.apply_defaults timeout: @config.rpcs.get_qa_question.timeout,
|
4953
|
+
metadata: metadata,
|
4954
|
+
retry_policy: @config.rpcs.get_qa_question.retry_policy
|
4955
|
+
|
4956
|
+
options.apply_defaults timeout: @config.timeout,
|
4957
|
+
metadata: @config.metadata,
|
4958
|
+
retry_policy: @config.retry_policy
|
4959
|
+
|
4960
|
+
@contact_center_insights_stub.call_rpc :get_qa_question, request, options: options do |response, operation|
|
4961
|
+
yield response, operation if block_given?
|
4962
|
+
end
|
4963
|
+
rescue ::GRPC::BadStatus => e
|
4964
|
+
raise ::Google::Cloud::Error.from_error(e)
|
4965
|
+
end
|
4966
|
+
|
4967
|
+
##
|
4968
|
+
# Updates a QaQuestion.
|
4969
|
+
#
|
4970
|
+
# @overload update_qa_question(request, options = nil)
|
4971
|
+
# Pass arguments to `update_qa_question` via a request object, either of type
|
4972
|
+
# {::Google::Cloud::ContactCenterInsights::V1::UpdateQaQuestionRequest} or an equivalent Hash.
|
4973
|
+
#
|
4974
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::UpdateQaQuestionRequest, ::Hash]
|
4975
|
+
# A request object representing the call parameters. Required. To specify no
|
4976
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
4977
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
4978
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
4979
|
+
#
|
4980
|
+
# @overload update_qa_question(qa_question: nil, update_mask: nil)
|
4981
|
+
# Pass arguments to `update_qa_question` via keyword arguments. Note that at
|
4982
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
4983
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
4984
|
+
#
|
4985
|
+
# @param qa_question [::Google::Cloud::ContactCenterInsights::V1::QaQuestion, ::Hash]
|
4986
|
+
# Required. The QaQuestion to update.
|
4987
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
4988
|
+
# Required. The list of fields to be updated. All possible fields can be
|
4989
|
+
# updated by passing `*`, or a subset of the following updateable fields can
|
4990
|
+
# be provided:
|
4991
|
+
#
|
4992
|
+
# * `abbreviation`
|
4993
|
+
# * `answer_choices`
|
4994
|
+
# * `answer_instructions`
|
4995
|
+
# * `order`
|
4996
|
+
# * `question_body`
|
4997
|
+
# * `tags`
|
4998
|
+
#
|
4999
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5000
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
5001
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5002
|
+
#
|
5003
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaQuestion]
|
5004
|
+
#
|
5005
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5006
|
+
#
|
5007
|
+
# @example Basic example
|
5008
|
+
# require "google/cloud/contact_center_insights/v1"
|
5009
|
+
#
|
5010
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5011
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5012
|
+
#
|
5013
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5014
|
+
# request = Google::Cloud::ContactCenterInsights::V1::UpdateQaQuestionRequest.new
|
5015
|
+
#
|
5016
|
+
# # Call the update_qa_question method.
|
5017
|
+
# result = client.update_qa_question request
|
5018
|
+
#
|
5019
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaQuestion.
|
5020
|
+
# p result
|
5021
|
+
#
|
5022
|
+
def update_qa_question request, options = nil
|
5023
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5024
|
+
|
5025
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::UpdateQaQuestionRequest
|
5026
|
+
|
5027
|
+
# Converts hash and nil to an options object
|
5028
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5029
|
+
|
5030
|
+
# Customize the options with defaults
|
5031
|
+
metadata = @config.rpcs.update_qa_question.metadata.to_h
|
5032
|
+
|
5033
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5034
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5035
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5036
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5037
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5038
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5039
|
+
|
5040
|
+
header_params = {}
|
5041
|
+
if request.qa_question&.name
|
5042
|
+
header_params["qa_question.name"] = request.qa_question.name
|
5043
|
+
end
|
5044
|
+
|
5045
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5046
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5047
|
+
|
5048
|
+
options.apply_defaults timeout: @config.rpcs.update_qa_question.timeout,
|
5049
|
+
metadata: metadata,
|
5050
|
+
retry_policy: @config.rpcs.update_qa_question.retry_policy
|
5051
|
+
|
5052
|
+
options.apply_defaults timeout: @config.timeout,
|
5053
|
+
metadata: @config.metadata,
|
5054
|
+
retry_policy: @config.retry_policy
|
5055
|
+
|
5056
|
+
@contact_center_insights_stub.call_rpc :update_qa_question, request, options: options do |response, operation|
|
5057
|
+
yield response, operation if block_given?
|
5058
|
+
end
|
5059
|
+
rescue ::GRPC::BadStatus => e
|
5060
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5061
|
+
end
|
5062
|
+
|
5063
|
+
##
|
5064
|
+
# Deletes a QaQuestion.
|
5065
|
+
#
|
5066
|
+
# @overload delete_qa_question(request, options = nil)
|
5067
|
+
# Pass arguments to `delete_qa_question` via a request object, either of type
|
5068
|
+
# {::Google::Cloud::ContactCenterInsights::V1::DeleteQaQuestionRequest} or an equivalent Hash.
|
5069
|
+
#
|
5070
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::DeleteQaQuestionRequest, ::Hash]
|
5071
|
+
# A request object representing the call parameters. Required. To specify no
|
5072
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5073
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5074
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5075
|
+
#
|
5076
|
+
# @overload delete_qa_question(name: nil)
|
5077
|
+
# Pass arguments to `delete_qa_question` via keyword arguments. Note that at
|
5078
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5079
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5080
|
+
#
|
5081
|
+
# @param name [::String]
|
5082
|
+
# Required. The name of the QaQuestion to delete.
|
5083
|
+
#
|
5084
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5085
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
5086
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5087
|
+
#
|
5088
|
+
# @return [::Google::Protobuf::Empty]
|
5089
|
+
#
|
5090
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5091
|
+
#
|
5092
|
+
# @example Basic example
|
5093
|
+
# require "google/cloud/contact_center_insights/v1"
|
5094
|
+
#
|
5095
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5096
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5097
|
+
#
|
5098
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5099
|
+
# request = Google::Cloud::ContactCenterInsights::V1::DeleteQaQuestionRequest.new
|
5100
|
+
#
|
5101
|
+
# # Call the delete_qa_question method.
|
5102
|
+
# result = client.delete_qa_question request
|
5103
|
+
#
|
5104
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
5105
|
+
# p result
|
5106
|
+
#
|
5107
|
+
def delete_qa_question request, options = nil
|
5108
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5109
|
+
|
5110
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::DeleteQaQuestionRequest
|
5111
|
+
|
5112
|
+
# Converts hash and nil to an options object
|
5113
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5114
|
+
|
5115
|
+
# Customize the options with defaults
|
5116
|
+
metadata = @config.rpcs.delete_qa_question.metadata.to_h
|
5117
|
+
|
5118
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5119
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5120
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5121
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5122
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5123
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5124
|
+
|
5125
|
+
header_params = {}
|
5126
|
+
if request.name
|
5127
|
+
header_params["name"] = request.name
|
5128
|
+
end
|
5129
|
+
|
5130
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5131
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5132
|
+
|
5133
|
+
options.apply_defaults timeout: @config.rpcs.delete_qa_question.timeout,
|
5134
|
+
metadata: metadata,
|
5135
|
+
retry_policy: @config.rpcs.delete_qa_question.retry_policy
|
5136
|
+
|
5137
|
+
options.apply_defaults timeout: @config.timeout,
|
5138
|
+
metadata: @config.metadata,
|
5139
|
+
retry_policy: @config.retry_policy
|
5140
|
+
|
5141
|
+
@contact_center_insights_stub.call_rpc :delete_qa_question, request, options: options do |response, operation|
|
5142
|
+
yield response, operation if block_given?
|
5143
|
+
end
|
5144
|
+
rescue ::GRPC::BadStatus => e
|
5145
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5146
|
+
end
|
5147
|
+
|
5148
|
+
##
|
5149
|
+
# Lists QaQuestions.
|
5150
|
+
#
|
5151
|
+
# @overload list_qa_questions(request, options = nil)
|
5152
|
+
# Pass arguments to `list_qa_questions` via a request object, either of type
|
5153
|
+
# {::Google::Cloud::ContactCenterInsights::V1::ListQaQuestionsRequest} or an equivalent Hash.
|
5154
|
+
#
|
5155
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::ListQaQuestionsRequest, ::Hash]
|
5156
|
+
# A request object representing the call parameters. Required. To specify no
|
5157
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5158
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5159
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5160
|
+
#
|
5161
|
+
# @overload list_qa_questions(parent: nil, page_size: nil, page_token: nil)
|
5162
|
+
# Pass arguments to `list_qa_questions` via keyword arguments. Note that at
|
5163
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5164
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5165
|
+
#
|
5166
|
+
# @param parent [::String]
|
5167
|
+
# Required. The parent resource of the questions.
|
5168
|
+
# @param page_size [::Integer]
|
5169
|
+
# Optional. The maximum number of questions to return in the response. If the
|
5170
|
+
# value is zero, the service will select a default size. A call might return
|
5171
|
+
# fewer objects than requested. A non-empty `next_page_token` in the response
|
5172
|
+
# indicates that more data is available.
|
5173
|
+
# @param page_token [::String]
|
5174
|
+
# Optional. The value returned by the last `ListQaQuestionsResponse`. This
|
5175
|
+
# value indicates that this is a continuation of a prior `ListQaQuestions`
|
5176
|
+
# call and that the system should return the next page of data.
|
5177
|
+
#
|
5178
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5179
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::QaQuestion>]
|
5180
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5181
|
+
#
|
5182
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::QaQuestion>]
|
5183
|
+
#
|
5184
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5185
|
+
#
|
5186
|
+
# @example Basic example
|
5187
|
+
# require "google/cloud/contact_center_insights/v1"
|
5188
|
+
#
|
5189
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5190
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5191
|
+
#
|
5192
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5193
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ListQaQuestionsRequest.new
|
5194
|
+
#
|
5195
|
+
# # Call the list_qa_questions method.
|
5196
|
+
# result = client.list_qa_questions request
|
5197
|
+
#
|
5198
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
5199
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
5200
|
+
# result.each do |item|
|
5201
|
+
# # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::QaQuestion.
|
5202
|
+
# p item
|
5203
|
+
# end
|
5204
|
+
#
|
5205
|
+
def list_qa_questions request, options = nil
|
5206
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5207
|
+
|
5208
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::ListQaQuestionsRequest
|
5209
|
+
|
5210
|
+
# Converts hash and nil to an options object
|
5211
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5212
|
+
|
5213
|
+
# Customize the options with defaults
|
5214
|
+
metadata = @config.rpcs.list_qa_questions.metadata.to_h
|
5215
|
+
|
5216
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5217
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5218
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5219
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5220
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5221
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5222
|
+
|
5223
|
+
header_params = {}
|
5224
|
+
if request.parent
|
5225
|
+
header_params["parent"] = request.parent
|
5226
|
+
end
|
5227
|
+
|
5228
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5229
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5230
|
+
|
5231
|
+
options.apply_defaults timeout: @config.rpcs.list_qa_questions.timeout,
|
5232
|
+
metadata: metadata,
|
5233
|
+
retry_policy: @config.rpcs.list_qa_questions.retry_policy
|
5234
|
+
|
5235
|
+
options.apply_defaults timeout: @config.timeout,
|
5236
|
+
metadata: @config.metadata,
|
5237
|
+
retry_policy: @config.retry_policy
|
5238
|
+
|
5239
|
+
@contact_center_insights_stub.call_rpc :list_qa_questions, request, options: options do |response, operation|
|
5240
|
+
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_qa_questions, request, response, operation, options
|
5241
|
+
yield response, operation if block_given?
|
5242
|
+
throw :response, response
|
5243
|
+
end
|
5244
|
+
rescue ::GRPC::BadStatus => e
|
5245
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5246
|
+
end
|
5247
|
+
|
5248
|
+
##
|
5249
|
+
# Create a QaScorecard.
|
5250
|
+
#
|
5251
|
+
# @overload create_qa_scorecard(request, options = nil)
|
5252
|
+
# Pass arguments to `create_qa_scorecard` via a request object, either of type
|
5253
|
+
# {::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRequest} or an equivalent Hash.
|
5254
|
+
#
|
5255
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRequest, ::Hash]
|
5256
|
+
# A request object representing the call parameters. Required. To specify no
|
5257
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5258
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5259
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5260
|
+
#
|
5261
|
+
# @overload create_qa_scorecard(parent: nil, qa_scorecard: nil, qa_scorecard_id: nil)
|
5262
|
+
# Pass arguments to `create_qa_scorecard` via keyword arguments. Note that at
|
5263
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5264
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5265
|
+
#
|
5266
|
+
# @param parent [::String]
|
5267
|
+
# Required. The parent resource of the QaScorecard.
|
5268
|
+
# @param qa_scorecard [::Google::Cloud::ContactCenterInsights::V1::QaScorecard, ::Hash]
|
5269
|
+
# Required. The QaScorecard to create.
|
5270
|
+
# @param qa_scorecard_id [::String]
|
5271
|
+
# Optional. A unique ID for the new QaScorecard. This ID will become the
|
5272
|
+
# final component of the QaScorecard's resource name. If no ID is specified,
|
5273
|
+
# a server-generated ID will be used.
|
5274
|
+
#
|
5275
|
+
# This value should be 4-64 characters and must match the regular
|
5276
|
+
# expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`.
|
5277
|
+
#
|
5278
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5279
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
5280
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5281
|
+
#
|
5282
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
5283
|
+
#
|
5284
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5285
|
+
#
|
5286
|
+
# @example Basic example
|
5287
|
+
# require "google/cloud/contact_center_insights/v1"
|
5288
|
+
#
|
5289
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5290
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5291
|
+
#
|
5292
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5293
|
+
# request = Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRequest.new
|
5294
|
+
#
|
5295
|
+
# # Call the create_qa_scorecard method.
|
5296
|
+
# result = client.create_qa_scorecard request
|
5297
|
+
#
|
5298
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaScorecard.
|
5299
|
+
# p result
|
5300
|
+
#
|
5301
|
+
def create_qa_scorecard request, options = nil
|
5302
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5303
|
+
|
5304
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRequest
|
5305
|
+
|
5306
|
+
# Converts hash and nil to an options object
|
5307
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5308
|
+
|
5309
|
+
# Customize the options with defaults
|
5310
|
+
metadata = @config.rpcs.create_qa_scorecard.metadata.to_h
|
5311
|
+
|
5312
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5313
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5314
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5315
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5316
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5317
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5318
|
+
|
5319
|
+
header_params = {}
|
5320
|
+
if request.parent
|
5321
|
+
header_params["parent"] = request.parent
|
5322
|
+
end
|
5323
|
+
|
5324
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5325
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5326
|
+
|
5327
|
+
options.apply_defaults timeout: @config.rpcs.create_qa_scorecard.timeout,
|
5328
|
+
metadata: metadata,
|
5329
|
+
retry_policy: @config.rpcs.create_qa_scorecard.retry_policy
|
5330
|
+
|
5331
|
+
options.apply_defaults timeout: @config.timeout,
|
5332
|
+
metadata: @config.metadata,
|
5333
|
+
retry_policy: @config.retry_policy
|
5334
|
+
|
5335
|
+
@contact_center_insights_stub.call_rpc :create_qa_scorecard, request, options: options do |response, operation|
|
5336
|
+
yield response, operation if block_given?
|
5337
|
+
end
|
5338
|
+
rescue ::GRPC::BadStatus => e
|
5339
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5340
|
+
end
|
5341
|
+
|
5342
|
+
##
|
5343
|
+
# Gets a QaScorecard.
|
5344
|
+
#
|
5345
|
+
# @overload get_qa_scorecard(request, options = nil)
|
5346
|
+
# Pass arguments to `get_qa_scorecard` via a request object, either of type
|
5347
|
+
# {::Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRequest} or an equivalent Hash.
|
5348
|
+
#
|
5349
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRequest, ::Hash]
|
5350
|
+
# A request object representing the call parameters. Required. To specify no
|
5351
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5352
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5353
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5354
|
+
#
|
5355
|
+
# @overload get_qa_scorecard(name: nil)
|
5356
|
+
# Pass arguments to `get_qa_scorecard` via keyword arguments. Note that at
|
5357
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5358
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5359
|
+
#
|
5360
|
+
# @param name [::String]
|
5361
|
+
# Required. The name of the QaScorecard to get.
|
5362
|
+
#
|
5363
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5364
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
5365
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5366
|
+
#
|
5367
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
5368
|
+
#
|
5369
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5370
|
+
#
|
5371
|
+
# @example Basic example
|
5372
|
+
# require "google/cloud/contact_center_insights/v1"
|
5373
|
+
#
|
5374
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5375
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5376
|
+
#
|
5377
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5378
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRequest.new
|
5379
|
+
#
|
5380
|
+
# # Call the get_qa_scorecard method.
|
5381
|
+
# result = client.get_qa_scorecard request
|
5382
|
+
#
|
5383
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaScorecard.
|
5384
|
+
# p result
|
5385
|
+
#
|
5386
|
+
def get_qa_scorecard request, options = nil
|
5387
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5388
|
+
|
5389
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRequest
|
5390
|
+
|
5391
|
+
# Converts hash and nil to an options object
|
5392
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5393
|
+
|
5394
|
+
# Customize the options with defaults
|
5395
|
+
metadata = @config.rpcs.get_qa_scorecard.metadata.to_h
|
5396
|
+
|
5397
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5398
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5399
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5400
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5401
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5402
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5403
|
+
|
5404
|
+
header_params = {}
|
5405
|
+
if request.name
|
5406
|
+
header_params["name"] = request.name
|
5407
|
+
end
|
5408
|
+
|
5409
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5410
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5411
|
+
|
5412
|
+
options.apply_defaults timeout: @config.rpcs.get_qa_scorecard.timeout,
|
5413
|
+
metadata: metadata,
|
5414
|
+
retry_policy: @config.rpcs.get_qa_scorecard.retry_policy
|
5415
|
+
|
5416
|
+
options.apply_defaults timeout: @config.timeout,
|
5417
|
+
metadata: @config.metadata,
|
5418
|
+
retry_policy: @config.retry_policy
|
5419
|
+
|
5420
|
+
@contact_center_insights_stub.call_rpc :get_qa_scorecard, request, options: options do |response, operation|
|
5421
|
+
yield response, operation if block_given?
|
5422
|
+
end
|
5423
|
+
rescue ::GRPC::BadStatus => e
|
5424
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5425
|
+
end
|
5426
|
+
|
5427
|
+
##
|
5428
|
+
# Updates a QaScorecard.
|
5429
|
+
#
|
5430
|
+
# @overload update_qa_scorecard(request, options = nil)
|
5431
|
+
# Pass arguments to `update_qa_scorecard` via a request object, either of type
|
5432
|
+
# {::Google::Cloud::ContactCenterInsights::V1::UpdateQaScorecardRequest} or an equivalent Hash.
|
5433
|
+
#
|
5434
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::UpdateQaScorecardRequest, ::Hash]
|
5435
|
+
# A request object representing the call parameters. Required. To specify no
|
5436
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5437
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5438
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5439
|
+
#
|
5440
|
+
# @overload update_qa_scorecard(qa_scorecard: nil, update_mask: nil)
|
5441
|
+
# Pass arguments to `update_qa_scorecard` via keyword arguments. Note that at
|
5442
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5443
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5444
|
+
#
|
5445
|
+
# @param qa_scorecard [::Google::Cloud::ContactCenterInsights::V1::QaScorecard, ::Hash]
|
5446
|
+
# Required. The QaScorecard to update.
|
5447
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
5448
|
+
# Required. The list of fields to be updated. All possible fields can be
|
5449
|
+
# updated by passing `*`, or a subset of the following updateable fields can
|
5450
|
+
# be provided:
|
5451
|
+
#
|
5452
|
+
# * `description`
|
5453
|
+
# * `display_name`
|
5454
|
+
#
|
5455
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5456
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
5457
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5458
|
+
#
|
5459
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecard]
|
5460
|
+
#
|
5461
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5462
|
+
#
|
5463
|
+
# @example Basic example
|
5464
|
+
# require "google/cloud/contact_center_insights/v1"
|
5465
|
+
#
|
5466
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5467
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5468
|
+
#
|
5469
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5470
|
+
# request = Google::Cloud::ContactCenterInsights::V1::UpdateQaScorecardRequest.new
|
5471
|
+
#
|
5472
|
+
# # Call the update_qa_scorecard method.
|
5473
|
+
# result = client.update_qa_scorecard request
|
5474
|
+
#
|
5475
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaScorecard.
|
5476
|
+
# p result
|
5477
|
+
#
|
5478
|
+
def update_qa_scorecard request, options = nil
|
5479
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5480
|
+
|
5481
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::UpdateQaScorecardRequest
|
5482
|
+
|
5483
|
+
# Converts hash and nil to an options object
|
5484
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5485
|
+
|
5486
|
+
# Customize the options with defaults
|
5487
|
+
metadata = @config.rpcs.update_qa_scorecard.metadata.to_h
|
5488
|
+
|
5489
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5490
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5491
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5492
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5493
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5494
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5495
|
+
|
5496
|
+
header_params = {}
|
5497
|
+
if request.qa_scorecard&.name
|
5498
|
+
header_params["qa_scorecard.name"] = request.qa_scorecard.name
|
5499
|
+
end
|
5500
|
+
|
5501
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5502
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5503
|
+
|
5504
|
+
options.apply_defaults timeout: @config.rpcs.update_qa_scorecard.timeout,
|
5505
|
+
metadata: metadata,
|
5506
|
+
retry_policy: @config.rpcs.update_qa_scorecard.retry_policy
|
5507
|
+
|
5508
|
+
options.apply_defaults timeout: @config.timeout,
|
5509
|
+
metadata: @config.metadata,
|
5510
|
+
retry_policy: @config.retry_policy
|
5511
|
+
|
5512
|
+
@contact_center_insights_stub.call_rpc :update_qa_scorecard, request, options: options do |response, operation|
|
5513
|
+
yield response, operation if block_given?
|
5514
|
+
end
|
5515
|
+
rescue ::GRPC::BadStatus => e
|
5516
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5517
|
+
end
|
5518
|
+
|
5519
|
+
##
|
5520
|
+
# Deletes a QaScorecard.
|
5521
|
+
#
|
5522
|
+
# @overload delete_qa_scorecard(request, options = nil)
|
5523
|
+
# Pass arguments to `delete_qa_scorecard` via a request object, either of type
|
5524
|
+
# {::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRequest} or an equivalent Hash.
|
5525
|
+
#
|
5526
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRequest, ::Hash]
|
5527
|
+
# A request object representing the call parameters. Required. To specify no
|
5528
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5529
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5530
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5531
|
+
#
|
5532
|
+
# @overload delete_qa_scorecard(name: nil, force: nil)
|
5533
|
+
# Pass arguments to `delete_qa_scorecard` via keyword arguments. Note that at
|
5534
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5535
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5536
|
+
#
|
5537
|
+
# @param name [::String]
|
5538
|
+
# Required. The name of the QaScorecard to delete.
|
5539
|
+
# @param force [::Boolean]
|
5540
|
+
# Optional. If set to true, all of this QaScorecard's child resources will
|
5541
|
+
# also be deleted. Otherwise, the request will only succeed if it has none.
|
5542
|
+
#
|
5543
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5544
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
5545
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5546
|
+
#
|
5547
|
+
# @return [::Google::Protobuf::Empty]
|
5548
|
+
#
|
5549
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5550
|
+
#
|
5551
|
+
# @example Basic example
|
5552
|
+
# require "google/cloud/contact_center_insights/v1"
|
5553
|
+
#
|
5554
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5555
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5556
|
+
#
|
5557
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5558
|
+
# request = Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRequest.new
|
5559
|
+
#
|
5560
|
+
# # Call the delete_qa_scorecard method.
|
5561
|
+
# result = client.delete_qa_scorecard request
|
5562
|
+
#
|
5563
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
5564
|
+
# p result
|
5565
|
+
#
|
5566
|
+
def delete_qa_scorecard request, options = nil
|
5567
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5568
|
+
|
5569
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRequest
|
5570
|
+
|
5571
|
+
# Converts hash and nil to an options object
|
5572
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5573
|
+
|
5574
|
+
# Customize the options with defaults
|
5575
|
+
metadata = @config.rpcs.delete_qa_scorecard.metadata.to_h
|
5576
|
+
|
5577
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5578
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5579
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5580
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5581
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5582
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5583
|
+
|
5584
|
+
header_params = {}
|
5585
|
+
if request.name
|
5586
|
+
header_params["name"] = request.name
|
5587
|
+
end
|
5588
|
+
|
5589
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5590
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5591
|
+
|
5592
|
+
options.apply_defaults timeout: @config.rpcs.delete_qa_scorecard.timeout,
|
5593
|
+
metadata: metadata,
|
5594
|
+
retry_policy: @config.rpcs.delete_qa_scorecard.retry_policy
|
5595
|
+
|
5596
|
+
options.apply_defaults timeout: @config.timeout,
|
5597
|
+
metadata: @config.metadata,
|
5598
|
+
retry_policy: @config.retry_policy
|
5599
|
+
|
5600
|
+
@contact_center_insights_stub.call_rpc :delete_qa_scorecard, request, options: options do |response, operation|
|
5601
|
+
yield response, operation if block_given?
|
5602
|
+
end
|
5603
|
+
rescue ::GRPC::BadStatus => e
|
5604
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5605
|
+
end
|
5606
|
+
|
5607
|
+
##
|
5608
|
+
# Lists QaScorecards.
|
5609
|
+
#
|
5610
|
+
# @overload list_qa_scorecards(request, options = nil)
|
5611
|
+
# Pass arguments to `list_qa_scorecards` via a request object, either of type
|
5612
|
+
# {::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardsRequest} or an equivalent Hash.
|
5613
|
+
#
|
5614
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardsRequest, ::Hash]
|
5615
|
+
# A request object representing the call parameters. Required. To specify no
|
5616
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5617
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5618
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5619
|
+
#
|
5620
|
+
# @overload list_qa_scorecards(parent: nil, page_size: nil, page_token: nil)
|
5621
|
+
# Pass arguments to `list_qa_scorecards` via keyword arguments. Note that at
|
5622
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5623
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5624
|
+
#
|
5625
|
+
# @param parent [::String]
|
5626
|
+
# Required. The parent resource of the scorecards.
|
5627
|
+
# @param page_size [::Integer]
|
5628
|
+
# Optional. The maximum number of scorecards to return in the response. If
|
5629
|
+
# the value is zero, the service will select a default size. A call might
|
5630
|
+
# return fewer objects than requested. A non-empty `next_page_token` in the
|
5631
|
+
# response indicates that more data is available.
|
5632
|
+
# @param page_token [::String]
|
5633
|
+
# Optional. The value returned by the last `ListQaScorecardsResponse`. This
|
5634
|
+
# value indicates that this is a continuation of a prior `ListQaScorecards`
|
5635
|
+
# call and that the system should return the next page of data.
|
5636
|
+
#
|
5637
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5638
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::QaScorecard>]
|
5639
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5640
|
+
#
|
5641
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::QaScorecard>]
|
5642
|
+
#
|
5643
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5644
|
+
#
|
5645
|
+
# @example Basic example
|
5646
|
+
# require "google/cloud/contact_center_insights/v1"
|
5647
|
+
#
|
5648
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5649
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5650
|
+
#
|
5651
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5652
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ListQaScorecardsRequest.new
|
5653
|
+
#
|
5654
|
+
# # Call the list_qa_scorecards method.
|
5655
|
+
# result = client.list_qa_scorecards request
|
5656
|
+
#
|
5657
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
5658
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
5659
|
+
# result.each do |item|
|
5660
|
+
# # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::QaScorecard.
|
5661
|
+
# p item
|
5662
|
+
# end
|
5663
|
+
#
|
5664
|
+
def list_qa_scorecards request, options = nil
|
5665
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5666
|
+
|
5667
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardsRequest
|
5668
|
+
|
5669
|
+
# Converts hash and nil to an options object
|
5670
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5671
|
+
|
5672
|
+
# Customize the options with defaults
|
5673
|
+
metadata = @config.rpcs.list_qa_scorecards.metadata.to_h
|
5674
|
+
|
5675
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5676
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5677
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5678
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5679
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5680
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5681
|
+
|
5682
|
+
header_params = {}
|
5683
|
+
if request.parent
|
5684
|
+
header_params["parent"] = request.parent
|
5685
|
+
end
|
5686
|
+
|
5687
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5688
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5689
|
+
|
5690
|
+
options.apply_defaults timeout: @config.rpcs.list_qa_scorecards.timeout,
|
5691
|
+
metadata: metadata,
|
5692
|
+
retry_policy: @config.rpcs.list_qa_scorecards.retry_policy
|
5693
|
+
|
5694
|
+
options.apply_defaults timeout: @config.timeout,
|
5695
|
+
metadata: @config.metadata,
|
5696
|
+
retry_policy: @config.retry_policy
|
5697
|
+
|
5698
|
+
@contact_center_insights_stub.call_rpc :list_qa_scorecards, request, options: options do |response, operation|
|
5699
|
+
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_qa_scorecards, request, response, operation, options
|
5700
|
+
yield response, operation if block_given?
|
5701
|
+
throw :response, response
|
5702
|
+
end
|
5703
|
+
rescue ::GRPC::BadStatus => e
|
5704
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5705
|
+
end
|
5706
|
+
|
5707
|
+
##
|
5708
|
+
# Creates a QaScorecardRevision.
|
5709
|
+
#
|
5710
|
+
# @overload create_qa_scorecard_revision(request, options = nil)
|
5711
|
+
# Pass arguments to `create_qa_scorecard_revision` via a request object, either of type
|
5712
|
+
# {::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRevisionRequest} or an equivalent Hash.
|
5713
|
+
#
|
5714
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRevisionRequest, ::Hash]
|
5715
|
+
# A request object representing the call parameters. Required. To specify no
|
5716
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5717
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5718
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5719
|
+
#
|
5720
|
+
# @overload create_qa_scorecard_revision(parent: nil, qa_scorecard_revision: nil, qa_scorecard_revision_id: nil)
|
5721
|
+
# Pass arguments to `create_qa_scorecard_revision` via keyword arguments. Note that at
|
5722
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5723
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5724
|
+
#
|
5725
|
+
# @param parent [::String]
|
5726
|
+
# Required. The parent resource of the QaScorecardRevision.
|
5727
|
+
# @param qa_scorecard_revision [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision, ::Hash]
|
5728
|
+
# Required. The QaScorecardRevision to create.
|
5729
|
+
# @param qa_scorecard_revision_id [::String]
|
5730
|
+
# Optional. A unique ID for the new QaScorecardRevision. This ID will become
|
5731
|
+
# the final component of the QaScorecardRevision's resource name. If no ID is
|
5732
|
+
# specified, a server-generated ID will be used.
|
5733
|
+
#
|
5734
|
+
# This value should be 4-64 characters and must match the regular
|
5735
|
+
# expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`.
|
5736
|
+
#
|
5737
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5738
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
5739
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5740
|
+
#
|
5741
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
5742
|
+
#
|
5743
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5744
|
+
#
|
5745
|
+
# @example Basic example
|
5746
|
+
# require "google/cloud/contact_center_insights/v1"
|
5747
|
+
#
|
5748
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5749
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5750
|
+
#
|
5751
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5752
|
+
# request = Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRevisionRequest.new
|
5753
|
+
#
|
5754
|
+
# # Call the create_qa_scorecard_revision method.
|
5755
|
+
# result = client.create_qa_scorecard_revision request
|
5756
|
+
#
|
5757
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision.
|
5758
|
+
# p result
|
5759
|
+
#
|
5760
|
+
def create_qa_scorecard_revision request, options = nil
|
5761
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5762
|
+
|
5763
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRevisionRequest
|
5764
|
+
|
5765
|
+
# Converts hash and nil to an options object
|
5766
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5767
|
+
|
5768
|
+
# Customize the options with defaults
|
5769
|
+
metadata = @config.rpcs.create_qa_scorecard_revision.metadata.to_h
|
5770
|
+
|
5771
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5772
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5773
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5774
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5775
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5776
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5777
|
+
|
5778
|
+
header_params = {}
|
5779
|
+
if request.parent
|
5780
|
+
header_params["parent"] = request.parent
|
5781
|
+
end
|
5782
|
+
|
5783
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5784
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5785
|
+
|
5786
|
+
options.apply_defaults timeout: @config.rpcs.create_qa_scorecard_revision.timeout,
|
5787
|
+
metadata: metadata,
|
5788
|
+
retry_policy: @config.rpcs.create_qa_scorecard_revision.retry_policy
|
5789
|
+
|
5790
|
+
options.apply_defaults timeout: @config.timeout,
|
5791
|
+
metadata: @config.metadata,
|
5792
|
+
retry_policy: @config.retry_policy
|
5793
|
+
|
5794
|
+
@contact_center_insights_stub.call_rpc :create_qa_scorecard_revision, request, options: options do |response, operation|
|
5795
|
+
yield response, operation if block_given?
|
5796
|
+
end
|
5797
|
+
rescue ::GRPC::BadStatus => e
|
5798
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5799
|
+
end
|
5800
|
+
|
5801
|
+
##
|
5802
|
+
# Gets a QaScorecardRevision.
|
5803
|
+
#
|
5804
|
+
# @overload get_qa_scorecard_revision(request, options = nil)
|
5805
|
+
# Pass arguments to `get_qa_scorecard_revision` via a request object, either of type
|
5806
|
+
# {::Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRevisionRequest} or an equivalent Hash.
|
5807
|
+
#
|
5808
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRevisionRequest, ::Hash]
|
5809
|
+
# A request object representing the call parameters. Required. To specify no
|
5810
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5811
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5812
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5813
|
+
#
|
5814
|
+
# @overload get_qa_scorecard_revision(name: nil)
|
5815
|
+
# Pass arguments to `get_qa_scorecard_revision` via keyword arguments. Note that at
|
5816
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5817
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5818
|
+
#
|
5819
|
+
# @param name [::String]
|
5820
|
+
# Required. The name of the QaScorecardRevision to get.
|
5821
|
+
#
|
5822
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5823
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
5824
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5825
|
+
#
|
5826
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
5827
|
+
#
|
5828
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5829
|
+
#
|
5830
|
+
# @example Basic example
|
5831
|
+
# require "google/cloud/contact_center_insights/v1"
|
5832
|
+
#
|
5833
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5834
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5835
|
+
#
|
5836
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5837
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRevisionRequest.new
|
5838
|
+
#
|
5839
|
+
# # Call the get_qa_scorecard_revision method.
|
5840
|
+
# result = client.get_qa_scorecard_revision request
|
5841
|
+
#
|
5842
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision.
|
5843
|
+
# p result
|
5844
|
+
#
|
5845
|
+
def get_qa_scorecard_revision request, options = nil
|
5846
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5847
|
+
|
5848
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::GetQaScorecardRevisionRequest
|
5849
|
+
|
5850
|
+
# Converts hash and nil to an options object
|
5851
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5852
|
+
|
5853
|
+
# Customize the options with defaults
|
5854
|
+
metadata = @config.rpcs.get_qa_scorecard_revision.metadata.to_h
|
5855
|
+
|
5856
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5857
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5858
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5859
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5860
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5861
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5862
|
+
|
5863
|
+
header_params = {}
|
5864
|
+
if request.name
|
5865
|
+
header_params["name"] = request.name
|
5866
|
+
end
|
5867
|
+
|
5868
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5869
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5870
|
+
|
5871
|
+
options.apply_defaults timeout: @config.rpcs.get_qa_scorecard_revision.timeout,
|
5872
|
+
metadata: metadata,
|
5873
|
+
retry_policy: @config.rpcs.get_qa_scorecard_revision.retry_policy
|
5874
|
+
|
5875
|
+
options.apply_defaults timeout: @config.timeout,
|
5876
|
+
metadata: @config.metadata,
|
5877
|
+
retry_policy: @config.retry_policy
|
5878
|
+
|
5879
|
+
@contact_center_insights_stub.call_rpc :get_qa_scorecard_revision, request, options: options do |response, operation|
|
5880
|
+
yield response, operation if block_given?
|
5881
|
+
end
|
5882
|
+
rescue ::GRPC::BadStatus => e
|
5883
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5884
|
+
end
|
5885
|
+
|
5886
|
+
##
|
5887
|
+
# Fine tune one or more QaModels.
|
5888
|
+
#
|
5889
|
+
# @overload tune_qa_scorecard_revision(request, options = nil)
|
5890
|
+
# Pass arguments to `tune_qa_scorecard_revision` via a request object, either of type
|
5891
|
+
# {::Google::Cloud::ContactCenterInsights::V1::TuneQaScorecardRevisionRequest} or an equivalent Hash.
|
5892
|
+
#
|
5893
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::TuneQaScorecardRevisionRequest, ::Hash]
|
5894
|
+
# A request object representing the call parameters. Required. To specify no
|
5895
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
5896
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
5897
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
5898
|
+
#
|
5899
|
+
# @overload tune_qa_scorecard_revision(parent: nil, filter: nil, validate_only: nil)
|
5900
|
+
# Pass arguments to `tune_qa_scorecard_revision` via keyword arguments. Note that at
|
5901
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
5902
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
5903
|
+
#
|
5904
|
+
# @param parent [::String]
|
5905
|
+
# Required. The parent resource for new fine tuning job instance.
|
5906
|
+
# @param filter [::String]
|
5907
|
+
# Required. Filter for selecting the feedback labels that needs to be
|
5908
|
+
# used for training.
|
5909
|
+
# This filter can be used to limit the feedback labels used for tuning to a
|
5910
|
+
# feedback labels created or updated for a specific time-window etc.
|
5911
|
+
# @param validate_only [::Boolean]
|
5912
|
+
# Optional. Run in validate only mode, no fine tuning will actually run.
|
5913
|
+
# Data quality validations like training data distributions will run.
|
5914
|
+
# Even when set to false, the data quality validations will still run but
|
5915
|
+
# once the validations complete we will proceed with the fine tune, if
|
5916
|
+
# applicable.
|
5917
|
+
#
|
5918
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
5919
|
+
# @yieldparam response [::Gapic::Operation]
|
5920
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
5921
|
+
#
|
5922
|
+
# @return [::Gapic::Operation]
|
5923
|
+
#
|
5924
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
5925
|
+
#
|
5926
|
+
# @example Basic example
|
5927
|
+
# require "google/cloud/contact_center_insights/v1"
|
5928
|
+
#
|
5929
|
+
# # Create a client object. The client can be reused for multiple calls.
|
5930
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
5931
|
+
#
|
5932
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
5933
|
+
# request = Google::Cloud::ContactCenterInsights::V1::TuneQaScorecardRevisionRequest.new
|
5934
|
+
#
|
5935
|
+
# # Call the tune_qa_scorecard_revision method.
|
5936
|
+
# result = client.tune_qa_scorecard_revision request
|
5937
|
+
#
|
5938
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
5939
|
+
# # check the status of an operation, cancel it, or wait for results.
|
5940
|
+
# # Here is how to wait for a response.
|
5941
|
+
# result.wait_until_done! timeout: 60
|
5942
|
+
# if result.response?
|
5943
|
+
# p result.response
|
5944
|
+
# else
|
5945
|
+
# puts "No response received."
|
5946
|
+
# end
|
5947
|
+
#
|
5948
|
+
def tune_qa_scorecard_revision request, options = nil
|
5949
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
5950
|
+
|
5951
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::TuneQaScorecardRevisionRequest
|
5952
|
+
|
5953
|
+
# Converts hash and nil to an options object
|
5954
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
5955
|
+
|
5956
|
+
# Customize the options with defaults
|
5957
|
+
metadata = @config.rpcs.tune_qa_scorecard_revision.metadata.to_h
|
5958
|
+
|
5959
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
5960
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
5961
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
5962
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
5963
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
5964
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
5965
|
+
|
5966
|
+
header_params = {}
|
5967
|
+
if request.parent
|
5968
|
+
header_params["parent"] = request.parent
|
5969
|
+
end
|
5970
|
+
|
5971
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
5972
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
5973
|
+
|
5974
|
+
options.apply_defaults timeout: @config.rpcs.tune_qa_scorecard_revision.timeout,
|
5975
|
+
metadata: metadata,
|
5976
|
+
retry_policy: @config.rpcs.tune_qa_scorecard_revision.retry_policy
|
5977
|
+
|
5978
|
+
options.apply_defaults timeout: @config.timeout,
|
5979
|
+
metadata: @config.metadata,
|
5980
|
+
retry_policy: @config.retry_policy
|
5981
|
+
|
5982
|
+
@contact_center_insights_stub.call_rpc :tune_qa_scorecard_revision, request, options: options do |response, operation|
|
5983
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
5984
|
+
yield response, operation if block_given?
|
5985
|
+
throw :response, response
|
5986
|
+
end
|
5987
|
+
rescue ::GRPC::BadStatus => e
|
5988
|
+
raise ::Google::Cloud::Error.from_error(e)
|
5989
|
+
end
|
5990
|
+
|
5991
|
+
##
|
5992
|
+
# Deploy a QaScorecardRevision.
|
5993
|
+
#
|
5994
|
+
# @overload deploy_qa_scorecard_revision(request, options = nil)
|
5995
|
+
# Pass arguments to `deploy_qa_scorecard_revision` via a request object, either of type
|
5996
|
+
# {::Google::Cloud::ContactCenterInsights::V1::DeployQaScorecardRevisionRequest} or an equivalent Hash.
|
5997
|
+
#
|
5998
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::DeployQaScorecardRevisionRequest, ::Hash]
|
5999
|
+
# A request object representing the call parameters. Required. To specify no
|
6000
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6001
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6002
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6003
|
+
#
|
6004
|
+
# @overload deploy_qa_scorecard_revision(name: nil)
|
6005
|
+
# Pass arguments to `deploy_qa_scorecard_revision` via keyword arguments. Note that at
|
6006
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6007
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6008
|
+
#
|
6009
|
+
# @param name [::String]
|
6010
|
+
# Required. The name of the QaScorecardRevision to deploy.
|
6011
|
+
#
|
6012
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6013
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
6014
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6015
|
+
#
|
6016
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
6017
|
+
#
|
6018
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6019
|
+
#
|
6020
|
+
# @example Basic example
|
6021
|
+
# require "google/cloud/contact_center_insights/v1"
|
6022
|
+
#
|
6023
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6024
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
6025
|
+
#
|
6026
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6027
|
+
# request = Google::Cloud::ContactCenterInsights::V1::DeployQaScorecardRevisionRequest.new
|
6028
|
+
#
|
6029
|
+
# # Call the deploy_qa_scorecard_revision method.
|
6030
|
+
# result = client.deploy_qa_scorecard_revision request
|
6031
|
+
#
|
6032
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision.
|
6033
|
+
# p result
|
6034
|
+
#
|
6035
|
+
def deploy_qa_scorecard_revision request, options = nil
|
6036
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6037
|
+
|
6038
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::DeployQaScorecardRevisionRequest
|
6039
|
+
|
6040
|
+
# Converts hash and nil to an options object
|
6041
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6042
|
+
|
6043
|
+
# Customize the options with defaults
|
6044
|
+
metadata = @config.rpcs.deploy_qa_scorecard_revision.metadata.to_h
|
6045
|
+
|
6046
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
6047
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6048
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6049
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
6050
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
6051
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6052
|
+
|
6053
|
+
header_params = {}
|
6054
|
+
if request.name
|
6055
|
+
header_params["name"] = request.name
|
6056
|
+
end
|
6057
|
+
|
6058
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6059
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6060
|
+
|
6061
|
+
options.apply_defaults timeout: @config.rpcs.deploy_qa_scorecard_revision.timeout,
|
6062
|
+
metadata: metadata,
|
6063
|
+
retry_policy: @config.rpcs.deploy_qa_scorecard_revision.retry_policy
|
6064
|
+
|
6065
|
+
options.apply_defaults timeout: @config.timeout,
|
6066
|
+
metadata: @config.metadata,
|
6067
|
+
retry_policy: @config.retry_policy
|
6068
|
+
|
6069
|
+
@contact_center_insights_stub.call_rpc :deploy_qa_scorecard_revision, request, options: options do |response, operation|
|
6070
|
+
yield response, operation if block_given?
|
6071
|
+
end
|
6072
|
+
rescue ::GRPC::BadStatus => e
|
6073
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6074
|
+
end
|
6075
|
+
|
6076
|
+
##
|
6077
|
+
# Undeploy a QaScorecardRevision.
|
6078
|
+
#
|
6079
|
+
# @overload undeploy_qa_scorecard_revision(request, options = nil)
|
6080
|
+
# Pass arguments to `undeploy_qa_scorecard_revision` via a request object, either of type
|
6081
|
+
# {::Google::Cloud::ContactCenterInsights::V1::UndeployQaScorecardRevisionRequest} or an equivalent Hash.
|
6082
|
+
#
|
6083
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::UndeployQaScorecardRevisionRequest, ::Hash]
|
6084
|
+
# A request object representing the call parameters. Required. To specify no
|
6085
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6086
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6087
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6088
|
+
#
|
6089
|
+
# @overload undeploy_qa_scorecard_revision(name: nil)
|
6090
|
+
# Pass arguments to `undeploy_qa_scorecard_revision` via keyword arguments. Note that at
|
6091
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6092
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6093
|
+
#
|
6094
|
+
# @param name [::String]
|
6095
|
+
# Required. The name of the QaScorecardRevision to undeploy.
|
6096
|
+
#
|
6097
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6098
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
6099
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6100
|
+
#
|
6101
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision]
|
6102
|
+
#
|
6103
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6104
|
+
#
|
6105
|
+
# @example Basic example
|
6106
|
+
# require "google/cloud/contact_center_insights/v1"
|
6107
|
+
#
|
6108
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6109
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
6110
|
+
#
|
6111
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6112
|
+
# request = Google::Cloud::ContactCenterInsights::V1::UndeployQaScorecardRevisionRequest.new
|
6113
|
+
#
|
6114
|
+
# # Call the undeploy_qa_scorecard_revision method.
|
6115
|
+
# result = client.undeploy_qa_scorecard_revision request
|
6116
|
+
#
|
6117
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision.
|
6118
|
+
# p result
|
6119
|
+
#
|
6120
|
+
def undeploy_qa_scorecard_revision request, options = nil
|
6121
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6122
|
+
|
6123
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::UndeployQaScorecardRevisionRequest
|
6124
|
+
|
6125
|
+
# Converts hash and nil to an options object
|
6126
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6127
|
+
|
6128
|
+
# Customize the options with defaults
|
6129
|
+
metadata = @config.rpcs.undeploy_qa_scorecard_revision.metadata.to_h
|
6130
|
+
|
6131
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
6132
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6133
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6134
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
6135
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
6136
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6137
|
+
|
6138
|
+
header_params = {}
|
6139
|
+
if request.name
|
6140
|
+
header_params["name"] = request.name
|
6141
|
+
end
|
6142
|
+
|
6143
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6144
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6145
|
+
|
6146
|
+
options.apply_defaults timeout: @config.rpcs.undeploy_qa_scorecard_revision.timeout,
|
6147
|
+
metadata: metadata,
|
6148
|
+
retry_policy: @config.rpcs.undeploy_qa_scorecard_revision.retry_policy
|
6149
|
+
|
6150
|
+
options.apply_defaults timeout: @config.timeout,
|
6151
|
+
metadata: @config.metadata,
|
6152
|
+
retry_policy: @config.retry_policy
|
6153
|
+
|
6154
|
+
@contact_center_insights_stub.call_rpc :undeploy_qa_scorecard_revision, request, options: options do |response, operation|
|
6155
|
+
yield response, operation if block_given?
|
6156
|
+
end
|
6157
|
+
rescue ::GRPC::BadStatus => e
|
6158
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6159
|
+
end
|
6160
|
+
|
6161
|
+
##
|
6162
|
+
# Deletes a QaScorecardRevision.
|
6163
|
+
#
|
6164
|
+
# @overload delete_qa_scorecard_revision(request, options = nil)
|
6165
|
+
# Pass arguments to `delete_qa_scorecard_revision` via a request object, either of type
|
6166
|
+
# {::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRevisionRequest} or an equivalent Hash.
|
6167
|
+
#
|
6168
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRevisionRequest, ::Hash]
|
6169
|
+
# A request object representing the call parameters. Required. To specify no
|
6170
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6171
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6172
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6173
|
+
#
|
6174
|
+
# @overload delete_qa_scorecard_revision(name: nil, force: nil)
|
6175
|
+
# Pass arguments to `delete_qa_scorecard_revision` via keyword arguments. Note that at
|
6176
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6177
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6178
|
+
#
|
6179
|
+
# @param name [::String]
|
6180
|
+
# Required. The name of the QaScorecardRevision to delete.
|
6181
|
+
# @param force [::Boolean]
|
6182
|
+
# Optional. If set to true, all of this QaScorecardRevision's child resources
|
6183
|
+
# will also be deleted. Otherwise, the request will only succeed if it has
|
6184
|
+
# none.
|
6185
|
+
#
|
6186
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6187
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
6188
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6189
|
+
#
|
6190
|
+
# @return [::Google::Protobuf::Empty]
|
6191
|
+
#
|
6192
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6193
|
+
#
|
6194
|
+
# @example Basic example
|
6195
|
+
# require "google/cloud/contact_center_insights/v1"
|
6196
|
+
#
|
6197
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6198
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
6199
|
+
#
|
6200
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6201
|
+
# request = Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRevisionRequest.new
|
6202
|
+
#
|
6203
|
+
# # Call the delete_qa_scorecard_revision method.
|
6204
|
+
# result = client.delete_qa_scorecard_revision request
|
6205
|
+
#
|
6206
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
6207
|
+
# p result
|
6208
|
+
#
|
6209
|
+
def delete_qa_scorecard_revision request, options = nil
|
6210
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6211
|
+
|
6212
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRevisionRequest
|
6213
|
+
|
6214
|
+
# Converts hash and nil to an options object
|
6215
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6216
|
+
|
6217
|
+
# Customize the options with defaults
|
6218
|
+
metadata = @config.rpcs.delete_qa_scorecard_revision.metadata.to_h
|
6219
|
+
|
6220
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
6221
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6222
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6223
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
6224
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
6225
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6226
|
+
|
6227
|
+
header_params = {}
|
6228
|
+
if request.name
|
6229
|
+
header_params["name"] = request.name
|
6230
|
+
end
|
6231
|
+
|
6232
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6233
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6234
|
+
|
6235
|
+
options.apply_defaults timeout: @config.rpcs.delete_qa_scorecard_revision.timeout,
|
6236
|
+
metadata: metadata,
|
6237
|
+
retry_policy: @config.rpcs.delete_qa_scorecard_revision.retry_policy
|
6238
|
+
|
6239
|
+
options.apply_defaults timeout: @config.timeout,
|
6240
|
+
metadata: @config.metadata,
|
6241
|
+
retry_policy: @config.retry_policy
|
6242
|
+
|
6243
|
+
@contact_center_insights_stub.call_rpc :delete_qa_scorecard_revision, request, options: options do |response, operation|
|
6244
|
+
yield response, operation if block_given?
|
6245
|
+
end
|
6246
|
+
rescue ::GRPC::BadStatus => e
|
6247
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6248
|
+
end
|
6249
|
+
|
6250
|
+
##
|
6251
|
+
# Lists all revisions under the parent QaScorecard.
|
6252
|
+
#
|
6253
|
+
# @overload list_qa_scorecard_revisions(request, options = nil)
|
6254
|
+
# Pass arguments to `list_qa_scorecard_revisions` via a request object, either of type
|
6255
|
+
# {::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardRevisionsRequest} or an equivalent Hash.
|
6256
|
+
#
|
6257
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardRevisionsRequest, ::Hash]
|
6258
|
+
# A request object representing the call parameters. Required. To specify no
|
6259
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6260
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6261
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6262
|
+
#
|
6263
|
+
# @overload list_qa_scorecard_revisions(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
6264
|
+
# Pass arguments to `list_qa_scorecard_revisions` via keyword arguments. Note that at
|
6265
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6266
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6267
|
+
#
|
6268
|
+
# @param parent [::String]
|
6269
|
+
# Required. The parent resource of the scorecard revisions. To list all
|
6270
|
+
# revisions of all scorecards, substitute the QaScorecard ID with a '-'
|
6271
|
+
# character.
|
6272
|
+
# @param page_size [::Integer]
|
6273
|
+
# Optional. The maximum number of scorecard revisions to return in the
|
6274
|
+
# response. If the value is zero, the service will select a default size. A
|
6275
|
+
# call might return fewer objects than requested. A non-empty
|
6276
|
+
# `next_page_token` in the response indicates that more data is available.
|
6277
|
+
# @param page_token [::String]
|
6278
|
+
# Optional. The value returned by the last
|
6279
|
+
# `ListQaScorecardRevisionsResponse`. This value indicates that this is a
|
6280
|
+
# continuation of a prior `ListQaScorecardRevisions` call and that the system
|
6281
|
+
# should return the next page of data.
|
6282
|
+
# @param filter [::String]
|
6283
|
+
# Optional. A filter to reduce results to a specific subset. Useful for
|
6284
|
+
# querying scorecard revisions with specific properties.
|
6285
|
+
#
|
6286
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6287
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision>]
|
6288
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6289
|
+
#
|
6290
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision>]
|
6291
|
+
#
|
6292
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6293
|
+
#
|
6294
|
+
# @example Basic example
|
6295
|
+
# require "google/cloud/contact_center_insights/v1"
|
6296
|
+
#
|
6297
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6298
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
6299
|
+
#
|
6300
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6301
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ListQaScorecardRevisionsRequest.new
|
6302
|
+
#
|
6303
|
+
# # Call the list_qa_scorecard_revisions method.
|
6304
|
+
# result = client.list_qa_scorecard_revisions request
|
6305
|
+
#
|
6306
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
6307
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
6308
|
+
# result.each do |item|
|
6309
|
+
# # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision.
|
6310
|
+
# p item
|
6311
|
+
# end
|
6312
|
+
#
|
6313
|
+
def list_qa_scorecard_revisions request, options = nil
|
6314
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6315
|
+
|
6316
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::ListQaScorecardRevisionsRequest
|
6317
|
+
|
6318
|
+
# Converts hash and nil to an options object
|
6319
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6320
|
+
|
6321
|
+
# Customize the options with defaults
|
6322
|
+
metadata = @config.rpcs.list_qa_scorecard_revisions.metadata.to_h
|
6323
|
+
|
6324
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
6325
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6326
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6327
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
6328
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
6329
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6330
|
+
|
6331
|
+
header_params = {}
|
6332
|
+
if request.parent
|
6333
|
+
header_params["parent"] = request.parent
|
6334
|
+
end
|
6335
|
+
|
6336
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6337
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6338
|
+
|
6339
|
+
options.apply_defaults timeout: @config.rpcs.list_qa_scorecard_revisions.timeout,
|
6340
|
+
metadata: metadata,
|
6341
|
+
retry_policy: @config.rpcs.list_qa_scorecard_revisions.retry_policy
|
6342
|
+
|
6343
|
+
options.apply_defaults timeout: @config.timeout,
|
6344
|
+
metadata: @config.metadata,
|
6345
|
+
retry_policy: @config.retry_policy
|
6346
|
+
|
6347
|
+
@contact_center_insights_stub.call_rpc :list_qa_scorecard_revisions, request, options: options do |response, operation|
|
6348
|
+
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_qa_scorecard_revisions, request, response, operation, options
|
6349
|
+
yield response, operation if block_given?
|
6350
|
+
throw :response, response
|
6351
|
+
end
|
6352
|
+
rescue ::GRPC::BadStatus => e
|
6353
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6354
|
+
end
|
6355
|
+
|
6356
|
+
##
|
6357
|
+
# Create feedback label.
|
6358
|
+
#
|
6359
|
+
# @overload create_feedback_label(request, options = nil)
|
6360
|
+
# Pass arguments to `create_feedback_label` via a request object, either of type
|
6361
|
+
# {::Google::Cloud::ContactCenterInsights::V1::CreateFeedbackLabelRequest} or an equivalent Hash.
|
6362
|
+
#
|
6363
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::CreateFeedbackLabelRequest, ::Hash]
|
6364
|
+
# A request object representing the call parameters. Required. To specify no
|
6365
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6366
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6367
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6368
|
+
#
|
6369
|
+
# @overload create_feedback_label(parent: nil, feedback_label_id: nil, feedback_label: nil)
|
6370
|
+
# Pass arguments to `create_feedback_label` via keyword arguments. Note that at
|
6371
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6372
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6373
|
+
#
|
6374
|
+
# @param parent [::String]
|
6375
|
+
# Required. The parent resource of the feedback label.
|
6376
|
+
# @param feedback_label_id [::String]
|
6377
|
+
# Optional. The ID of the feedback label to create.
|
6378
|
+
# If one is not specified it will be generated by the server.
|
6379
|
+
# @param feedback_label [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel, ::Hash]
|
6380
|
+
# Required. The feedback label to create.
|
6381
|
+
#
|
6382
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6383
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
6384
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6385
|
+
#
|
6386
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
6387
|
+
#
|
6388
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6389
|
+
#
|
6390
|
+
# @example Basic example
|
6391
|
+
# require "google/cloud/contact_center_insights/v1"
|
6392
|
+
#
|
6393
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6394
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
6395
|
+
#
|
6396
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6397
|
+
# request = Google::Cloud::ContactCenterInsights::V1::CreateFeedbackLabelRequest.new
|
6398
|
+
#
|
6399
|
+
# # Call the create_feedback_label method.
|
6400
|
+
# result = client.create_feedback_label request
|
6401
|
+
#
|
6402
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::FeedbackLabel.
|
6403
|
+
# p result
|
6404
|
+
#
|
6405
|
+
def create_feedback_label request, options = nil
|
6406
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6407
|
+
|
6408
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::CreateFeedbackLabelRequest
|
6409
|
+
|
6410
|
+
# Converts hash and nil to an options object
|
6411
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6412
|
+
|
6413
|
+
# Customize the options with defaults
|
6414
|
+
metadata = @config.rpcs.create_feedback_label.metadata.to_h
|
6415
|
+
|
6416
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
6417
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6418
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6419
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
6420
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
6421
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6422
|
+
|
6423
|
+
header_params = {}
|
6424
|
+
if request.parent
|
6425
|
+
header_params["parent"] = request.parent
|
6426
|
+
end
|
6427
|
+
|
6428
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6429
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6430
|
+
|
6431
|
+
options.apply_defaults timeout: @config.rpcs.create_feedback_label.timeout,
|
6432
|
+
metadata: metadata,
|
6433
|
+
retry_policy: @config.rpcs.create_feedback_label.retry_policy
|
6434
|
+
|
6435
|
+
options.apply_defaults timeout: @config.timeout,
|
6436
|
+
metadata: @config.metadata,
|
6437
|
+
retry_policy: @config.retry_policy
|
6438
|
+
|
6439
|
+
@contact_center_insights_stub.call_rpc :create_feedback_label, request, options: options do |response, operation|
|
6440
|
+
yield response, operation if block_given?
|
6441
|
+
end
|
6442
|
+
rescue ::GRPC::BadStatus => e
|
6443
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6444
|
+
end
|
6445
|
+
|
6446
|
+
##
|
6447
|
+
# List feedback labels.
|
6448
|
+
#
|
6449
|
+
# @overload list_feedback_labels(request, options = nil)
|
6450
|
+
# Pass arguments to `list_feedback_labels` via a request object, either of type
|
6451
|
+
# {::Google::Cloud::ContactCenterInsights::V1::ListFeedbackLabelsRequest} or an equivalent Hash.
|
6452
|
+
#
|
6453
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::ListFeedbackLabelsRequest, ::Hash]
|
6454
|
+
# A request object representing the call parameters. Required. To specify no
|
6455
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6456
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6457
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6458
|
+
#
|
6459
|
+
# @overload list_feedback_labels(parent: nil, filter: nil, page_size: nil, page_token: nil)
|
6460
|
+
# Pass arguments to `list_feedback_labels` via keyword arguments. Note that at
|
6461
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6462
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6463
|
+
#
|
6464
|
+
# @param parent [::String]
|
6465
|
+
# Required. The parent resource of the feedback labels.
|
6466
|
+
# @param filter [::String]
|
6467
|
+
# Optional. A filter to reduce results to a specific subset. Supports
|
6468
|
+
# disjunctions (OR) and conjunctions (AND). Automatically sorts by
|
6469
|
+
# conversation ID. To sort by all feedback labels in a project see
|
6470
|
+
# ListAllFeedbackLabels.
|
6471
|
+
#
|
6472
|
+
# Supported fields:
|
6473
|
+
#
|
6474
|
+
# * `issue_model_id`
|
6475
|
+
# * `qa_question_id`
|
6476
|
+
# * `qa_scorecard_id`
|
6477
|
+
# * `min_create_time`
|
6478
|
+
# * `max_create_time`
|
6479
|
+
# * `min_update_time`
|
6480
|
+
# * `max_update_time`
|
6481
|
+
# * `feedback_label_type`: QUALITY_AI, TOPIC_MODELING
|
6482
|
+
# @param page_size [::Integer]
|
6483
|
+
# Optional. The maximum number of feedback labels to return in the response.
|
6484
|
+
# A valid page size ranges from 0 to 100,000 inclusive. If the page size is
|
6485
|
+
# zero or unspecified, a default page size of 100 will be chosen. Note that a
|
6486
|
+
# call might return fewer results than the requested page size.
|
6487
|
+
# @param page_token [::String]
|
6488
|
+
# Optional. The value returned by the last `ListFeedbackLabelsResponse`. This
|
6489
|
+
# value indicates that this is a continuation of a prior `ListFeedbackLabels`
|
6490
|
+
# call and that the system should return the next page of data.
|
6491
|
+
#
|
6492
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6493
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel>]
|
6494
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6495
|
+
#
|
6496
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel>]
|
6497
|
+
#
|
6498
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6499
|
+
#
|
6500
|
+
# @example Basic example
|
6501
|
+
# require "google/cloud/contact_center_insights/v1"
|
6502
|
+
#
|
6503
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6504
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
6505
|
+
#
|
6506
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6507
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ListFeedbackLabelsRequest.new
|
6508
|
+
#
|
6509
|
+
# # Call the list_feedback_labels method.
|
6510
|
+
# result = client.list_feedback_labels request
|
6511
|
+
#
|
6512
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
6513
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
6514
|
+
# result.each do |item|
|
6515
|
+
# # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel.
|
6516
|
+
# p item
|
6517
|
+
# end
|
6518
|
+
#
|
6519
|
+
def list_feedback_labels request, options = nil
|
6520
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6521
|
+
|
6522
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::ListFeedbackLabelsRequest
|
6523
|
+
|
6524
|
+
# Converts hash and nil to an options object
|
6525
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6526
|
+
|
6527
|
+
# Customize the options with defaults
|
6528
|
+
metadata = @config.rpcs.list_feedback_labels.metadata.to_h
|
6529
|
+
|
6530
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
6531
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6532
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6533
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
6534
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
6535
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6536
|
+
|
6537
|
+
header_params = {}
|
6538
|
+
if request.parent
|
6539
|
+
header_params["parent"] = request.parent
|
6540
|
+
end
|
6541
|
+
|
6542
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6543
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6544
|
+
|
6545
|
+
options.apply_defaults timeout: @config.rpcs.list_feedback_labels.timeout,
|
6546
|
+
metadata: metadata,
|
6547
|
+
retry_policy: @config.rpcs.list_feedback_labels.retry_policy
|
6548
|
+
|
6549
|
+
options.apply_defaults timeout: @config.timeout,
|
6550
|
+
metadata: @config.metadata,
|
6551
|
+
retry_policy: @config.retry_policy
|
6552
|
+
|
6553
|
+
@contact_center_insights_stub.call_rpc :list_feedback_labels, request, options: options do |response, operation|
|
6554
|
+
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_feedback_labels, request, response, operation, options
|
6555
|
+
yield response, operation if block_given?
|
6556
|
+
throw :response, response
|
6557
|
+
end
|
6558
|
+
rescue ::GRPC::BadStatus => e
|
6559
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6560
|
+
end
|
6561
|
+
|
6562
|
+
##
|
6563
|
+
# Get feedback label.
|
6564
|
+
#
|
6565
|
+
# @overload get_feedback_label(request, options = nil)
|
6566
|
+
# Pass arguments to `get_feedback_label` via a request object, either of type
|
6567
|
+
# {::Google::Cloud::ContactCenterInsights::V1::GetFeedbackLabelRequest} or an equivalent Hash.
|
6568
|
+
#
|
6569
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::GetFeedbackLabelRequest, ::Hash]
|
6570
|
+
# A request object representing the call parameters. Required. To specify no
|
6571
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6572
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6573
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6574
|
+
#
|
6575
|
+
# @overload get_feedback_label(name: nil)
|
6576
|
+
# Pass arguments to `get_feedback_label` via keyword arguments. Note that at
|
6577
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6578
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6579
|
+
#
|
6580
|
+
# @param name [::String]
|
6581
|
+
# Required. The name of the feedback label to get.
|
6582
|
+
#
|
6583
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6584
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
6585
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6586
|
+
#
|
6587
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
6588
|
+
#
|
6589
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6590
|
+
#
|
6591
|
+
# @example Basic example
|
6592
|
+
# require "google/cloud/contact_center_insights/v1"
|
6593
|
+
#
|
6594
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6595
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
6596
|
+
#
|
6597
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6598
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetFeedbackLabelRequest.new
|
6599
|
+
#
|
6600
|
+
# # Call the get_feedback_label method.
|
6601
|
+
# result = client.get_feedback_label request
|
6602
|
+
#
|
6603
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::FeedbackLabel.
|
6604
|
+
# p result
|
6605
|
+
#
|
6606
|
+
def get_feedback_label request, options = nil
|
6607
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6608
|
+
|
6609
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::GetFeedbackLabelRequest
|
6610
|
+
|
6611
|
+
# Converts hash and nil to an options object
|
6612
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6613
|
+
|
6614
|
+
# Customize the options with defaults
|
6615
|
+
metadata = @config.rpcs.get_feedback_label.metadata.to_h
|
6616
|
+
|
6617
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
6618
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6619
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6620
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
6621
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
6622
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6623
|
+
|
6624
|
+
header_params = {}
|
6625
|
+
if request.name
|
6626
|
+
header_params["name"] = request.name
|
6627
|
+
end
|
6628
|
+
|
6629
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6630
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6631
|
+
|
6632
|
+
options.apply_defaults timeout: @config.rpcs.get_feedback_label.timeout,
|
6633
|
+
metadata: metadata,
|
6634
|
+
retry_policy: @config.rpcs.get_feedback_label.retry_policy
|
6635
|
+
|
6636
|
+
options.apply_defaults timeout: @config.timeout,
|
6637
|
+
metadata: @config.metadata,
|
6638
|
+
retry_policy: @config.retry_policy
|
6639
|
+
|
6640
|
+
@contact_center_insights_stub.call_rpc :get_feedback_label, request, options: options do |response, operation|
|
6641
|
+
yield response, operation if block_given?
|
6642
|
+
end
|
6643
|
+
rescue ::GRPC::BadStatus => e
|
6644
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6645
|
+
end
|
6646
|
+
|
6647
|
+
##
|
6648
|
+
# Update feedback label.
|
6649
|
+
#
|
6650
|
+
# @overload update_feedback_label(request, options = nil)
|
6651
|
+
# Pass arguments to `update_feedback_label` via a request object, either of type
|
6652
|
+
# {::Google::Cloud::ContactCenterInsights::V1::UpdateFeedbackLabelRequest} or an equivalent Hash.
|
6653
|
+
#
|
6654
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::UpdateFeedbackLabelRequest, ::Hash]
|
6655
|
+
# A request object representing the call parameters. Required. To specify no
|
6656
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6657
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6658
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6659
|
+
#
|
6660
|
+
# @overload update_feedback_label(feedback_label: nil, update_mask: nil)
|
6661
|
+
# Pass arguments to `update_feedback_label` via keyword arguments. Note that at
|
6662
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6663
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6664
|
+
#
|
6665
|
+
# @param feedback_label [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel, ::Hash]
|
6666
|
+
# Required. The feedback label to update.
|
6667
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
6668
|
+
# Required. The list of fields to be updated.
|
6669
|
+
#
|
6670
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6671
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
6672
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6673
|
+
#
|
6674
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel]
|
6675
|
+
#
|
6676
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6677
|
+
#
|
6678
|
+
# @example Basic example
|
6679
|
+
# require "google/cloud/contact_center_insights/v1"
|
6680
|
+
#
|
6681
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6682
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
6683
|
+
#
|
6684
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6685
|
+
# request = Google::Cloud::ContactCenterInsights::V1::UpdateFeedbackLabelRequest.new
|
6686
|
+
#
|
6687
|
+
# # Call the update_feedback_label method.
|
6688
|
+
# result = client.update_feedback_label request
|
6689
|
+
#
|
6690
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::FeedbackLabel.
|
6691
|
+
# p result
|
6692
|
+
#
|
6693
|
+
def update_feedback_label request, options = nil
|
6694
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6695
|
+
|
6696
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::UpdateFeedbackLabelRequest
|
6697
|
+
|
6698
|
+
# Converts hash and nil to an options object
|
6699
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6700
|
+
|
6701
|
+
# Customize the options with defaults
|
6702
|
+
metadata = @config.rpcs.update_feedback_label.metadata.to_h
|
6703
|
+
|
6704
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
6705
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6706
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6707
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
6708
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
6709
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6710
|
+
|
6711
|
+
header_params = {}
|
6712
|
+
if request.feedback_label&.name
|
6713
|
+
header_params["feedback_label.name"] = request.feedback_label.name
|
6714
|
+
end
|
6715
|
+
|
6716
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6717
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6718
|
+
|
6719
|
+
options.apply_defaults timeout: @config.rpcs.update_feedback_label.timeout,
|
6720
|
+
metadata: metadata,
|
6721
|
+
retry_policy: @config.rpcs.update_feedback_label.retry_policy
|
6722
|
+
|
6723
|
+
options.apply_defaults timeout: @config.timeout,
|
6724
|
+
metadata: @config.metadata,
|
6725
|
+
retry_policy: @config.retry_policy
|
6726
|
+
|
6727
|
+
@contact_center_insights_stub.call_rpc :update_feedback_label, request, options: options do |response, operation|
|
6728
|
+
yield response, operation if block_given?
|
6729
|
+
end
|
6730
|
+
rescue ::GRPC::BadStatus => e
|
6731
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6732
|
+
end
|
6733
|
+
|
6734
|
+
##
|
6735
|
+
# Delete feedback label.
|
6736
|
+
#
|
6737
|
+
# @overload delete_feedback_label(request, options = nil)
|
6738
|
+
# Pass arguments to `delete_feedback_label` via a request object, either of type
|
6739
|
+
# {::Google::Cloud::ContactCenterInsights::V1::DeleteFeedbackLabelRequest} or an equivalent Hash.
|
6740
|
+
#
|
6741
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::DeleteFeedbackLabelRequest, ::Hash]
|
6742
|
+
# A request object representing the call parameters. Required. To specify no
|
6743
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6744
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6745
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6746
|
+
#
|
6747
|
+
# @overload delete_feedback_label(name: nil)
|
6748
|
+
# Pass arguments to `delete_feedback_label` via keyword arguments. Note that at
|
6749
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6750
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6751
|
+
#
|
6752
|
+
# @param name [::String]
|
6753
|
+
# Required. The name of the feedback label to delete.
|
6754
|
+
#
|
6755
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6756
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
6757
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6758
|
+
#
|
6759
|
+
# @return [::Google::Protobuf::Empty]
|
6760
|
+
#
|
6761
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6762
|
+
#
|
6763
|
+
# @example Basic example
|
6764
|
+
# require "google/cloud/contact_center_insights/v1"
|
6765
|
+
#
|
6766
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6767
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
6768
|
+
#
|
6769
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6770
|
+
# request = Google::Cloud::ContactCenterInsights::V1::DeleteFeedbackLabelRequest.new
|
6771
|
+
#
|
6772
|
+
# # Call the delete_feedback_label method.
|
6773
|
+
# result = client.delete_feedback_label request
|
6774
|
+
#
|
6775
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
6776
|
+
# p result
|
6777
|
+
#
|
6778
|
+
def delete_feedback_label request, options = nil
|
6779
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6780
|
+
|
6781
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::DeleteFeedbackLabelRequest
|
6782
|
+
|
6783
|
+
# Converts hash and nil to an options object
|
6784
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6785
|
+
|
6786
|
+
# Customize the options with defaults
|
6787
|
+
metadata = @config.rpcs.delete_feedback_label.metadata.to_h
|
6788
|
+
|
6789
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
6790
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6791
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6792
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
6793
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
6794
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6795
|
+
|
6796
|
+
header_params = {}
|
6797
|
+
if request.name
|
6798
|
+
header_params["name"] = request.name
|
6799
|
+
end
|
6800
|
+
|
6801
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6802
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6803
|
+
|
6804
|
+
options.apply_defaults timeout: @config.rpcs.delete_feedback_label.timeout,
|
6805
|
+
metadata: metadata,
|
6806
|
+
retry_policy: @config.rpcs.delete_feedback_label.retry_policy
|
6807
|
+
|
6808
|
+
options.apply_defaults timeout: @config.timeout,
|
6809
|
+
metadata: @config.metadata,
|
6810
|
+
retry_policy: @config.retry_policy
|
6811
|
+
|
6812
|
+
@contact_center_insights_stub.call_rpc :delete_feedback_label, request, options: options do |response, operation|
|
6813
|
+
yield response, operation if block_given?
|
6814
|
+
end
|
6815
|
+
rescue ::GRPC::BadStatus => e
|
6816
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6817
|
+
end
|
6818
|
+
|
6819
|
+
##
|
6820
|
+
# List all feedback labels by project number.
|
6821
|
+
#
|
6822
|
+
# @overload list_all_feedback_labels(request, options = nil)
|
6823
|
+
# Pass arguments to `list_all_feedback_labels` via a request object, either of type
|
6824
|
+
# {::Google::Cloud::ContactCenterInsights::V1::ListAllFeedbackLabelsRequest} or an equivalent Hash.
|
6825
|
+
#
|
6826
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::ListAllFeedbackLabelsRequest, ::Hash]
|
6827
|
+
# A request object representing the call parameters. Required. To specify no
|
6828
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6829
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6830
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6831
|
+
#
|
6832
|
+
# @overload list_all_feedback_labels(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
6833
|
+
# Pass arguments to `list_all_feedback_labels` via keyword arguments. Note that at
|
6834
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6835
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6836
|
+
#
|
6837
|
+
# @param parent [::String]
|
6838
|
+
# Required. The parent resource of all feedback labels per project.
|
6839
|
+
# @param page_size [::Integer]
|
6840
|
+
# Optional. The maximum number of feedback labels to return in the response.
|
6841
|
+
# A valid page size ranges from 0 to 100,000 inclusive. If the page size is
|
6842
|
+
# zero or unspecified, a default page size of 100 will be chosen. Note that a
|
6843
|
+
# call might return fewer results than the requested page size.
|
6844
|
+
# @param page_token [::String]
|
6845
|
+
# Optional. The value returned by the last `ListAllFeedbackLabelsResponse`.
|
6846
|
+
# This value indicates that this is a continuation of a prior
|
6847
|
+
# `ListAllFeedbackLabels` call and that the system should return the next
|
6848
|
+
# page of data.
|
6849
|
+
# @param filter [::String]
|
6850
|
+
# Optional. A filter to reduce results to a specific subset in the entire
|
6851
|
+
# project. Supports disjunctions (OR) and conjunctions (AND).
|
6852
|
+
#
|
6853
|
+
# Supported fields:
|
6854
|
+
#
|
6855
|
+
# * `issue_model_id`
|
6856
|
+
# * `qa_question_id`
|
6857
|
+
# * `min_create_time`
|
6858
|
+
# * `max_create_time`
|
6859
|
+
# * `min_update_time`
|
6860
|
+
# * `max_update_time`
|
6861
|
+
# * `feedback_label_type`: QUALITY_AI, TOPIC_MODELING
|
6862
|
+
#
|
6863
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6864
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel>]
|
6865
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6866
|
+
#
|
6867
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel>]
|
6868
|
+
#
|
6869
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
6870
|
+
#
|
6871
|
+
# @example Basic example
|
6872
|
+
# require "google/cloud/contact_center_insights/v1"
|
6873
|
+
#
|
6874
|
+
# # Create a client object. The client can be reused for multiple calls.
|
6875
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
6876
|
+
#
|
6877
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
6878
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ListAllFeedbackLabelsRequest.new
|
6879
|
+
#
|
6880
|
+
# # Call the list_all_feedback_labels method.
|
6881
|
+
# result = client.list_all_feedback_labels request
|
6882
|
+
#
|
6883
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
6884
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
6885
|
+
# result.each do |item|
|
6886
|
+
# # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel.
|
6887
|
+
# p item
|
6888
|
+
# end
|
6889
|
+
#
|
6890
|
+
def list_all_feedback_labels request, options = nil
|
6891
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
6892
|
+
|
6893
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::ListAllFeedbackLabelsRequest
|
6894
|
+
|
6895
|
+
# Converts hash and nil to an options object
|
6896
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
6897
|
+
|
6898
|
+
# Customize the options with defaults
|
6899
|
+
metadata = @config.rpcs.list_all_feedback_labels.metadata.to_h
|
6900
|
+
|
6901
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
6902
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
6903
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
6904
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
6905
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
6906
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
6907
|
+
|
6908
|
+
header_params = {}
|
6909
|
+
if request.parent
|
6910
|
+
header_params["parent"] = request.parent
|
6911
|
+
end
|
6912
|
+
|
6913
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
6914
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
6915
|
+
|
6916
|
+
options.apply_defaults timeout: @config.rpcs.list_all_feedback_labels.timeout,
|
6917
|
+
metadata: metadata,
|
6918
|
+
retry_policy: @config.rpcs.list_all_feedback_labels.retry_policy
|
6919
|
+
|
6920
|
+
options.apply_defaults timeout: @config.timeout,
|
6921
|
+
metadata: @config.metadata,
|
6922
|
+
retry_policy: @config.retry_policy
|
6923
|
+
|
6924
|
+
@contact_center_insights_stub.call_rpc :list_all_feedback_labels, request, options: options do |response, operation|
|
6925
|
+
response = ::Gapic::PagedEnumerable.new @contact_center_insights_stub, :list_all_feedback_labels, request, response, operation, options
|
6926
|
+
yield response, operation if block_given?
|
6927
|
+
throw :response, response
|
6928
|
+
end
|
6929
|
+
rescue ::GRPC::BadStatus => e
|
6930
|
+
raise ::Google::Cloud::Error.from_error(e)
|
6931
|
+
end
|
6932
|
+
|
6933
|
+
##
|
6934
|
+
# Upload feedback labels in bulk.
|
6935
|
+
#
|
6936
|
+
# @overload bulk_upload_feedback_labels(request, options = nil)
|
6937
|
+
# Pass arguments to `bulk_upload_feedback_labels` via a request object, either of type
|
6938
|
+
# {::Google::Cloud::ContactCenterInsights::V1::BulkUploadFeedbackLabelsRequest} or an equivalent Hash.
|
6939
|
+
#
|
6940
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::BulkUploadFeedbackLabelsRequest, ::Hash]
|
6941
|
+
# A request object representing the call parameters. Required. To specify no
|
6942
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
6943
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
6944
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
6945
|
+
#
|
6946
|
+
# @overload bulk_upload_feedback_labels(gcs_source: nil, parent: nil, validate_only: nil)
|
6947
|
+
# Pass arguments to `bulk_upload_feedback_labels` via keyword arguments. Note that at
|
6948
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
6949
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
6950
|
+
#
|
6951
|
+
# @param gcs_source [::Google::Cloud::ContactCenterInsights::V1::BulkUploadFeedbackLabelsRequest::GcsSource, ::Hash]
|
6952
|
+
# A cloud storage bucket source.
|
6953
|
+
# @param parent [::String]
|
6954
|
+
# Required. The parent resource for new feedback labels.
|
6955
|
+
# @param validate_only [::Boolean]
|
6956
|
+
# Optional. If set, upload will not happen and the labels will be validated.
|
6957
|
+
# If not set, then default behavior will be to upload the labels after
|
6958
|
+
# validation is complete.
|
6959
|
+
#
|
6960
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
6961
|
+
# @yieldparam response [::Gapic::Operation]
|
6962
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
6963
|
+
#
|
6964
|
+
# @return [::Gapic::Operation]
|
4152
6965
|
#
|
4153
6966
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
4154
6967
|
#
|
@@ -4159,24 +6972,31 @@ module Google
|
|
4159
6972
|
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
4160
6973
|
#
|
4161
6974
|
# # Create a request. To set request fields, pass in keyword arguments.
|
4162
|
-
# request = Google::Cloud::ContactCenterInsights::V1::
|
6975
|
+
# request = Google::Cloud::ContactCenterInsights::V1::BulkUploadFeedbackLabelsRequest.new
|
4163
6976
|
#
|
4164
|
-
# # Call the
|
4165
|
-
# result = client.
|
6977
|
+
# # Call the bulk_upload_feedback_labels method.
|
6978
|
+
# result = client.bulk_upload_feedback_labels request
|
4166
6979
|
#
|
4167
|
-
# # The returned object is of type
|
4168
|
-
#
|
6980
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
6981
|
+
# # check the status of an operation, cancel it, or wait for results.
|
6982
|
+
# # Here is how to wait for a response.
|
6983
|
+
# result.wait_until_done! timeout: 60
|
6984
|
+
# if result.response?
|
6985
|
+
# p result.response
|
6986
|
+
# else
|
6987
|
+
# puts "No response received."
|
6988
|
+
# end
|
4169
6989
|
#
|
4170
|
-
def
|
6990
|
+
def bulk_upload_feedback_labels request, options = nil
|
4171
6991
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
4172
6992
|
|
4173
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::
|
6993
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::BulkUploadFeedbackLabelsRequest
|
4174
6994
|
|
4175
6995
|
# Converts hash and nil to an options object
|
4176
6996
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
4177
6997
|
|
4178
6998
|
# Customize the options with defaults
|
4179
|
-
metadata = @config.rpcs.
|
6999
|
+
metadata = @config.rpcs.bulk_upload_feedback_labels.metadata.to_h
|
4180
7000
|
|
4181
7001
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4182
7002
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
@@ -4186,24 +7006,150 @@ module Google
|
|
4186
7006
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4187
7007
|
|
4188
7008
|
header_params = {}
|
4189
|
-
if request.
|
4190
|
-
header_params["
|
7009
|
+
if request.parent
|
7010
|
+
header_params["parent"] = request.parent
|
4191
7011
|
end
|
4192
7012
|
|
4193
7013
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
4194
7014
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
4195
7015
|
|
4196
|
-
options.apply_defaults timeout: @config.rpcs.
|
7016
|
+
options.apply_defaults timeout: @config.rpcs.bulk_upload_feedback_labels.timeout,
|
4197
7017
|
metadata: metadata,
|
4198
|
-
retry_policy: @config.rpcs.
|
7018
|
+
retry_policy: @config.rpcs.bulk_upload_feedback_labels.retry_policy
|
4199
7019
|
|
4200
7020
|
options.apply_defaults timeout: @config.timeout,
|
4201
7021
|
metadata: @config.metadata,
|
4202
7022
|
retry_policy: @config.retry_policy
|
4203
7023
|
|
4204
|
-
@contact_center_insights_stub.call_rpc :
|
7024
|
+
@contact_center_insights_stub.call_rpc :bulk_upload_feedback_labels, request, options: options do |response, operation|
|
7025
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
7026
|
+
yield response, operation if block_given?
|
7027
|
+
throw :response, response
|
7028
|
+
end
|
7029
|
+
rescue ::GRPC::BadStatus => e
|
7030
|
+
raise ::Google::Cloud::Error.from_error(e)
|
7031
|
+
end
|
7032
|
+
|
7033
|
+
##
|
7034
|
+
# Download feedback labels in bulk.
|
7035
|
+
#
|
7036
|
+
# @overload bulk_download_feedback_labels(request, options = nil)
|
7037
|
+
# Pass arguments to `bulk_download_feedback_labels` via a request object, either of type
|
7038
|
+
# {::Google::Cloud::ContactCenterInsights::V1::BulkDownloadFeedbackLabelsRequest} or an equivalent Hash.
|
7039
|
+
#
|
7040
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::BulkDownloadFeedbackLabelsRequest, ::Hash]
|
7041
|
+
# A request object representing the call parameters. Required. To specify no
|
7042
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
7043
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
7044
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
7045
|
+
#
|
7046
|
+
# @overload bulk_download_feedback_labels(gcs_destination: nil, parent: nil, filter: nil, max_download_count: nil, feedback_label_type: nil, conversation_filter: nil, template_qa_scorecard_id: nil)
|
7047
|
+
# Pass arguments to `bulk_download_feedback_labels` via keyword arguments. Note that at
|
7048
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
7049
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
7050
|
+
#
|
7051
|
+
# @param gcs_destination [::Google::Cloud::ContactCenterInsights::V1::BulkDownloadFeedbackLabelsRequest::GcsDestination, ::Hash]
|
7052
|
+
# A cloud storage bucket destination.
|
7053
|
+
# @param parent [::String]
|
7054
|
+
# Required. The parent resource for new feedback labels.
|
7055
|
+
# @param filter [::String]
|
7056
|
+
# Optional. A filter to reduce results to a specific subset. Supports
|
7057
|
+
# disjunctions (OR) and conjunctions (AND).
|
7058
|
+
#
|
7059
|
+
# Supported fields:
|
7060
|
+
#
|
7061
|
+
# * `issue_model_id`
|
7062
|
+
# * `qa_question_id`
|
7063
|
+
# * `qa_scorecard_id`
|
7064
|
+
# * `min_create_time`
|
7065
|
+
# * `max_create_time`
|
7066
|
+
# * `min_update_time`
|
7067
|
+
# * `max_update_time`
|
7068
|
+
# * `feedback_label_type`: QUALITY_AI, TOPIC_MODELING
|
7069
|
+
# @param max_download_count [::Integer]
|
7070
|
+
# Optional. Limits the maximum number of feedback labels that will be
|
7071
|
+
# downloaded. The first `N` feedback labels will be downloaded.
|
7072
|
+
# @param feedback_label_type [::Google::Cloud::ContactCenterInsights::V1::BulkDownloadFeedbackLabelsRequest::FeedbackLabelType]
|
7073
|
+
# Optional. The type of feedback labels that will be downloaded.
|
7074
|
+
# @param conversation_filter [::String]
|
7075
|
+
# Optional. Filter parent conversations to download feedback labels for.
|
7076
|
+
# When specified, the feedback labels will be downloaded for the
|
7077
|
+
# conversations that match the filter.
|
7078
|
+
# If `template_qa_scorecard_id` is set, all the conversations that match the
|
7079
|
+
# filter will be paired with the questions under the scorecard for labeling.
|
7080
|
+
# @param template_qa_scorecard_id [::Array<::String>]
|
7081
|
+
# Optional. If set, a template for labeling conversations and scorecard
|
7082
|
+
# questions will be created from the conversation_filter and the questions
|
7083
|
+
# under the scorecard(s). The feedback label `filter` will be ignored.
|
7084
|
+
#
|
7085
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
7086
|
+
# @yieldparam response [::Gapic::Operation]
|
7087
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
7088
|
+
#
|
7089
|
+
# @return [::Gapic::Operation]
|
7090
|
+
#
|
7091
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
7092
|
+
#
|
7093
|
+
# @example Basic example
|
7094
|
+
# require "google/cloud/contact_center_insights/v1"
|
7095
|
+
#
|
7096
|
+
# # Create a client object. The client can be reused for multiple calls.
|
7097
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
7098
|
+
#
|
7099
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
7100
|
+
# request = Google::Cloud::ContactCenterInsights::V1::BulkDownloadFeedbackLabelsRequest.new
|
7101
|
+
#
|
7102
|
+
# # Call the bulk_download_feedback_labels method.
|
7103
|
+
# result = client.bulk_download_feedback_labels request
|
7104
|
+
#
|
7105
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
7106
|
+
# # check the status of an operation, cancel it, or wait for results.
|
7107
|
+
# # Here is how to wait for a response.
|
7108
|
+
# result.wait_until_done! timeout: 60
|
7109
|
+
# if result.response?
|
7110
|
+
# p result.response
|
7111
|
+
# else
|
7112
|
+
# puts "No response received."
|
7113
|
+
# end
|
7114
|
+
#
|
7115
|
+
def bulk_download_feedback_labels request, options = nil
|
7116
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
7117
|
+
|
7118
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::BulkDownloadFeedbackLabelsRequest
|
7119
|
+
|
7120
|
+
# Converts hash and nil to an options object
|
7121
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
7122
|
+
|
7123
|
+
# Customize the options with defaults
|
7124
|
+
metadata = @config.rpcs.bulk_download_feedback_labels.metadata.to_h
|
7125
|
+
|
7126
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
7127
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
7128
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
7129
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
7130
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
7131
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
7132
|
+
|
7133
|
+
header_params = {}
|
7134
|
+
if request.parent
|
7135
|
+
header_params["parent"] = request.parent
|
7136
|
+
end
|
7137
|
+
|
7138
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
7139
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
7140
|
+
|
7141
|
+
options.apply_defaults timeout: @config.rpcs.bulk_download_feedback_labels.timeout,
|
7142
|
+
metadata: metadata,
|
7143
|
+
retry_policy: @config.rpcs.bulk_download_feedback_labels.retry_policy
|
7144
|
+
|
7145
|
+
options.apply_defaults timeout: @config.timeout,
|
7146
|
+
metadata: @config.metadata,
|
7147
|
+
retry_policy: @config.retry_policy
|
7148
|
+
|
7149
|
+
@contact_center_insights_stub.call_rpc :bulk_download_feedback_labels, request, options: options do |response, operation|
|
7150
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
4205
7151
|
yield response, operation if block_given?
|
4206
|
-
|
7152
|
+
throw :response, response
|
4207
7153
|
end
|
4208
7154
|
rescue ::GRPC::BadStatus => e
|
4209
7155
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4292,6 +7238,11 @@ module Google
|
|
4292
7238
|
# default endpoint URL. The default value of nil uses the environment
|
4293
7239
|
# universe (usually the default "googleapis.com" universe).
|
4294
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]
|
4295
7246
|
#
|
4296
7247
|
class Configuration
|
4297
7248
|
extend ::Gapic::Config
|
@@ -4316,6 +7267,7 @@ module Google
|
|
4316
7267
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
4317
7268
|
config_attr :quota_project, nil, ::String, nil
|
4318
7269
|
config_attr :universe_domain, nil, ::String, nil
|
7270
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
4319
7271
|
|
4320
7272
|
# @private
|
4321
7273
|
def initialize parent_config = nil
|
@@ -4543,6 +7495,31 @@ module Google
|
|
4543
7495
|
#
|
4544
7496
|
attr_reader :update_settings
|
4545
7497
|
##
|
7498
|
+
# RPC-specific configuration for `create_analysis_rule`
|
7499
|
+
# @return [::Gapic::Config::Method]
|
7500
|
+
#
|
7501
|
+
attr_reader :create_analysis_rule
|
7502
|
+
##
|
7503
|
+
# RPC-specific configuration for `get_analysis_rule`
|
7504
|
+
# @return [::Gapic::Config::Method]
|
7505
|
+
#
|
7506
|
+
attr_reader :get_analysis_rule
|
7507
|
+
##
|
7508
|
+
# RPC-specific configuration for `list_analysis_rules`
|
7509
|
+
# @return [::Gapic::Config::Method]
|
7510
|
+
#
|
7511
|
+
attr_reader :list_analysis_rules
|
7512
|
+
##
|
7513
|
+
# RPC-specific configuration for `update_analysis_rule`
|
7514
|
+
# @return [::Gapic::Config::Method]
|
7515
|
+
#
|
7516
|
+
attr_reader :update_analysis_rule
|
7517
|
+
##
|
7518
|
+
# RPC-specific configuration for `delete_analysis_rule`
|
7519
|
+
# @return [::Gapic::Config::Method]
|
7520
|
+
#
|
7521
|
+
attr_reader :delete_analysis_rule
|
7522
|
+
##
|
4546
7523
|
# RPC-specific configuration for `get_encryption_spec`
|
4547
7524
|
# @return [::Gapic::Config::Method]
|
4548
7525
|
#
|
@@ -4577,6 +7554,136 @@ module Google
|
|
4577
7554
|
# @return [::Gapic::Config::Method]
|
4578
7555
|
#
|
4579
7556
|
attr_reader :delete_view
|
7557
|
+
##
|
7558
|
+
# RPC-specific configuration for `query_metrics`
|
7559
|
+
# @return [::Gapic::Config::Method]
|
7560
|
+
#
|
7561
|
+
attr_reader :query_metrics
|
7562
|
+
##
|
7563
|
+
# RPC-specific configuration for `create_qa_question`
|
7564
|
+
# @return [::Gapic::Config::Method]
|
7565
|
+
#
|
7566
|
+
attr_reader :create_qa_question
|
7567
|
+
##
|
7568
|
+
# RPC-specific configuration for `get_qa_question`
|
7569
|
+
# @return [::Gapic::Config::Method]
|
7570
|
+
#
|
7571
|
+
attr_reader :get_qa_question
|
7572
|
+
##
|
7573
|
+
# RPC-specific configuration for `update_qa_question`
|
7574
|
+
# @return [::Gapic::Config::Method]
|
7575
|
+
#
|
7576
|
+
attr_reader :update_qa_question
|
7577
|
+
##
|
7578
|
+
# RPC-specific configuration for `delete_qa_question`
|
7579
|
+
# @return [::Gapic::Config::Method]
|
7580
|
+
#
|
7581
|
+
attr_reader :delete_qa_question
|
7582
|
+
##
|
7583
|
+
# RPC-specific configuration for `list_qa_questions`
|
7584
|
+
# @return [::Gapic::Config::Method]
|
7585
|
+
#
|
7586
|
+
attr_reader :list_qa_questions
|
7587
|
+
##
|
7588
|
+
# RPC-specific configuration for `create_qa_scorecard`
|
7589
|
+
# @return [::Gapic::Config::Method]
|
7590
|
+
#
|
7591
|
+
attr_reader :create_qa_scorecard
|
7592
|
+
##
|
7593
|
+
# RPC-specific configuration for `get_qa_scorecard`
|
7594
|
+
# @return [::Gapic::Config::Method]
|
7595
|
+
#
|
7596
|
+
attr_reader :get_qa_scorecard
|
7597
|
+
##
|
7598
|
+
# RPC-specific configuration for `update_qa_scorecard`
|
7599
|
+
# @return [::Gapic::Config::Method]
|
7600
|
+
#
|
7601
|
+
attr_reader :update_qa_scorecard
|
7602
|
+
##
|
7603
|
+
# RPC-specific configuration for `delete_qa_scorecard`
|
7604
|
+
# @return [::Gapic::Config::Method]
|
7605
|
+
#
|
7606
|
+
attr_reader :delete_qa_scorecard
|
7607
|
+
##
|
7608
|
+
# RPC-specific configuration for `list_qa_scorecards`
|
7609
|
+
# @return [::Gapic::Config::Method]
|
7610
|
+
#
|
7611
|
+
attr_reader :list_qa_scorecards
|
7612
|
+
##
|
7613
|
+
# RPC-specific configuration for `create_qa_scorecard_revision`
|
7614
|
+
# @return [::Gapic::Config::Method]
|
7615
|
+
#
|
7616
|
+
attr_reader :create_qa_scorecard_revision
|
7617
|
+
##
|
7618
|
+
# RPC-specific configuration for `get_qa_scorecard_revision`
|
7619
|
+
# @return [::Gapic::Config::Method]
|
7620
|
+
#
|
7621
|
+
attr_reader :get_qa_scorecard_revision
|
7622
|
+
##
|
7623
|
+
# RPC-specific configuration for `tune_qa_scorecard_revision`
|
7624
|
+
# @return [::Gapic::Config::Method]
|
7625
|
+
#
|
7626
|
+
attr_reader :tune_qa_scorecard_revision
|
7627
|
+
##
|
7628
|
+
# RPC-specific configuration for `deploy_qa_scorecard_revision`
|
7629
|
+
# @return [::Gapic::Config::Method]
|
7630
|
+
#
|
7631
|
+
attr_reader :deploy_qa_scorecard_revision
|
7632
|
+
##
|
7633
|
+
# RPC-specific configuration for `undeploy_qa_scorecard_revision`
|
7634
|
+
# @return [::Gapic::Config::Method]
|
7635
|
+
#
|
7636
|
+
attr_reader :undeploy_qa_scorecard_revision
|
7637
|
+
##
|
7638
|
+
# RPC-specific configuration for `delete_qa_scorecard_revision`
|
7639
|
+
# @return [::Gapic::Config::Method]
|
7640
|
+
#
|
7641
|
+
attr_reader :delete_qa_scorecard_revision
|
7642
|
+
##
|
7643
|
+
# RPC-specific configuration for `list_qa_scorecard_revisions`
|
7644
|
+
# @return [::Gapic::Config::Method]
|
7645
|
+
#
|
7646
|
+
attr_reader :list_qa_scorecard_revisions
|
7647
|
+
##
|
7648
|
+
# RPC-specific configuration for `create_feedback_label`
|
7649
|
+
# @return [::Gapic::Config::Method]
|
7650
|
+
#
|
7651
|
+
attr_reader :create_feedback_label
|
7652
|
+
##
|
7653
|
+
# RPC-specific configuration for `list_feedback_labels`
|
7654
|
+
# @return [::Gapic::Config::Method]
|
7655
|
+
#
|
7656
|
+
attr_reader :list_feedback_labels
|
7657
|
+
##
|
7658
|
+
# RPC-specific configuration for `get_feedback_label`
|
7659
|
+
# @return [::Gapic::Config::Method]
|
7660
|
+
#
|
7661
|
+
attr_reader :get_feedback_label
|
7662
|
+
##
|
7663
|
+
# RPC-specific configuration for `update_feedback_label`
|
7664
|
+
# @return [::Gapic::Config::Method]
|
7665
|
+
#
|
7666
|
+
attr_reader :update_feedback_label
|
7667
|
+
##
|
7668
|
+
# RPC-specific configuration for `delete_feedback_label`
|
7669
|
+
# @return [::Gapic::Config::Method]
|
7670
|
+
#
|
7671
|
+
attr_reader :delete_feedback_label
|
7672
|
+
##
|
7673
|
+
# RPC-specific configuration for `list_all_feedback_labels`
|
7674
|
+
# @return [::Gapic::Config::Method]
|
7675
|
+
#
|
7676
|
+
attr_reader :list_all_feedback_labels
|
7677
|
+
##
|
7678
|
+
# RPC-specific configuration for `bulk_upload_feedback_labels`
|
7679
|
+
# @return [::Gapic::Config::Method]
|
7680
|
+
#
|
7681
|
+
attr_reader :bulk_upload_feedback_labels
|
7682
|
+
##
|
7683
|
+
# RPC-specific configuration for `bulk_download_feedback_labels`
|
7684
|
+
# @return [::Gapic::Config::Method]
|
7685
|
+
#
|
7686
|
+
attr_reader :bulk_download_feedback_labels
|
4580
7687
|
|
4581
7688
|
# @private
|
4582
7689
|
def initialize parent_rpcs = nil
|
@@ -4652,6 +7759,16 @@ module Google
|
|
4652
7759
|
@get_settings = ::Gapic::Config::Method.new get_settings_config
|
4653
7760
|
update_settings_config = parent_rpcs.update_settings if parent_rpcs.respond_to? :update_settings
|
4654
7761
|
@update_settings = ::Gapic::Config::Method.new update_settings_config
|
7762
|
+
create_analysis_rule_config = parent_rpcs.create_analysis_rule if parent_rpcs.respond_to? :create_analysis_rule
|
7763
|
+
@create_analysis_rule = ::Gapic::Config::Method.new create_analysis_rule_config
|
7764
|
+
get_analysis_rule_config = parent_rpcs.get_analysis_rule if parent_rpcs.respond_to? :get_analysis_rule
|
7765
|
+
@get_analysis_rule = ::Gapic::Config::Method.new get_analysis_rule_config
|
7766
|
+
list_analysis_rules_config = parent_rpcs.list_analysis_rules if parent_rpcs.respond_to? :list_analysis_rules
|
7767
|
+
@list_analysis_rules = ::Gapic::Config::Method.new list_analysis_rules_config
|
7768
|
+
update_analysis_rule_config = parent_rpcs.update_analysis_rule if parent_rpcs.respond_to? :update_analysis_rule
|
7769
|
+
@update_analysis_rule = ::Gapic::Config::Method.new update_analysis_rule_config
|
7770
|
+
delete_analysis_rule_config = parent_rpcs.delete_analysis_rule if parent_rpcs.respond_to? :delete_analysis_rule
|
7771
|
+
@delete_analysis_rule = ::Gapic::Config::Method.new delete_analysis_rule_config
|
4655
7772
|
get_encryption_spec_config = parent_rpcs.get_encryption_spec if parent_rpcs.respond_to? :get_encryption_spec
|
4656
7773
|
@get_encryption_spec = ::Gapic::Config::Method.new get_encryption_spec_config
|
4657
7774
|
initialize_encryption_spec_config = parent_rpcs.initialize_encryption_spec if parent_rpcs.respond_to? :initialize_encryption_spec
|
@@ -4666,6 +7783,58 @@ module Google
|
|
4666
7783
|
@update_view = ::Gapic::Config::Method.new update_view_config
|
4667
7784
|
delete_view_config = parent_rpcs.delete_view if parent_rpcs.respond_to? :delete_view
|
4668
7785
|
@delete_view = ::Gapic::Config::Method.new delete_view_config
|
7786
|
+
query_metrics_config = parent_rpcs.query_metrics if parent_rpcs.respond_to? :query_metrics
|
7787
|
+
@query_metrics = ::Gapic::Config::Method.new query_metrics_config
|
7788
|
+
create_qa_question_config = parent_rpcs.create_qa_question if parent_rpcs.respond_to? :create_qa_question
|
7789
|
+
@create_qa_question = ::Gapic::Config::Method.new create_qa_question_config
|
7790
|
+
get_qa_question_config = parent_rpcs.get_qa_question if parent_rpcs.respond_to? :get_qa_question
|
7791
|
+
@get_qa_question = ::Gapic::Config::Method.new get_qa_question_config
|
7792
|
+
update_qa_question_config = parent_rpcs.update_qa_question if parent_rpcs.respond_to? :update_qa_question
|
7793
|
+
@update_qa_question = ::Gapic::Config::Method.new update_qa_question_config
|
7794
|
+
delete_qa_question_config = parent_rpcs.delete_qa_question if parent_rpcs.respond_to? :delete_qa_question
|
7795
|
+
@delete_qa_question = ::Gapic::Config::Method.new delete_qa_question_config
|
7796
|
+
list_qa_questions_config = parent_rpcs.list_qa_questions if parent_rpcs.respond_to? :list_qa_questions
|
7797
|
+
@list_qa_questions = ::Gapic::Config::Method.new list_qa_questions_config
|
7798
|
+
create_qa_scorecard_config = parent_rpcs.create_qa_scorecard if parent_rpcs.respond_to? :create_qa_scorecard
|
7799
|
+
@create_qa_scorecard = ::Gapic::Config::Method.new create_qa_scorecard_config
|
7800
|
+
get_qa_scorecard_config = parent_rpcs.get_qa_scorecard if parent_rpcs.respond_to? :get_qa_scorecard
|
7801
|
+
@get_qa_scorecard = ::Gapic::Config::Method.new get_qa_scorecard_config
|
7802
|
+
update_qa_scorecard_config = parent_rpcs.update_qa_scorecard if parent_rpcs.respond_to? :update_qa_scorecard
|
7803
|
+
@update_qa_scorecard = ::Gapic::Config::Method.new update_qa_scorecard_config
|
7804
|
+
delete_qa_scorecard_config = parent_rpcs.delete_qa_scorecard if parent_rpcs.respond_to? :delete_qa_scorecard
|
7805
|
+
@delete_qa_scorecard = ::Gapic::Config::Method.new delete_qa_scorecard_config
|
7806
|
+
list_qa_scorecards_config = parent_rpcs.list_qa_scorecards if parent_rpcs.respond_to? :list_qa_scorecards
|
7807
|
+
@list_qa_scorecards = ::Gapic::Config::Method.new list_qa_scorecards_config
|
7808
|
+
create_qa_scorecard_revision_config = parent_rpcs.create_qa_scorecard_revision if parent_rpcs.respond_to? :create_qa_scorecard_revision
|
7809
|
+
@create_qa_scorecard_revision = ::Gapic::Config::Method.new create_qa_scorecard_revision_config
|
7810
|
+
get_qa_scorecard_revision_config = parent_rpcs.get_qa_scorecard_revision if parent_rpcs.respond_to? :get_qa_scorecard_revision
|
7811
|
+
@get_qa_scorecard_revision = ::Gapic::Config::Method.new get_qa_scorecard_revision_config
|
7812
|
+
tune_qa_scorecard_revision_config = parent_rpcs.tune_qa_scorecard_revision if parent_rpcs.respond_to? :tune_qa_scorecard_revision
|
7813
|
+
@tune_qa_scorecard_revision = ::Gapic::Config::Method.new tune_qa_scorecard_revision_config
|
7814
|
+
deploy_qa_scorecard_revision_config = parent_rpcs.deploy_qa_scorecard_revision if parent_rpcs.respond_to? :deploy_qa_scorecard_revision
|
7815
|
+
@deploy_qa_scorecard_revision = ::Gapic::Config::Method.new deploy_qa_scorecard_revision_config
|
7816
|
+
undeploy_qa_scorecard_revision_config = parent_rpcs.undeploy_qa_scorecard_revision if parent_rpcs.respond_to? :undeploy_qa_scorecard_revision
|
7817
|
+
@undeploy_qa_scorecard_revision = ::Gapic::Config::Method.new undeploy_qa_scorecard_revision_config
|
7818
|
+
delete_qa_scorecard_revision_config = parent_rpcs.delete_qa_scorecard_revision if parent_rpcs.respond_to? :delete_qa_scorecard_revision
|
7819
|
+
@delete_qa_scorecard_revision = ::Gapic::Config::Method.new delete_qa_scorecard_revision_config
|
7820
|
+
list_qa_scorecard_revisions_config = parent_rpcs.list_qa_scorecard_revisions if parent_rpcs.respond_to? :list_qa_scorecard_revisions
|
7821
|
+
@list_qa_scorecard_revisions = ::Gapic::Config::Method.new list_qa_scorecard_revisions_config
|
7822
|
+
create_feedback_label_config = parent_rpcs.create_feedback_label if parent_rpcs.respond_to? :create_feedback_label
|
7823
|
+
@create_feedback_label = ::Gapic::Config::Method.new create_feedback_label_config
|
7824
|
+
list_feedback_labels_config = parent_rpcs.list_feedback_labels if parent_rpcs.respond_to? :list_feedback_labels
|
7825
|
+
@list_feedback_labels = ::Gapic::Config::Method.new list_feedback_labels_config
|
7826
|
+
get_feedback_label_config = parent_rpcs.get_feedback_label if parent_rpcs.respond_to? :get_feedback_label
|
7827
|
+
@get_feedback_label = ::Gapic::Config::Method.new get_feedback_label_config
|
7828
|
+
update_feedback_label_config = parent_rpcs.update_feedback_label if parent_rpcs.respond_to? :update_feedback_label
|
7829
|
+
@update_feedback_label = ::Gapic::Config::Method.new update_feedback_label_config
|
7830
|
+
delete_feedback_label_config = parent_rpcs.delete_feedback_label if parent_rpcs.respond_to? :delete_feedback_label
|
7831
|
+
@delete_feedback_label = ::Gapic::Config::Method.new delete_feedback_label_config
|
7832
|
+
list_all_feedback_labels_config = parent_rpcs.list_all_feedback_labels if parent_rpcs.respond_to? :list_all_feedback_labels
|
7833
|
+
@list_all_feedback_labels = ::Gapic::Config::Method.new list_all_feedback_labels_config
|
7834
|
+
bulk_upload_feedback_labels_config = parent_rpcs.bulk_upload_feedback_labels if parent_rpcs.respond_to? :bulk_upload_feedback_labels
|
7835
|
+
@bulk_upload_feedback_labels = ::Gapic::Config::Method.new bulk_upload_feedback_labels_config
|
7836
|
+
bulk_download_feedback_labels_config = parent_rpcs.bulk_download_feedback_labels if parent_rpcs.respond_to? :bulk_download_feedback_labels
|
7837
|
+
@bulk_download_feedback_labels = ::Gapic::Config::Method.new bulk_download_feedback_labels_config
|
4669
7838
|
|
4670
7839
|
yield self if block_given?
|
4671
7840
|
end
|