google-cloud-contact_center_insights-v1 0.16.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -189,6 +189,22 @@ module Google
189
189
  # @return [::Google::Cloud::ContactCenterInsights::V1::Conversation]
190
190
  #
191
191
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
192
+ #
193
+ # @example Basic example
194
+ # require "google/cloud/contact_center_insights/v1"
195
+ #
196
+ # # Create a client object. The client can be reused for multiple calls.
197
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
198
+ #
199
+ # # Create a request. To set request fields, pass in keyword arguments.
200
+ # request = Google::Cloud::ContactCenterInsights::V1::CreateConversationRequest.new
201
+ #
202
+ # # Call the create_conversation method.
203
+ # result = client.create_conversation request
204
+ #
205
+ # # The returned object is of type Google::Cloud::ContactCenterInsights::V1::Conversation.
206
+ # p result
207
+ #
192
208
  def create_conversation request, options = nil
193
209
  raise ::ArgumentError, "request must be provided" if request.nil?
194
210
 
@@ -239,7 +255,7 @@ module Google
239
255
  # @param options [::Gapic::CallOptions, ::Hash]
240
256
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
241
257
  #
242
- # @overload upload_conversation(parent: nil, conversation: nil, conversation_id: nil, redaction_config: nil)
258
+ # @overload upload_conversation(parent: nil, conversation: nil, conversation_id: nil, redaction_config: nil, speech_config: nil)
243
259
  # Pass arguments to `upload_conversation` via keyword arguments. Note that at
244
260
  # least one keyword argument is required. To specify no parameters, or to keep all
245
261
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -258,6 +274,9 @@ module Google
258
274
  # @param redaction_config [::Google::Cloud::ContactCenterInsights::V1::RedactionConfig, ::Hash]
259
275
  # Optional. DLP settings for transcript redaction. Optional, will default to
260
276
  # the config specified in Settings.
277
+ # @param speech_config [::Google::Cloud::ContactCenterInsights::V1::SpeechConfig, ::Hash]
278
+ # Optional. Default Speech-to-Text configuration. Optional, will default to
279
+ # the config specified in Settings.
261
280
  # @yield [result, operation] Access the result along with the TransportOperation object
262
281
  # @yieldparam result [::Gapic::Operation]
263
282
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -265,6 +284,29 @@ module Google
265
284
  # @return [::Gapic::Operation]
266
285
  #
267
286
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
287
+ #
288
+ # @example Basic example
289
+ # require "google/cloud/contact_center_insights/v1"
290
+ #
291
+ # # Create a client object. The client can be reused for multiple calls.
292
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
293
+ #
294
+ # # Create a request. To set request fields, pass in keyword arguments.
295
+ # request = Google::Cloud::ContactCenterInsights::V1::UploadConversationRequest.new
296
+ #
297
+ # # Call the upload_conversation method.
298
+ # result = client.upload_conversation request
299
+ #
300
+ # # The returned object is of type Gapic::Operation. You can use it to
301
+ # # check the status of an operation, cancel it, or wait for results.
302
+ # # Here is how to wait for a response.
303
+ # result.wait_until_done! timeout: 60
304
+ # if result.response?
305
+ # p result.response
306
+ # else
307
+ # puts "No response received."
308
+ # end
309
+ #
268
310
  def upload_conversation request, options = nil
269
311
  raise ::ArgumentError, "request must be provided" if request.nil?
270
312
 
@@ -330,6 +372,22 @@ module Google
330
372
  # @return [::Google::Cloud::ContactCenterInsights::V1::Conversation]
331
373
  #
332
374
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
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::Rest::Client.new
381
+ #
382
+ # # Create a request. To set request fields, pass in keyword arguments.
383
+ # request = Google::Cloud::ContactCenterInsights::V1::UpdateConversationRequest.new
384
+ #
385
+ # # Call the update_conversation method.
386
+ # result = client.update_conversation request
387
+ #
388
+ # # The returned object is of type Google::Cloud::ContactCenterInsights::V1::Conversation.
389
+ # p result
390
+ #
333
391
  def update_conversation request, options = nil
334
392
  raise ::ArgumentError, "request must be provided" if request.nil?
335
393
 
@@ -394,6 +452,22 @@ module Google
394
452
  # @return [::Google::Cloud::ContactCenterInsights::V1::Conversation]
395
453
  #
396
454
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
455
+ #
456
+ # @example Basic example
457
+ # require "google/cloud/contact_center_insights/v1"
458
+ #
459
+ # # Create a client object. The client can be reused for multiple calls.
460
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
461
+ #
462
+ # # Create a request. To set request fields, pass in keyword arguments.
463
+ # request = Google::Cloud::ContactCenterInsights::V1::GetConversationRequest.new
464
+ #
465
+ # # Call the get_conversation method.
466
+ # result = client.get_conversation request
467
+ #
468
+ # # The returned object is of type Google::Cloud::ContactCenterInsights::V1::Conversation.
469
+ # p result
470
+ #
397
471
  def get_conversation request, options = nil
398
472
  raise ::ArgumentError, "request must be provided" if request.nil?
399
473
 
@@ -470,6 +544,26 @@ module Google
470
544
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::Conversation>]
471
545
  #
