google-apis-contactcenterinsights_v1 0.63.0 → 0.64.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -505,6 +505,186 @@ module Google
505
505
  execute_or_queue_command(command, &block)
506
506
  end
507
507
 
508
+ # Creates an assessment rule.
509
+ # @param [String] parent
510
+ # Required. The parent resource of the assessment rule. Required. The location
511
+ # to create a assessment rule for. Format: `projects//locations/` or `projects//
512
+ # locations/`
513
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AssessmentRule] google_cloud_contactcenterinsights_v1_assessment_rule_object
514
+ # @param [String] assessment_rule_id
515
+ # Optional. A unique ID for the new AssessmentRule. This ID will become the
516
+ # final component of the AssessmentRule's resource name. If no ID is specified,
517
+ # a server-generated ID will be used. This value should be 4-64 characters and
518
+ # must match the regular expression `^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$`.
519
+ # @param [String] fields
520
+ # Selector specifying which fields to include in a partial response.
521
+ # @param [String] quota_user
522
+ # Available to use for quota purposes for server-side applications. Can be any
523
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
524
+ # @param [Google::Apis::RequestOptions] options
525
+ # Request-specific options
526
+ #
527
+ # @yield [result, err] Result & error if block supplied
528
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AssessmentRule] parsed result object
529
+ # @yieldparam err [StandardError] error object if request failed
530
+ #
531
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AssessmentRule]
532
+ #
533
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
534
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
535
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
536
+ def create_project_location_assessment_rule(parent, google_cloud_contactcenterinsights_v1_assessment_rule_object = nil, assessment_rule_id: nil, fields: nil, quota_user: nil, options: nil, &block)
537
+ command = make_simple_command(:post, 'v1/{+parent}/assessmentRules', options)
538
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AssessmentRule::Representation
539
+ command.request_object = google_cloud_contactcenterinsights_v1_assessment_rule_object
540
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AssessmentRule::Representation
541
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AssessmentRule
542
+ command.params['parent'] = parent unless parent.nil?
543
+ command.query['assessmentRuleId'] = assessment_rule_id unless assessment_rule_id.nil?
544
+ command.query['fields'] = fields unless fields.nil?
545
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
546
+ execute_or_queue_command(command, &block)
547
+ end
548
+
549
+ # Deletes an assessment rule.
550
+ # @param [String] name
551
+ # Required. The name of the assessment rule to delete.
552
+ # @param [String] fields
553
+ # Selector specifying which fields to include in a partial response.
554
+ # @param [String] quota_user
555
+ # Available to use for quota purposes for server-side applications. Can be any
556
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
557
+ # @param [Google::Apis::RequestOptions] options
558
+ # Request-specific options
559
+ #
560
+ # @yield [result, err] Result & error if block supplied
561
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty] parsed result object
562
+ # @yieldparam err [StandardError] error object if request failed
563
+ #
564
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty]
565
+ #
566
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
567
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
568
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
569
+ def delete_project_location_assessment_rule(name, fields: nil, quota_user: nil, options: nil, &block)
570
+ command = make_simple_command(:delete, 'v1/{+name}', options)
571
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
572
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
573
+ command.params['name'] = name unless name.nil?
574
+ command.query['fields'] = fields unless fields.nil?
575
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
576
+ execute_or_queue_command(command, &block)
577
+ end
578
+
579
+ # Get an assessment rule.
580
+ # @param [String] name
581
+ # Required. The name of the assessment rule to get.
582
+ # @param [String] fields
583
+ # Selector specifying which fields to include in a partial response.
584
+ # @param [String] quota_user
585
+ # Available to use for quota purposes for server-side applications. Can be any
586
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
587
+ # @param [Google::Apis::RequestOptions] options
588
+ # Request-specific options
589
+ #
590
+ # @yield [result, err] Result & error if block supplied
591
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AssessmentRule] parsed result object
592
+ # @yieldparam err [StandardError] error object if request failed
593
+ #
594
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AssessmentRule]
595
+ #
596
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
597
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
598
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
599
+ def get_project_location_assessment_rule(name, fields: nil, quota_user: nil, options: nil, &block)
600
+ command = make_simple_command(:get, 'v1/{+name}', options)
601
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AssessmentRule::Representation
602
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AssessmentRule
603
+ command.params['name'] = name unless name.nil?
604
+ command.query['fields'] = fields unless fields.nil?
605
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
606
+ execute_or_queue_command(command, &block)
607
+ end
608
+
609
+ # Lists assessment rules.
610
+ # @param [String] parent
611
+ # Required. The parent resource of the assessment rules.
612
+ # @param [Fixnum] page_size
613
+ # Optional. The maximum number of assessment rule to return in the response. If
614
+ # this value is zero, the service will select a default size. A call may return
615
+ # fewer objects than requested. A non-empty `next_page_token` in the response
616
+ # indicates that more data is available.
617
+ # @param [String] page_token
618
+ # Optional. The value returned by the last `ListAssessmentRulesResponse`;
619
+ # indicates that this is a continuation of a prior `ListAssessmentRules` call
620
+ # and the system should return the next page of data.
621
+ # @param [String] fields
622
+ # Selector specifying which fields to include in a partial response.
623
+ # @param [String] quota_user
624
+ # Available to use for quota purposes for server-side applications. Can be any
625
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
626
+ # @param [Google::Apis::RequestOptions] options
627
+ # Request-specific options
628
+ #
629
+ # @yield [result, err] Result & error if block supplied
630
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAssessmentRulesResponse] parsed result object
631
+ # @yieldparam err [StandardError] error object if request failed
632
+ #
633
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAssessmentRulesResponse]
634
+ #
635
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
636
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
637
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
638
+ def list_project_location_assessment_rules(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
639
+ command = make_simple_command(:get, 'v1/{+parent}/assessmentRules', options)
640
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAssessmentRulesResponse::Representation
641
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAssessmentRulesResponse
642
+ command.params['parent'] = parent unless parent.nil?
643
+ command.query['pageSize'] = page_size unless page_size.nil?
644
+ command.query['pageToken'] = page_token unless page_token.nil?
645
+ command.query['fields'] = fields unless fields.nil?
646
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
647
+ execute_or_queue_command(command, &block)
648
+ end
649
+
650
+ # Updates an assessment rule.
651
+ # @param [String] name
652
+ # Identifier. The resource name of the assessment rule. Format: projects/`
653
+ # project`/locations/`location`/assessmentRules/`assessment_rule`
654
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AssessmentRule] google_cloud_contactcenterinsights_v1_assessment_rule_object
655
+ # @param [String] update_mask
656
+ # Optional. The list of fields to be updated. If the update_mask is not provided,
657
+ # the update will be applied to all fields.
658
+ # @param [String] fields
659
+ # Selector specifying which fields to include in a partial response.
660
+ # @param [String] quota_user
661
+ # Available to use for quota purposes for server-side applications. Can be any
662
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
663
+ # @param [Google::Apis::RequestOptions] options
664
+ # Request-specific options
665
+ #
666
+ # @yield [result, err] Result & error if block supplied
667
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AssessmentRule] parsed result object
668
+ # @yieldparam err [StandardError] error object if request failed
669
+ #
670
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AssessmentRule]
671
+ #
672
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
673
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
674
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
675
+ def patch_project_location_assessment_rule(name, google_cloud_contactcenterinsights_v1_assessment_rule_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
676
+ command = make_simple_command(:patch, 'v1/{+name}', options)
677
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AssessmentRule::Representation
678
+ command.request_object = google_cloud_contactcenterinsights_v1_assessment_rule_object
679
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AssessmentRule::Representation
680
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AssessmentRule
681
+ command.params['name'] = name unless name.nil?
682
+ command.query['updateMask'] = update_mask unless update_mask.nil?
683
+ command.query['fields'] = fields unless fields.nil?
684
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
685
+ execute_or_queue_command(command, &block)
686
+ end
687
+
508
688
  # Create AuthorizedViewSet
509
689
  # @param [String] parent
510
690
  # Required. The parent resource of the AuthorizedViewSet.
@@ -1300,13 +1480,10 @@ module Google
1300
1480
  execute_or_queue_command(command, &block)
1301
1481
  end
1302
1482
 
1303
- # Create feedback label.
1304
- # @param [String] parent
1305
- # Required. The parent resource of the feedback label.
1306
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel] google_cloud_contactcenterinsights_v1_feedback_label_object
1307
- # @param [String] feedback_label_id
1308
- # Optional. The ID of the feedback label to create. If one is not specified it
1309
- # will be generated by the server.
1483
+ # Appeal an Assessment.
1484
+ # @param [String] name
1485
+ # Required. The name of the assessment to appeal.
1486
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AppealAssessmentRequest] google_cloud_contactcenterinsights_v1_appeal_assessment_request_object
1310
1487
  # @param [String] fields
1311
1488
  # Selector specifying which fields to include in a partial response.
1312
1489
  # @param [String] quota_user
@@ -1316,30 +1493,30 @@ module Google
1316
1493
  # Request-specific options
1317
1494
  #
1318
1495
  # @yield [result, err] Result & error if block supplied
1319
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel] parsed result object
1496
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment] parsed result object
1320
1497
  # @yieldparam err [StandardError] error object if request failed
1321
1498
  #
1322
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel]
1499
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment]
1323
1500
  #
1324
1501
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1325
1502
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1326
1503
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1327
- def create_project_location_authorized_view_set_authorized_view_conversation_feedback_label(parent, google_cloud_contactcenterinsights_v1_feedback_label_object = nil, feedback_label_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1328
- command = make_simple_command(:post, 'v1/{+parent}/feedbackLabels', options)
1329
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel::Representation
1330
- command.request_object = google_cloud_contactcenterinsights_v1_feedback_label_object
1331
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel::Representation
1332
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel
1333
- command.params['parent'] = parent unless parent.nil?
1334
- command.query['feedbackLabelId'] = feedback_label_id unless feedback_label_id.nil?
1504
+ def appeal_project_location_authorized_view_set_authorized_view_conversation_assessment(name, google_cloud_contactcenterinsights_v1_appeal_assessment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1505
+ command = make_simple_command(:post, 'v1/{+name}:appeal', options)
1506
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AppealAssessmentRequest::Representation
1507
+ command.request_object = google_cloud_contactcenterinsights_v1_appeal_assessment_request_object
1508
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment::Representation
1509
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment
1510
+ command.params['name'] = name unless name.nil?
1335
1511
  command.query['fields'] = fields unless fields.nil?
1336
1512
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1337
1513
  execute_or_queue_command(command, &block)
1338
1514
  end
1339
1515
 
1340
- # Delete feedback label.
1341
- # @param [String] name
1342
- # Required. The name of the feedback label to delete.
1516
+ # Create Assessment.
1517
+ # @param [String] parent
1518
+ # Required. The parent resource of the assessment.
1519
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment] google_cloud_contactcenterinsights_v1_assessment_object
1343
1520
  # @param [String] fields
1344
1521
  # Selector specifying which fields to include in a partial response.
1345
1522
  # @param [String] quota_user
@@ -1349,27 +1526,32 @@ module Google
1349
1526
  # Request-specific options
1350
1527
  #
1351
1528
  # @yield [result, err] Result & error if block supplied
1352
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty] parsed result object
1529
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment] parsed result object
1353
1530
  # @yieldparam err [StandardError] error object if request failed
