@@ -469,12 +469,10 @@ def patch_project_location_analysis_rule(name, google_cloud_contactcenterinsight
469469 execute_or_queue_command ( command , &block )
470470 end
471471
472- # Gets conversation statistics .
472+ # Query metrics .
473473 # @param [String] location
474- # Required. The location of the conversations.
475- # @param [String] filter
476- # A filter to reduce results to a specific subset. This field is useful for
477- # getting statistics about conversations with specific properties.
474+ # Required. The location of the data. "projects/`project`/locations/`location`"
475+ # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QueryMetricsRequest] google_cloud_contactcenterinsights_v1_query_metrics_request_object
478476 # @param [String] fields
479477 # Selector specifying which fields to include in a partial response.
480478 # @param [String] quota_user
@@ -484,29 +482,32 @@ def patch_project_location_analysis_rule(name, google_cloud_contactcenterinsight
484482 # Request-specific options
485483 #
486484 # @yield [result, err] Result & error if block supplied
487- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse ] parsed result object
485+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation ] parsed result object
488486 # @yieldparam err [StandardError] error object if request failed
489487 #
490- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse ]
488+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation ]
491489 #
492490 # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
493491 # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
494492 # @raise [Google::Apis::AuthorizationError] Authorization is required
495- def calculate_project_location_authorized_view_set_authorized_view_stats ( location , filter : nil , fields : nil , quota_user : nil , options : nil , &block )
496- command = make_simple_command ( :get , 'v1/{+location}:calculateStats' , options )
497- command . response_representation = Google ::Apis ::ContactcenterinsightsV1 ::GoogleCloudContactcenterinsightsV1CalculateStatsResponse ::Representation
498- command . response_class = Google ::Apis ::ContactcenterinsightsV1 ::GoogleCloudContactcenterinsightsV1CalculateStatsResponse
493+ def query_project_location_authorized_view_set_authorized_view_metrics ( location , google_cloud_contactcenterinsights_v1_query_metrics_request_object = nil , fields : nil , quota_user : nil , options : nil , &block )
494+ command = make_simple_command ( :post , 'v1/{+location}:queryMetrics' , options )
495+ command . request_representation = Google ::Apis ::ContactcenterinsightsV1 ::GoogleCloudContactcenterinsightsV1QueryMetricsRequest ::Representation
496+ command . request_object = google_cloud_contactcenterinsights_v1_query_metrics_request_object
497+ command . response_representation = Google ::Apis ::ContactcenterinsightsV1 ::GoogleLongrunningOperation ::Representation
498+ command . response_class = Google ::Apis ::ContactcenterinsightsV1 ::GoogleLongrunningOperation
499499 command . params [ 'location' ] = location unless location . nil?
500- command . query [ 'filter' ] = filter unless filter . nil?
501500 command . query [ 'fields' ] = fields unless fields . nil?
502501 command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
503502 execute_or_queue_command ( command , &block )
504503 end
505504
506- # Query metrics .
505+ # Gets conversation statistics .
507506 # @param [String] location
508- # Required. The location of the data. "projects/`project`/locations/`location`"
509- # @param [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QueryMetricsRequest] google_cloud_contactcenterinsights_v1_query_metrics_request_object
507+ # Required. The location of the conversations.
508+ # @param [String] filter
509+ # A filter to reduce results to a specific subset. This field is useful for
510+ # getting statistics about conversations with specific properties.
510511 # @param [String] fields
511512 # Selector specifying which fields to include in a partial response.
512513 # @param [String] quota_user
@@ -516,21 +517,20 @@ def calculate_project_location_authorized_view_set_authorized_view_stats(locatio
516517 # Request-specific options
517518 #
518519 # @yield [result, err] Result & error if block supplied
519- # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation ] parsed result object
520+ # @yieldparam result [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse ] parsed result object
520521 # @yieldparam err [StandardError] error object if request failed
521522 #
522- # @return [Google::Apis::ContactcenterinsightsV1::GoogleLongrunningOperation ]
523+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CalculateStatsResponse ]
523524 #
524525 # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
525526 # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
526527 # @raise [Google::Apis::AuthorizationError] Authorization is required
527- def query_project_location_authorized_view_set_authorized_view_metrics ( location , google_cloud_contactcenterinsights_v1_query_metrics_request_object = nil , fields : nil , quota_user : nil , options : nil , &block )
528- command = make_simple_command ( :post , 'v1/{+location}:queryMetrics' , options )
529- command . request_representation = Google ::Apis ::ContactcenterinsightsV1 ::GoogleCloudContactcenterinsightsV1QueryMetricsRequest ::Representation
530- command . request_object = google_cloud_contactcenterinsights_v1_query_metrics_request_object
531- command . response_representation = Google ::Apis ::ContactcenterinsightsV1 ::GoogleLongrunningOperation ::Representation
532- command . response_class = Google ::Apis ::ContactcenterinsightsV1 ::GoogleLongrunningOperation
528+ def calculate_project_location_authorized_view_set_authorized_view_conversation_stats ( location , filter : nil , fields : nil , quota_user : nil , options : nil , &block )
529+ command = make_simple_command ( :get , 'v1/{+location}/conversations:calculateStats' , options )
530+ command . response_representation = Google ::Apis ::ContactcenterinsightsV1 ::GoogleCloudContactcenterinsightsV1CalculateStatsResponse ::Representation
531+ command . response_class = Google ::Apis ::ContactcenterinsightsV1 ::GoogleCloudContactcenterinsightsV1CalculateStatsResponse
533532 command . params [ 'location' ] = location unless location . nil?
533+ command . query [ 'filter' ] = filter unless filter . nil?
534534 command . query [ 'fields' ] = fields unless fields . nil?
535535 command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
536536 execute_or_queue_command ( command , &block )
0 commit comments