472
546
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
547
+ #
548
+ # @example Basic example
549
+ # require "google/cloud/contact_center_insights/v1"
550
+ #
551
+ # # Create a client object. The client can be reused for multiple calls.
552
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
553
+ #
554
+ # # Create a request. To set request fields, pass in keyword arguments.
555
+ # request = Google::Cloud::ContactCenterInsights::V1::ListConversationsRequest.new
556
+ #
557
+ # # Call the list_conversations method.
558
+ # result = client.list_conversations request
559
+ #
560
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
561
+ # # over elements, and API calls will be issued to fetch pages as needed.
562
+ # result.each do |item|
563
+ # # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::Conversation.
564
+ # p item
565
+ # end
566
+ #
473
567
  def list_conversations request, options = nil
474
568
  raise ::ArgumentError, "request must be provided" if request.nil?
475
569
 
@@ -537,6 +631,22 @@ module Google
537
631
  # @return [::Google::Protobuf::Empty]
538
632
  #
539
633
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
634
+ #
635
+ # @example Basic example
636
+ # require "google/cloud/contact_center_insights/v1"
637
+ #
638
+ # # Create a client object. The client can be reused for multiple calls.
639
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
640
+ #
641
+ # # Create a request. To set request fields, pass in keyword arguments.
642
+ # request = Google::Cloud::ContactCenterInsights::V1::DeleteConversationRequest.new
643
+ #
644
+ # # Call the delete_conversation method.
645
+ # result = client.delete_conversation request
646
+ #
647
+ # # The returned object is of type Google::Protobuf::Empty.
648
+ # p result
649
+ #
540
650
  def delete_conversation request, options = nil
541
651
  raise ::ArgumentError, "request must be provided" if request.nil?
542
652
 
@@ -602,6 +712,29 @@ module Google
602
712
  # @return [::Gapic::Operation]
603
713
  #
604
714
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
715
+ #
716
+ # @example Basic example
717
+ # require "google/cloud/contact_center_insights/v1"
718
+ #
719
+ # # Create a client object. The client can be reused for multiple calls.
720
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
721
+ #
722
+ # # Create a request. To set request fields, pass in keyword arguments.
723
+ # request = Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRequest.new
724
+ #
725
+ # # Call the create_analysis method.
726
+ # result = client.create_analysis request
727
+ #
728
+ # # The returned object is of type Gapic::Operation. You can use it to
729
+ # # check the status of an operation, cancel it, or wait for results.
730
+ # # Here is how to wait for a response.
731
+ # result.wait_until_done! timeout: 60
732
+ # if result.response?
733
+ # p result.response
734
+ # else
735
+ # puts "No response received."
736
+ # end
737
+ #
605
738
  def create_analysis request, options = nil
606
739
  raise ::ArgumentError, "request must be provided" if request.nil?
607
740
 
@@ -665,6 +798,22 @@ module Google
665
798
  # @return [::Google::Cloud::ContactCenterInsights::V1::Analysis]
666
799
  #
667
800
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
801
+ #
802
+ # @example Basic example
803
+ # require "google/cloud/contact_center_insights/v1"
804
+ #
805
+ # # Create a client object. The client can be reused for multiple calls.
806
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
807
+ #
808
+ # # Create a request. To set request fields, pass in keyword arguments.
809
+ # request = Google::Cloud::ContactCenterInsights::V1::GetAnalysisRequest.new
810
+ #
811
+ # # Call the get_analysis method.
812
+ # result = client.get_analysis request
813
+ #
814
+ # # The returned object is of type Google::Cloud::ContactCenterInsights::V1::Analysis.
815
+ # p result
816
+ #
668
817
  def get_analysis request, options = nil
669
818
  raise ::ArgumentError, "request must be provided" if request.nil?
670
819
 
@@ -739,6 +888,26 @@ module Google
739
888
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::Analysis>]
740
889
  #
741
890
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
891
+ #
892
+ # @example Basic example
893
+ # require "google/cloud/contact_center_insights/v1"
894
+ #
895
+ # # Create a client object. The client can be reused for multiple calls.
896
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
897
+ #
898
+ # # Create a request. To set request fields, pass in keyword arguments.
899
+ # request = Google::Cloud::ContactCenterInsights::V1::ListAnalysesRequest.new
900
+ #
901
+ # # Call the list_analyses method.
902
+ # result = client.list_analyses request
903
+ #
904
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
905
+ # # over elements, and API calls will be issued to fetch pages as needed.
906
+ # result.each do |item|
907
+ # # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::Analysis.
908
+ # p item
909
+ # end
910
+ #
742
911
  def list_analyses request, options = nil
743
912
  raise ::ArgumentError, "request must be provided" if request.nil?
744
913
 
@@ -802,6 +971,22 @@ module Google
802
971
  # @return [::Google::Protobuf::Empty]
803
972
  #
804
973
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
974
+ #
975
+ # @example Basic example
976
+ # require "google/cloud/contact_center_insights/v1"
977
+ #
978
+ # # Create a client object. The client can be reused for multiple calls.
979
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
980
+ #
981
+ # # Create a request. To set request fields, pass in keyword arguments.
982
+ # request = Google::Cloud::ContactCenterInsights::V1::DeleteAnalysisRequest.new
983
+ #
984
+ # # Call the delete_analysis method.
985
+ # result = client.delete_analysis request
986
+ #
987
+ # # The returned object is of type Google::Protobuf::Empty.
988
+ # p result
989
+ #
805
990
  def delete_analysis request, options = nil
