lib/purecloudplatformclientv2/api/voicemail_api.rb in purecloudplatformclientv2-3.1.7 vs lib/purecloudplatformclientv2/api/voicemail_api.rb in purecloudplatformclientv2-4.0.0

- old
+ new

@@ -26,21 +26,21 @@ # Delete a message. # # @param message_id Message ID # @param [Hash] opts the optional parameters - # @return [String] + # @return [nil] def delete_voicemail_message(message_id, opts = {}) - data, _status_code, _headers = delete_voicemail_message_with_http_info(message_id, opts) - return data + delete_voicemail_message_with_http_info(message_id, opts) + return nil end # Delete a message. # # @param message_id Message ID # @param [Hash] opts the optional parameters - # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers + # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def delete_voicemail_message_with_http_info(message_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: VoicemailApi.delete_voicemail_message ..." end # verify the required parameter 'message_id' is set @@ -71,31 +71,30 @@ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, - :auth_names => auth_names, - :return_type => 'String') + :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: VoicemailApi#delete_voicemail_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete all voicemail messages # # @param [Hash] opts the optional parameters - # @return [String] + # @return [nil] def delete_voicemail_messages(opts = {}) - data, _status_code, _headers = delete_voicemail_messages_with_http_info(opts) - return data + delete_voicemail_messages_with_http_info(opts) + return nil end # Delete all voicemail messages # # @param [Hash] opts the optional parameters - # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers + # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def delete_voicemail_messages_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: VoicemailApi.delete_voicemail_messages ..." end # resource path @@ -124,11 +123,10 @@ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, - :auth_names => auth_names, - :return_type => 'String') + :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: VoicemailApi#delete_voicemail_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end