1354
1531
  #
1355
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty]
1532
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment]
1356
1533
  #
1357
1534
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1358
1535
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1359
1536
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1360
- def delete_project_location_authorized_view_set_authorized_view_conversation_feedback_label(name, fields: nil, quota_user: nil, options: nil, &block)
1361
- command = make_simple_command(:delete, 'v1/{+name}', options)
1362
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
1363
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
1364
- command.params['name'] = name unless name.nil?
1537
+ def create_project_location_authorized_view_set_authorized_view_conversation_assessment(parent, google_cloud_contactcenterinsights_v1_assessment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1538
+ command = make_simple_command(:post, 'v1/{+parent}/assessments', options)
1539
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment::Representation
1540
+ command.request_object = google_cloud_contactcenterinsights_v1_assessment_object
1541
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment::Representation
1542
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment
1543
+ command.params['parent'] = parent unless parent.nil?
1365
1544
  command.query['fields'] = fields unless fields.nil?
1366
1545
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1367
1546
  execute_or_queue_command(command, &block)
1368
1547
  end
1369
1548
 
1370
- # Get feedback label.
1549
+ # Delete an Assessment.
1371
1550
  # @param [String] name
1372
- # Required. The name of the feedback label to get.
1551
+ # Required. The name of the assessment to delete.
1552
+ # @param [Boolean] force
1553
+ # Optional. If set to true, all of this assessment's notes will also be deleted.
1554
+ # Otherwise, the request will only succeed if it has no notes.
1373
1555
  # @param [String] fields
1374
1556
  # Selector specifying which fields to include in a partial response.
1375
1557
  # @param [String] quota_user
@@ -1379,43 +1561,29 @@ module Google
1379
1561
  # Request-specific options
1380
1562
  #
1381
1563
  # @yield [result, err] Result & error if block supplied
1382
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel] parsed result object
1564
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty] parsed result object
1383
1565
  # @yieldparam err [StandardError] error object if request failed
1384
1566
  #
1385
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel]
1567
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty]
1386
1568
  #
1387
1569
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1388
1570
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1389
1571
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1390
- def get_project_location_authorized_view_set_authorized_view_conversation_feedback_label(name, fields: nil, quota_user: nil, options: nil, &block)
1391
- command = make_simple_command(:get, 'v1/{+name}', options)
1392
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel::Representation
1393
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel
1572
+ def delete_project_location_authorized_view_set_authorized_view_conversation_assessment(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
1573
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1574
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
1575
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
1394
1576
  command.params['name'] = name unless name.nil?
1577
+ command.query['force'] = force unless force.nil?
1395
1578
  command.query['fields'] = fields unless fields.nil?
1396
1579
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1397
1580
  execute_or_queue_command(command, &block)
1398
1581
  end
1399
1582
 
1400
- # List feedback labels.
1401
- # @param [String] parent
1402
- # Required. The parent resource of the feedback labels.
1403
- # @param [String] filter
1404
- # Optional. A filter to reduce results to a specific subset. Supports
1405
- # disjunctions (OR) and conjunctions (AND). Automatically sorts by conversation
1406
- # ID. To sort by all feedback labels in a project see ListAllFeedbackLabels.
1407
- # Supported fields: * `issue_model_id` * `qa_question_id` * `qa_scorecard_id` * `
1408
- # min_create_time` * `max_create_time` * `min_update_time` * `max_update_time` *
1409
- # `feedback_label_type`: QUALITY_AI, TOPIC_MODELING
1410
- # @param [Fixnum] page_size
1411
- # Optional. The maximum number of feedback labels to return in the response. A
1412
- # valid page size ranges from 0 to 100,000 inclusive. If the page size is zero
1413
- # or unspecified, a default page size of 100 will be chosen. Note that a call
1414
- # might return fewer results than the requested page size.
1415
- # @param [String] page_token
1416
- # Optional. The value returned by the last `ListFeedbackLabelsResponse`. This
1417
- # value indicates that this is a continuation of a prior `ListFeedbackLabels`
1418
- # call and that the system should return the next page of data.
1583
+ # Finalize an Assessment.
1584
+ # @param [String] name
1585
+ # Required. The name of the assessment to finalize.
1586
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FinalizeAssessmentRequest] google_cloud_contactcenterinsights_v1_finalize_assessment_request_object
1419
1587
  # @param [String] fields
1420
1588
  # Selector specifying which fields to include in a partial response.
1421
1589
  # @param [String] quota_user
@@ -1425,35 +1593,29 @@ module Google
1425
1593
  # Request-specific options
1426
1594
  #
1427
1595
  # @yield [result, err] Result & error if block supplied
1428
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse] parsed result object
1596
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment] parsed result object
1429
1597
  # @yieldparam err [StandardError] error object if request failed
1430
1598
  #
1431
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse]
1599
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment]
1432
1600
  #
1433
1601
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1434
1602
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1435
1603
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1436
- def list_project_location_authorized_view_set_authorized_view_conversation_feedback_labels(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1437
- command = make_simple_command(:get, 'v1/{+parent}/feedbackLabels', options)
1438
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse::Representation
1439
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse
1440
- command.params['parent'] = parent unless parent.nil?
1441
- command.query['filter'] = filter unless filter.nil?
1442
- command.query['pageSize'] = page_size unless page_size.nil?
1443
- command.query['pageToken'] = page_token unless page_token.nil?
1604
+ def finalize_project_location_authorized_view_set_authorized_view_conversation_assessment(name, google_cloud_contactcenterinsights_v1_finalize_assessment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1605
+ command = make_simple_command(:post, 'v1/{+name}:finalize', options)
1606
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FinalizeAssessmentRequest::Representation
1607
+ command.request_object = google_cloud_contactcenterinsights_v1_finalize_assessment_request_object
1608
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment::Representation
1609
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment
1610
+ command.params['name'] = name unless name.nil?
1444
1611
  command.query['fields'] = fields unless fields.nil?
1445
1612
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1446
1613
  execute_or_queue_command(command, &block)
1447
1614
  end
1448
1615
 
1449
- # Update feedback label.
1616
+ # Get Assessment.
1450
1617
  # @param [String] name
1451
- # Immutable. Resource name of the FeedbackLabel. Format: projects/`project`/
1452
- # locations/`location`/conversations/`conversation`/feedbackLabels/`
1453
- # feedback_label`
1454
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel] google_cloud_contactcenterinsights_v1_feedback_label_object
1455
- # @param [String] update_mask
1456
- # Required. The list of fields to be updated.
1618
+ # Required. The name of the assessment to get.
1457
1619
  # @param [String] fields
1458
1620
  # Selector specifying which fields to include in a partial response.
1459
1621
  # @param [String] quota_user
@@ -1463,37 +1625,40 @@ module Google
1463
1625
  # Request-specific options
1464
1626
  #
1465
1627
  # @yield [result, err] Result & error if block supplied
1466
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel] parsed result object
1628
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment] parsed result object
1467
1629
  # @yieldparam err [StandardError] error object if request failed
1468
1630
  #
1469
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel]
1631
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment]
1470
1632
  #
1471
1633
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1472
1634
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1473
1635
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1474
- def patch_project_location_authorized_view_set_authorized_view_conversation_feedback_label(name, google_cloud_contactcenterinsights_v1_feedback_label_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1475
- command = make_simple_command(:patch, 'v1/{+name}', options)
1476
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel::Representation
1477
- command.request_object = google_cloud_contactcenterinsights_v1_feedback_label_object
1478
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel::Representation
1479
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel
1636
+ def get_project_location_authorized_view_set_authorized_view_conversation_assessment(name, fields: nil, quota_user: nil, options: nil, &block)
1637
+ command = make_simple_command(:get, 'v1/{+name}', options)
1638
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment::Representation
1639
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment
1480
1640
  command.params['name'] = name unless name.nil?
1481
- command.query['updateMask'] = update_mask unless update_mask.nil?
1482
1641
  command.query['fields'] = fields unless fields.nil?
1483
1642
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1484
1643
  execute_or_queue_command(command, &block)
1485
1644
  end
1486
1645
 
1487
- # Starts asynchronous cancellation on a long-running operation. The server makes
1488
- # a best effort to cancel the operation, but success is not guaranteed. If the
1489
- # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1490
- # Clients can use Operations.GetOperation or other methods to check whether the
1491
- # cancellation succeeded or whether the operation completed despite cancellation.
1492
- # On successful cancellation, the operation is not deleted; instead, it becomes
1493
- # an operation with an Operation.error value with a google.rpc.Status.code of `1`
1494
- # , corresponding to `Code.CANCELLED`.
1495
- # @param [String] name
1496
- # The name of the operation resource to be cancelled.
1646
+ # List Assessments.
1647
+ # @param [String] parent
1648
+ # Required. The parent resource of the assessments. To list all assessments in a
1649
+ # location, substitute the conversation ID with a '-' character.
1650
+ # @param [String] filter
1651
+ # Optional. A filter to reduce results to a specific subset. Supported filters
1652
+ # include: * `state` - The state of the assessment * `agent_info.agent_id` - The
1653
+ # ID of the agent the assessment is for
1654
+ # @param [Fixnum] page_size
1655
+ # The maximum number of assessments to list. If zero, the service will select a
1656
+ # default size. A call may return fewer objects than requested. A non-empty `
1657
+ # next_page_token` in the response indicates that more data is available.
1658
+ # @param [String] page_token
1659
+ # Optional. The value returned by the last `ListAssessmentRulesResponse`;
1660
+ # indicates that this is a continuation of a prior `ListAssessmentRules` call
1661
+ # and the system should return the next page of data.
1497
1662
  # @param [String] fields
1498
1663
  # Selector specifying which fields to include in a partial response.
1499
1664
  # @param [String] quota_user
@@ -1503,28 +1668,31 @@ module Google
1503
1668
  # Request-specific options
1504
1669
  #
1505
1670
  # @yield [result, err] Result & error if block supplied
1506
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty] parsed result object
1671
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAssessmentsResponse] parsed result object
1507
1672
  # @yieldparam err [StandardError] error object if request failed
1508
1673
  #
1509
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty]
1674
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAssessmentsResponse]
1510
1675
  #
1511
1676
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1512
1677
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1513
1678
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1514
- def cancel_project_location_authorized_view_set_authorized_view_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1515
- command = make_simple_command(:post, 'v1/{+name}:cancel', options)
1516
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
1517
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
1518
- command.params['name'] = name unless name.nil?
1679
+ def list_project_location_authorized_view_set_authorized_view_conversation_assessments(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1680
+ command = make_simple_command(:get, 'v1/{+parent}/assessments', options)
1681
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAssessmentsResponse::Representation
1682
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAssessmentsResponse
1683
+ command.params['parent'] = parent unless parent.nil?
1684
+ command.query['filter'] = filter unless filter.nil?
1685
+ command.query['pageSize'] = page_size unless page_size.nil?
1686
+ command.query['pageToken'] = page_token unless page_token.nil?
1519
1687
  command.query['fields'] = fields unless fields.nil?
1520
1688
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1521
1689
  execute_or_queue_command(command, &block)
1522
1690
  end
1523
1691
 
1524
- # Gets the latest state of a long-running operation. Clients can use this method
1525
- # to poll the operation result at intervals as recommended by the API service.
1692
+ # Publish an Assessment.
1526
1693
  # @param [String] name
1527
- # The name of the operation resource.
1694
+ # Required. The name of the assessment to publish.
1695
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PublishAssessmentRequest] google_cloud_contactcenterinsights_v1_publish_assessment_request_object
1528
1696
  # @param [String] fields