806
991
  raise ::ArgumentError, "request must be provided" if request.nil?
807
992
 
@@ -872,6 +1057,29 @@ module Google
872
1057
  # @return [::Gapic::Operation]
873
1058
  #
874
1059
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1060
+ #
1061
+ # @example Basic example
1062
+ # require "google/cloud/contact_center_insights/v1"
1063
+ #
1064
+ # # Create a client object. The client can be reused for multiple calls.
1065
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
1066
+ #
1067
+ # # Create a request. To set request fields, pass in keyword arguments.
1068
+ # request = Google::Cloud::ContactCenterInsights::V1::BulkAnalyzeConversationsRequest.new
1069
+ #
1070
+ # # Call the bulk_analyze_conversations method.
1071
+ # result = client.bulk_analyze_conversations request
1072
+ #
1073
+ # # The returned object is of type Gapic::Operation. You can use it to
1074
+ # # check the status of an operation, cancel it, or wait for results.
1075
+ # # Here is how to wait for a response.
1076
+ # result.wait_until_done! timeout: 60
1077
+ # if result.response?
1078
+ # p result.response
1079
+ # else
1080
+ # puts "No response received."
1081
+ # end
1082
+ #
875
1083
  def bulk_analyze_conversations request, options = nil
876
1084
  raise ::ArgumentError, "request must be provided" if request.nil?
877
1085
 
@@ -928,7 +1136,8 @@ module Google
928
1136
  # the default parameter values, pass an empty Hash as a request object (see above).
929
1137
  #
930
1138
  # @param gcs_source [::Google::Cloud::ContactCenterInsights::V1::IngestConversationsRequest::GcsSource, ::Hash]
931
- # A cloud storage bucket source.
1139
+ # A cloud storage bucket source. Note that any previously ingested objects
1140
+ # from the source will be skipped to avoid duplication.
932
1141
  # @param transcript_object_config [::Google::Cloud::ContactCenterInsights::V1::IngestConversationsRequest::TranscriptObjectConfig, ::Hash]
933
1142
  # Configuration for when `source` contains conversation transcripts.
934
1143
  # @param parent [::String]
@@ -942,6 +1151,29 @@ module Google
942
1151
  # @return [::Gapic::Operation]
943
1152
  #
944
1153
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1154
+ #
1155
+ # @example Basic example
1156
+ # require "google/cloud/contact_center_insights/v1"
1157
+ #
1158
+ # # Create a client object. The client can be reused for multiple calls.
1159
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
1160
+ #
1161
+ # # Create a request. To set request fields, pass in keyword arguments.
1162
+ # request = Google::Cloud::ContactCenterInsights::V1::IngestConversationsRequest.new
1163
+ #
1164
+ # # Call the ingest_conversations method.
1165
+ # result = client.ingest_conversations request
1166
+ #
1167
+ # # The returned object is of type Gapic::Operation. You can use it to
1168
+ # # check the status of an operation, cancel it, or wait for results.
1169
+ # # Here is how to wait for a response.
1170
+ # result.wait_until_done! timeout: 60
1171
+ # if result.response?
1172
+ # p result.response
1173
+ # else
1174
+ # puts "No response received."
1175
+ # end
1176
+ #
945
1177
  def ingest_conversations request, options = nil
946
1178
  raise ::ArgumentError, "request must be provided" if request.nil?
947
1179
 
@@ -1016,6 +1248,29 @@ module Google
1016
1248
  # @return [::Gapic::Operation]
1017
1249
  #
1018
1250
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1251
+ #
1252
+ # @example Basic example
1253
+ # require "google/cloud/contact_center_insights/v1"
1254
+ #
1255
+ # # Create a client object. The client can be reused for multiple calls.
1256
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
1257
+ #
1258
+ # # Create a request. To set request fields, pass in keyword arguments.
1259
+ # request = Google::Cloud::ContactCenterInsights::V1::ExportInsightsDataRequest.new
1260
+ #
1261
+ # # Call the export_insights_data method.
1262
+ # result = client.export_insights_data request
1263
+ #
1264
+ # # The returned object is of type Gapic::Operation. You can use it to
1265
+ # # check the status of an operation, cancel it, or wait for results.
1266
+ # # Here is how to wait for a response.
1267
+ # result.wait_until_done! timeout: 60
1268
+ # if result.response?
1269
+ # p result.response
1270
+ # else
1271
+ # puts "No response received."
1272
+ # end
1273
+ #
1019
1274
  def export_insights_data request, options = nil
1020
1275
  raise ::ArgumentError, "request must be provided" if request.nil?
1021
1276
 
@@ -1081,6 +1336,29 @@ module Google
1081
1336
  # @return [::Gapic::Operation]
1082
1337
  #
