google-cloud-contact_center_insights-v1 0.1.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/client.rb +723 -93
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/operations.rb +115 -12
- data/lib/google/cloud/contact_center_insights/v1/version.rb +1 -1
- data/lib/google/cloud/contactcenterinsights/v1/contact_center_insights_pb.rb +8 -2
- data/lib/google/cloud/contactcenterinsights/v1/contact_center_insights_services_pb.rb +3 -1
- data/lib/google/cloud/contactcenterinsights/v1/resources_pb.rb +14 -2
- data/proto_docs/google/cloud/contactcenterinsights/v1/contact_center_insights.rb +42 -14
- data/proto_docs/google/cloud/contactcenterinsights/v1/resources.rb +42 -3
- metadata +2 -2
@@ -199,6 +199,21 @@ module Google
|
|
199
199
|
#
|
200
200
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
201
201
|
#
|
202
|
+
# @example Basic example
|
203
|
+
# require "google/cloud/contact_center_insights/v1"
|
204
|
+
#
|
205
|
+
# # Create a client object. The client can be reused for multiple calls.
|
206
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
207
|
+
#
|
208
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
209
|
+
# request = Google::Cloud::ContactCenterInsights::V1::CreateConversationRequest.new
|
210
|
+
#
|
211
|
+
# # Call the create_conversation method.
|
212
|
+
# result = client.create_conversation request
|
213
|
+
#
|
214
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::Conversation.
|
215
|
+
# p result
|
216
|
+
#
|
202
217
|
def create_conversation request, options = nil
|
203
218
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
204
219
|
|
@@ -216,9 +231,11 @@ module Google
|
|
216
231
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
217
232
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
218
233
|
|
219
|
-
header_params = {
|
220
|
-
|
221
|
-
|
234
|
+
header_params = {}
|
235
|
+
if request.parent
|
236
|
+
header_params["parent"] = request.parent
|
237
|
+
end
|
238
|
+
|
222
239
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
223
240
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
224
241
|
|
@@ -269,6 +286,21 @@ module Google
|
|
269
286
|
#
|
270
287
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
271
288
|
#
|
289
|
+
# @example Basic example
|
290
|
+
# require "google/cloud/contact_center_insights/v1"
|
291
|
+
#
|
292
|
+
# # Create a client object. The client can be reused for multiple calls.
|
293
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
294
|
+
#
|
295
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
296
|
+
# request = Google::Cloud::ContactCenterInsights::V1::UpdateConversationRequest.new
|
297
|
+
#
|
298
|
+
# # Call the update_conversation method.
|
299
|
+
# result = client.update_conversation request
|
300
|
+
#
|
301
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::Conversation.
|
302
|
+
# p result
|
303
|
+
#
|
272
304
|
def update_conversation request, options = nil
|
273
305
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
274
306
|
|
@@ -286,9 +318,11 @@ module Google
|
|
286
318
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
287
319
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
288
320
|
|
289
|
-
header_params = {
|
290
|
-
|
291
|
-
|
321
|
+
header_params = {}
|
322
|
+
if request.conversation&.name
|
323
|
+
header_params["conversation.name"] = request.conversation.name
|
324
|
+
end
|
325
|
+
|
292
326
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
293
327
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
294
328
|
|
@@ -339,6 +373,21 @@ module Google
|
|
339
373
|
#
|
340
374
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
341
375
|
#
|
376
|
+
# @example Basic example
|
377
|
+
# require "google/cloud/contact_center_insights/v1"
|
378
|
+
#
|
379
|
+
# # Create a client object. The client can be reused for multiple calls.
|
380
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
381
|
+
#
|
382
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
383
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetConversationRequest.new
|
384
|
+
#
|
385
|
+
# # Call the get_conversation method.
|
386
|
+
# result = client.get_conversation request
|
387
|
+
#
|
388
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::Conversation.
|
389
|
+
# p result
|
390
|
+
#
|
342
391
|
def get_conversation request, options = nil
|
343
392
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
344
393
|
|
@@ -356,9 +405,11 @@ module Google
|
|
356
405
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
357
406
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
358
407
|
|
359
|
-
header_params = {
|
360
|
-
|
361
|
-
|
408
|
+
header_params = {}
|
409
|
+
if request.name
|
410
|
+
header_params["name"] = request.name
|
411
|
+
end
|
412
|
+
|
362
413
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
363
414
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
364
415
|
|
@@ -399,10 +450,10 @@ module Google
|
|
399
450
|
# @param parent [::String]
|
400
451
|
# Required. The parent resource of the conversation.
|
401
452
|
# @param page_size [::Integer]
|
402
|
-
# The maximum number of conversations to return in the response.
|
403
|
-
#
|
404
|
-
#
|
405
|
-
#
|
453
|
+
# The maximum number of conversations to return in the response. A valid page
|
454
|
+
# size ranges from 0 to 1,000 inclusive. If the page size is zero or
|
455
|
+
# unspecified, a default page size of 100 will be chosen. Note that a call
|
456
|
+
# might return fewer results than the requested page size.
|
406
457
|
# @param page_token [::String]
|
407
458
|
# The value returned by the last `ListConversationsResponse`. This value
|
408
459
|
# indicates that this is a continuation of a prior `ListConversations` call
|
@@ -421,6 +472,27 @@ module Google
|
|
421
472
|
#
|
422
473
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
423
474
|
#
|
475
|
+
# @example Basic example
|
476
|
+
# require "google/cloud/contact_center_insights/v1"
|
477
|
+
#
|
478
|
+
# # Create a client object. The client can be reused for multiple calls.
|
479
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
480
|
+
#
|
481
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
482
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ListConversationsRequest.new
|
483
|
+
#
|
484
|
+
# # Call the list_conversations method.
|
485
|
+
# result = client.list_conversations request
|
486
|
+
#
|
487
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
488
|
+
# # iterate over all elements by calling #each, and the enumerable
|
489
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
490
|
+
# # methods are also available for managing paging directly.
|
491
|
+
# result.each do |response|
|
492
|
+
# # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::Conversation.
|
493
|
+
# p response
|
494
|
+
# end
|
495
|
+
#
|
424
496
|
def list_conversations request, options = nil
|
425
497
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
426
498
|
|
@@ -438,9 +510,11 @@ module Google
|
|
438
510
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
439
511
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
440
512
|
|
441
|
-
header_params = {
|
442
|
-
|
443
|
-
|
513
|
+
header_params = {}
|
514
|
+
if request.parent
|
515
|
+
header_params["parent"] = request.parent
|
516
|
+
end
|
517
|
+
|
444
518
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
445
519
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
446
520
|
|
@@ -494,6 +568,21 @@ module Google
|
|
494
568
|
#
|
495
569
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
496
570
|
#
|
571
|
+
# @example Basic example
|
572
|
+
# require "google/cloud/contact_center_insights/v1"
|
573
|
+
#
|
574
|
+
# # Create a client object. The client can be reused for multiple calls.
|
575
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
576
|
+
#
|
577
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
578
|
+
# request = Google::Cloud::ContactCenterInsights::V1::DeleteConversationRequest.new
|
579
|
+
#
|
580
|
+
# # Call the delete_conversation method.
|
581
|
+
# result = client.delete_conversation request
|
582
|
+
#
|
583
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
584
|
+
# p result
|
585
|
+
#
|
497
586
|
def delete_conversation request, options = nil
|
498
587
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
499
588
|
|
@@ -511,9 +600,11 @@ module Google
|
|
511
600
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
512
601
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
513
602
|
|
514
|
-
header_params = {
|
515
|
-
|
516
|
-
|
603
|
+
header_params = {}
|
604
|
+
if request.name
|
605
|
+
header_params["name"] = request.name
|
606
|
+
end
|
607
|
+
|
517
608
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
518
609
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
519
610
|
|
@@ -565,6 +656,28 @@ module Google
|
|
565
656
|
#
|
566
657
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
567
658
|
#
|
659
|
+
# @example Basic example
|
660
|
+
# require "google/cloud/contact_center_insights/v1"
|
661
|
+
#
|
662
|
+
# # Create a client object. The client can be reused for multiple calls.
|
663
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
664
|
+
#
|
665
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
666
|
+
# request = Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRequest.new
|
667
|
+
#
|
668
|
+
# # Call the create_analysis method.
|
669
|
+
# result = client.create_analysis request
|
670
|
+
#
|
671
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
672
|
+
# # object to check the status of an operation, cancel it, or wait
|
673
|
+
# # for results. Here is how to block until completion:
|
674
|
+
# result.wait_until_done! timeout: 60
|
675
|
+
# if result.response?
|
676
|
+
# p result.response
|
677
|
+
# else
|
678
|
+
# puts "Error!"
|
679
|
+
# end
|
680
|
+
#
|
568
681
|
def create_analysis request, options = nil
|
569
682
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
570
683
|
|
@@ -582,9 +695,11 @@ module Google
|
|
582
695
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
583
696
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
584
697
|
|
585
|
-
header_params = {
|
586
|
-
|
587
|
-
|
698
|
+
header_params = {}
|
699
|
+
if request.parent
|
700
|
+
header_params["parent"] = request.parent
|
701
|
+
end
|
702
|
+
|
588
703
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
589
704
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
590
705
|
|
@@ -634,6 +749,21 @@ module Google
|
|
634
749
|
#
|
635
750
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
636
751
|
#
|
752
|
+
# @example Basic example
|
753
|
+
# require "google/cloud/contact_center_insights/v1"
|
754
|
+
#
|
755
|
+
# # Create a client object. The client can be reused for multiple calls.
|
756
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
757
|
+
#
|
758
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
759
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetAnalysisRequest.new
|
760
|
+
#
|
761
|
+
# # Call the get_analysis method.
|
762
|
+
# result = client.get_analysis request
|
763
|
+
#
|
764
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::Analysis.
|
765
|
+
# p result
|
766
|
+
#
|
637
767
|
def get_analysis request, options = nil
|
638
768
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
639
769
|
|
@@ -651,9 +781,11 @@ module Google
|
|
651
781
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
652
782
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
653
783
|
|
654
|
-
header_params = {
|
655
|
-
|
656
|
-
|
784
|
+
header_params = {}
|
785
|
+
if request.name
|
786
|
+
header_params["name"] = request.name
|
787
|
+
end
|
788
|
+
|
657
789
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
658
790
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
659
791
|
|
@@ -714,6 +846,27 @@ module Google
|
|
714
846
|
#
|
715
847
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
716
848
|
#
|
849
|
+
# @example Basic example
|
850
|
+
# require "google/cloud/contact_center_insights/v1"
|
851
|
+
#
|
852
|
+
# # Create a client object. The client can be reused for multiple calls.
|
853
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
854
|
+
#
|
855
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
856
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ListAnalysesRequest.new
|
857
|
+
#
|
858
|
+
# # Call the list_analyses method.
|
859
|
+
# result = client.list_analyses request
|
860
|
+
#
|
861
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
862
|
+
# # iterate over all elements by calling #each, and the enumerable
|
863
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
864
|
+
# # methods are also available for managing paging directly.
|
865
|
+
# result.each do |response|
|
866
|
+
# # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::Analysis.
|
867
|
+
# p response
|
868
|
+
# end
|
869
|
+
#
|
717
870
|
def list_analyses request, options = nil
|
718
871
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
719
872
|
|
@@ -731,9 +884,11 @@ module Google
|
|
731
884
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
732
885
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
733
886
|
|
734
|
-
header_params = {
|
735
|
-
|
736
|
-
|
887
|
+
header_params = {}
|
888
|
+
if request.parent
|
889
|
+
header_params["parent"] = request.parent
|
890
|
+
end
|
891
|
+
|
737
892
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
738
893
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
739
894
|
|
@@ -783,6 +938,21 @@ module Google
|
|
783
938
|
#
|
784
939
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
785
940
|
#
|
941
|
+
# @example Basic example
|
942
|
+
# require "google/cloud/contact_center_insights/v1"
|
943
|
+
#
|
944
|
+
# # Create a client object. The client can be reused for multiple calls.
|
945
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
946
|
+
#
|
947
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
948
|
+
# request = Google::Cloud::ContactCenterInsights::V1::DeleteAnalysisRequest.new
|
949
|
+
#
|
950
|
+
# # Call the delete_analysis method.
|
951
|
+
# result = client.delete_analysis request
|
952
|
+
#
|
953
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
954
|
+
# p result
|
955
|
+
#
|
786
956
|
def delete_analysis request, options = nil
|
787
957
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
788
958
|
|
@@ -800,9 +970,11 @@ module Google
|
|
800
970
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
801
971
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
802
972
|
|
803
|
-
header_params = {
|
804
|
-
|
805
|
-
|
973
|
+
header_params = {}
|
974
|
+
if request.name
|
975
|
+
header_params["name"] = request.name
|
976
|
+
end
|
977
|
+
|
806
978
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
807
979
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
808
980
|
|
@@ -860,6 +1032,28 @@ module Google
|
|
860
1032
|
#
|
861
1033
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
862
1034
|
#
|
1035
|
+
# @example Basic example
|
1036
|
+
# require "google/cloud/contact_center_insights/v1"
|
1037
|
+
#
|
1038
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1039
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
1040
|
+
#
|
1041
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1042
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ExportInsightsDataRequest.new
|
1043
|
+
#
|
1044
|
+
# # Call the export_insights_data method.
|
1045
|
+
# result = client.export_insights_data request
|
1046
|
+
#
|
1047
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1048
|
+
# # object to check the status of an operation, cancel it, or wait
|
1049
|
+
# # for results. Here is how to block until completion:
|
1050
|
+
# result.wait_until_done! timeout: 60
|
1051
|
+
# if result.response?
|
1052
|
+
# p result.response
|
1053
|
+
# else
|
1054
|
+
# puts "Error!"
|
1055
|
+
# end
|
1056
|
+
#
|
863
1057
|
def export_insights_data request, options = nil
|
864
1058
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
865
1059
|
|
@@ -877,9 +1071,11 @@ module Google
|
|
877
1071
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
878
1072
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
879
1073
|
|
880
|
-
header_params = {
|
881
|
-
|
882
|
-
|
1074
|
+
header_params = {}
|
1075
|
+
if request.parent
|
1076
|
+
header_params["parent"] = request.parent
|
1077
|
+
end
|
1078
|
+
|
883
1079
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
884
1080
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
885
1081
|
|
@@ -931,6 +1127,28 @@ module Google
|
|
931
1127
|
#
|
932
1128
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
933
1129
|
#
|
1130
|
+
# @example Basic example
|
1131
|
+
# require "google/cloud/contact_center_insights/v1"
|
1132
|
+
#
|
1133
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1134
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
1135
|
+
#
|
1136
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1137
|
+
# request = Google::Cloud::ContactCenterInsights::V1::CreateIssueModelRequest.new
|
1138
|
+
#
|
1139
|
+
# # Call the create_issue_model method.
|
1140
|
+
# result = client.create_issue_model request
|
1141
|
+
#
|
1142
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1143
|
+
# # object to check the status of an operation, cancel it, or wait
|
1144
|
+
# # for results. Here is how to block until completion:
|
1145
|
+
# result.wait_until_done! timeout: 60
|
1146
|
+
# if result.response?
|
1147
|
+
# p result.response
|
1148
|
+
# else
|
1149
|
+
# puts "Error!"
|
1150
|
+
# end
|
1151
|
+
#
|
934
1152
|
def create_issue_model request, options = nil
|
935
1153
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
936
1154
|
|
@@ -948,9 +1166,11 @@ module Google
|
|
948
1166
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
949
1167
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
950
1168
|
|
951
|
-
header_params = {
|
952
|
-
|
953
|
-
|
1169
|
+
header_params = {}
|
1170
|
+
if request.parent
|
1171
|
+
header_params["parent"] = request.parent
|
1172
|
+
end
|
1173
|
+
|
954
1174
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
955
1175
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
956
1176
|
|
@@ -1002,6 +1222,21 @@ module Google
|
|
1002
1222
|
#
|
1003
1223
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1004
1224
|
#
|
1225
|
+
# @example Basic example
|
1226
|
+
# require "google/cloud/contact_center_insights/v1"
|
1227
|
+
#
|
1228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1229
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
1230
|
+
#
|
1231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1232
|
+
# request = Google::Cloud::ContactCenterInsights::V1::UpdateIssueModelRequest.new
|
1233
|
+
#
|
1234
|
+
# # Call the update_issue_model method.
|
1235
|
+
# result = client.update_issue_model request
|
1236
|
+
#
|
1237
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::IssueModel.
|
1238
|
+
# p result
|
1239
|
+
#
|
1005
1240
|
def update_issue_model request, options = nil
|
1006
1241
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1007
1242
|
|
@@ -1019,9 +1254,11 @@ module Google
|
|
1019
1254
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
1020
1255
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1021
1256
|
|
1022
|
-
header_params = {
|
1023
|
-
|
1024
|
-
|
1257
|
+
header_params = {}
|
1258
|
+
if request.issue_model&.name
|
1259
|
+
header_params["issue_model.name"] = request.issue_model.name
|
1260
|
+
end
|
1261
|
+
|
1025
1262
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1026
1263
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1027
1264
|
|
@@ -1070,6 +1307,21 @@ module Google
|
|
1070
1307
|
#
|
1071
1308
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1072
1309
|
#
|
1310
|
+
# @example Basic example
|
1311
|
+
# require "google/cloud/contact_center_insights/v1"
|
1312
|
+
#
|
1313
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1314
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
1315
|
+
#
|
1316
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1317
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetIssueModelRequest.new
|
1318
|
+
#
|
1319
|
+
# # Call the get_issue_model method.
|
1320
|
+
# result = client.get_issue_model request
|
1321
|
+
#
|
1322
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::IssueModel.
|
1323
|
+
# p result
|
1324
|
+
#
|
1073
1325
|
def get_issue_model request, options = nil
|
1074
1326
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1075
1327
|
|
@@ -1087,9 +1339,11 @@ module Google
|
|
1087
1339
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
1088
1340
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1089
1341
|
|
1090
|
-
header_params = {
|
1091
|
-
|
1092
|
-
|
1342
|
+
header_params = {}
|
1343
|
+
if request.name
|
1344
|
+
header_params["name"] = request.name
|
1345
|
+
end
|
1346
|
+
|
1093
1347
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1094
1348
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1095
1349
|
|
@@ -1138,6 +1392,21 @@ module Google
|
|
1138
1392
|
#
|
1139
1393
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1140
1394
|
#
|
1395
|
+
# @example Basic example
|
1396
|
+
# require "google/cloud/contact_center_insights/v1"
|
1397
|
+
#
|
1398
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1399
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
1400
|
+
#
|
1401
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1402
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ListIssueModelsRequest.new
|
1403
|
+
#
|
1404
|
+
# # Call the list_issue_models method.
|
1405
|
+
# result = client.list_issue_models request
|
1406
|
+
#
|
1407
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::ListIssueModelsResponse.
|
1408
|
+
# p result
|
1409
|
+
#
|
1141
1410
|
def list_issue_models request, options = nil
|
1142
1411
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1143
1412
|
|
@@ -1155,9 +1424,11 @@ module Google
|
|
1155
1424
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
1156
1425
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1157
1426
|
|
1158
|
-
header_params = {
|
1159
|
-
|
1160
|
-
|
1427
|
+
header_params = {}
|
1428
|
+
if request.parent
|
1429
|
+
header_params["parent"] = request.parent
|
1430
|
+
end
|
1431
|
+
|
1161
1432
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1162
1433
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1163
1434
|
|
@@ -1206,6 +1477,28 @@ module Google
|
|
1206
1477
|
#
|
1207
1478
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1208
1479
|
#
|
1480
|
+
# @example Basic example
|
1481
|
+
# require "google/cloud/contact_center_insights/v1"
|
1482
|
+
#
|
1483
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1484
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
1485
|
+
#
|
1486
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1487
|
+
# request = Google::Cloud::ContactCenterInsights::V1::DeleteIssueModelRequest.new
|
1488
|
+
#
|
1489
|
+
# # Call the delete_issue_model method.
|
1490
|
+
# result = client.delete_issue_model request
|
1491
|
+
#
|
1492
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1493
|
+
# # object to check the status of an operation, cancel it, or wait
|
1494
|
+
# # for results. Here is how to block until completion:
|
1495
|
+
# result.wait_until_done! timeout: 60
|
1496
|
+
# if result.response?
|
1497
|
+
# p result.response
|
1498
|
+
# else
|
1499
|
+
# puts "Error!"
|
1500
|
+
# end
|
1501
|
+
#
|
1209
1502
|
def delete_issue_model request, options = nil
|
1210
1503
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1211
1504
|
|
@@ -1223,9 +1516,11 @@ module Google
|
|
1223
1516
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
1224
1517
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1225
1518
|
|
1226
|
-
header_params = {
|
1227
|
-
|
1228
|
-
|
1519
|
+
header_params = {}
|
1520
|
+
if request.name
|
1521
|
+
header_params["name"] = request.name
|
1522
|
+
end
|
1523
|
+
|
1229
1524
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1230
1525
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1231
1526
|
|
@@ -1276,6 +1571,28 @@ module Google
|
|
1276
1571
|
#
|
1277
1572
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1278
1573
|
#
|
1574
|
+
# @example Basic example
|
1575
|
+
# require "google/cloud/contact_center_insights/v1"
|
1576
|
+
#
|
1577
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1578
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
1579
|
+
#
|
1580
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1581
|
+
# request = Google::Cloud::ContactCenterInsights::V1::DeployIssueModelRequest.new
|
1582
|
+
#
|
1583
|
+
# # Call the deploy_issue_model method.
|
1584
|
+
# result = client.deploy_issue_model request
|
1585
|
+
#
|
1586
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1587
|
+
# # object to check the status of an operation, cancel it, or wait
|
1588
|
+
# # for results. Here is how to block until completion:
|
1589
|
+
# result.wait_until_done! timeout: 60
|
1590
|
+
# if result.response?
|
1591
|
+
# p result.response
|
1592
|
+
# else
|
1593
|
+
# puts "Error!"
|
1594
|
+
# end
|
1595
|
+
#
|
1279
1596
|
def deploy_issue_model request, options = nil
|
1280
1597
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1281
1598
|
|
@@ -1293,9 +1610,11 @@ module Google
|
|
1293
1610
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
1294
1611
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1295
1612
|
|
1296
|
-
header_params = {
|
1297
|
-
|
1298
|
-
|
1613
|
+
header_params = {}
|
1614
|
+
if request.name
|
1615
|
+
header_params["name"] = request.name
|
1616
|
+
end
|
1617
|
+
|
1299
1618
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1300
1619
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1301
1620
|
|
@@ -1346,6 +1665,28 @@ module Google
|
|
1346
1665
|
#
|
1347
1666
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1348
1667
|
#
|
1668
|
+
# @example Basic example
|
1669
|
+
# require "google/cloud/contact_center_insights/v1"
|
1670
|
+
#
|
1671
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1672
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
1673
|
+
#
|
1674
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1675
|
+
# request = Google::Cloud::ContactCenterInsights::V1::UndeployIssueModelRequest.new
|
1676
|
+
#
|
1677
|
+
# # Call the undeploy_issue_model method.
|
1678
|
+
# result = client.undeploy_issue_model request
|
1679
|
+
#
|
1680
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1681
|
+
# # object to check the status of an operation, cancel it, or wait
|
1682
|
+
# # for results. Here is how to block until completion:
|
1683
|
+
# result.wait_until_done! timeout: 60
|
1684
|
+
# if result.response?
|
1685
|
+
# p result.response
|
1686
|
+
# else
|
1687
|
+
# puts "Error!"
|
1688
|
+
# end
|
1689
|
+
#
|
1349
1690
|
def undeploy_issue_model request, options = nil
|
1350
1691
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1351
1692
|
|
@@ -1363,9 +1704,11 @@ module Google
|
|
1363
1704
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
1364
1705
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1365
1706
|
|
1366
|
-
header_params = {
|
1367
|
-
|
1368
|
-
|
1707
|
+
header_params = {}
|
1708
|
+
if request.name
|
1709
|
+
header_params["name"] = request.name
|
1710
|
+
end
|
1711
|
+
|
1369
1712
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1370
1713
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1371
1714
|
|
@@ -1415,6 +1758,21 @@ module Google
|
|
1415
1758
|
#
|
1416
1759
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1417
1760
|
#
|
1761
|
+
# @example Basic example
|
1762
|
+
# require "google/cloud/contact_center_insights/v1"
|
1763
|
+
#
|
1764
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1765
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
1766
|
+
#
|
1767
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1768
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetIssueRequest.new
|
1769
|
+
#
|
1770
|
+
# # Call the get_issue method.
|
1771
|
+
# result = client.get_issue request
|
1772
|
+
#
|
1773
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::Issue.
|
1774
|
+
# p result
|
1775
|
+
#
|
1418
1776
|
def get_issue request, options = nil
|
1419
1777
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1420
1778
|
|
@@ -1432,9 +1790,11 @@ module Google
|
|
1432
1790
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
1433
1791
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1434
1792
|
|
1435
|
-
header_params = {
|
1436
|
-
|
1437
|
-
|
1793
|
+
header_params = {}
|
1794
|
+
if request.name
|
1795
|
+
header_params["name"] = request.name
|
1796
|
+
end
|
1797
|
+
|
1438
1798
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1439
1799
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1440
1800
|
|
@@ -1483,6 +1843,21 @@ module Google
|
|
1483
1843
|
#
|
1484
1844
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1485
1845
|
#
|
1846
|
+
# @example Basic example
|
1847
|
+
# require "google/cloud/contact_center_insights/v1"
|
1848
|
+
#
|
1849
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1850
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
1851
|
+
#
|
1852
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1853
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ListIssuesRequest.new
|
1854
|
+
#
|
1855
|
+
# # Call the list_issues method.
|
1856
|
+
# result = client.list_issues request
|
1857
|
+
#
|
1858
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::ListIssuesResponse.
|
1859
|
+
# p result
|
1860
|
+
#
|
1486
1861
|
def list_issues request, options = nil
|
1487
1862
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1488
1863
|
|
@@ -1500,9 +1875,11 @@ module Google
|
|
1500
1875
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
1501
1876
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1502
1877
|
|
1503
|
-
header_params = {
|
1504
|
-
|
1505
|
-
|
1878
|
+
header_params = {}
|
1879
|
+
if request.parent
|
1880
|
+
header_params["parent"] = request.parent
|
1881
|
+
end
|
1882
|
+
|
1506
1883
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1507
1884
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1508
1885
|
|
@@ -1553,6 +1930,21 @@ module Google
|
|
1553
1930
|
#
|
1554
1931
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1555
1932
|
#
|
1933
|
+
# @example Basic example
|
1934
|
+
# require "google/cloud/contact_center_insights/v1"
|
1935
|
+
#
|
1936
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1937
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
1938
|
+
#
|
1939
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1940
|
+
# request = Google::Cloud::ContactCenterInsights::V1::UpdateIssueRequest.new
|
1941
|
+
#
|
1942
|
+
# # Call the update_issue method.
|
1943
|
+
# result = client.update_issue request
|
1944
|
+
#
|
1945
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::Issue.
|
1946
|
+
# p result
|
1947
|
+
#
|
1556
1948
|
def update_issue request, options = nil
|
1557
1949
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1558
1950
|
|
@@ -1570,9 +1962,11 @@ module Google
|
|
1570
1962
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
1571
1963
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1572
1964
|
|
1573
|
-
header_params = {
|
1574
|
-
|
1575
|
-
|
1965
|
+
header_params = {}
|
1966
|
+
if request.issue&.name
|
1967
|
+
header_params["issue.name"] = request.issue.name
|
1968
|
+
end
|
1969
|
+
|
1576
1970
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1577
1971
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1578
1972
|
|
@@ -1621,6 +2015,21 @@ module Google
|
|
1621
2015
|
#
|
1622
2016
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1623
2017
|
#
|
2018
|
+
# @example Basic example
|
2019
|
+
# require "google/cloud/contact_center_insights/v1"
|
2020
|
+
#
|
2021
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2022
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
2023
|
+
#
|
2024
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2025
|
+
# request = Google::Cloud::ContactCenterInsights::V1::CalculateIssueModelStatsRequest.new
|
2026
|
+
#
|
2027
|
+
# # Call the calculate_issue_model_stats method.
|
2028
|
+
# result = client.calculate_issue_model_stats request
|
2029
|
+
#
|
2030
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::CalculateIssueModelStatsResponse.
|
2031
|
+
# p result
|
2032
|
+
#
|
1624
2033
|
def calculate_issue_model_stats request, options = nil
|
1625
2034
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1626
2035
|
|
@@ -1638,9 +2047,11 @@ module Google
|
|
1638
2047
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
1639
2048
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1640
2049
|
|
1641
|
-
header_params = {
|
1642
|
-
|
1643
|
-
|
2050
|
+
header_params = {}
|
2051
|
+
if request.issue_model
|
2052
|
+
header_params["issue_model"] = request.issue_model
|
2053
|
+
end
|
2054
|
+
|
1644
2055
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1645
2056
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1646
2057
|
|
@@ -1679,10 +2090,10 @@ module Google
|
|
1679
2090
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1680
2091
|
#
|
1681
2092
|
# @param parent [::String]
|
1682
|
-
# Required. The parent resource of the phrase matcher. Required. The location
|
1683
|
-
# a phrase matcher for.
|
1684
|
-
#
|
1685
|
-
#
|
2093
|
+
# Required. The parent resource of the phrase matcher. Required. The location
|
2094
|
+
# to create a phrase matcher for. Format: `projects/<Project
|
2095
|
+
# ID>/locations/<Location ID>` or `projects/<Project
|
2096
|
+
# Number>/locations/<Location ID>`
|
1686
2097
|
# @param phrase_matcher [::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher, ::Hash]
|
1687
2098
|
# Required. The phrase matcher resource to create.
|
1688
2099
|
#
|
@@ -1694,6 +2105,21 @@ module Google
|
|
1694
2105
|
#
|
1695
2106
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1696
2107
|
#
|
2108
|
+
# @example Basic example
|
2109
|
+
# require "google/cloud/contact_center_insights/v1"
|
2110
|
+
#
|
2111
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2112
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
2113
|
+
#
|
2114
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2115
|
+
# request = Google::Cloud::ContactCenterInsights::V1::CreatePhraseMatcherRequest.new
|
2116
|
+
#
|
2117
|
+
# # Call the create_phrase_matcher method.
|
2118
|
+
# result = client.create_phrase_matcher request
|
2119
|
+
#
|
2120
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::PhraseMatcher.
|
2121
|
+
# p result
|
2122
|
+
#
|
1697
2123
|
def create_phrase_matcher request, options = nil
|
1698
2124
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1699
2125
|
|
@@ -1711,9 +2137,11 @@ module Google
|
|
1711
2137
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
1712
2138
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1713
2139
|
|
1714
|
-
header_params = {
|
1715
|
-
|
1716
|
-
|
2140
|
+
header_params = {}
|
2141
|
+
if request.parent
|
2142
|
+
header_params["parent"] = request.parent
|
2143
|
+
end
|
2144
|
+
|
1717
2145
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1718
2146
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1719
2147
|
|
@@ -1762,6 +2190,21 @@ module Google
|
|
1762
2190
|
#
|
1763
2191
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1764
2192
|
#
|
2193
|
+
# @example Basic example
|
2194
|
+
# require "google/cloud/contact_center_insights/v1"
|
2195
|
+
#
|
2196
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2197
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
2198
|
+
#
|
2199
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2200
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetPhraseMatcherRequest.new
|
2201
|
+
#
|
2202
|
+
# # Call the get_phrase_matcher method.
|
2203
|
+
# result = client.get_phrase_matcher request
|
2204
|
+
#
|
2205
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::PhraseMatcher.
|
2206
|
+
# p result
|
2207
|
+
#
|
1765
2208
|
def get_phrase_matcher request, options = nil
|
1766
2209
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1767
2210
|
|
@@ -1779,9 +2222,11 @@ module Google
|
|
1779
2222
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
1780
2223
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1781
2224
|
|
1782
|
-
header_params = {
|
1783
|
-
|
1784
|
-
|
2225
|
+
header_params = {}
|
2226
|
+
if request.name
|
2227
|
+
header_params["name"] = request.name
|
2228
|
+
end
|
2229
|
+
|
1785
2230
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1786
2231
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1787
2232
|
|
@@ -1842,6 +2287,27 @@ module Google
|
|
1842
2287
|
#
|
1843
2288
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1844
2289
|
#
|
2290
|
+
# @example Basic example
|
2291
|
+
# require "google/cloud/contact_center_insights/v1"
|
2292
|
+
#
|
2293
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2294
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
2295
|
+
#
|
2296
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2297
|
+
# request = Google::Cloud::ContactCenterInsights::V1::ListPhraseMatchersRequest.new
|
2298
|
+
#
|
2299
|
+
# # Call the list_phrase_matchers method.
|
2300
|
+
# result = client.list_phrase_matchers request
|
2301
|
+
#
|
2302
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2303
|
+
# # iterate over all elements by calling #each, and the enumerable
|
2304
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
2305
|
+
# # methods are also available for managing paging directly.
|
2306
|
+
# result.each do |response|
|
2307
|
+
# # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher.
|
2308
|
+
# p response
|
2309
|
+
# end
|
2310
|
+
#
|
1845
2311
|
def list_phrase_matchers request, options = nil
|
1846
2312
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1847
2313
|
|
@@ -1859,9 +2325,11 @@ module Google
|
|
1859
2325
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
1860
2326
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1861
2327
|
|
1862
|
-
header_params = {
|
1863
|
-
|
1864
|
-
|
2328
|
+
header_params = {}
|
2329
|
+
if request.parent
|
2330
|
+
header_params["parent"] = request.parent
|
2331
|
+
end
|
2332
|
+
|
1865
2333
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1866
2334
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1867
2335
|
|
@@ -1911,6 +2379,21 @@ module Google
|
|
1911
2379
|
#
|
1912
2380
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1913
2381
|
#
|
2382
|
+
# @example Basic example
|
2383
|
+
# require "google/cloud/contact_center_insights/v1"
|
2384
|
+
#
|
2385
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2386
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
2387
|
+
#
|
2388
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2389
|
+
# request = Google::Cloud::ContactCenterInsights::V1::DeletePhraseMatcherRequest.new
|
2390
|
+
#
|
2391
|
+
# # Call the delete_phrase_matcher method.
|
2392
|
+
# result = client.delete_phrase_matcher request
|
2393
|
+
#
|
2394
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
2395
|
+
# p result
|
2396
|
+
#
|
1914
2397
|
def delete_phrase_matcher request, options = nil
|
1915
2398
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1916
2399
|
|
@@ -1928,9 +2411,11 @@ module Google
|
|
1928
2411
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
1929
2412
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1930
2413
|
|
1931
|
-
header_params = {
|
1932
|
-
|
1933
|
-
|
2414
|
+
header_params = {}
|
2415
|
+
if request.name
|
2416
|
+
header_params["name"] = request.name
|
2417
|
+
end
|
2418
|
+
|
1934
2419
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1935
2420
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1936
2421
|
|
@@ -1950,6 +2435,93 @@ module Google
|
|
1950
2435
|
raise ::Google::Cloud::Error.from_error(e)
|
1951
2436
|
end
|
1952
2437
|
|
2438
|
+
##
|
2439
|
+
# Updates a phrase matcher.
|
2440
|
+
#
|
2441
|
+
# @overload update_phrase_matcher(request, options = nil)
|
2442
|
+
# Pass arguments to `update_phrase_matcher` via a request object, either of type
|
2443
|
+
# {::Google::Cloud::ContactCenterInsights::V1::UpdatePhraseMatcherRequest} or an equivalent Hash.
|
2444
|
+
#
|
2445
|
+
# @param request [::Google::Cloud::ContactCenterInsights::V1::UpdatePhraseMatcherRequest, ::Hash]
|
2446
|
+
# A request object representing the call parameters. Required. To specify no
|
2447
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2448
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2449
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2450
|
+
#
|
2451
|
+
# @overload update_phrase_matcher(phrase_matcher: nil, update_mask: nil)
|
2452
|
+
# Pass arguments to `update_phrase_matcher` via keyword arguments. Note that at
|
2453
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2454
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2455
|
+
#
|
2456
|
+
# @param phrase_matcher [::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher, ::Hash]
|
2457
|
+
# Required. The new values for the phrase matcher.
|
2458
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2459
|
+
# The list of fields to be updated.
|
2460
|
+
#
|
2461
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2462
|
+
# @yieldparam response [::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher]
|
2463
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2464
|
+
#
|
2465
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher]
|
2466
|
+
#
|
2467
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2468
|
+
#
|
2469
|
+
# @example Basic example
|
2470
|
+
# require "google/cloud/contact_center_insights/v1"
|
2471
|
+
#
|
2472
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2473
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
2474
|
+
#
|
2475
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2476
|
+
# request = Google::Cloud::ContactCenterInsights::V1::UpdatePhraseMatcherRequest.new
|
2477
|
+
#
|
2478
|
+
# # Call the update_phrase_matcher method.
|
2479
|
+
# result = client.update_phrase_matcher request
|
2480
|
+
#
|
2481
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::PhraseMatcher.
|
2482
|
+
# p result
|
2483
|
+
#
|
2484
|
+
def update_phrase_matcher request, options = nil
|
2485
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2486
|
+
|
2487
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::UpdatePhraseMatcherRequest
|
2488
|
+
|
2489
|
+
# Converts hash and nil to an options object
|
2490
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2491
|
+
|
2492
|
+
# Customize the options with defaults
|
2493
|
+
metadata = @config.rpcs.update_phrase_matcher.metadata.to_h
|
2494
|
+
|
2495
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2496
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2497
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2498
|
+
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
2499
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2500
|
+
|
2501
|
+
header_params = {}
|
2502
|
+
if request.phrase_matcher&.name
|
2503
|
+
header_params["phrase_matcher.name"] = request.phrase_matcher.name
|
2504
|
+
end
|
2505
|
+
|
2506
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2507
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2508
|
+
|
2509
|
+
options.apply_defaults timeout: @config.rpcs.update_phrase_matcher.timeout,
|
2510
|
+
metadata: metadata,
|
2511
|
+
retry_policy: @config.rpcs.update_phrase_matcher.retry_policy
|
2512
|
+
|
2513
|
+
options.apply_defaults timeout: @config.timeout,
|
2514
|
+
metadata: @config.metadata,
|
2515
|
+
retry_policy: @config.retry_policy
|
2516
|
+
|
2517
|
+
@contact_center_insights_stub.call_rpc :update_phrase_matcher, request, options: options do |response, operation|
|
2518
|
+
yield response, operation if block_given?
|
2519
|
+
return response
|
2520
|
+
end
|
2521
|
+
rescue ::GRPC::BadStatus => e
|
2522
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2523
|
+
end
|
2524
|
+
|
1953
2525
|
##
|
1954
2526
|
# Gets conversation statistics.
|
1955
2527
|
#
|
@@ -1982,6 +2554,21 @@ module Google
|
|
1982
2554
|
#
|
1983
2555
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1984
2556
|
#
|
2557
|
+
# @example Basic example
|
2558
|
+
# require "google/cloud/contact_center_insights/v1"
|
2559
|
+
#
|
2560
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2561
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
2562
|
+
#
|
2563
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2564
|
+
# request = Google::Cloud::ContactCenterInsights::V1::CalculateStatsRequest.new
|
2565
|
+
#
|
2566
|
+
# # Call the calculate_stats method.
|
2567
|
+
# result = client.calculate_stats request
|
2568
|
+
#
|
2569
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse.
|
2570
|
+
# p result
|
2571
|
+
#
|
1985
2572
|
def calculate_stats request, options = nil
|
1986
2573
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1987
2574
|
|
@@ -1999,9 +2586,11 @@ module Google
|
|
1999
2586
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
2000
2587
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2001
2588
|
|
2002
|
-
header_params = {
|
2003
|
-
|
2004
|
-
|
2589
|
+
header_params = {}
|
2590
|
+
if request.location
|
2591
|
+
header_params["location"] = request.location
|
2592
|
+
end
|
2593
|
+
|
2005
2594
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2006
2595
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2007
2596
|
|
@@ -2050,6 +2639,21 @@ module Google
|
|
2050
2639
|
#
|
2051
2640
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2052
2641
|
#
|
2642
|
+
# @example Basic example
|
2643
|
+
# require "google/cloud/contact_center_insights/v1"
|
2644
|
+
#
|
2645
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2646
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
2647
|
+
#
|
2648
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2649
|
+
# request = Google::Cloud::ContactCenterInsights::V1::GetSettingsRequest.new
|
2650
|
+
#
|
2651
|
+
# # Call the get_settings method.
|
2652
|
+
# result = client.get_settings request
|
2653
|
+
#
|
2654
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::Settings.
|
2655
|
+
# p result
|
2656
|
+
#
|
2053
2657
|
def get_settings request, options = nil
|
2054
2658
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2055
2659
|
|
@@ -2067,9 +2671,11 @@ module Google
|
|
2067
2671
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
2068
2672
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2069
2673
|
|
2070
|
-
header_params = {
|
2071
|
-
|
2072
|
-
|
2674
|
+
header_params = {}
|
2675
|
+
if request.name
|
2676
|
+
header_params["name"] = request.name
|
2677
|
+
end
|
2678
|
+
|
2073
2679
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2074
2680
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2075
2681
|
|
@@ -2108,7 +2714,7 @@ module Google
|
|
2108
2714
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2109
2715
|
#
|
2110
2716
|
# @param settings [::Google::Cloud::ContactCenterInsights::V1::Settings, ::Hash]
|
2111
|
-
# Required. The new values
|
2717
|
+
# Required. The new settings values.
|
2112
2718
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
2113
2719
|
# Required. The list of fields to be updated.
|
2114
2720
|
#
|
@@ -2120,6 +2726,21 @@ module Google
|
|
2120
2726
|
#
|
2121
2727
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2122
2728
|
#
|
2729
|
+
# @example Basic example
|
2730
|
+
# require "google/cloud/contact_center_insights/v1"
|
2731
|
+
#
|
2732
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2733
|
+
# client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
|
2734
|
+
#
|
2735
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2736
|
+
# request = Google::Cloud::ContactCenterInsights::V1::UpdateSettingsRequest.new
|
2737
|
+
#
|
2738
|
+
# # Call the update_settings method.
|
2739
|
+
# result = client.update_settings request
|
2740
|
+
#
|
2741
|
+
# # The returned object is of type Google::Cloud::ContactCenterInsights::V1::Settings.
|
2742
|
+
# p result
|
2743
|
+
#
|
2123
2744
|
def update_settings request, options = nil
|
2124
2745
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2125
2746
|
|
@@ -2137,9 +2758,11 @@ module Google
|
|
2137
2758
|
gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
|
2138
2759
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2139
2760
|
|
2140
|
-
header_params = {
|
2141
|
-
|
2142
|
-
|
2761
|
+
header_params = {}
|
2762
|
+
if request.settings&.name
|
2763
|
+
header_params["settings.name"] = request.settings.name
|
2764
|
+
end
|
2765
|
+
|
2143
2766
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2144
2767
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2145
2768
|
|
@@ -2420,6 +3043,11 @@ module Google
|
|
2420
3043
|
#
|
2421
3044
|
attr_reader :delete_phrase_matcher
|
2422
3045
|
##
|
3046
|
+
# RPC-specific configuration for `update_phrase_matcher`
|
3047
|
+
# @return [::Gapic::Config::Method]
|
3048
|
+
#
|
3049
|
+
attr_reader :update_phrase_matcher
|
3050
|
+
##
|
2423
3051
|
# RPC-specific configuration for `calculate_stats`
|
2424
3052
|
# @return [::Gapic::Config::Method]
|
2425
3053
|
#
|
@@ -2487,6 +3115,8 @@ module Google
|
|
2487
3115
|
@list_phrase_matchers = ::Gapic::Config::Method.new list_phrase_matchers_config
|
2488
3116
|
delete_phrase_matcher_config = parent_rpcs.delete_phrase_matcher if parent_rpcs.respond_to? :delete_phrase_matcher
|
2489
3117
|
@delete_phrase_matcher = ::Gapic::Config::Method.new delete_phrase_matcher_config
|
3118
|
+
update_phrase_matcher_config = parent_rpcs.update_phrase_matcher if parent_rpcs.respond_to? :update_phrase_matcher
|
3119
|
+
@update_phrase_matcher = ::Gapic::Config::Method.new update_phrase_matcher_config
|
2490
3120
|
calculate_stats_config = parent_rpcs.calculate_stats if parent_rpcs.respond_to? :calculate_stats
|
2491
3121
|
@calculate_stats = ::Gapic::Config::Method.new calculate_stats_config
|
2492
3122
|
get_settings_config = parent_rpcs.get_settings if parent_rpcs.respond_to? :get_settings
|