1529
1697
  # Selector specifying which fields to include in a partial response.
1530
1698
  # @param [String] quota_user
@@ -1534,34 +1702,727 @@ module Google
1534
1702
  # Request-specific options
1535
1703
  #
1536
1704
  # @yield [result, err] Result & error if block supplied
1537
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
1705
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment] parsed result object
1538
1706
  # @yieldparam err [StandardError] error object if request failed
1539
1707
  #
1540
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
1708
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment]
1541
1709
  #
1542
1710
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1543
1711
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1544
1712
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1545
- def get_project_location_authorized_view_set_authorized_view_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1546
- command = make_simple_command(:get, 'v1/{+name}', options)
1713
+ def publish_project_location_authorized_view_set_authorized_view_conversation_assessment(name, google_cloud_contactcenterinsights_v1_publish_assessment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1714
+ command = make_simple_command(:post, 'v1/{+name}:publish', options)
1715
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PublishAssessmentRequest::Representation
1716
+ command.request_object = google_cloud_contactcenterinsights_v1_publish_assessment_request_object
1717
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment::Representation
1718
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment
1719
+ command.params['name'] = name unless name.nil?
1720
+ command.query['fields'] = fields unless fields.nil?
1721
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1722
+ execute_or_queue_command(command, &block)
1723
+ end
1724
+
1725
+ # Create Note.
1726
+ # @param [String] parent
1727
+ # Required. The parent resource of the note.
1728
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note] google_cloud_contactcenterinsights_v1_note_object
1729
+ # @param [String] fields
1730
+ # Selector specifying which fields to include in a partial response.
1731
+ # @param [String] quota_user
1732
+ # Available to use for quota purposes for server-side applications. Can be any
1733
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1734
+ # @param [Google::Apis::RequestOptions] options
1735
+ # Request-specific options
1736
+ #
1737
+ # @yield [result, err] Result & error if block supplied
1738
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note] parsed result object
1739
+ # @yieldparam err [StandardError] error object if request failed
1740
+ #
1741
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note]
1742
+ #
1743
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1744
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1745
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1746
+ def create_project_location_authorized_view_set_authorized_view_conversation_assessment_note(parent, google_cloud_contactcenterinsights_v1_note_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1747
+ command = make_simple_command(:post, 'v1/{+parent}/notes', options)
1748
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note::Representation
1749
+ command.request_object = google_cloud_contactcenterinsights_v1_note_object
1750
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note::Representation
1751
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note
1752
+ command.params['parent'] = parent unless parent.nil?
1753
+ command.query['fields'] = fields unless fields.nil?
1754
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1755
+ execute_or_queue_command(command, &block)
1756
+ end
1757
+
1758
+ # Deletes a Note.
1759
+ # @param [String] name
1760
+ # Required. The name of the note to delete.
1761
+ # @param [String] fields
1762
+ # Selector specifying which fields to include in a partial response.
1763
+ # @param [String] quota_user
1764
+ # Available to use for quota purposes for server-side applications. Can be any
1765
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1766
+ # @param [Google::Apis::RequestOptions] options
1767
+ # Request-specific options
1768
+ #
1769
+ # @yield [result, err] Result & error if block supplied
1770
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty] parsed result object
1771
+ # @yieldparam err [StandardError] error object if request failed
1772
+ #
1773
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty]
1774
+ #
1775
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1776
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1777
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1778
+ def delete_project_location_authorized_view_set_authorized_view_conversation_assessment_note(name, fields: nil, quota_user: nil, options: nil, &block)
1779
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1780
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
1781
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
1782
+ command.params['name'] = name unless name.nil?
1783
+ command.query['fields'] = fields unless fields.nil?
1784
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1785
+ execute_or_queue_command(command, &block)
1786
+ end
1787
+
1788
+ # List Notes.
1789
+ # @param [String] parent
1790
+ # Required. The parent resource of the notes.
1791
+ # @param [Fixnum] page_size
1792
+ # Optional. The maximum number of notes to return in the response. If zero the
1793
+ # service will select a default size. A call might return fewer objects than
1794
+ # requested. A non-empty `next_page_token` in the response indicates that more
1795
+ # data is available.
1796
+ # @param [String] page_token
1797
+ # Optional. The value returned by the last `ListNotesResponse`. This value
1798
+ # indicates that this is a continuation of a prior `ListNotes` call and that the
1799
+ # system should return the next page of data.
1800
+ # @param [String] fields
1801
+ # Selector specifying which fields to include in a partial response.
1802
+ # @param [String] quota_user
1803
+ # Available to use for quota purposes for server-side applications. Can be any
1804
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1805
+ # @param [Google::Apis::RequestOptions] options
1806
+ # Request-specific options
1807
+ #
1808
+ # @yield [result, err] Result & error if block supplied
1809
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListNotesResponse] parsed result object
1810
+ # @yieldparam err [StandardError] error object if request failed
1811
+ #
1812
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListNotesResponse]
1813
+ #
1814
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1815
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1816
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1817
+ def list_project_location_authorized_view_set_authorized_view_conversation_assessment_notes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1818
+ command = make_simple_command(:get, 'v1/{+parent}/notes', options)
1819
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListNotesResponse::Representation
1820
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListNotesResponse
1821
+ command.params['parent'] = parent unless parent.nil?
1822
+ command.query['pageSize'] = page_size unless page_size.nil?
1823
+ command.query['pageToken'] = page_token unless page_token.nil?
1824
+ command.query['fields'] = fields unless fields.nil?
1825
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1826
+ execute_or_queue_command(command, &block)
1827
+ end
1828
+
1829
+ # Update Note.
1830
+ # @param [String] name
1831
+ # Identifier. The resource name of the note. Format: projects/`project`/
1832
+ # locations/`location`/conversations/`conversation`/assessments/`assessment`/
1833
+ # notes/`note`
1834
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note] google_cloud_contactcenterinsights_v1_note_object
1835
+ # @param [String] update_mask
1836
+ # Optional. The list of fields to be updated. If the update_mask is empty, all
1837
+ # updateable fields will be updated. Acceptable fields include: * `content`
1838
+ # @param [String] fields
1839
+ # Selector specifying which fields to include in a partial response.
1840
+ # @param [String] quota_user
1841
+ # Available to use for quota purposes for server-side applications. Can be any
1842
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1843
+ # @param [Google::Apis::RequestOptions] options
1844
+ # Request-specific options
1845
+ #
1846
+ # @yield [result, err] Result & error if block supplied
1847
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note] parsed result object
1848
+ # @yieldparam err [StandardError] error object if request failed
1849
+ #
1850
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note]
1851
+ #
1852
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1853
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1854
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1855
+ def patch_project_location_authorized_view_set_authorized_view_conversation_assessment_note(name, google_cloud_contactcenterinsights_v1_note_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1856
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1857
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note::Representation
1858
+ command.request_object = google_cloud_contactcenterinsights_v1_note_object
1859
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note::Representation
1860
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note
1861
+ command.params['name'] = name unless name.nil?
1862
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1863
+ command.query['fields'] = fields unless fields.nil?
1864
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1865
+ execute_or_queue_command(command, &block)
1866
+ end
1867
+
1868
+ # Create feedback label.
1869
+ # @param [String] parent
1870
+ # Required. The parent resource of the feedback label.
1871
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel] google_cloud_contactcenterinsights_v1_feedback_label_object
1872
+ # @param [String] feedback_label_id
1873
+ # Optional. The ID of the feedback label to create. If one is not specified it
1874
+ # will be generated by the server.
1875
+ # @param [String] fields
1876
+ # Selector specifying which fields to include in a partial response.
1877
+ # @param [String] quota_user
1878
+ # Available to use for quota purposes for server-side applications. Can be any
1879
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1880
+ # @param [Google::Apis::RequestOptions] options
1881
+ # Request-specific options
1882
+ #
1883
+ # @yield [result, err] Result & error if block supplied
1884
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel] parsed result object
1885
+ # @yieldparam err [StandardError] error object if request failed
1886
+ #
1887
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel]
1888
+ #
1889
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1890
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1891
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1892
+ def create_project_location_authorized_view_set_authorized_view_conversation_feedback_label(parent, google_cloud_contactcenterinsights_v1_feedback_label_object = nil, feedback_label_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1893
+ command = make_simple_command(:post, 'v1/{+parent}/feedbackLabels', options)
1894
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel::Representation
1895
+ command.request_object = google_cloud_contactcenterinsights_v1_feedback_label_object
1896
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel::Representation
1897
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel
1898
+ command.params['parent'] = parent unless parent.nil?
1899
+ command.query['feedbackLabelId'] = feedback_label_id unless feedback_label_id.nil?
1900
+ command.query['fields'] = fields unless fields.nil?
1901
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1902
+ execute_or_queue_command(command, &block)
1903
+ end
1904
+
1905
+ # Delete feedback label.
1906
+ # @param [String] name
1907
+ # Required. The name of the feedback label to delete.
1908
+ # @param [String] fields
1909
+ # Selector specifying which fields to include in a partial response.
1910
+ # @param [String] quota_user
1911
+ # Available to use for quota purposes for server-side applications. Can be any
1912
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1913
+ # @param [Google::Apis::RequestOptions] options
1914
+ # Request-specific options
1915
+ #
1916
+ # @yield [result, err] Result & error if block supplied
1917
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty] parsed result object
1918
+ # @yieldparam err [StandardError] error object if request failed
1919
+ #
1920
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty]
1921
+ #
1922
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1923
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1924
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1925
+ def delete_project_location_authorized_view_set_authorized_view_conversation_feedback_label(name, fields: nil, quota_user: nil, options: nil, &block)
1926
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1927
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
1928
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
1929
+ command.params['name'] = name unless name.nil?
1930
+ command.query['fields'] = fields unless fields.nil?
1931
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1932
+ execute_or_queue_command(command, &block)
1933
+ end
1934
+
1935
+ # Get feedback label.
1936
+ # @param [String] name
1937
+ # Required. The name of the feedback label to get.
1938
+ # @param [String] fields
1939
+ # Selector specifying which fields to include in a partial response.
1940
+ # @param [String] quota_user
1941
+ # Available to use for quota purposes for server-side applications. Can be any
1942
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1943
+ # @param [Google::Apis::RequestOptions] options
1944
+ # Request-specific options
1945
+ #
1946
+ # @yield [result, err] Result & error if block supplied
1947
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel] parsed result object
1948
+ # @yieldparam err [StandardError] error object if request failed
1949
+ #
1950
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel]
1951
+ #
1952
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1953
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1954
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1955
+ def get_project_location_authorized_view_set_authorized_view_conversation_feedback_label(name, fields: nil, quota_user: nil, options: nil, &block)
1956
+ command = make_simple_command(:get, 'v1/{+name}', options)
1957
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel::Representation
1958
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel
1959
+ command.params['name'] = name unless name.nil?
1960
+ command.query['fields'] = fields unless fields.nil?
1961
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1962
+ execute_or_queue_command(command, &block)
1963
+ end
1964
+
1965
+ # List feedback labels.
1966
+ # @param [String] parent
1967
+ # Required. The parent resource of the feedback labels.
1968
+ # @param [String] filter
1969
+ # Optional. A filter to reduce results to a specific subset. Supports
1970
+ # disjunctions (OR) and conjunctions (AND). Automatically sorts by conversation
1971
+ # ID. To sort by all feedback labels in a project see ListAllFeedbackLabels.
1972
+ # Supported fields: * `issue_model_id` * `qa_question_id` * `qa_scorecard_id` * `
1973
+ # min_create_time` * `max_create_time` * `min_update_time` * `max_update_time` *
1974
+ # `feedback_label_type`: QUALITY_AI, TOPIC_MODELING
1975
+ # @param [Fixnum] page_size
1976
+ # Optional. The maximum number of feedback labels to return in the response. A
1977
+ # valid page size ranges from 0 to 100,000 inclusive. If the page size is zero
1978
+ # or unspecified, a default page size of 100 will be chosen. Note that a call
1979
+ # might return fewer results than the requested page size.
1980
+ # @param [String] page_token
1981
+ # Optional. The value returned by the last `ListFeedbackLabelsResponse`. This
1982
+ # value indicates that this is a continuation of a prior `ListFeedbackLabels`
1983
+ # call and that the system should return the next page of data.
1984
+ # @param [String] fields
1985
+ # Selector specifying which fields to include in a partial response.
1986
+ # @param [String] quota_user
1987
+ # Available to use for quota purposes for server-side applications. Can be any
1988
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1989
+ # @param [Google::Apis::RequestOptions] options
1990
+ # Request-specific options
1991
+ #
1992
+ # @yield [result, err] Result & error if block supplied
1993
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse] parsed result object
1994
+ # @yieldparam err [StandardError] error object if request failed
1995
+ #
1996
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse]
1997
+ #
1998
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1999
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2000
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2001
+ def list_project_location_authorized_view_set_authorized_view_conversation_feedback_labels(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2002
+ command = make_simple_command(:get, 'v1/{+parent}/feedbackLabels', options)
2003
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse::Representation
2004
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse
2005
+ command.params['parent'] = parent unless parent.nil?
2006
+ command.query['filter'] = filter unless filter.nil?
2007
+ command.query['pageSize'] = page_size unless page_size.nil?
2008
+ command.query['pageToken'] = page_token unless page_token.nil?
2009
+ command.query['fields'] = fields unless fields.nil?
2010
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2011
+ execute_or_queue_command(command, &block)
2012
+ end
2013
+
2014
+ # Update feedback label.
2015
+ # @param [String] name
2016
+ # Immutable. Resource name of the FeedbackLabel. Format: projects/`project`/
2017
+ # locations/`location`/conversations/`conversation`/feedbackLabels/`
2018
+ # feedback_label`
2019
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel] google_cloud_contactcenterinsights_v1_feedback_label_object
2020
+ # @param [String] update_mask
2021
+ # Required. The list of fields to be updated.
2022
+ # @param [String] fields
2023
+ # Selector specifying which fields to include in a partial response.
2024
+ # @param [String] quota_user
2025
+ # Available to use for quota purposes for server-side applications. Can be any
2026
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2027
+ # @param [Google::Apis::RequestOptions] options
2028
+ # Request-specific options
2029
+ #
2030
+ # @yield [result, err] Result & error if block supplied
2031
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel] parsed result object
2032
+ # @yieldparam err [StandardError] error object if request failed
2033
+ #
2034
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel]
2035
+ #
2036
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2037
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2038
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2039
+ def patch_project_location_authorized_view_set_authorized_view_conversation_feedback_label(name, google_cloud_contactcenterinsights_v1_feedback_label_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2040
+ command = make_simple_command(:patch, 'v1/{+name}', options)
2041
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel::Representation
2042
+ command.request_object = google_cloud_contactcenterinsights_v1_feedback_label_object
2043
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel::Representation
2044
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FeedbackLabel
2045
+ command.params['name'] = name unless name.nil?
2046
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2047
+ command.query['fields'] = fields unless fields.nil?
2048
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2049
+ execute_or_queue_command(command, &block)
2050
+ end
2051
+
2052
+ # Starts asynchronous cancellation on a long-running operation. The server makes
2053
+ # a best effort to cancel the operation, but success is not guaranteed. If the
2054
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
2055
+ # Clients can use Operations.GetOperation or other methods to check whether the
2056
+ # cancellation succeeded or whether the operation completed despite cancellation.
2057
+ # On successful cancellation, the operation is not deleted; instead, it becomes
2058
+ # an operation with an Operation.error value with a google.rpc.Status.code of `1`
2059
+ # , corresponding to `Code.CANCELLED`.
2060
+ # @param [String] name
2061
+ # The name of the operation resource to be cancelled.
2062
+ # @param [String] fields
2063
+ # Selector specifying which fields to include in a partial response.
2064
+ # @param [String] quota_user
2065
+ # Available to use for quota purposes for server-side applications. Can be any
2066
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2067
+ # @param [Google::Apis::RequestOptions] options
2068
+ # Request-specific options
2069
+ #
2070
+ # @yield [result, err] Result & error if block supplied
2071
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty] parsed result object
2072
+ # @yieldparam err [StandardError] error object if request failed
2073
+ #
2074
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty]
2075
+ #
2076
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2077
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2078
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2079
+ def cancel_project_location_authorized_view_set_authorized_view_operation(name, fields: nil, quota_user: nil, options: nil, &block)
2080
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
2081
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
2082
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
2083
+ command.params['name'] = name unless name.nil?
2084
+ command.query['fields'] = fields unless fields.nil?
2085
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2086
+ execute_or_queue_command(command, &block)
2087
+ end
2088
+
2089
+ # Gets the latest state of a long-running operation. Clients can use this method
2090
+ # to poll the operation result at intervals as recommended by the API service.
2091
+ # @param [String] name
2092
+ # The name of the operation resource.
2093
+ # @param [String] fields
2094
+ # Selector specifying which fields to include in a partial response.
2095
+ # @param [String] quota_user
2096
+ # Available to use for quota purposes for server-side applications. Can be any
2097
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2098
+ # @param [Google::Apis::RequestOptions] options
2099
+ # Request-specific options
2100
+ #
2101
+ # @yield [result, err] Result & error if block supplied
2102
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
2103
+ # @yieldparam err [StandardError] error object if request failed
2104
+ #
2105
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
2106
+ #
2107
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2108
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2109
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2110
+ def get_project_location_authorized_view_set_authorized_view_operation(name, fields: nil, quota_user: nil, options: nil, &block)
2111
+ command = make_simple_command(:get, 'v1/{+name}', options)
2112
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
2113
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
2114
+ command.params['name'] = name unless name.nil?
2115
+ command.query['fields'] = fields unless fields.nil?
2116
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2117
+ execute_or_queue_command(command, &block)
2118
+ end
2119
+
2120
+ # Lists operations that match the specified filter in the request. If the server
2121
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
2122
+ # @param [String] name
2123
+ # The name of the operation's parent resource.
2124
+ # @param [String] filter
2125
+ # The standard list filter.
2126
+ # @param [Fixnum] page_size
2127
+ # The standard list page size.
2128
+ # @param [String] page_token
2129
+ # The standard list page token.
2130
+ # @param [String] fields
2131
+ # Selector specifying which fields to include in a partial response.
2132
+ # @param [String] quota_user
2133
+ # Available to use for quota purposes for server-side applications. Can be any
2134
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2135
+ # @param [Google::Apis::RequestOptions] options
2136
+ # Request-specific options
2137
+ #
2138
+ # @yield [result, err] Result & error if block supplied
2139
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningListOperationsResponse] parsed result object
2140
+ # @yieldparam err [StandardError] error object if request failed
2141
+ #
2142
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningListOperationsResponse]
2143
+ #
2144
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2145
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2146
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2147
+ def list_project_location_authorized_view_set_authorized_view_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2148
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
2149
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningListOperationsResponse::Representation
2150
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningListOperationsResponse
2151
+ command.params['name'] = name unless name.nil?
2152
+ command.query['filter'] = filter unless filter.nil?
2153
+ command.query['pageSize'] = page_size unless page_size.nil?
2154
+ command.query['pageToken'] = page_token unless page_token.nil?
2155
+ command.query['fields'] = fields unless fields.nil?
2156
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2157
+ execute_or_queue_command(command, &block)
2158
+ end
2159
+
2160
+ # Analyzes multiple conversations in a single request.
2161
+ # @param [String] parent
2162
+ # Required. The parent resource to create analyses in.
2163
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest] google_cloud_contactcenterinsights_v1_bulk_analyze_conversations_request_object
2164
+ # @param [String] fields
2165
+ # Selector specifying which fields to include in a partial response.
2166
+ # @param [String] quota_user
2167
+ # Available to use for quota purposes for server-side applications. Can be any
2168
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2169
+ # @param [Google::Apis::RequestOptions] options
2170
+ # Request-specific options
2171
+ #
2172
+ # @yield [result, err] Result & error if block supplied
2173
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
2174
+ # @yieldparam err [StandardError] error object if request failed
2175
+ #
2176
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
2177
+ #
2178
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2179
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2180
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2181
+ def bulk_project_location_conversation_analyze(parent, google_cloud_contactcenterinsights_v1_bulk_analyze_conversations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2182
+ command = make_simple_command(:post, 'v1/{+parent}/conversations:bulkAnalyze', options)
2183
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest::Representation
2184
+ command.request_object = google_cloud_contactcenterinsights_v1_bulk_analyze_conversations_request_object
2185
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
2186
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
2187
+ command.params['parent'] = parent unless parent.nil?
2188
+ command.query['fields'] = fields unless fields.nil?
2189
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2190
+ execute_or_queue_command(command, &block)
2191
+ end
2192
+
2193
+ # Deletes multiple conversations in a single request.
2194
+ # @param [String] parent
2195
+ # Required. The parent resource to delete conversations from. Format: projects/`
2196
+ # project`/locations/`location`
2197
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest] google_cloud_contactcenterinsights_v1_bulk_delete_conversations_request_object
2198
+ # @param [String] fields
2199
+ # Selector specifying which fields to include in a partial response.
2200
+ # @param [String] quota_user
2201
+ # Available to use for quota purposes for server-side applications. Can be any
2202
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2203
+ # @param [Google::Apis::RequestOptions] options
2204
+ # Request-specific options
2205
+ #
2206
+ # @yield [result, err] Result & error if block supplied
2207
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
2208
+ # @yieldparam err [StandardError] error object if request failed
2209
+ #
2210
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
2211
+ #
2212
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2213
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2214
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2215
+ def bulk_project_location_conversation_delete(parent, google_cloud_contactcenterinsights_v1_bulk_delete_conversations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2216
+ command = make_simple_command(:post, 'v1/{+parent}/conversations:bulkDelete', options)
2217
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest::Representation
2218
+ command.request_object = google_cloud_contactcenterinsights_v1_bulk_delete_conversations_request_object
1547
2219
  command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
1548
2220
  command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
2221
+ command.params['parent'] = parent unless parent.nil?
2222
+ command.query['fields'] = fields unless fields.nil?
2223
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2224
+ execute_or_queue_command(command, &block)
2225
+ end
2226
+
2227
+ # Gets conversation statistics.
2228
+ # @param [String] location
2229
+ # Required. The location of the conversations.
2230
+ # @param [String] filter
2231
+ # A filter to reduce results to a specific subset. This field is useful for
2232
+ # getting statistics about conversations with specific properties.
2233
+ # @param [String] fields
2234
+ # Selector specifying which fields to include in a partial response.
2235
+ # @param [String] quota_user
2236
+ # Available to use for quota purposes for server-side applications. Can be any
2237
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2238
+ # @param [Google::Apis::RequestOptions] options
2239
+ # Request-specific options
2240
+ #
2241
+ # @yield [result, err] Result & error if block supplied
2242
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse] parsed result object
2243
+ # @yieldparam err [StandardError] error object if request failed
2244
+ #
2245
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse]
2246
+ #
2247
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2248
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2249
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2250
+ def calculate_project_location_conversation_stats(location, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
2251
+ command = make_simple_command(:get, 'v1/{+location}/conversations:calculateStats', options)
2252
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse::Representation
2253
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse
2254
+ command.params['location'] = location unless location.nil?
2255
+ command.query['filter'] = filter unless filter.nil?
2256
+ command.query['fields'] = fields unless fields.nil?
2257
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2258
+ execute_or_queue_command(command, &block)
2259
+ end
2260
+
2261
+ # Creates a conversation. Note that this method does not support audio
2262
+ # transcription or redaction. Use `conversations.upload` instead.
2263
+ # @param [String] parent
2264
+ # Required. The parent resource of the conversation.
2265
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] google_cloud_contactcenterinsights_v1_conversation_object
2266
+ # @param [String] conversation_id
2267
+ # A unique ID for the new conversation. This ID will become the final component
2268
+ # of the conversation's resource name. If no ID is specified, a server-generated
2269
+ # ID will be used. This value should be 4-64 characters and must match the
2270
+ # regular expression `^[a-z0-9-]`4,64`$`. Valid characters are `a-z-`
2271
+ # @param [String] fields
2272
+ # Selector specifying which fields to include in a partial response.
2273
+ # @param [String] quota_user
2274
+ # Available to use for quota purposes for server-side applications. Can be any
2275
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2276
+ # @param [Google::Apis::RequestOptions] options
2277
+ # Request-specific options
2278
+ #
2279
+ # @yield [result, err] Result & error if block supplied
2280
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] parsed result object
2281
+ # @yieldparam err [StandardError] error object if request failed
2282
+ #
2283
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation]
2284
+ #
2285
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2286
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2287
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2288
+ def create_project_location_conversation(parent, google_cloud_contactcenterinsights_v1_conversation_object = nil, conversation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2289
+ command = make_simple_command(:post, 'v1/{+parent}/conversations', options)
2290
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
2291
+ command.request_object = google_cloud_contactcenterinsights_v1_conversation_object
2292
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
2293
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation
2294
+ command.params['parent'] = parent unless parent.nil?
2295
+ command.query['conversationId'] = conversation_id unless conversation_id.nil?
2296
+ command.query['fields'] = fields unless fields.nil?
2297
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2298
+ execute_or_queue_command(command, &block)
2299
+ end
2300
+
2301
+ # Deletes a conversation.
2302
+ # @param [String] name
2303
+ # Required. The name of the conversation to delete.
2304
+ # @param [Boolean] force
2305
+ # If set to true, all of this conversation's analyses will also be deleted.
2306
+ # Otherwise, the request will only succeed if the conversation has no analyses.
2307
+ # @param [String] fields
2308
+ # Selector specifying which fields to include in a partial response.
2309
+ # @param [String] quota_user
2310
+ # Available to use for quota purposes for server-side applications. Can be any
2311
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2312
+ # @param [Google::Apis::RequestOptions] options
2313
+ # Request-specific options
2314
+ #
2315
+ # @yield [result, err] Result & error if block supplied
2316
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty] parsed result object
2317
+ # @yieldparam err [StandardError] error object if request failed
2318
+ #
2319
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty]
2320
+ #
2321
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2322
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2323
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2324
+ def delete_project_location_conversation(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
2325
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2326
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
2327
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
1549
2328
  command.params['name'] = name unless name.nil?
2329
+ command.query['force'] = force unless force.nil?
1550
2330
  command.query['fields'] = fields unless fields.nil?
1551
2331
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1552
2332
  execute_or_queue_command(command, &block)
1553
2333
  end
1554
2334
 
1555
- # Lists operations that match the specified filter in the request. If the server
1556
- # doesn't support this method, it returns `UNIMPLEMENTED`.
2335
+ # Gets a conversation.
1557
2336
  # @param [String] name
1558
- # The name of the operation's parent resource.
2337
+ # Required. The name of the conversation to get.
2338
+ # @param [String] view
2339
+ # The level of details of the conversation. Default is `FULL`.
2340
+ # @param [String] fields
2341
+ # Selector specifying which fields to include in a partial response.
2342
+ # @param [String] quota_user
2343
+ # Available to use for quota purposes for server-side applications. Can be any
2344
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2345
+ # @param [Google::Apis::RequestOptions] options
2346
+ # Request-specific options
2347
+ #
2348
+ # @yield [result, err] Result & error if block supplied
2349
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] parsed result object
2350
+ # @yieldparam err [StandardError] error object if request failed
2351
+ #
2352
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation]
2353
+ #
2354
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2355
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2356
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2357
+ def get_project_location_conversation(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
2358
+ command = make_simple_command(:get, 'v1/{+name}', options)
2359
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
2360
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation
2361
+ command.params['name'] = name unless name.nil?
2362
+ command.query['view'] = view unless view.nil?
2363
+ command.query['fields'] = fields unless fields.nil?
2364
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2365
+ execute_or_queue_command(command, &block)
2366
+ end
2367
+
2368
+ # Imports conversations and processes them according to the user's configuration.
2369
+ # @param [String] parent
2370
+ # Required. The parent resource for new conversations.
2371
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IngestConversationsRequest] google_cloud_contactcenterinsights_v1_ingest_conversations_request_object
2372
+ # @param [String] fields
2373
+ # Selector specifying which fields to include in a partial response.
2374
+ # @param [String] quota_user
2375
+ # Available to use for quota purposes for server-side applications. Can be any
2376
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2377
+ # @param [Google::Apis::RequestOptions] options
2378
+ # Request-specific options
2379
+ #
2380
+ # @yield [result, err] Result & error if block supplied
2381
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
2382
+ # @yieldparam err [StandardError] error object if request failed
2383
+ #
2384
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
2385
+ #
2386
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2387
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2388
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2389
+ def ingest_project_location_conversation(parent, google_cloud_contactcenterinsights_v1_ingest_conversations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2390
+ command = make_simple_command(:post, 'v1/{+parent}/conversations:ingest', options)
2391
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IngestConversationsRequest::Representation
2392
+ command.request_object = google_cloud_contactcenterinsights_v1_ingest_conversations_request_object
2393
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
2394
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
2395
+ command.params['parent'] = parent unless parent.nil?
2396
+ command.query['fields'] = fields unless fields.nil?
2397
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2398
+ execute_or_queue_command(command, &block)
2399
+ end
2400
+
2401
+ # Lists conversations.
2402
+ # @param [String] parent
2403
+ # Required. The parent resource of the conversation.
1559
2404
  # @param [String] filter
1560
- # The standard list filter.
2405
+ # A filter to reduce results to a specific subset. Useful for querying
2406
+ # conversations with specific properties.
2407
+ # @param [String] order_by
2408
+ # Optional. The attribute by which to order conversations in the response. If
2409
+ # empty, conversations will be ordered by descending creation time. Supported
2410
+ # values are one of the following: * create_time * customer_satisfaction_rating *
2411
+ # duration * latest_analysis * start_time * turn_count The default sort order
2412
+ # is ascending. To specify order, append `asc` or `desc` (`create_time desc`).
2413
+ # For more details, see [Google AIPs Ordering](https://google.aip.dev/132#
2414
+ # ordering).
1561
2415
  # @param [Fixnum] page_size
1562
- # The standard list page size.
2416
+ # The maximum number of conversations to return in the response. A valid page
2417
+ # size ranges from 0 to 100,000 inclusive. If the page size is zero or
2418
+ # unspecified, a default page size of 100 will be chosen. Note that a call might
2419
+ # return fewer results than the requested page size.
1563
2420
  # @param [String] page_token
1564
- # The standard list page token.
2421
+ # The value returned by the last `ListConversationsResponse`. This value
2422
+ # indicates that this is a continuation of a prior `ListConversations` call and
2423
+ # that the system should return the next page of data.
2424
+ # @param [String] view
2425
+ # The level of details of the conversation. Default is `BASIC`.
1565
2426
  # @param [String] fields
1566
2427
  # Selector specifying which fields to include in a partial response.
1567
2428
  # @param [String] quota_user
@@ -1571,31 +2432,75 @@ module Google
1571
2432
  # Request-specific options
1572
2433
  #
1573
2434
  # @yield [result, err] Result & error if block supplied
1574
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningListOperationsResponse] parsed result object
2435
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListConversationsResponse] parsed result object
1575
2436
  # @yieldparam err [StandardError] error object if request failed