1083
1338
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1339
+ #
1340
+ # @example Basic example
1341
+ # require "google/cloud/contact_center_insights/v1"
1342
+ #
1343
+ # # Create a client object. The client can be reused for multiple calls.
1344
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
1345
+ #
1346
+ # # Create a request. To set request fields, pass in keyword arguments.
1347
+ # request = Google::Cloud::ContactCenterInsights::V1::CreateIssueModelRequest.new
1348
+ #
1349
+ # # Call the create_issue_model method.
1350
+ # result = client.create_issue_model request
1351
+ #
1352
+ # # The returned object is of type Gapic::Operation. You can use it to
1353
+ # # check the status of an operation, cancel it, or wait for results.
1354
+ # # Here is how to wait for a response.
1355
+ # result.wait_until_done! timeout: 60
1356
+ # if result.response?
1357
+ # p result.response
1358
+ # else
1359
+ # puts "No response received."
1360
+ # end
1361
+ #
1084
1362
  def create_issue_model request, options = nil
1085
1363
  raise ::ArgumentError, "request must be provided" if request.nil?
1086
1364
 
@@ -1146,6 +1424,22 @@ module Google
1146
1424
  # @return [::Google::Cloud::ContactCenterInsights::V1::IssueModel]
1147
1425
  #
1148
1426
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1427
+ #
1428
+ # @example Basic example
1429
+ # require "google/cloud/contact_center_insights/v1"
1430
+ #
1431
+ # # Create a client object. The client can be reused for multiple calls.
1432
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
1433
+ #
1434
+ # # Create a request. To set request fields, pass in keyword arguments.
1435
+ # request = Google::Cloud::ContactCenterInsights::V1::UpdateIssueModelRequest.new
1436
+ #
1437
+ # # Call the update_issue_model method.
1438
+ # result = client.update_issue_model request
1439
+ #
1440
+ # # The returned object is of type Google::Cloud::ContactCenterInsights::V1::IssueModel.
1441
+ # p result
1442
+ #
1149
1443
  def update_issue_model request, options = nil
1150
1444
  raise ::ArgumentError, "request must be provided" if request.nil?
1151
1445
 
@@ -1208,6 +1502,22 @@ module Google
1208
1502
  # @return [::Google::Cloud::ContactCenterInsights::V1::IssueModel]
1209
1503
  #
1210
1504
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1505
+ #
1506
+ # @example Basic example
1507
+ # require "google/cloud/contact_center_insights/v1"
1508
+ #
1509
+ # # Create a client object. The client can be reused for multiple calls.
1510
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
1511
+ #
1512
+ # # Create a request. To set request fields, pass in keyword arguments.
1513
+ # request = Google::Cloud::ContactCenterInsights::V1::GetIssueModelRequest.new
1514
+ #
1515
+ # # Call the get_issue_model method.
1516
+ # result = client.get_issue_model request
1517
+ #
1518
+ # # The returned object is of type Google::Cloud::ContactCenterInsights::V1::IssueModel.
1519
+ # p result
1520
+ #
1211
1521
  def get_issue_model request, options = nil
1212
1522
  raise ::ArgumentError, "request must be provided" if request.nil?
1213
1523
 
@@ -1270,6 +1580,22 @@ module Google
1270
1580
  # @return [::Google::Cloud::ContactCenterInsights::V1::ListIssueModelsResponse]
1271
1581
  #
1272
1582
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1583
+ #
1584
+ # @example Basic example
1585
+ # require "google/cloud/contact_center_insights/v1"
1586
+ #
1587
+ # # Create a client object. The client can be reused for multiple calls.
1588
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
1589
+ #
1590
+ # # Create a request. To set request fields, pass in keyword arguments.
1591
+ # request = Google::Cloud::ContactCenterInsights::V1::ListIssueModelsRequest.new
1592
+ #
1593
+ # # Call the list_issue_models method.
1594
+ # result = client.list_issue_models request
1595
+ #
1596
+ # # The returned object is of type Google::Cloud::ContactCenterInsights::V1::ListIssueModelsResponse.
1597
+ # p result
1598
+ #
1273
1599
  def list_issue_models request, options = nil
1274
1600
  raise ::ArgumentError, "request must be provided" if request.nil?
1275
1601
 
@@ -1332,6 +1658,29 @@ module Google
1332
1658
  # @return [::Gapic::Operation]
1333
1659
  #
1334
1660
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1661
+ #
1662
+ # @example Basic example
1663
+ # require "google/cloud/contact_center_insights/v1"
1664
+ #
1665
+ # # Create a client object. The client can be reused for multiple calls.
1666
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
1667
+ #
1668
+ # # Create a request. To set request fields, pass in keyword arguments.
1669
+ # request = Google::Cloud::ContactCenterInsights::V1::DeleteIssueModelRequest.new
1670
+ #
1671
+ # # Call the delete_issue_model method.
1672
+ # result = client.delete_issue_model request
1673
+ #
1674
+ # # The returned object is of type Gapic::Operation. You can use it to
1675
+ # # check the status of an operation, cancel it, or wait for results.
1676
+ # # Here is how to wait for a response.
1677
+ # result.wait_until_done! timeout: 60
1678
+ # if result.response?
1679
+ # p result.response
1680
+ # else
1681
+ # puts "No response received."
1682
+ # end
1683
+ #
1335
1684
  def delete_issue_model request, options = nil
