lib/purecloud/api/voicemail_api.rb in purecloud-0.60.1 vs lib/purecloud/api/voicemail_api.rb in purecloud-0.61.1

- old
+ new

@@ -137,20 +137,206 @@ @api_client.config.logger.debug "API called: VoicemailApi#delete_messages_message_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Get mailbox information + # Get the group's mailbox information # + # @param group_id groupId # @param [Hash] opts the optional parameters # @return [VoicemailMailboxInfo] + def get_groups_group_id_mailbox(group_id, opts = {}) + data, status_code, headers = get_groups_group_id_mailbox_with_http_info(group_id, opts) + return data + end + + # Get the group&#39;s mailbox information + # + # @param group_id groupId + # @param [Hash] opts the optional parameters + # @return [Array<(VoicemailMailboxInfo, Fixnum, Hash)>] VoicemailMailboxInfo data, response status code and response headers + def get_groups_group_id_mailbox_with_http_info(group_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: VoicemailApi#get_groups_group_id_mailbox ..." + end + + # verify the required parameter 'group_id' is set + fail "Missing the required parameter 'group_id' when calling get_groups_group_id_mailbox" if group_id.nil? + + # resource path + local_var_path = "/api/v2/voicemail/groups/{groupId}/mailbox".sub('{format}','json').sub('{' + 'groupId' + '}', group_id.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + + # HTTP header 'Accept' (if needed) + _header_accept = ['application/json'] + _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result + + # HTTP header 'Content-Type' + _header_content_type = ['application/json'] + header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + + auth_names = ['PureCloud Auth'] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'VoicemailMailboxInfo') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: VoicemailApi#get_groups_group_id_mailbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # List voicemail messages + # + # @param group_id Group ID + # @param [Hash] opts the optional parameters + # @option opts [Integer] :page_size Page size (default to 25) + # @option opts [Integer] :page_number Page number (default to 1) + # @return [VoicemailMessageEntityListing] + def get_groups_group_id_messages(group_id, opts = {}) + data, status_code, headers = get_groups_group_id_messages_with_http_info(group_id, opts) + return data + end + + # List voicemail messages + # + # @param group_id Group ID + # @param [Hash] opts the optional parameters + # @option opts [Integer] :page_size Page size + # @option opts [Integer] :page_number Page number + # @return [Array<(VoicemailMessageEntityListing, Fixnum, Hash)>] VoicemailMessageEntityListing data, response status code and response headers + def get_groups_group_id_messages_with_http_info(group_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: VoicemailApi#get_groups_group_id_messages ..." + end + + # verify the required parameter 'group_id' is set + fail "Missing the required parameter 'group_id' when calling get_groups_group_id_messages" if group_id.nil? + + # resource path + local_var_path = "/api/v2/voicemail/groups/{groupId}/messages".sub('{format}','json').sub('{' + 'groupId' + '}', group_id.to_s) + + # query parameters + query_params = {} + query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] + query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] + + # header parameters + header_params = {} + + # HTTP header 'Accept' (if needed) + _header_accept = ['application/json'] + _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result + + # HTTP header 'Content-Type' + _header_content_type = ['application/json'] + header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + + auth_names = ['PureCloud Auth'] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'VoicemailMessageEntityListing') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: VoicemailApi#get_groups_group_id_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Get a group's voicemail policy + # + # @param group_id Group ID + # @param [Hash] opts the optional parameters + # @return [VoicemailGroupPolicy] + def get_groups_group_id_policy(group_id, opts = {}) + data, status_code, headers = get_groups_group_id_policy_with_http_info(group_id, opts) + return data + end + + # Get a group&#39;s voicemail policy + # + # @param group_id Group ID + # @param [Hash] opts the optional parameters + # @return [Array<(VoicemailGroupPolicy, Fixnum, Hash)>] VoicemailGroupPolicy data, response status code and response headers + def get_groups_group_id_policy_with_http_info(group_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: VoicemailApi#get_groups_group_id_policy ..." + end + + # verify the required parameter 'group_id' is set + fail "Missing the required parameter 'group_id' when calling get_groups_group_id_policy" if group_id.nil? + + # resource path + local_var_path = "/api/v2/voicemail/groups/{groupId}/policy".sub('{format}','json').sub('{' + 'groupId' + '}', group_id.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + + # HTTP header 'Accept' (if needed) + _header_accept = ['application/json'] + _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result + + # HTTP header 'Content-Type' + _header_content_type = ['application/json'] + header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + + auth_names = ['PureCloud Auth'] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'VoicemailGroupPolicy') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: VoicemailApi#get_groups_group_id_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Get the current user's mailbox information + # + # @param [Hash] opts the optional parameters + # @return [VoicemailMailboxInfo] def get_mailbox(opts = {}) data, status_code, headers = get_mailbox_with_http_info(opts) return data end - # Get mailbox information + # Get the current user&#39;s mailbox information # # @param [Hash] opts the optional parameters # @return [Array<(VoicemailMailboxInfo, Fixnum, Hash)>] VoicemailMailboxInfo data, response status code and response headers def get_mailbox_with_http_info(opts = {}) if @api_client.config.debugging @@ -192,22 +378,195 @@ @api_client.config.logger.debug "API called: VoicemailApi#get_mailbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end + # Get the current user's mailbox information + # + # @param [Hash] opts the optional parameters + # @return [VoicemailMailboxInfo] + def get_me_mailbox(opts = {}) + data, status_code, headers = get_me_mailbox_with_http_info(opts) + return data + end + + # Get the current user&#39;s mailbox information + # + # @param [Hash] opts the optional parameters + # @return [Array<(VoicemailMailboxInfo, Fixnum, Hash)>] VoicemailMailboxInfo data, response status code and response headers + def get_me_mailbox_with_http_info(opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: VoicemailApi#get_me_mailbox ..." + end + + # resource path + local_var_path = "/api/v2/voicemail/me/mailbox".sub('{format}','json') + + # query parameters + query_params = {} + + # header parameters + header_params = {} + + # HTTP header 'Accept' (if needed) + _header_accept = ['application/json'] + _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result + + # HTTP header 'Content-Type' + _header_content_type = ['application/json'] + header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + + auth_names = ['PureCloud Auth'] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'VoicemailMailboxInfo') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: VoicemailApi#get_me_mailbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # List voicemail messages # # @param [Hash] opts the optional parameters + # @option opts [Integer] :page_size Page size (default to 25) + # @option opts [Integer] :page_number Page number (default to 1) # @return [VoicemailMessageEntityListing] + def get_me_messages(opts = {}) + data, status_code, headers = get_me_messages_with_http_info(opts) + return data + end + + # List voicemail messages + # + # @param [Hash] opts the optional parameters + # @option opts [Integer] :page_size Page size + # @option opts [Integer] :page_number Page number + # @return [Array<(VoicemailMessageEntityListing, Fixnum, Hash)>] VoicemailMessageEntityListing data, response status code and response headers + def get_me_messages_with_http_info(opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: VoicemailApi#get_me_messages ..." + end + + # resource path + local_var_path = "/api/v2/voicemail/me/messages".sub('{format}','json') + + # query parameters + query_params = {} + query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] + query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] + + # header parameters + header_params = {} + + # HTTP header 'Accept' (if needed) + _header_accept = ['application/json'] + _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result + + # HTTP header 'Content-Type' + _header_content_type = ['application/json'] + header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + + auth_names = ['PureCloud Auth'] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'VoicemailMessageEntityListing') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: VoicemailApi#get_me_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Get the current user's voicemail policy + # + # @param [Hash] opts the optional parameters + # @return [VoicemailUserPolicy] + def get_me_policy(opts = {}) + data, status_code, headers = get_me_policy_with_http_info(opts) + return data + end + + # Get the current user&#39;s voicemail policy + # + # @param [Hash] opts the optional parameters + # @return [Array<(VoicemailUserPolicy, Fixnum, Hash)>] VoicemailUserPolicy data, response status code and response headers + def get_me_policy_with_http_info(opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: VoicemailApi#get_me_policy ..." + end + + # resource path + local_var_path = "/api/v2/voicemail/me/policy".sub('{format}','json') + + # query parameters + query_params = {} + + # header parameters + header_params = {} + + # HTTP header 'Accept' (if needed) + _header_accept = ['application/json'] + _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result + + # HTTP header 'Content-Type' + _header_content_type = ['application/json'] + header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + + auth_names = ['PureCloud Auth'] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'VoicemailUserPolicy') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: VoicemailApi#get_me_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # List voicemail messages + # + # @param [Hash] opts the optional parameters + # @option opts [String] :ids An optional comma separated list of VoicemailMessage ids + # @return [VoicemailMessageEntityListing] def get_messages(opts = {}) data, status_code, headers = get_messages_with_http_info(opts) return data end # List voicemail messages # # @param [Hash] opts the optional parameters + # @option opts [String] :ids An optional comma separated list of VoicemailMessage ids # @return [Array<(VoicemailMessageEntityListing, Fixnum, Hash)>] VoicemailMessageEntityListing data, response status code and response headers def get_messages_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: VoicemailApi#get_messages ..." end @@ -215,10 +574,11 @@ # resource path local_var_path = "/api/v2/voicemail/messages".sub('{format}','json') # query parameters query_params = {} + query_params[:'ids'] = opts[:'ids'] if opts[:'ids'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) @@ -429,10 +789,74 @@ @api_client.config.logger.debug "API called: VoicemailApi#get_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end + # Search voicemails using the q64 value returned from a previous search + # + # @param q64 q64 + # @param [Hash] opts the optional parameters + # @option opts [Array<String>] :expand expand + # @return [VoicemailsSearchResponse] + def get_search(q64, opts = {}) + data, status_code, headers = get_search_with_http_info(q64, opts) + return data + end + + # Search voicemails using the q64 value returned from a previous search + # + # @param q64 q64 + # @param [Hash] opts the optional parameters + # @option opts [Array<String>] :expand expand + # @return [Array<(VoicemailsSearchResponse, Fixnum, Hash)>] VoicemailsSearchResponse data, response status code and response headers + def get_search_with_http_info(q64, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: VoicemailApi#get_search ..." + end + + # verify the required parameter 'q64' is set + fail "Missing the required parameter 'q64' when calling get_search" if q64.nil? + + # resource path + local_var_path = "/api/v2/voicemail/search".sub('{format}','json') + + # query parameters + query_params = {} + query_params[:'q64'] = q64 + query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if opts[:'expand'] + + # header parameters + header_params = {} + + # HTTP header 'Accept' (if needed) + _header_accept = ['application/json'] + _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result + + # HTTP header 'Content-Type' + _header_content_type = ['application/json'] + header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + + auth_names = ['PureCloud Auth'] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'VoicemailsSearchResponse') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: VoicemailApi#get_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Get a user's voicemail policy # # @param user_id User ID # @param [Hash] opts the optional parameters # @return [VoicemailUserPolicy] @@ -489,10 +913,135 @@ @api_client.config.logger.debug "API called: VoicemailApi#get_userpolicies_user_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end + # Update a group's voicemail policy + # + # @param group_id Group ID + # @param body The group&#39;s voicemail policy + # @param [Hash] opts the optional parameters + # @return [VoicemailGroupPolicy] + def patch_groups_group_id_policy(group_id, body, opts = {}) + data, status_code, headers = patch_groups_group_id_policy_with_http_info(group_id, body, opts) + return data + end + + # Update a group&#39;s voicemail policy + # + # @param group_id Group ID + # @param body The group&#39;s voicemail policy + # @param [Hash] opts the optional parameters + # @return [Array<(VoicemailGroupPolicy, Fixnum, Hash)>] VoicemailGroupPolicy data, response status code and response headers + def patch_groups_group_id_policy_with_http_info(group_id, body, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: VoicemailApi#patch_groups_group_id_policy ..." + end + + # verify the required parameter 'group_id' is set + fail "Missing the required parameter 'group_id' when calling patch_groups_group_id_policy" if group_id.nil? + + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling patch_groups_group_id_policy" if body.nil? + + # resource path + local_var_path = "/api/v2/voicemail/groups/{groupId}/policy".sub('{format}','json').sub('{' + 'groupId' + '}', group_id.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + + # HTTP header 'Accept' (if needed) + _header_accept = ['application/json'] + _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result + + # HTTP header 'Content-Type' + _header_content_type = ['application/json'] + header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(body) + + auth_names = ['PureCloud Auth'] + data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'VoicemailGroupPolicy') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: VoicemailApi#patch_groups_group_id_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Update the current user's voicemail policy + # + # @param body The user&#39;s voicemail policy + # @param [Hash] opts the optional parameters + # @return [VoicemailUserPolicy] + def patch_me_policy(body, opts = {}) + data, status_code, headers = patch_me_policy_with_http_info(body, opts) + return data + end + + # Update the current user&#39;s voicemail policy + # + # @param body The user&#39;s voicemail policy + # @param [Hash] opts the optional parameters + # @return [Array<(VoicemailUserPolicy, Fixnum, Hash)>] VoicemailUserPolicy data, response status code and response headers + def patch_me_policy_with_http_info(body, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: VoicemailApi#patch_me_policy ..." + end + + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling patch_me_policy" if body.nil? + + # resource path + local_var_path = "/api/v2/voicemail/me/policy".sub('{format}','json') + + # query parameters + query_params = {} + + # header parameters + header_params = {} + + # HTTP header 'Accept' (if needed) + _header_accept = ['application/json'] + _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result + + # HTTP header 'Content-Type' + _header_content_type = ['application/json'] + header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(body) + + auth_names = ['PureCloud Auth'] + data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'VoicemailUserPolicy') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: VoicemailApi#patch_me_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Update a user's voicemail policy # # @param user_id User ID # @param body The user&#39;s voicemail policy # @param [Hash] opts the optional parameters @@ -550,9 +1099,126 @@ :body => post_body, :auth_names => auth_names, :return_type => 'VoicemailUserPolicy') if @api_client.config.debugging @api_client.config.logger.debug "API called: VoicemailApi#patch_userpolicies_user_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Copy a voicemail message to a user or group + # + # @param [Hash] opts the optional parameters + # @option opts [CopyVoicemailMessage] :body + # @return [VoicemailMessage] + def post_messages(opts = {}) + data, status_code, headers = post_messages_with_http_info(opts) + return data + end + + # Copy a voicemail message to a user or group + # + # @param [Hash] opts the optional parameters + # @option opts [CopyVoicemailMessage] :body + # @return [Array<(VoicemailMessage, Fixnum, Hash)>] VoicemailMessage data, response status code and response headers + def post_messages_with_http_info(opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: VoicemailApi#post_messages ..." + end + + # resource path + local_var_path = "/api/v2/voicemail/messages".sub('{format}','json') + + # query parameters + query_params = {} + + # header parameters + header_params = {} + + # HTTP header 'Accept' (if needed) + _header_accept = ['application/json'] + _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result + + # HTTP header 'Content-Type' + _header_content_type = ['application/json'] + header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(opts[:'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, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'VoicemailMessage') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: VoicemailApi#post_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Search voicemails + # + # @param body Search request options + # @param [Hash] opts the optional parameters + # @return [VoicemailsSearchResponse] + def post_search(body, opts = {}) + data, status_code, headers = post_search_with_http_info(body, opts) + return data + end + + # Search voicemails + # + # @param body Search request options + # @param [Hash] opts the optional parameters + # @return [Array<(VoicemailsSearchResponse, Fixnum, Hash)>] VoicemailsSearchResponse data, response status code and response headers + def post_search_with_http_info(body, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: VoicemailApi#post_search ..." + end + + # verify the required parameter 'body' is set + fail "Missing the required parameter 'body' when calling post_search" if body.nil? + + # resource path + local_var_path = "/api/v2/voicemail/search".sub('{format}','json') + + # query parameters + query_params = {} + + # header parameters + header_params = {} + + # HTTP header 'Accept' (if needed) + _header_accept = ['application/json'] + _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result + + # HTTP header 'Content-Type' + _header_content_type = ['application/json'] + header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) + + # form parameters + form_params = {} + + # http body (model) + 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, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'VoicemailsSearchResponse') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: VoicemailApi#post_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update a message.