1576
2437
  #
1577
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningListOperationsResponse]
2438
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListConversationsResponse]
1578
2439
  #
1579
2440
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1580
2441
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1581
2442
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1582
- def list_project_location_authorized_view_set_authorized_view_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1583
- command = make_simple_command(:get, 'v1/{+name}/operations', options)
1584
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningListOperationsResponse::Representation
1585
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningListOperationsResponse
1586
- command.params['name'] = name unless name.nil?
2443
+ def list_project_location_conversations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
2444
+ command = make_simple_command(:get, 'v1/{+parent}/conversations', options)
2445
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListConversationsResponse::Representation
2446
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListConversationsResponse
2447
+ command.params['parent'] = parent unless parent.nil?
1587
2448
  command.query['filter'] = filter unless filter.nil?
2449
+ command.query['orderBy'] = order_by unless order_by.nil?
1588
2450
  command.query['pageSize'] = page_size unless page_size.nil?
1589
2451
  command.query['pageToken'] = page_token unless page_token.nil?
2452
+ command.query['view'] = view unless view.nil?
1590
2453
  command.query['fields'] = fields unless fields.nil?
1591
2454
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1592
2455
  execute_or_queue_command(command, &block)
1593
2456
  end
1594
2457
 
1595
- # Analyzes multiple conversations in a single request.
2458
+ # Updates a conversation.
2459
+ # @param [String] name
2460
+ # Immutable. The resource name of the conversation. Format: projects/`project`/
2461
+ # locations/`location`/conversations/`conversation`
2462
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] google_cloud_contactcenterinsights_v1_conversation_object
2463
+ # @param [String] update_mask
2464
+ # The list of fields to be updated. All possible fields can be updated by
2465
+ # passing `*`, or a subset of the following updateable fields can be provided: *
2466
+ # `agent_id` * `language_code` * `labels` * `metadata` * `quality_metadata` * `
2467
+ # call_metadata` * `start_time` * `expire_time` or `ttl` * `data_source.
2468
+ # gcs_source.audio_uri` or `data_source.dialogflow_source.audio_uri`
2469
+ # @param [String] fields
2470
+ # Selector specifying which fields to include in a partial response.
2471
+ # @param [String] quota_user
2472
+ # Available to use for quota purposes for server-side applications. Can be any
2473
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2474
+ # @param [Google::Apis::RequestOptions] options
2475
+ # Request-specific options
2476
+ #
2477
+ # @yield [result, err] Result & error if block supplied
2478
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] parsed result object
2479
+ # @yieldparam err [StandardError] error object if request failed
2480
+ #
2481
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation]
2482
+ #
2483
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2484
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2485
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2486
+ def patch_project_location_conversation(name, google_cloud_contactcenterinsights_v1_conversation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2487
+ command = make_simple_command(:patch, 'v1/{+name}', options)
2488
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
2489
+ command.request_object = google_cloud_contactcenterinsights_v1_conversation_object
2490
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
2491
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation
2492
+ command.params['name'] = name unless name.nil?
2493
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2494
+ command.query['fields'] = fields unless fields.nil?
2495
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2496
+ execute_or_queue_command(command, &block)
2497
+ end
2498
+
2499
+ # Create a long-running conversation upload operation. This method differs from `
2500
+ # CreateConversation` by allowing audio transcription and optional DLP redaction.
1596
2501
  # @param [String] parent
1597
- # Required. The parent resource to create analyses in.
1598
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest] google_cloud_contactcenterinsights_v1_bulk_analyze_conversations_request_object
2502
+ # Required. The parent resource of the conversation.
2503
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1UploadConversationRequest] google_cloud_contactcenterinsights_v1_upload_conversation_request_object
1599
2504
  # @param [String] fields