1336
1685
  raise ::ArgumentError, "request must be provided" if request.nil?
1337
1686
 
@@ -1396,6 +1745,29 @@ module Google
1396
1745
  # @return [::Gapic::Operation]
1397
1746
  #
1398
1747
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1748
+ #
1749
+ # @example Basic example
1750
+ # require "google/cloud/contact_center_insights/v1"
1751
+ #
1752
+ # # Create a client object. The client can be reused for multiple calls.
1753
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
1754
+ #
1755
+ # # Create a request. To set request fields, pass in keyword arguments.
1756
+ # request = Google::Cloud::ContactCenterInsights::V1::DeployIssueModelRequest.new
1757
+ #
1758
+ # # Call the deploy_issue_model method.
1759
+ # result = client.deploy_issue_model request
1760
+ #
1761
+ # # The returned object is of type Gapic::Operation. You can use it to
1762
+ # # check the status of an operation, cancel it, or wait for results.
1763
+ # # Here is how to wait for a response.
1764
+ # result.wait_until_done! timeout: 60
1765
+ # if result.response?
1766
+ # p result.response
1767
+ # else
1768
+ # puts "No response received."
1769
+ # end
1770
+ #
1399
1771
  def deploy_issue_model request, options = nil
1400
1772
  raise ::ArgumentError, "request must be provided" if request.nil?
1401
1773
 
@@ -1460,6 +1832,29 @@ module Google
1460
1832
  # @return [::Gapic::Operation]
1461
1833
  #
1462
1834
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1835
+ #
1836
+ # @example Basic example
1837
+ # require "google/cloud/contact_center_insights/v1"
1838
+ #
1839
+ # # Create a client object. The client can be reused for multiple calls.
1840
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
1841
+ #
1842
+ # # Create a request. To set request fields, pass in keyword arguments.
1843
+ # request = Google::Cloud::ContactCenterInsights::V1::UndeployIssueModelRequest.new
1844
+ #
1845
+ # # Call the undeploy_issue_model method.
1846
+ # result = client.undeploy_issue_model request
1847
+ #
1848
+ # # The returned object is of type Gapic::Operation. You can use it to
1849
+ # # check the status of an operation, cancel it, or wait for results.
1850
+ # # Here is how to wait for a response.
1851
+ # result.wait_until_done! timeout: 60
1852
+ # if result.response?
1853
+ # p result.response
1854
+ # else
1855
+ # puts "No response received."
1856
+ # end
1857
+ #
1463
1858
  def undeploy_issue_model request, options = nil
1464
1859
  raise ::ArgumentError, "request must be provided" if request.nil?
1465
1860
 
@@ -1523,6 +1918,22 @@ module Google
1523
1918
  # @return [::Google::Cloud::ContactCenterInsights::V1::Issue]
1524
1919
  #
1525
1920
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1921
+ #
1922
+ # @example Basic example
1923
+ # require "google/cloud/contact_center_insights/v1"
1924
+ #
1925
+ # # Create a client object. The client can be reused for multiple calls.
1926
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
1927
+ #
1928
+ # # Create a request. To set request fields, pass in keyword arguments.
1929
+ # request = Google::Cloud::ContactCenterInsights::V1::GetIssueRequest.new
1930
+ #
1931
+ # # Call the get_issue method.
1932
+ # result = client.get_issue request
1933
+ #
1934
+ # # The returned object is of type Google::Cloud::ContactCenterInsights::V1::Issue.
1935
+ # p result
1936
+ #
1526
1937
  def get_issue request, options = nil
1527
1938
  raise ::ArgumentError, "request must be provided" if request.nil?
1528
1939
 
@@ -1585,6 +1996,22 @@ module Google
1585
1996
  # @return [::Google::Cloud::ContactCenterInsights::V1::ListIssuesResponse]
1586
1997
  #
1587
1998
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1999
+ #
2000
+ # @example Basic example
2001
+ # require "google/cloud/contact_center_insights/v1"
2002
+ #
2003
+ # # Create a client object. The client can be reused for multiple calls.
2004
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
2005
+ #
2006
+ # # Create a request. To set request fields, pass in keyword arguments.
2007
+ # request = Google::Cloud::ContactCenterInsights::V1::ListIssuesRequest.new
2008
+ #
2009
+ # # Call the list_issues method.
2010
+ # result = client.list_issues request
2011
+ #
2012
+ # # The returned object is of type Google::Cloud::ContactCenterInsights::V1::ListIssuesResponse.
2013
+ # p result
2014
+ #
1588
2015
  def list_issues request, options = nil
1589
2016
  raise ::ArgumentError, "request must be provided" if request.nil?
1590
2017
 
@@ -1649,6 +2076,22 @@ module Google
1649
2076
  # @return [::Google::Cloud::ContactCenterInsights::V1::Issue]
1650
2077
  #
