lib/purecloud/api/analytics_api.rb in purecloud-0.44.1 vs lib/purecloud/api/analytics_api.rb in purecloud-0.45.1

- old
+ new

@@ -693,28 +693,31 @@ return data, status_code, headers end # Query for conversation aggregates # + # @param body query # @param [Hash] opts the optional parameters - # @option opts [AggregationQuery] :body query # @return [AggregateQueryResponse] - def post_conversations_aggregates_query(opts = {}) - data, status_code, headers = post_conversations_aggregates_query_with_http_info(opts) + def post_conversations_aggregates_query(body, opts = {}) + data, status_code, headers = post_conversations_aggregates_query_with_http_info(body, opts) return data end # Query for conversation aggregates # + # @param body query # @param [Hash] opts the optional parameters - # @option opts [AggregationQuery] :body query # @return [Array<(AggregateQueryResponse, Fixnum, Hash)>] AggregateQueryResponse data, response status code and response headers - def post_conversations_aggregates_query_with_http_info(opts = {}) + def post_conversations_aggregates_query_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: AnalyticsApi#post_conversations_aggregates_query ..." end + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling post_conversations_aggregates_query" if body.nil? + # resource path local_var_path = "/api/v2/analytics/conversations/aggregates/query".sub('{format}','json') # query parameters query_params = {} @@ -732,11 +735,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, @@ -751,32 +754,35 @@ end # Index conversation properties # # @param conversation_id conversationId + # @param body request # @param [Hash] opts the optional parameters - # @option opts [PropertyIndexRequest] :body request # @return [PropertyIndexRequest] - def post_conversations_conversation_id_details_properties(conversation_id, opts = {}) - data, status_code, headers = post_conversations_conversation_id_details_properties_with_http_info(conversation_id, opts) + def post_conversations_conversation_id_details_properties(conversation_id, body, opts = {}) + data, status_code, headers = post_conversations_conversation_id_details_properties_with_http_info(conversation_id, body, opts) return data end # Index conversation properties # # @param conversation_id conversationId + # @param body request # @param [Hash] opts the optional parameters - # @option opts [PropertyIndexRequest] :body request # @return [Array<(PropertyIndexRequest, Fixnum, Hash)>] PropertyIndexRequest data, response status code and response headers - def post_conversations_conversation_id_details_properties_with_http_info(conversation_id, opts = {}) + def post_conversations_conversation_id_details_properties_with_http_info(conversation_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: AnalyticsApi#post_conversations_conversation_id_details_properties ..." end # verify the required parameter 'conversation_id' is set fail "Missing the required parameter 'conversation_id' when calling post_conversations_conversation_id_details_properties" if conversation_id.nil? + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling post_conversations_conversation_id_details_properties" if body.nil? + # resource path local_var_path = "/api/v2/analytics/conversations/{conversationId}/details/properties".sub('{format}','json').sub('{' + 'conversationId' + '}', conversation_id.to_s) # query parameters query_params = {} @@ -794,11 +800,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, @@ -812,28 +818,31 @@ return data, status_code, headers end # Query for conversation details # + # @param body query # @param [Hash] opts the optional parameters - # @option opts [ConversationQuery] :body query # @return [AnalyticsConversationQueryResponse] - def post_conversations_details_query(opts = {}) - data, status_code, headers = post_conversations_details_query_with_http_info(opts) + def post_conversations_details_query(body, opts = {}) + data, status_code, headers = post_conversations_details_query_with_http_info(body, opts) return data end # Query for conversation details # + # @param body query # @param [Hash] opts the optional parameters - # @option opts [ConversationQuery] :body query # @return [Array<(AnalyticsConversationQueryResponse, Fixnum, Hash)>] AnalyticsConversationQueryResponse data, response status code and response headers - def post_conversations_details_query_with_http_info(opts = {}) + def post_conversations_details_query_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: AnalyticsApi#post_conversations_details_query ..." end + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling post_conversations_details_query" if body.nil? + # resource path local_var_path = "/api/v2/analytics/conversations/details/query".sub('{format}','json') # query parameters query_params = {} @@ -851,11 +860,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, @@ -869,28 +878,31 @@ return data, status_code, headers end # Query for evaluation aggregates # + # @param body query # @param [Hash] opts the optional parameters - # @option opts [AggregationQuery] :body query # @return [AggregateQueryResponse] - def post_evaluations_aggregates_query(opts = {}) - data, status_code, headers = post_evaluations_aggregates_query_with_http_info(opts) + def post_evaluations_aggregates_query(body, opts = {}) + data, status_code, headers = post_evaluations_aggregates_query_with_http_info(body, opts) return data end # Query for evaluation aggregates # + # @param body query # @param [Hash] opts the optional parameters - # @option opts [AggregationQuery] :body query # @return [Array<(AggregateQueryResponse, Fixnum, Hash)>] AggregateQueryResponse data, response status code and response headers - def post_evaluations_aggregates_query_with_http_info(opts = {}) + def post_evaluations_aggregates_query_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: AnalyticsApi#post_evaluations_aggregates_query ..." end + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling post_evaluations_aggregates_query" if body.nil? + # resource path local_var_path = "/api/v2/analytics/evaluations/aggregates/query".sub('{format}','json') # query parameters query_params = {} @@ -908,11 +920,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, @@ -926,28 +938,31 @@ return data, status_code, headers end # Query for queue observations # + # @param body query # @param [Hash] opts the optional parameters - # @option opts [ObservationQuery] :body query # @return [ObservationQueryResponse] - def post_queues_observations_query(opts = {}) - data, status_code, headers = post_queues_observations_query_with_http_info(opts) + def post_queues_observations_query(body, opts = {}) + data, status_code, headers = post_queues_observations_query_with_http_info(body, opts) return data end # Query for queue observations # + # @param body query # @param [Hash] opts the optional parameters - # @option opts [ObservationQuery] :body query # @return [Array<(ObservationQueryResponse, Fixnum, Hash)>] ObservationQueryResponse data, response status code and response headers - def post_queues_observations_query_with_http_info(opts = {}) + def post_queues_observations_query_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: AnalyticsApi#post_queues_observations_query ..." end + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling post_queues_observations_query" if body.nil? + # resource path local_var_path = "/api/v2/analytics/queues/observations/query".sub('{format}','json') # query parameters query_params = {} @@ -965,11 +980,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, @@ -983,28 +998,31 @@ return data, status_code, headers end # Create a scheduled report job # Create a scheduled report job. + # @param body ReportSchedule # @param [Hash] opts the optional parameters - # @option opts [ReportSchedule] :body ReportSchedule # @return [ReportSchedule] - def post_reporting_schedules(opts = {}) - data, status_code, headers = post_reporting_schedules_with_http_info(opts) + def post_reporting_schedules(body, opts = {}) + data, status_code, headers = post_reporting_schedules_with_http_info(body, opts) return data end # Create a scheduled report job # Create a scheduled report job. + # @param body ReportSchedule # @param [Hash] opts the optional parameters - # @option opts [ReportSchedule] :body ReportSchedule # @return [Array<(ReportSchedule, Fixnum, Hash)>] ReportSchedule data, response status code and response headers - def post_reporting_schedules_with_http_info(opts = {}) + def post_reporting_schedules_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: AnalyticsApi#post_reporting_schedules ..." end + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling post_reporting_schedules" if body.nil? + # resource path local_var_path = "/api/v2/analytics/reporting/schedules".sub('{format}','json') # query parameters query_params = {} @@ -1022,11 +1040,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, @@ -1100,28 +1118,31 @@ return data, status_code, headers end # Query for user aggregates # + # @param body query # @param [Hash] opts the optional parameters - # @option opts [AggregationQuery] :body query # @return [PresenceQueryResponse] - def post_users_aggregates_query(opts = {}) - data, status_code, headers = post_users_aggregates_query_with_http_info(opts) + def post_users_aggregates_query(body, opts = {}) + data, status_code, headers = post_users_aggregates_query_with_http_info(body, opts) return data end # Query for user aggregates # + # @param body query # @param [Hash] opts the optional parameters - # @option opts [AggregationQuery] :body query # @return [Array<(PresenceQueryResponse, Fixnum, Hash)>] PresenceQueryResponse data, response status code and response headers - def post_users_aggregates_query_with_http_info(opts = {}) + def post_users_aggregates_query_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: AnalyticsApi#post_users_aggregates_query ..." end + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling post_users_aggregates_query" if body.nil? + # resource path local_var_path = "/api/v2/analytics/users/aggregates/query".sub('{format}','json') # query parameters query_params = {} @@ -1139,11 +1160,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, @@ -1157,28 +1178,31 @@ return data, status_code, headers end # Query for user observations # + # @param body query # @param [Hash] opts the optional parameters - # @option opts [ObservationQuery] :body query # @return [ObservationQueryResponse] - def post_users_observations_query(opts = {}) - data, status_code, headers = post_users_observations_query_with_http_info(opts) + def post_users_observations_query(body, opts = {}) + data, status_code, headers = post_users_observations_query_with_http_info(body, opts) return data end # Query for user observations # + # @param body query # @param [Hash] opts the optional parameters - # @option opts [ObservationQuery] :body query # @return [Array<(ObservationQueryResponse, Fixnum, Hash)>] ObservationQueryResponse data, response status code and response headers - def post_users_observations_query_with_http_info(opts = {}) + def post_users_observations_query_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: AnalyticsApi#post_users_observations_query ..." end + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling post_users_observations_query" if body.nil? + # resource path local_var_path = "/api/v2/analytics/users/observations/query".sub('{format}','json') # query parameters query_params = {} @@ -1196,11 +1220,11 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, @@ -1215,32 +1239,35 @@ end # Update a scheduled report job. # # @param schedule_id Schedule ID + # @param body ReportSchedule # @param [Hash] opts the optional parameters - # @option opts [ReportSchedule] :body ReportSchedule # @return [ReportSchedule] - def put_reporting_schedules_schedule_id(schedule_id, opts = {}) - data, status_code, headers = put_reporting_schedules_schedule_id_with_http_info(schedule_id, opts) + def put_reporting_schedules_schedule_id(schedule_id, body, opts = {}) + data, status_code, headers = put_reporting_schedules_schedule_id_with_http_info(schedule_id, body, opts) return data end # Update a scheduled report job. # # @param schedule_id Schedule ID + # @param body ReportSchedule # @param [Hash] opts the optional parameters - # @option opts [ReportSchedule] :body ReportSchedule # @return [Array<(ReportSchedule, Fixnum, Hash)>] ReportSchedule data, response status code and response headers - def put_reporting_schedules_schedule_id_with_http_info(schedule_id, opts = {}) + def put_reporting_schedules_schedule_id_with_http_info(schedule_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: AnalyticsApi#put_reporting_schedules_schedule_id ..." end # verify the required parameter 'schedule_id' is set fail "Missing the required parameter 'schedule_id' when calling put_reporting_schedules_schedule_id" if schedule_id.nil? + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling put_reporting_schedules_schedule_id" if body.nil? + # resource path local_var_path = "/api/v2/analytics/reporting/schedules/{scheduleId}".sub('{format}','json').sub('{' + 'scheduleId' + '}', schedule_id.to_s) # query parameters query_params = {} @@ -1258,10 +1285,10 @@ # form parameters form_params = {} # http body (model) - post_body = @api_client.object_to_http_body(opts[:'body']) + post_body = @api_client.object_to_http_body(body) auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params,