1600
2505
  # Selector specifying which fields to include in a partial response.
1601
2506
  # @param [String] quota_user
@@ -1613,10 +2518,44 @@ module Google
1613
2518
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1614
2519
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1615
2520
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1616
- def bulk_project_location_conversation_analyze(parent, google_cloud_contactcenterinsights_v1_bulk_analyze_conversations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1617
- command = make_simple_command(:post, 'v1/{+parent}/conversations:bulkAnalyze', options)
1618
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest::Representation
1619
- command.request_object = google_cloud_contactcenterinsights_v1_bulk_analyze_conversations_request_object
2521
+ def upload_project_location_conversation(parent, google_cloud_contactcenterinsights_v1_upload_conversation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2522
+ command = make_simple_command(:post, 'v1/{+parent}/conversations:upload', options)
2523
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1UploadConversationRequest::Representation
2524
+ command.request_object = google_cloud_contactcenterinsights_v1_upload_conversation_request_object
2525
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
2526
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
2527
+ command.params['parent'] = parent unless parent.nil?
2528
+ command.query['fields'] = fields unless fields.nil?
2529
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2530
+ execute_or_queue_command(command, &block)
2531
+ end
2532
+
2533
+ # Creates an analysis. The long running operation is done when the analysis has
2534
+ # completed.
2535
+ # @param [String] parent
2536
+ # Required. The parent resource of the analysis.
2537
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis] google_cloud_contactcenterinsights_v1_analysis_object
2538
+ # @param [String] fields
2539
+ # Selector specifying which fields to include in a partial response.
2540
+ # @param [String] quota_user
2541
+ # Available to use for quota purposes for server-side applications. Can be any
2542
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2543
+ # @param [Google::Apis::RequestOptions] options
2544
+ # Request-specific options
2545
+ #
2546
+ # @yield [result, err] Result & error if block supplied
2547
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
2548
+ # @yieldparam err [StandardError] error object if request failed
2549
+ #
2550
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
2551
+ #
2552
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2553
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2554
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2555
+ def create_project_location_conversation_analysis(parent, google_cloud_contactcenterinsights_v1_analysis_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2556
+ command = make_simple_command(:post, 'v1/{+parent}/analyses', options)
2557
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis::Representation
2558
+ command.request_object = google_cloud_contactcenterinsights_v1_analysis_object
1620
2559
  command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
1621
2560
  command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
1622
2561
  command.params['parent'] = parent unless parent.nil?
@@ -1625,11 +2564,81 @@ module Google
1625
2564
  execute_or_queue_command(command, &block)
1626
2565
  end
1627
2566
 
1628
- # Deletes multiple conversations in a single request.
2567
+ # Deletes an analysis.
2568
+ # @param [String] name
2569
+ # Required. The name of the analysis to delete.
2570
+ # @param [String] fields
2571
+ # Selector specifying which fields to include in a partial response.
2572
+ # @param [String] quota_user
2573
+ # Available to use for quota purposes for server-side applications. Can be any
2574
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2575
+ # @param [Google::Apis::RequestOptions] options
2576
+ # Request-specific options
2577
+ #
2578
+ # @yield [result, err] Result & error if block supplied
2579
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty] parsed result object
2580
+ # @yieldparam err [StandardError] error object if request failed
2581
+ #
2582
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty]
2583
+ #
2584
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2585
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2586
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2587
+ def delete_project_location_conversation_analysis(name, fields: nil, quota_user: nil, options: nil, &block)
2588
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2589
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
2590
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
2591
+ command.params['name'] = name unless name.nil?
2592
+ command.query['fields'] = fields unless fields.nil?
2593
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2594
+ execute_or_queue_command(command, &block)
2595
+ end
2596
+
2597
+ # Gets an analysis.
2598
+ # @param [String] name
2599
+ # Required. The name of the analysis to get.
2600
+ # @param [String] fields
2601
+ # Selector specifying which fields to include in a partial response.
2602
+ # @param [String] quota_user
2603
+ # Available to use for quota purposes for server-side applications. Can be any
2604
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2605
+ # @param [Google::Apis::RequestOptions] options
2606
+ # Request-specific options
2607
+ #
2608
+ # @yield [result, err] Result & error if block supplied
2609
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis] parsed result object
2610
+ # @yieldparam err [StandardError] error object if request failed
2611
+ #
2612
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis]
2613
+ #
2614
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2615
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2616
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2617
+ def get_project_location_conversation_analysis(name, fields: nil, quota_user: nil, options: nil, &block)
2618
+ command = make_simple_command(:get, 'v1/{+name}', options)
2619
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis::Representation
2620
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis
2621
+ command.params['name'] = name unless name.nil?
2622
+ command.query['fields'] = fields unless fields.nil?
2623
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2624
+ execute_or_queue_command(command, &block)
2625
+ end
2626
+
2627
+ # Lists analyses.
1629
2628
  # @param [String] parent