1651
2078
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2079
+ #
2080
+ # @example Basic example
2081
+ # require "google/cloud/contact_center_insights/v1"
2082
+ #
2083
+ # # Create a client object. The client can be reused for multiple calls.
2084
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
2085
+ #
2086
+ # # Create a request. To set request fields, pass in keyword arguments.
2087
+ # request = Google::Cloud::ContactCenterInsights::V1::UpdateIssueRequest.new
2088
+ #
2089
+ # # Call the update_issue method.
2090
+ # result = client.update_issue request
2091
+ #
2092
+ # # The returned object is of type Google::Cloud::ContactCenterInsights::V1::Issue.
2093
+ # p result
2094
+ #
1652
2095
  def update_issue request, options = nil
1653
2096
  raise ::ArgumentError, "request must be provided" if request.nil?
1654
2097
 
@@ -1711,6 +2154,22 @@ module Google
1711
2154
  # @return [::Google::Protobuf::Empty]
1712
2155
  #
1713
2156
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2157
+ #
2158
+ # @example Basic example
2159
+ # require "google/cloud/contact_center_insights/v1"
2160
+ #
2161
+ # # Create a client object. The client can be reused for multiple calls.
2162
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
2163
+ #
2164
+ # # Create a request. To set request fields, pass in keyword arguments.
2165
+ # request = Google::Cloud::ContactCenterInsights::V1::DeleteIssueRequest.new
2166
+ #
2167
+ # # Call the delete_issue method.
2168
+ # result = client.delete_issue request
2169
+ #
2170
+ # # The returned object is of type Google::Protobuf::Empty.
2171
+ # p result
2172
+ #
1714
2173
  def delete_issue request, options = nil
1715
2174
  raise ::ArgumentError, "request must be provided" if request.nil?
1716
2175
 
@@ -1773,6 +2232,22 @@ module Google
1773
2232
  # @return [::Google::Cloud::ContactCenterInsights::V1::CalculateIssueModelStatsResponse]
1774
2233
  #
1775
2234
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2235
+ #
2236
+ # @example Basic example
2237
+ # require "google/cloud/contact_center_insights/v1"
2238
+ #
2239
+ # # Create a client object. The client can be reused for multiple calls.
2240
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
2241
+ #
2242
+ # # Create a request. To set request fields, pass in keyword arguments.
2243
+ # request = Google::Cloud::ContactCenterInsights::V1::CalculateIssueModelStatsRequest.new
2244
+ #
2245
+ # # Call the calculate_issue_model_stats method.
2246
+ # result = client.calculate_issue_model_stats request
2247
+ #
2248
+ # # The returned object is of type Google::Cloud::ContactCenterInsights::V1::CalculateIssueModelStatsResponse.
2249
+ # p result
2250
+ #
1776
2251
  def calculate_issue_model_stats request, options = nil
1777
2252
  raise ::ArgumentError, "request must be provided" if request.nil?
1778
2253
 
@@ -1840,6 +2315,22 @@ module Google
1840
2315
  # @return [::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher]
1841
2316
  #
1842
2317
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2318
+ #
2319
+ # @example Basic example
2320
+ # require "google/cloud/contact_center_insights/v1"
2321
+ #
2322
+ # # Create a client object. The client can be reused for multiple calls.
2323
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
2324
+ #
2325
+ # # Create a request. To set request fields, pass in keyword arguments.
2326
+ # request = Google::Cloud::ContactCenterInsights::V1::CreatePhraseMatcherRequest.new
2327
+ #
2328
+ # # Call the create_phrase_matcher method.
2329
+ # result = client.create_phrase_matcher request
2330
+ #
2331
+ # # The returned object is of type Google::Cloud::ContactCenterInsights::V1::PhraseMatcher.
2332
+ # p result
2333
+ #
1843
2334
  def create_phrase_matcher request, options = nil
1844
2335
  raise ::ArgumentError, "request must be provided" if request.nil?
1845
2336
 
@@ -1902,6 +2393,22 @@ module Google
1902
2393
  # @return [::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher]
1903
2394
  #
1904
2395
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2396
+ #
2397
+ # @example Basic example
2398
+ # require "google/cloud/contact_center_insights/v1"
2399
+ #
2400
+ # # Create a client object. The client can be reused for multiple calls.
2401
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
2402
+ #
2403
+ # # Create a request. To set request fields, pass in keyword arguments.
2404
+ # request = Google::Cloud::ContactCenterInsights::V1::GetPhraseMatcherRequest.new
2405
+ #
2406
+ # # Call the get_phrase_matcher method.
2407
+ # result = client.get_phrase_matcher request
2408
+ #
2409
+ # # The returned object is of type Google::Cloud::ContactCenterInsights::V1::PhraseMatcher.
2410
+ # p result
2411
+ #
1905
2412
  def get_phrase_matcher request, options = nil
1906
2413
  raise ::ArgumentError, "request must be provided" if request.nil?
1907
2414
 
@@ -1976,6 +2483,26 @@ module Google
1976
2483
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher>]
1977
2484
  #
1978
2485
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2486
+ #
2487
+ # @example Basic example
2488
+ # require "google/cloud/contact_center_insights/v1"
2489
+ #
2490
+ # # Create a client object. The client can be reused for multiple calls.
2491
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
2492
+ #
2493
+ # # Create a request. To set request fields, pass in keyword arguments.
2494
+ # request = Google::Cloud::ContactCenterInsights::V1::ListPhraseMatchersRequest.new
2495
+ #
2496
+ # # Call the list_phrase_matchers method.
2497
+ # result = client.list_phrase_matchers request
2498
+ #
2499
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2500
+ # # over elements, and API calls will be issued to fetch pages as needed.
2501
+ # result.each do |item|
2502
+ # # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher.
2503
+ # p item
2504
+ # end
2505
+ #
1979
2506
  def list_phrase_matchers request, options = nil
1980
2507
  raise ::ArgumentError, "request must be provided" if request.nil?
1981
2508
 
@@ -2039,6 +2566,22 @@ module Google
2039
2566
  # @return [::Google::Protobuf::Empty]
2040
2567
  #
2041
2568
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2569
+ #
2570
+ # @example Basic example
2571
+ # require "google/cloud/contact_center_insights/v1"
2572
+ #
2573
+ # # Create a client object. The client can be reused for multiple calls.
2574
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
2575
+ #
2576
+ # # Create a request. To set request fields, pass in keyword arguments.
2577
+ # request = Google::Cloud::ContactCenterInsights::V1::DeletePhraseMatcherRequest.new
2578
+ #
2579
+ # # Call the delete_phrase_matcher method.
2580
+ # result = client.delete_phrase_matcher request
2581
+ #
2582
+ # # The returned object is of type Google::Protobuf::Empty.
2583
+ # p result
2584
+ #
2042
2585
  def delete_phrase_matcher request, options = nil
2043
2586
  raise ::ArgumentError, "request must be provided" if request.nil?
2044
2587
 
@@ -2103,6 +2646,22 @@ module Google
2103
2646
  # @return [::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher]
2104
2647
  #
2105
2648
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2649
+ #
2650
+ # @example Basic example
2651
+ # require "google/cloud/contact_center_insights/v1"
2652
+ #
2653
+ # # Create a client object. The client can be reused for multiple calls.
2654
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
2655
+ #
2656
+ # # Create a request. To set request fields, pass in keyword arguments.
2657
+ # request = Google::Cloud::ContactCenterInsights::V1::UpdatePhraseMatcherRequest.new
2658
+ #
2659
+ # # Call the update_phrase_matcher method.
2660
+ # result = client.update_phrase_matcher request
2661
+ #
2662
+ # # The returned object is of type Google::Cloud::ContactCenterInsights::V1::PhraseMatcher.
2663
+ # p result
2664
+ #
2106
2665
  def update_phrase_matcher request, options = nil
2107
2666
  raise ::ArgumentError, "request must be provided" if request.nil?
2108
2667
 
@@ -2168,6 +2727,22 @@ module Google
2168
2727
  # @return [::Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse]
2169
2728
  #
2170
2729
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2730
+ #
2731
+ # @example Basic example
2732
+ # require "google/cloud/contact_center_insights/v1"
2733
+ #
2734
+ # # Create a client object. The client can be reused for multiple calls.
2735
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
2736
+ #
2737
+ # # Create a request. To set request fields, pass in keyword arguments.
2738
+ # request = Google::Cloud::ContactCenterInsights::V1::CalculateStatsRequest.new
2739
+ #
2740
+ # # Call the calculate_stats method.
2741
+ # result = client.calculate_stats request
2742
+ #
2743
+ # # The returned object is of type Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse.
2744
+ # p result
2745
+ #
2171
2746
  def calculate_stats request, options = nil
2172
2747
  raise ::ArgumentError, "request must be provided" if request.nil?
2173
2748
 
@@ -2230,6 +2805,22 @@ module Google
2230
2805
  # @return [::Google::Cloud::ContactCenterInsights::V1::Settings]
2231
2806
  #
2232
2807
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2808
+ #
2809
+ # @example Basic example
2810
+ # require "google/cloud/contact_center_insights/v1"
2811
+ #
2812
+ # # Create a client object. The client can be reused for multiple calls.
2813
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
2814
+ #
2815
+ # # Create a request. To set request fields, pass in keyword arguments.
2816
+ # request = Google::Cloud::ContactCenterInsights::V1::GetSettingsRequest.new
2817
+ #
2818
+ # # Call the get_settings method.
2819
+ # result = client.get_settings request
2820
+ #
2821
+ # # The returned object is of type Google::Cloud::ContactCenterInsights::V1::Settings.
2822
+ # p result
2823
+ #
2233
2824
  def get_settings request, options = nil
2234
2825
  raise ::ArgumentError, "request must be provided" if request.nil?
2235
2826
 
@@ -2294,6 +2885,22 @@ module Google
2294
2885
  # @return [::Google::Cloud::ContactCenterInsights::V1::Settings]
2295
2886
  #
2296
2887
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2888
+ #
2889
+ # @example Basic example
2890
+ # require "google/cloud/contact_center_insights/v1"
2891
+ #
2892
+ # # Create a client object. The client can be reused for multiple calls.
2893
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
2894
+ #
2895
+ # # Create a request. To set request fields, pass in keyword arguments.
2896
+ # request = Google::Cloud::ContactCenterInsights::V1::UpdateSettingsRequest.new
2897
+ #
2898
+ # # Call the update_settings method.
2899
+ # result = client.update_settings request
2900
+ #
2901
+ # # The returned object is of type Google::Cloud::ContactCenterInsights::V1::Settings.
2902
+ # p result
2903
+ #
2297
2904
  def update_settings request, options = nil