1630
- # Required. The parent resource to delete conversations from. Format: projects/`
1631
- # project`/locations/`location`
1632
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest] google_cloud_contactcenterinsights_v1_bulk_delete_conversations_request_object
2629
+ # Required. The parent resource of the analyses.
2630
+ # @param [String] filter
2631
+ # A filter to reduce results to a specific subset. Useful for querying
2632
+ # conversations with specific properties.
2633
+ # @param [Fixnum] page_size
2634
+ # The maximum number of analyses to return in the response. If this value is
2635
+ # zero, the service will select a default size. A call might return fewer
2636
+ # objects than requested. A non-empty `next_page_token` in the response
2637
+ # indicates that more data is available.
2638
+ # @param [String] page_token
2639
+ # The value returned by the last `ListAnalysesResponse`; indicates that this is
2640
+ # a continuation of a prior `ListAnalyses` call and the system should return the
2641
+ # next page of data.
1633
2642
  # @param [String] fields
1634
2643
  # Selector specifying which fields to include in a partial response.
1635
2644
  # @param [String] quota_user
@@ -1639,32 +2648,31 @@ module Google
1639
2648
  # Request-specific options
1640
2649
  #
1641
2650
  # @yield [result, err] Result & error if block supplied
1642
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
2651
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysesResponse] parsed result object
1643
2652
  # @yieldparam err [StandardError] error object if request failed
1644
2653
  #
1645
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
2654
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysesResponse]
1646
2655
  #
1647
2656
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1648
2657
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1649
2658
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1650
- def bulk_project_location_conversation_delete(parent, google_cloud_contactcenterinsights_v1_bulk_delete_conversations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1651
- command = make_simple_command(:post, 'v1/{+parent}/conversations:bulkDelete', options)
1652
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest::Representation
1653
- command.request_object = google_cloud_contactcenterinsights_v1_bulk_delete_conversations_request_object
1654
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
1655
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
2659
+ def list_project_location_conversation_analyses(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2660
+ command = make_simple_command(:get, 'v1/{+parent}/analyses', options)
2661
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysesResponse::Representation
2662
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysesResponse
1656
2663
  command.params['parent'] = parent unless parent.nil?
2664
+ command.query['filter'] = filter unless filter.nil?
2665
+ command.query['pageSize'] = page_size unless page_size.nil?
2666
+ command.query['pageToken'] = page_token unless page_token.nil?
1657
2667
  command.query['fields'] = fields unless fields.nil?
1658
2668
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1659
2669
  execute_or_queue_command(command, &block)
1660
2670
  end
1661
2671
 
1662
- # Gets conversation statistics.
1663
- # @param [String] location
1664
- # Required. The location of the conversations.
1665
- # @param [String] filter
1666
- # A filter to reduce results to a specific subset. This field is useful for
1667
- # getting statistics about conversations with specific properties.
2672
+ # Appeal an Assessment.
2673
+ # @param [String] name
2674
+ # Required. The name of the assessment to appeal.
2675
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AppealAssessmentRequest] google_cloud_contactcenterinsights_v1_appeal_assessment_request_object
1668
2676
  # @param [String] fields
1669
2677
  # Selector specifying which fields to include in a partial response.
1670
2678
  # @param [String] quota_user
@@ -1674,35 +2682,30 @@ module Google
1674
2682
  # Request-specific options
1675
2683
  #
1676
2684
  # @yield [result, err] Result & error if block supplied
1677
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse] parsed result object
2685
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment] parsed result object
1678
2686
  # @yieldparam err [StandardError] error object if request failed
1679
2687
  #
1680
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse]
2688
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment]
1681
2689
  #
1682
2690
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1683
2691
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1684
2692
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1685
- def calculate_project_location_conversation_stats(location, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
1686
- command = make_simple_command(:get, 'v1/{+location}/conversations:calculateStats', options)
1687
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse::Representation
1688
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse
1689
- command.params['location'] = location unless location.nil?
1690
- command.query['filter'] = filter unless filter.nil?
2693
+ def appeal_project_location_conversation_assessment(name, google_cloud_contactcenterinsights_v1_appeal_assessment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2694
+ command = make_simple_command(:post, 'v1/{+name}:appeal', options)
2695
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AppealAssessmentRequest::Representation
2696
+ command.request_object = google_cloud_contactcenterinsights_v1_appeal_assessment_request_object
2697
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment::Representation
2698
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment
2699
+ command.params['name'] = name unless name.nil?
1691
2700
  command.query['fields'] = fields unless fields.nil?
1692
2701
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1693
2702
  execute_or_queue_command(command, &block)
1694
2703
  end
1695
2704
 
1696
- # Creates a conversation. Note that this method does not support audio
1697
- # transcription or redaction. Use `conversations.upload` instead.
2705
+ # Create Assessment.
1698
2706
  # @param [String] parent
1699
- # Required. The parent resource of the conversation.
1700
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] google_cloud_contactcenterinsights_v1_conversation_object
1701
- # @param [String] conversation_id
1702
- # A unique ID for the new conversation. This ID will become the final component
1703
- # of the conversation's resource name. If no ID is specified, a server-generated
1704
- # ID will be used. This value should be 4-64 characters and must match the
1705
- # regular expression `^[a-z0-9-]`4,64`$`. Valid characters are `a-z-`
2707
+ # Required. The parent resource of the assessment.
2708
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment] google_cloud_contactcenterinsights_v1_assessment_object
1706
2709
  # @param [String] fields