2298
2905
  raise ::ArgumentError, "request must be provided" if request.nil?
2299
2906
 
@@ -2361,6 +2968,22 @@ module Google
2361
2968
  # @return [::Google::Cloud::ContactCenterInsights::V1::View]
2362
2969
  #
2363
2970
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2971
+ #
2972
+ # @example Basic example
2973
+ # require "google/cloud/contact_center_insights/v1"
2974
+ #
2975
+ # # Create a client object. The client can be reused for multiple calls.
2976
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
2977
+ #
2978
+ # # Create a request. To set request fields, pass in keyword arguments.
2979
+ # request = Google::Cloud::ContactCenterInsights::V1::CreateViewRequest.new
2980
+ #
2981
+ # # Call the create_view method.
2982
+ # result = client.create_view request
2983
+ #
2984
+ # # The returned object is of type Google::Cloud::ContactCenterInsights::V1::View.
2985
+ # p result
2986
+ #
2364
2987
  def create_view request, options = nil
2365
2988
  raise ::ArgumentError, "request must be provided" if request.nil?
2366
2989
 
@@ -2423,6 +3046,22 @@ module Google
2423
3046
  # @return [::Google::Cloud::ContactCenterInsights::V1::View]
2424
3047
  #
2425
3048
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3049
+ #
3050
+ # @example Basic example
3051
+ # require "google/cloud/contact_center_insights/v1"
3052
+ #
3053
+ # # Create a client object. The client can be reused for multiple calls.
3054
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
3055
+ #
3056
+ # # Create a request. To set request fields, pass in keyword arguments.
3057
+ # request = Google::Cloud::ContactCenterInsights::V1::GetViewRequest.new
3058
+ #
3059
+ # # Call the get_view method.
3060
+ # result = client.get_view request
3061
+ #
3062
+ # # The returned object is of type Google::Cloud::ContactCenterInsights::V1::View.
3063
+ # p result
3064
+ #
2426
3065
  def get_view request, options = nil
2427
3066
  raise ::ArgumentError, "request must be provided" if request.nil?
2428
3067
 
@@ -2494,6 +3133,26 @@ module Google
2494
3133
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ContactCenterInsights::V1::View>]
2495
3134
  #
2496
3135
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3136
+ #
3137
+ # @example Basic example
3138
+ # require "google/cloud/contact_center_insights/v1"
3139
+ #
3140
+ # # Create a client object. The client can be reused for multiple calls.
3141
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
3142
+ #
3143
+ # # Create a request. To set request fields, pass in keyword arguments.
3144
+ # request = Google::Cloud::ContactCenterInsights::V1::ListViewsRequest.new
3145
+ #
3146
+ # # Call the list_views method.
3147
+ # result = client.list_views request
3148
+ #
3149
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3150
+ # # over elements, and API calls will be issued to fetch pages as needed.
3151
+ # result.each do |item|
3152
+ # # Each element is of type ::Google::Cloud::ContactCenterInsights::V1::View.
3153
+ # p item
3154
+ # end
3155
+ #
2497
3156
  def list_views request, options = nil
2498
3157
  raise ::ArgumentError, "request must be provided" if request.nil?
2499
3158
 
@@ -2559,6 +3218,22 @@ module Google
2559
3218
  # @return [::Google::Cloud::ContactCenterInsights::V1::View]
2560
3219
  #
2561
3220
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3221
+ #
3222
+ # @example Basic example
3223
+ # require "google/cloud/contact_center_insights/v1"
3224
+ #
3225
+ # # Create a client object. The client can be reused for multiple calls.
3226
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
3227
+ #
3228
+ # # Create a request. To set request fields, pass in keyword arguments.
3229
+ # request = Google::Cloud::ContactCenterInsights::V1::UpdateViewRequest.new
3230
+ #
3231
+ # # Call the update_view method.
3232
+ # result = client.update_view request
3233
+ #
3234
+ # # The returned object is of type Google::Cloud::ContactCenterInsights::V1::View.
3235
+ # p result
3236
+ #
2562
3237
  def update_view request, options = nil
2563
3238
  raise ::ArgumentError, "request must be provided" if request.nil?
2564
3239
 
@@ -2621,6 +3296,22 @@ module Google
2621
3296
  # @return [::Google::Protobuf::Empty]
2622
3297
  #
2623
3298
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
3299
+ #
3300
+ # @example Basic example
3301
+ # require "google/cloud/contact_center_insights/v1"
3302
+ #
3303
+ # # Create a client object. The client can be reused for multiple calls.
3304
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
3305
+ #
3306
+ # # Create a request. To set request fields, pass in keyword arguments.
3307
+ # request = Google::Cloud::ContactCenterInsights::V1::DeleteViewRequest.new
3308
+ #
3309
+ # # Call the delete_view method.
3310
+ # result = client.delete_view request
3311
+ #
3312
+ # # The returned object is of type Google::Protobuf::Empty.
3313
+ # p result
3314
+ #
2624
3315
  def delete_view request, options = nil
2625
3316
  raise ::ArgumentError, "request must be provided" if request.nil?
2626
3317