1707
2710
  # Selector specifying which fields to include in a partial response.
1708
2711
  # @param [String] quota_user
@@ -1712,33 +2715,32 @@ module Google
1712
2715
  # Request-specific options
1713
2716
  #
1714
2717
  # @yield [result, err] Result & error if block supplied
1715
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] parsed result object
2718
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment] parsed result object
1716
2719
  # @yieldparam err [StandardError] error object if request failed
1717
2720
  #
1718
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation]
2721
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment]
1719
2722
  #
1720
2723
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1721
2724
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1722
2725
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1723
- def create_project_location_conversation(parent, google_cloud_contactcenterinsights_v1_conversation_object = nil, conversation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1724
- command = make_simple_command(:post, 'v1/{+parent}/conversations', options)
1725
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
1726
- command.request_object = google_cloud_contactcenterinsights_v1_conversation_object
1727
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
1728
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation
2726
+ def create_project_location_conversation_assessment(parent, google_cloud_contactcenterinsights_v1_assessment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2727
+ command = make_simple_command(:post, 'v1/{+parent}/assessments', options)
2728
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment::Representation
2729
+ command.request_object = google_cloud_contactcenterinsights_v1_assessment_object
2730
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment::Representation
2731
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment
1729
2732
  command.params['parent'] = parent unless parent.nil?
1730
- command.query['conversationId'] = conversation_id unless conversation_id.nil?
1731
2733
  command.query['fields'] = fields unless fields.nil?
1732
2734
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1733
2735
  execute_or_queue_command(command, &block)
1734
2736
  end
1735
2737
 
1736
- # Deletes a conversation.
2738
+ # Delete an Assessment.
1737
2739
  # @param [String] name
1738
- # Required. The name of the conversation to delete.
2740
+ # Required. The name of the assessment to delete.
1739
2741
  # @param [Boolean] force
1740
- # If set to true, all of this conversation's analyses will also be deleted.
1741
- # Otherwise, the request will only succeed if the conversation has no analyses.
2742
+ # Optional. If set to true, all of this assessment's notes will also be deleted.
2743
+ # Otherwise, the request will only succeed if it has no notes.
1742
2744
  # @param [String] fields
1743
2745
  # Selector specifying which fields to include in a partial response.
1744
2746
  # @param [String] quota_user
@@ -1756,7 +2758,7 @@ module Google
1756
2758
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1757
2759
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1758
2760
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1759
- def delete_project_location_conversation(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
2761
+ def delete_project_location_conversation_assessment(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
1760
2762
  command = make_simple_command(:delete, 'v1/{+name}', options)
1761
2763
  command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
1762
2764
  command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
@@ -1767,11 +2769,10 @@ module Google
1767
2769
  execute_or_queue_command(command, &block)
1768
2770
  end
1769
2771
 
1770
- # Gets a conversation.
2772
+ # Finalize an Assessment.
1771
2773
  # @param [String] name
1772
- # Required. The name of the conversation to get.
1773
- # @param [String] view
1774
- # The level of details of the conversation. Default is `FULL`.
2774
+ # Required. The name of the assessment to finalize.
2775
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FinalizeAssessmentRequest] google_cloud_contactcenterinsights_v1_finalize_assessment_request_object
1775
2776
  # @param [String] fields
1776
2777
  # Selector specifying which fields to include in a partial response.
1777
2778
  # @param [String] quota_user
@@ -1781,29 +2782,29 @@ module Google
1781
2782
  # Request-specific options
1782
2783
  #
1783
2784
  # @yield [result, err] Result & error if block supplied
1784
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] parsed result object
2785
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment] parsed result object
1785
2786
  # @yieldparam err [StandardError] error object if request failed
1786
2787
  #
1787
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation]
2788
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment]
1788
2789
  #
1789
2790
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1790
2791
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1791
2792
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1792
- def get_project_location_conversation(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
1793
- command = make_simple_command(:get, 'v1/{+name}', options)
1794
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
1795
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation
2793
+ def finalize_project_location_conversation_assessment(name, google_cloud_contactcenterinsights_v1_finalize_assessment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2794
+ command = make_simple_command(:post, 'v1/{+name}:finalize', options)
2795
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FinalizeAssessmentRequest::Representation
2796
+ command.request_object = google_cloud_contactcenterinsights_v1_finalize_assessment_request_object
2797
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment::Representation
2798
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment
1796
2799
  command.params['name'] = name unless name.nil?
1797
- command.query['view'] = view unless view.nil?
1798
2800
  command.query['fields'] = fields unless fields.nil?
1799
2801
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1800
2802
  execute_or_queue_command(command, &block)
1801
2803
  end
1802
2804
 
1803
- # Imports conversations and processes them according to the user's configuration.
1804
- # @param [String] parent
1805
- # Required. The parent resource for new conversations.
1806
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IngestConversationsRequest] google_cloud_contactcenterinsights_v1_ingest_conversations_request_object
2805
+ # Get Assessment.
2806
+ # @param [String] name
2807
+ # Required. The name of the assessment to get.
1807
2808
  # @param [String] fields
1808
2809
  # Selector specifying which fields to include in a partial response.
1809
2810
  # @param [String] quota_user
@@ -1813,51 +2814,40 @@ module Google
1813
2814
  # Request-specific options
1814
2815
  #
1815
2816
  # @yield [result, err] Result & error if block supplied
1816
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
2817
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment] parsed result object
1817
2818
  # @yieldparam err [StandardError] error object if request failed
1818
2819
  #
1819
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
2820
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment]
1820
2821
  #
1821
2822
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1822
2823
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1823
2824
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1824
- def ingest_project_location_conversation(parent, google_cloud_contactcenterinsights_v1_ingest_conversations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1825
- command = make_simple_command(:post, 'v1/{+parent}/conversations:ingest', options)
1826
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1IngestConversationsRequest::Representation
1827
- command.request_object = google_cloud_contactcenterinsights_v1_ingest_conversations_request_object
1828
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
1829
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
1830
- command.params['parent'] = parent unless parent.nil?
2825
+ def get_project_location_conversation_assessment(name, fields: nil, quota_user: nil, options: nil, &block)
2826
+ command = make_simple_command(:get, 'v1/{+name}', options)
2827
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment::Representation
2828
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment
2829
+ command.params['name'] = name unless name.nil?
1831
2830
  command.query['fields'] = fields unless fields.nil?
1832
2831
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1833
2832
  execute_or_queue_command(command, &block)
1834
2833
  end
1835
2834
 
1836
- # Lists conversations.
2835
+ # List Assessments.
1837
2836
  # @param [String] parent
1838
- # Required. The parent resource of the conversation.
2837
+ # Required. The parent resource of the assessments. To list all assessments in a
2838
+ # location, substitute the conversation ID with a '-' character.
1839
2839
  # @param [String] filter
1840
- # A filter to reduce results to a specific subset. Useful for querying
1841
- # conversations with specific properties.
1842
- # @param [String] order_by
1843
- # Optional. The attribute by which to order conversations in the response. If
1844
- # empty, conversations will be ordered by descending creation time. Supported
1845
- # values are one of the following: * create_time * customer_satisfaction_rating *
1846
- # duration * latest_analysis * start_time * turn_count The default sort order
1847
- # is ascending. To specify order, append `asc` or `desc` (`create_time desc`).
1848
- # For more details, see [Google AIPs Ordering](https://google.aip.dev/132#
1849
- # ordering).
2840
+ # Optional. A filter to reduce results to a specific subset. Supported filters
2841
+ # include: * `state` - The state of the assessment * `agent_info.agent_id` - The
2842
+ # ID of the agent the assessment is for
1850
2843
  # @param [Fixnum] page_size
1851
- # The maximum number of conversations to return in the response. A valid page
1852
- # size ranges from 0 to 100,000 inclusive. If the page size is zero or
1853
- # unspecified, a default page size of 100 will be chosen. Note that a call might
1854
- # return fewer results than the requested page size.
2844
+ # The maximum number of assessments to list. If zero, the service will select a
2845
+ # default size. A call may return fewer objects than requested. A non-empty `
2846
+ # next_page_token` in the response indicates that more data is available.
1855
2847
  # @param [String] page_token
1856
- # The value returned by the last `ListConversationsResponse`. This value
1857
- # indicates that this is a continuation of a prior `ListConversations` call and
1858
- # that the system should return the next page of data.
1859
- # @param [String] view
1860
- # The level of details of the conversation. Default is `BASIC`.
2848
+ # Optional. The value returned by the last `ListAssessmentRulesResponse`;
2849
+ # indicates that this is a continuation of a prior `ListAssessmentRules` call
2850
+ # and the system should return the next page of data.
1861
2851
  # @param [String] fields
1862
2852
  # Selector specifying which fields to include in a partial response.
1863
2853
  # @param [String] quota_user
@@ -1867,40 +2857,31 @@ module Google
1867
2857
  # Request-specific options
1868
2858
  #
1869
2859
  # @yield [result, err] Result & error if block supplied
1870
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListConversationsResponse] parsed result object
2860
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAssessmentsResponse] parsed result object
1871
2861
  # @yieldparam err [StandardError] error object if request failed
1872
2862
  #
1873
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListConversationsResponse]
2863
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAssessmentsResponse]
1874
2864
  #
1875
2865
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1876
2866
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1877
2867
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1878
- def list_project_location_conversations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
1879
- command = make_simple_command(:get, 'v1/{+parent}/conversations', options)
1880
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListConversationsResponse::Representation
1881
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListConversationsResponse
2868
+ def list_project_location_conversation_assessments(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2869
+ command = make_simple_command(:get, 'v1/{+parent}/assessments', options)
2870
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAssessmentsResponse::Representation
2871
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAssessmentsResponse
1882
2872
  command.params['parent'] = parent unless parent.nil?
1883
2873
  command.query['filter'] = filter unless filter.nil?
1884
- command.query['orderBy'] = order_by unless order_by.nil?
1885
2874
  command.query['pageSize'] = page_size unless page_size.nil?
1886
2875
  command.query['pageToken'] = page_token unless page_token.nil?
1887
- command.query['view'] = view unless view.nil?
1888
2876
  command.query['fields'] = fields unless fields.nil?
1889
2877
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1890
2878
  execute_or_queue_command(command, &block)
1891
2879
  end
1892
2880
 
1893
- # Updates a conversation.
2881
+ # Publish an Assessment.
1894
2882
  # @param [String] name
1895
- # Immutable. The resource name of the conversation. Format: projects/`project`/
1896
- # locations/`location`/conversations/`conversation`
1897
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] google_cloud_contactcenterinsights_v1_conversation_object
1898
- # @param [String] update_mask
1899
- # The list of fields to be updated. All possible fields can be updated by
1900
- # passing `*`, or a subset of the following updateable fields can be provided: *
1901
- # `agent_id` * `language_code` * `labels` * `metadata` * `quality_metadata` * `
1902
- # call_metadata` * `start_time` * `expire_time` or `ttl` * `data_source.
1903
- # gcs_source.audio_uri` or `data_source.dialogflow_source.audio_uri`
2883
+ # Required. The name of the assessment to publish.
2884
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PublishAssessmentRequest] google_cloud_contactcenterinsights_v1_publish_assessment_request_object
1904
2885
  # @param [String] fields
1905
2886
  # Selector specifying which fields to include in a partial response.
1906
2887
  # @param [String] quota_user
@@ -1910,66 +2891,30 @@ module Google
1910
2891
  # Request-specific options
1911
2892
  #
1912
2893
  # @yield [result, err] Result & error if block supplied
1913
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation] parsed result object
2894
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment] parsed result object
1914
2895
  # @yieldparam err [StandardError] error object if request failed
1915
2896
  #
1916
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation]
2897
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment]
1917
2898
  #
1918
2899
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1919
2900
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1920
2901
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1921
- def patch_project_location_conversation(name, google_cloud_contactcenterinsights_v1_conversation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1922
- command = make_simple_command(:patch, 'v1/{+name}', options)
1923
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
1924
- command.request_object = google_cloud_contactcenterinsights_v1_conversation_object
1925
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation::Representation
1926
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation
2902
+ def publish_project_location_conversation_assessment(name, google_cloud_contactcenterinsights_v1_publish_assessment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2903
+ command = make_simple_command(:post, 'v1/{+name}:publish', options)
2904
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1PublishAssessmentRequest::Representation
2905
+ command.request_object = google_cloud_contactcenterinsights_v1_publish_assessment_request_object
2906
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment::Representation
2907
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Assessment
1927
2908
  command.params['name'] = name unless name.nil?
1928
- command.query['updateMask'] = update_mask unless update_mask.nil?
1929
- command.query['fields'] = fields unless fields.nil?
1930
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1931
- execute_or_queue_command(command, &block)
1932
- end
1933
-
1934
- # Create a long-running conversation upload operation. This method differs from `
1935
- # CreateConversation` by allowing audio transcription and optional DLP redaction.
1936
- # @param [String] parent
1937
- # Required. The parent resource of the conversation.
1938
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1UploadConversationRequest] google_cloud_contactcenterinsights_v1_upload_conversation_request_object
1939
- # @param [String] fields
1940
- # Selector specifying which fields to include in a partial response.
1941
- # @param [String] quota_user
1942
- # Available to use for quota purposes for server-side applications. Can be any
1943
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1944
- # @param [Google::Apis::RequestOptions] options
1945
- # Request-specific options
1946
- #
1947
- # @yield [result, err] Result & error if block supplied
1948
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
1949
- # @yieldparam err [StandardError] error object if request failed
1950
- #
1951
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
1952
- #
1953
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1954
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1955
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1956
- def upload_project_location_conversation(parent, google_cloud_contactcenterinsights_v1_upload_conversation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1957
- command = make_simple_command(:post, 'v1/{+parent}/conversations:upload', options)
1958
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1UploadConversationRequest::Representation
1959
- command.request_object = google_cloud_contactcenterinsights_v1_upload_conversation_request_object
1960
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
1961
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
1962
- command.params['parent'] = parent unless parent.nil?
1963
2909
  command.query['fields'] = fields unless fields.nil?
1964
2910
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1965
2911
  execute_or_queue_command(command, &block)
1966
2912
  end
1967
2913
 
1968
- # Creates an analysis. The long running operation is done when the analysis has
1969
- # completed.
2914
+ # Create Note.
1970
2915
  # @param [String] parent
1971
- # Required. The parent resource of the analysis.
1972
- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis] google_cloud_contactcenterinsights_v1_analysis_object
2916
+ # Required. The parent resource of the note.
2917
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note] google_cloud_contactcenterinsights_v1_note_object
1973
2918
  # @param [String] fields
1974
2919
  # Selector specifying which fields to include in a partial response.
1975
2920
  # @param [String] quota_user
@@ -1979,29 +2924,29 @@ module Google
1979
2924
  # Request-specific options
1980
2925
  #
1981
2926
  # @yield [result, err] Result & error if block supplied
1982
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation] parsed result object
2927
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note] parsed result object
1983
2928
  # @yieldparam err [StandardError] error object if request failed
1984
2929
  #
1985
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation]
2930
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note]
1986
2931
  #
1987
2932
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1988
2933
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1989
2934
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1990
- def create_project_location_conversation_analysis(parent, google_cloud_contactcenterinsights_v1_analysis_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1991
- command = make_simple_command(:post, 'v1/{+parent}/analyses', options)
1992
- command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis::Representation
1993
- command.request_object = google_cloud_contactcenterinsights_v1_analysis_object
1994
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation::Representation
1995
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation
2935
+ def create_project_location_conversation_assessment_note(parent, google_cloud_contactcenterinsights_v1_note_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2936
+ command = make_simple_command(:post, 'v1/{+parent}/notes', options)
2937
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note::Representation
2938
+ command.request_object = google_cloud_contactcenterinsights_v1_note_object
2939
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note::Representation
2940
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note
1996
2941
  command.params['parent'] = parent unless parent.nil?
1997
2942
  command.query['fields'] = fields unless fields.nil?
1998
2943
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1999
2944
  execute_or_queue_command(command, &block)
2000
2945
  end
2001
2946
 
2002
- # Deletes an analysis.
2947
+ # Deletes a Note.
2003
2948
  # @param [String] name
2004
- # Required. The name of the analysis to delete.
2949
+ # Required. The name of the note to delete.
2005
2950
  # @param [String] fields
2006
2951
  # Selector specifying which fields to include in a partial response.
2007
2952
  # @param [String] quota_user
@@ -2019,7 +2964,7 @@ module Google
2019
2964
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2020
2965
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2021
2966
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2022
- def delete_project_location_conversation_analysis(name, fields: nil, quota_user: nil, options: nil, &block)
2967
+ def delete_project_location_conversation_assessment_note(name, fields: nil, quota_user: nil, options: nil, &block)
2023
2968
  command = make_simple_command(:delete, 'v1/{+name}', options)
2024
2969
  command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty::Representation
2025
2970
  command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleProtobufEmpty
@@ -2029,9 +2974,18 @@ module Google
2029
2974
  execute_or_queue_command(command, &block)
2030
2975
  end
2031
2976
 
2032
- # Gets an analysis.
2033
- # @param [String] name
2034
- # Required. The name of the analysis to get.
2977
+ # List Notes.
2978
+ # @param [String] parent
2979
+ # Required. The parent resource of the notes.
2980
+ # @param [Fixnum] page_size
2981
+ # Optional. The maximum number of notes to return in the response. If zero the
2982
+ # service will select a default size. A call might return fewer objects than
2983
+ # requested. A non-empty `next_page_token` in the response indicates that more
2984
+ # data is available.
2985
+ # @param [String] page_token
2986
+ # Optional. The value returned by the last `ListNotesResponse`. This value
2987
+ # indicates that this is a continuation of a prior `ListNotes` call and that the
2988
+ # system should return the next page of data.
2035
2989
  # @param [String] fields
2036
2990
  # Selector specifying which fields to include in a partial response.
2037
2991
  # @param [String] quota_user
@@ -2041,39 +2995,35 @@ module Google
2041
2995
  # Request-specific options
2042
2996
  #
2043
2997
  # @yield [result, err] Result & error if block supplied
2044
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis] parsed result object
2998
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListNotesResponse] parsed result object
2045
2999
  # @yieldparam err [StandardError] error object if request failed
2046
3000
  #
2047
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis]
3001
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListNotesResponse]
2048
3002
  #
2049
3003
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2050
3004
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2051
3005
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2052
- def get_project_location_conversation_analysis(name, fields: nil, quota_user: nil, options: nil, &block)
2053
- command = make_simple_command(:get, 'v1/{+name}', options)
2054
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis::Representation
2055
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Analysis
2056
- command.params['name'] = name unless name.nil?
3006
+ def list_project_location_conversation_assessment_notes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3007
+ command = make_simple_command(:get, 'v1/{+parent}/notes', options)
3008
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListNotesResponse::Representation
3009
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListNotesResponse
3010
+ command.params['parent'] = parent unless parent.nil?
3011
+ command.query['pageSize'] = page_size unless page_size.nil?
3012
+ command.query['pageToken'] = page_token unless page_token.nil?
2057
3013
  command.query['fields'] = fields unless fields.nil?
2058
3014
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2059
3015
  execute_or_queue_command(command, &block)
2060
3016
  end
2061
3017
 
2062
- # Lists analyses.
2063
- # @param [String] parent
2064
- # Required. The parent resource of the analyses.
2065
- # @param [String] filter
2066
- # A filter to reduce results to a specific subset. Useful for querying
2067
- # conversations with specific properties.
2068
- # @param [Fixnum] page_size
2069
- # The maximum number of analyses to return in the response. If this value is
2070
- # zero, the service will select a default size. A call might return fewer
2071
- # objects than requested. A non-empty `next_page_token` in the response
2072
- # indicates that more data is available.
2073
- # @param [String] page_token
2074
- # The value returned by the last `ListAnalysesResponse`; indicates that this is
2075
- # a continuation of a prior `ListAnalyses` call and the system should return the
2076
- # next page of data.
3018
+ # Update Note.
3019
+ # @param [String] name
3020
+ # Identifier. The resource name of the note. Format: projects/`project`/
3021
+ # locations/`location`/conversations/`conversation`/assessments/`assessment`/
3022
+ # notes/`note`
3023
+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note] google_cloud_contactcenterinsights_v1_note_object
3024
+ # @param [String] update_mask
3025
+ # Optional. The list of fields to be updated. If the update_mask is empty, all
3026
+ # updateable fields will be updated. Acceptable fields include: * `content`
2077
3027
  # @param [String] fields
2078
3028
  # Selector specifying which fields to include in a partial response.
2079
3029
  # @param [String] quota_user
@@ -2083,22 +3033,22 @@ module Google
2083
3033
  # Request-specific options
2084
3034
  #
2085
3035
  # @yield [result, err] Result & error if block supplied
2086
- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysesResponse] parsed result object
3036
+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note] parsed result object
2087
3037
  # @yieldparam err [StandardError] error object if request failed
2088
3038
  #
2089
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysesResponse]
3039
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note]
2090
3040
  #
2091
3041
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2092
3042
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2093
3043
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2094
- def list_project_location_conversation_analyses(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2095
- command = make_simple_command(:get, 'v1/{+parent}/analyses', options)
2096
- command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysesResponse::Representation
2097
- command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1ListAnalysesResponse
2098
- command.params['parent'] = parent unless parent.nil?
2099
- command.query['filter'] = filter unless filter.nil?
2100
- command.query['pageSize'] = page_size unless page_size.nil?
2101
- command.query['pageToken'] = page_token unless page_token.nil?
3044
+ def patch_project_location_conversation_assessment_note(name, google_cloud_contactcenterinsights_v1_note_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3045
+ command = make_simple_command(:patch, 'v1/{+name}', options)
3046
+ command.request_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note::Representation
3047
+ command.request_object = google_cloud_contactcenterinsights_v1_note_object
3048
+ command.response_representation = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note::Representation
3049
+ command.response_class = Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Note
3050
+ command.params['name'] = name unless name.nil?
3051
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2102
3052
  command.query['fields'] = fields unless fields.nil?
2103
3053
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2104
3054
  execute_or_queue_command(command, &block)