aspose_email_cloud 20.3.0 → 20.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (267) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose-email-cloud.rb +24 -1
  3. data/lib/aspose-email-cloud/api/email_api.rb +133 -15
  4. data/lib/aspose-email-cloud/api_client.rb +3 -4
  5. data/lib/aspose-email-cloud/api_error.rb +1 -1
  6. data/lib/aspose-email-cloud/configuration.rb +1 -1
  7. data/lib/aspose-email-cloud/models/account_base_request.rb +5 -5
  8. data/lib/aspose-email-cloud/models/add_attachment_request.rb +1 -1
  9. data/lib/aspose-email-cloud/models/ai_bcr_base64_image.rb +1 -1
  10. data/lib/aspose-email-cloud/models/ai_bcr_base64_rq.rb +1 -1
  11. data/lib/aspose-email-cloud/models/ai_bcr_image.rb +1 -1
  12. data/lib/aspose-email-cloud/models/ai_bcr_image_storage_file.rb +4 -4
  13. data/lib/aspose-email-cloud/models/ai_bcr_ocr_data.rb +1 -1
  14. data/lib/aspose-email-cloud/models/ai_bcr_ocr_data_part.rb +1 -1
  15. data/lib/aspose-email-cloud/models/ai_bcr_options.rb +1 -1
  16. data/lib/aspose-email-cloud/models/ai_bcr_parse_ocr_data_rq.rb +1 -1
  17. data/lib/aspose-email-cloud/models/ai_bcr_parse_storage_rq.rb +4 -4
  18. data/lib/aspose-email-cloud/models/ai_bcr_rq.rb +1 -1
  19. data/lib/aspose-email-cloud/models/ai_bcr_storage_image_rq.rb +1 -1
  20. data/lib/aspose-email-cloud/models/ai_name_component.rb +1 -1
  21. data/lib/aspose-email-cloud/models/ai_name_cultural_context.rb +1 -1
  22. data/lib/aspose-email-cloud/models/ai_name_extracted.rb +1 -1
  23. data/lib/aspose-email-cloud/models/ai_name_extracted_component.rb +1 -1
  24. data/lib/aspose-email-cloud/models/ai_name_formatted.rb +1 -1
  25. data/lib/aspose-email-cloud/models/ai_name_gender_hypothesis.rb +1 -1
  26. data/lib/aspose-email-cloud/models/ai_name_match_result.rb +1 -1
  27. data/lib/aspose-email-cloud/models/ai_name_mismatch.rb +1 -1
  28. data/lib/aspose-email-cloud/models/ai_name_parsed_match_rq.rb +1 -1
  29. data/lib/aspose-email-cloud/models/ai_name_parsed_rq.rb +1 -1
  30. data/lib/aspose-email-cloud/models/ai_name_weighted.rb +1 -1
  31. data/lib/aspose-email-cloud/models/ai_name_weighted_variants.rb +1 -1
  32. data/lib/aspose-email-cloud/models/alternate_view.rb +1 -1
  33. data/lib/aspose-email-cloud/models/append_email_account_base_request.rb +5 -5
  34. data/lib/aspose-email-cloud/models/append_email_base_request.rb +8 -8
  35. data/lib/aspose-email-cloud/models/append_email_mime_base_request.rb +5 -5
  36. data/lib/aspose-email-cloud/models/append_email_model_rq.rb +8 -8
  37. data/lib/aspose-email-cloud/models/associated_person.rb +1 -1
  38. data/lib/aspose-email-cloud/models/attachment.rb +1 -1
  39. data/lib/aspose-email-cloud/models/attachment_base.rb +1 -1
  40. data/lib/aspose-email-cloud/models/base_object.rb +1 -1
  41. data/lib/aspose-email-cloud/models/calendar_dto.rb +1 -1
  42. data/lib/aspose-email-cloud/models/calendar_dto_alternate_rq.rb +1 -1
  43. data/lib/aspose-email-cloud/models/calendar_dto_list.rb +1 -1
  44. data/lib/aspose-email-cloud/models/calendar_reminder.rb +1 -1
  45. data/lib/aspose-email-cloud/models/contact_dto.rb +1 -1
  46. data/lib/aspose-email-cloud/models/contact_dto_list.rb +1 -1
  47. data/lib/aspose-email-cloud/models/contact_photo.rb +1 -1
  48. data/lib/aspose-email-cloud/models/content_type.rb +1 -1
  49. data/lib/aspose-email-cloud/models/content_type_parameter.rb +1 -1
  50. data/lib/aspose-email-cloud/models/create_email_request.rb +1 -1
  51. data/lib/aspose-email-cloud/models/create_folder_base_request.rb +5 -5
  52. data/lib/aspose-email-cloud/models/customer_event.rb +1 -1
  53. data/lib/aspose-email-cloud/models/delete_email_thread_account_rq.rb +276 -0
  54. data/lib/aspose-email-cloud/models/delete_folder_base_request.rb +5 -5
  55. data/lib/aspose-email-cloud/models/delete_message_base_request.rb +20 -7
  56. data/lib/aspose-email-cloud/models/disc_usage.rb +5 -6
  57. data/lib/aspose-email-cloud/models/discover_email_config_oauth.rb +1 -1
  58. data/lib/aspose-email-cloud/models/discover_email_config_password.rb +1 -1
  59. data/lib/aspose-email-cloud/models/discover_email_config_rq.rb +1 -1
  60. data/lib/aspose-email-cloud/models/email_account_config.rb +1 -1
  61. data/lib/aspose-email-cloud/models/email_account_config_list.rb +1 -1
  62. data/lib/aspose-email-cloud/models/email_account_request.rb +1 -1
  63. data/lib/aspose-email-cloud/models/email_address.rb +19 -6
  64. data/lib/aspose-email-cloud/models/email_client_account.rb +19 -6
  65. data/lib/aspose-email-cloud/models/email_client_account_credentials.rb +1 -1
  66. data/lib/aspose-email-cloud/models/email_client_account_oauth_credentials.rb +1 -1
  67. data/lib/aspose-email-cloud/models/email_client_account_password_credentials.rb +1 -1
  68. data/lib/aspose-email-cloud/models/email_client_multi_account.rb +1 -1
  69. data/lib/aspose-email-cloud/models/email_document.rb +1 -1
  70. data/lib/aspose-email-cloud/models/email_document_response.rb +1 -1
  71. data/lib/aspose-email-cloud/models/email_dto.rb +1 -1
  72. data/lib/aspose-email-cloud/models/email_dto_list.rb +2 -2
  73. data/lib/aspose-email-cloud/models/email_properties.rb +1 -1
  74. data/lib/aspose-email-cloud/models/email_property.rb +1 -1
  75. data/lib/aspose-email-cloud/models/email_property_response.rb +1 -1
  76. data/lib/aspose-email-cloud/models/email_thread.rb +254 -0
  77. data/lib/aspose-email-cloud/models/email_thread_list.rb +215 -0
  78. data/lib/aspose-email-cloud/models/email_thread_read_flag_rq.rb +294 -0
  79. data/lib/aspose-email-cloud/models/enum_with_custom_of_associated_person_category.rb +1 -1
  80. data/lib/aspose-email-cloud/models/enum_with_custom_of_email_address_category.rb +1 -1
  81. data/lib/aspose-email-cloud/models/enum_with_custom_of_event_category.rb +1 -1
  82. data/lib/aspose-email-cloud/models/enum_with_custom_of_instant_messenger_category.rb +1 -1
  83. data/lib/aspose-email-cloud/models/enum_with_custom_of_phone_number_category.rb +1 -1
  84. data/lib/aspose-email-cloud/models/enum_with_custom_of_postal_address_category.rb +1 -1
  85. data/lib/aspose-email-cloud/models/enum_with_custom_of_url_category.rb +1 -1
  86. data/lib/aspose-email-cloud/models/error.rb +9 -10
  87. data/lib/aspose-email-cloud/models/error_details.rb +5 -6
  88. data/lib/aspose-email-cloud/models/file_version.rb +15 -16
  89. data/lib/aspose-email-cloud/models/file_versions.rb +3 -4
  90. data/lib/aspose-email-cloud/models/files_list.rb +3 -4
  91. data/lib/aspose-email-cloud/models/files_upload_result.rb +5 -6
  92. data/lib/aspose-email-cloud/models/hierarchical_object.rb +1 -1
  93. data/lib/aspose-email-cloud/models/hierarchical_object_request.rb +1 -1
  94. data/lib/aspose-email-cloud/models/hierarchical_object_response.rb +1 -1
  95. data/lib/aspose-email-cloud/models/indexed_hierarchical_object.rb +1 -1
  96. data/lib/aspose-email-cloud/models/indexed_primitive_object.rb +1 -1
  97. data/lib/aspose-email-cloud/models/instant_messenger_address.rb +1 -1
  98. data/lib/aspose-email-cloud/models/link.rb +1 -1
  99. data/lib/aspose-email-cloud/models/linked_resource.rb +1 -1
  100. data/lib/aspose-email-cloud/models/list_response_of_ai_bcr_ocr_data.rb +1 -1
  101. data/lib/aspose-email-cloud/models/list_response_of_ai_name_component.rb +1 -1
  102. data/lib/aspose-email-cloud/models/list_response_of_ai_name_extracted.rb +1 -1
  103. data/lib/aspose-email-cloud/models/list_response_of_ai_name_gender_hypothesis.rb +1 -1
  104. data/lib/aspose-email-cloud/models/list_response_of_contact_dto.rb +1 -1
  105. data/lib/aspose-email-cloud/models/list_response_of_email_account_config.rb +1 -1
  106. data/lib/aspose-email-cloud/models/list_response_of_email_dto.rb +1 -1
  107. data/lib/aspose-email-cloud/models/list_response_of_email_thread.rb +214 -0
  108. data/lib/aspose-email-cloud/models/list_response_of_hierarchical_object.rb +1 -1
  109. data/lib/aspose-email-cloud/models/list_response_of_hierarchical_object_response.rb +1 -1
  110. data/lib/aspose-email-cloud/models/list_response_of_mail_server_folder.rb +1 -1
  111. data/lib/aspose-email-cloud/models/list_response_of_storage_file_location.rb +1 -1
  112. data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_calendar_dto.rb +1 -1
  113. data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_contact_dto.rb +1 -1
  114. data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_email_dto.rb +1 -1
  115. data/lib/aspose-email-cloud/models/list_response_of_string.rb +1 -1
  116. data/lib/aspose-email-cloud/models/mail_address.rb +19 -6
  117. data/lib/aspose-email-cloud/models/mail_server_folder.rb +1 -1
  118. data/lib/aspose-email-cloud/models/mime_response.rb +1 -1
  119. data/lib/aspose-email-cloud/models/move_email_message_rq.rb +302 -0
  120. data/lib/aspose-email-cloud/models/move_email_thread_rq.rb +276 -0
  121. data/lib/aspose-email-cloud/models/name_value_pair.rb +1 -1
  122. data/lib/aspose-email-cloud/models/object_exist.rb +5 -6
  123. data/lib/aspose-email-cloud/models/phone_number.rb +1 -1
  124. data/lib/aspose-email-cloud/models/postal_address.rb +1 -1
  125. data/lib/aspose-email-cloud/models/primitive_object.rb +1 -1
  126. data/lib/aspose-email-cloud/models/reminder_attendee.rb +1 -1
  127. data/lib/aspose-email-cloud/models/reminder_trigger.rb +1 -1
  128. data/lib/aspose-email-cloud/models/requests/add_calendar_attachment_request_data.rb +1 -1
  129. data/lib/aspose-email-cloud/models/requests/add_contact_attachment_request_data.rb +1 -1
  130. data/lib/aspose-email-cloud/models/requests/add_email_attachment_request_data.rb +1 -1
  131. data/lib/aspose-email-cloud/models/requests/add_mapi_attachment_request_data.rb +1 -1
  132. data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_request_data.rb +1 -1
  133. data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb +1 -1
  134. data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_model_request_data.rb +1 -1
  135. data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_ocr_data_model_request_data.rb +1 -1
  136. data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_request_data.rb +1 -1
  137. data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_storage_request_data.rb +1 -1
  138. data/lib/aspose-email-cloud/models/requests/ai_name_complete_request_data.rb +1 -1
  139. data/lib/aspose-email-cloud/models/requests/ai_name_expand_parsed_request_data.rb +1 -1
  140. data/lib/aspose-email-cloud/models/requests/ai_name_expand_request_data.rb +1 -1
  141. data/lib/aspose-email-cloud/models/requests/ai_name_format_parsed_request_data.rb +1 -1
  142. data/lib/aspose-email-cloud/models/requests/ai_name_format_request_data.rb +1 -1
  143. data/lib/aspose-email-cloud/models/requests/ai_name_genderize_parsed_request_data.rb +1 -1
  144. data/lib/aspose-email-cloud/models/requests/ai_name_genderize_request_data.rb +1 -1
  145. data/lib/aspose-email-cloud/models/requests/ai_name_match_parsed_request_data.rb +1 -1
  146. data/lib/aspose-email-cloud/models/requests/ai_name_match_request_data.rb +1 -1
  147. data/lib/aspose-email-cloud/models/requests/ai_name_parse_email_address_request_data.rb +1 -1
  148. data/lib/aspose-email-cloud/models/requests/ai_name_parse_request_data.rb +1 -1
  149. data/lib/aspose-email-cloud/models/requests/append_email_message_request_data.rb +1 -1
  150. data/lib/aspose-email-cloud/models/requests/append_email_model_message_request_data.rb +1 -1
  151. data/lib/aspose-email-cloud/models/requests/append_mime_message_request_data.rb +1 -1
  152. data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_alternate_request_data.rb +1 -1
  153. data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_file_request_data.rb +89 -0
  154. data/lib/aspose-email-cloud/models/requests/convert_calendar_request_data.rb +90 -0
  155. data/lib/aspose-email-cloud/models/requests/convert_contact_model_to_file_request_data.rb +89 -0
  156. data/lib/aspose-email-cloud/models/requests/convert_contact_request_data.rb +100 -0
  157. data/lib/aspose-email-cloud/models/requests/convert_email_model_to_file_request_data.rb +89 -0
  158. data/lib/aspose-email-cloud/models/requests/convert_email_request_data.rb +5 -5
  159. data/lib/aspose-email-cloud/models/requests/copy_file_request_data.rb +11 -12
  160. data/lib/aspose-email-cloud/models/requests/copy_folder_request_data.rb +9 -10
  161. data/lib/aspose-email-cloud/models/requests/create_calendar_request_data.rb +1 -1
  162. data/lib/aspose-email-cloud/models/requests/create_contact_request_data.rb +1 -1
  163. data/lib/aspose-email-cloud/models/requests/create_email_folder_request_data.rb +1 -1
  164. data/lib/aspose-email-cloud/models/requests/create_email_request_data.rb +1 -1
  165. data/lib/aspose-email-cloud/models/requests/create_folder_request_data.rb +5 -6
  166. data/lib/aspose-email-cloud/models/requests/create_mapi_request_data.rb +1 -1
  167. data/lib/aspose-email-cloud/models/requests/delete_calendar_property_request_data.rb +1 -1
  168. data/lib/aspose-email-cloud/models/requests/delete_contact_property_request_data.rb +1 -1
  169. data/lib/aspose-email-cloud/models/requests/delete_email_folder_request_data.rb +1 -1
  170. data/lib/aspose-email-cloud/models/requests/delete_email_message_request_data.rb +1 -1
  171. data/lib/aspose-email-cloud/models/requests/delete_email_thread_request_data.rb +89 -0
  172. data/lib/aspose-email-cloud/models/requests/delete_file_request_data.rb +7 -8
  173. data/lib/aspose-email-cloud/models/requests/delete_folder_request_data.rb +7 -8
  174. data/lib/aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb +1 -1
  175. data/lib/aspose-email-cloud/models/requests/delete_mapi_properties_request_data.rb +1 -1
  176. data/lib/aspose-email-cloud/models/requests/discover_email_config_oauth_request_data.rb +1 -1
  177. data/lib/aspose-email-cloud/models/requests/discover_email_config_password_request_data.rb +1 -1
  178. data/lib/aspose-email-cloud/models/requests/discover_email_config_request_data.rb +1 -1
  179. data/lib/aspose-email-cloud/models/requests/download_file_request_data.rb +7 -8
  180. data/lib/aspose-email-cloud/models/requests/email_request.rb +1 -1
  181. data/lib/aspose-email-cloud/models/requests/fetch_email_message_request_data.rb +10 -4
  182. data/lib/aspose-email-cloud/models/requests/fetch_email_model_request_data.rb +10 -4
  183. data/lib/aspose-email-cloud/models/requests/fetch_email_thread_messages_request_data.rb +114 -0
  184. data/lib/aspose-email-cloud/models/requests/get_calendar_as_file_request_data.rb +101 -0
  185. data/lib/aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb +1 -1
  186. data/lib/aspose-email-cloud/models/requests/get_calendar_file_as_model_request_data.rb +80 -0
  187. data/lib/aspose-email-cloud/models/requests/get_calendar_list_request_data.rb +1 -1
  188. data/lib/aspose-email-cloud/models/requests/get_calendar_model_as_alternate_request_data.rb +1 -1
  189. data/lib/aspose-email-cloud/models/requests/get_calendar_model_list_request_data.rb +1 -1
  190. data/lib/aspose-email-cloud/models/requests/get_calendar_model_request_data.rb +1 -1
  191. data/lib/aspose-email-cloud/models/requests/get_calendar_request_data.rb +1 -1
  192. data/lib/aspose-email-cloud/models/requests/get_contact_as_file_request_data.rb +111 -0
  193. data/lib/aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb +1 -1
  194. data/lib/aspose-email-cloud/models/requests/get_contact_file_as_model_request_data.rb +90 -0
  195. data/lib/aspose-email-cloud/models/requests/get_contact_list_request_data.rb +1 -1
  196. data/lib/aspose-email-cloud/models/requests/get_contact_model_list_request_data.rb +1 -1
  197. data/lib/aspose-email-cloud/models/requests/get_contact_model_request_data.rb +1 -1
  198. data/lib/aspose-email-cloud/models/requests/get_contact_properties_request_data.rb +1 -1
  199. data/lib/aspose-email-cloud/models/requests/get_disc_usage_request_data.rb +3 -4
  200. data/lib/aspose-email-cloud/models/requests/get_email_as_file_request_data.rb +1 -1
  201. data/lib/aspose-email-cloud/models/requests/get_email_attachment_request_data.rb +1 -1
  202. data/lib/aspose-email-cloud/models/requests/get_email_client_account_request_data.rb +1 -1
  203. data/lib/aspose-email-cloud/models/requests/get_email_client_multi_account_request_data.rb +1 -1
  204. data/lib/aspose-email-cloud/models/requests/get_email_file_as_model_request_data.rb +80 -0
  205. data/lib/aspose-email-cloud/models/requests/get_email_model_list_request_data.rb +1 -1
  206. data/lib/aspose-email-cloud/models/requests/get_email_model_request_data.rb +1 -1
  207. data/lib/aspose-email-cloud/models/requests/get_email_property_request_data.rb +1 -1
  208. data/lib/aspose-email-cloud/models/requests/get_email_request_data.rb +1 -1
  209. data/lib/aspose-email-cloud/models/requests/get_file_versions_request_data.rb +5 -6
  210. data/lib/aspose-email-cloud/models/requests/get_files_list_request_data.rb +5 -6
  211. data/lib/aspose-email-cloud/models/requests/get_mapi_attachment_request_data.rb +1 -1
  212. data/lib/aspose-email-cloud/models/requests/get_mapi_attachments_request_data.rb +1 -1
  213. data/lib/aspose-email-cloud/models/requests/get_mapi_list_request_data.rb +1 -1
  214. data/lib/aspose-email-cloud/models/requests/get_mapi_properties_request_data.rb +1 -1
  215. data/lib/aspose-email-cloud/models/requests/http_request.rb +1 -1
  216. data/lib/aspose-email-cloud/models/requests/is_email_address_disposable_request_data.rb +1 -1
  217. data/lib/aspose-email-cloud/models/requests/list_email_folders_request_data.rb +3 -3
  218. data/lib/aspose-email-cloud/models/requests/list_email_messages_request_data.rb +3 -3
  219. data/lib/aspose-email-cloud/models/requests/list_email_models_request_data.rb +10 -15
  220. data/lib/aspose-email-cloud/models/requests/list_email_threads_request_data.rb +121 -0
  221. data/lib/aspose-email-cloud/models/requests/move_email_message_request_data.rb +79 -0
  222. data/lib/aspose-email-cloud/models/requests/move_email_thread_request_data.rb +89 -0
  223. data/lib/aspose-email-cloud/models/requests/move_file_request_data.rb +11 -12
  224. data/lib/aspose-email-cloud/models/requests/move_folder_request_data.rb +9 -10
  225. data/lib/aspose-email-cloud/models/requests/object_exists_request_data.rb +7 -8
  226. data/lib/aspose-email-cloud/models/requests/save_calendar_model_request_data.rb +1 -1
  227. data/lib/aspose-email-cloud/models/requests/save_contact_model_request_data.rb +1 -1
  228. data/lib/aspose-email-cloud/models/requests/save_email_client_account_request_data.rb +1 -1
  229. data/lib/aspose-email-cloud/models/requests/save_email_client_multi_account_request_data.rb +1 -1
  230. data/lib/aspose-email-cloud/models/requests/save_email_model_request_data.rb +3 -3
  231. data/lib/aspose-email-cloud/models/requests/save_mail_account_request_data.rb +1 -1
  232. data/lib/aspose-email-cloud/models/requests/save_mail_o_auth_account_request_data.rb +1 -1
  233. data/lib/aspose-email-cloud/models/requests/send_email_mime_request_data.rb +1 -1
  234. data/lib/aspose-email-cloud/models/requests/send_email_model_request_data.rb +1 -1
  235. data/lib/aspose-email-cloud/models/requests/send_email_request_data.rb +1 -1
  236. data/lib/aspose-email-cloud/models/requests/set_email_property_request_data.rb +1 -1
  237. data/lib/aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb +1 -1
  238. data/lib/aspose-email-cloud/models/requests/set_email_thread_read_flag_request_data.rb +89 -0
  239. data/lib/aspose-email-cloud/models/requests/storage_exists_request_data.rb +3 -4
  240. data/lib/aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb +1 -1
  241. data/lib/aspose-email-cloud/models/requests/update_contact_properties_request_data.rb +1 -1
  242. data/lib/aspose-email-cloud/models/requests/update_mapi_properties_request_data.rb +1 -1
  243. data/lib/aspose-email-cloud/models/requests/upload_file_request_data.rb +5 -6
  244. data/lib/aspose-email-cloud/models/save_email_account_request.rb +1 -1
  245. data/lib/aspose-email-cloud/models/save_o_auth_email_account_request.rb +1 -1
  246. data/lib/aspose-email-cloud/models/send_email_base_request.rb +8 -8
  247. data/lib/aspose-email-cloud/models/send_email_mime_base_request.rb +5 -5
  248. data/lib/aspose-email-cloud/models/send_email_model_rq.rb +8 -8
  249. data/lib/aspose-email-cloud/models/set_email_property_request.rb +1 -1
  250. data/lib/aspose-email-cloud/models/set_message_read_flag_account_base_request.rb +5 -5
  251. data/lib/aspose-email-cloud/models/storage_exist.rb +3 -4
  252. data/lib/aspose-email-cloud/models/storage_file.rb +11 -12
  253. data/lib/aspose-email-cloud/models/storage_file_location.rb +1 -1
  254. data/lib/aspose-email-cloud/models/storage_file_rq_of_email_client_account.rb +1 -1
  255. data/lib/aspose-email-cloud/models/storage_file_rq_of_email_client_multi_account.rb +1 -1
  256. data/lib/aspose-email-cloud/models/storage_folder_location.rb +1 -1
  257. data/lib/aspose-email-cloud/models/storage_model_of_calendar_dto.rb +1 -1
  258. data/lib/aspose-email-cloud/models/storage_model_of_contact_dto.rb +1 -1
  259. data/lib/aspose-email-cloud/models/storage_model_of_email_dto.rb +1 -1
  260. data/lib/aspose-email-cloud/models/storage_model_rq_of_calendar_dto.rb +1 -1
  261. data/lib/aspose-email-cloud/models/storage_model_rq_of_contact_dto.rb +1 -1
  262. data/lib/aspose-email-cloud/models/storage_model_rq_of_email_dto.rb +1 -1
  263. data/lib/aspose-email-cloud/models/url.rb +1 -1
  264. data/lib/aspose-email-cloud/models/value_response.rb +1 -1
  265. data/lib/aspose-email-cloud/models/value_t_of_boolean.rb +1 -1
  266. data/lib/aspose-email-cloud/version.rb +15 -15
  267. metadata +75 -52
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f78e3a28187c0f18edfb95c4bab1c94eca17aacdd0d4188c246bcaf9b2686155
4
- data.tar.gz: 4d5fe48261281a16294497add25ec23c3eb9489b2a074ac73ccd1a46d22db4a5
3
+ metadata.gz: e29dd28dba7b6e6991ff4d1c72e99173bd476e8be63986d59db95682ec4cb4a1
4
+ data.tar.gz: 1e65b6110733f40992b02643e9500c657e44535b2754f08dec32f2f278b83b35
5
5
  SHA512:
6
- metadata.gz: 3f0096cce858287f019f5cf5513cfc9a70855285227dbb5761b690d1c4ce479b1ff64414fac9167046c5ae336a85c9c83ecbff8bb92660931184b858699cf7da
7
- data.tar.gz: e902f3dc52b44a42ac118ff133ac0fcaac2736dd7e9fc02158cfa38eb7b43b89cebdd07cbd9f5fab02dd24e7f8cff4f4f849973d7dee8672d1bfb3601002406f
6
+ metadata.gz: db56ff31ff0e8c8bdae5601f7269bc5f45b854d74c818b912535538d77a9915d0e6241b1a1fb1de8bdf79a625c7beb461f3dd8a67e5a6fa99e8d470cbd5ee896
7
+ data.tar.gz: f227d274ce6cece4ab4b273a4990fbab29f41d0ad34433c8e4b4d6839a8cc6b7b9df0c35bb9961556e90cbee0995a5f19205719293078aff92bb74420b21fe3e
@@ -1,6 +1,6 @@
1
1
  # ----------------------------------------------------------------------------
2
2
  # <copyright company="Aspose" file="aspose-email-cloud.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
3
+ # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a
@@ -75,6 +75,7 @@ require_relative './aspose-email-cloud/models/email_dto'
75
75
  require_relative './aspose-email-cloud/models/email_properties'
76
76
  require_relative './aspose-email-cloud/models/email_property'
77
77
  require_relative './aspose-email-cloud/models/email_property_response'
78
+ require_relative './aspose-email-cloud/models/email_thread'
78
79
  require_relative './aspose-email-cloud/models/enum_with_custom_of_associated_person_category'
79
80
  require_relative './aspose-email-cloud/models/enum_with_custom_of_email_address_category'
80
81
  require_relative './aspose-email-cloud/models/enum_with_custom_of_event_category'
@@ -98,6 +99,7 @@ require_relative './aspose-email-cloud/models/list_response_of_ai_name_gender_hy
98
99
  require_relative './aspose-email-cloud/models/list_response_of_contact_dto'
99
100
  require_relative './aspose-email-cloud/models/list_response_of_email_account_config'
100
101
  require_relative './aspose-email-cloud/models/list_response_of_email_dto'
102
+ require_relative './aspose-email-cloud/models/list_response_of_email_thread'
101
103
  require_relative './aspose-email-cloud/models/list_response_of_hierarchical_object'
102
104
  require_relative './aspose-email-cloud/models/list_response_of_hierarchical_object_response'
103
105
  require_relative './aspose-email-cloud/models/list_response_of_mail_server_folder'
@@ -142,6 +144,7 @@ require_relative './aspose-email-cloud/models/attachment'
142
144
  require_relative './aspose-email-cloud/models/calendar_dto_list'
143
145
  require_relative './aspose-email-cloud/models/contact_dto_list'
144
146
  require_relative './aspose-email-cloud/models/create_folder_base_request'
147
+ require_relative './aspose-email-cloud/models/delete_email_thread_account_rq'
145
148
  require_relative './aspose-email-cloud/models/delete_folder_base_request'
146
149
  require_relative './aspose-email-cloud/models/delete_message_base_request'
147
150
  require_relative './aspose-email-cloud/models/discover_email_config_oauth'
@@ -150,11 +153,15 @@ require_relative './aspose-email-cloud/models/email_account_config_list'
150
153
  require_relative './aspose-email-cloud/models/email_client_account_oauth_credentials'
151
154
  require_relative './aspose-email-cloud/models/email_client_account_password_credentials'
152
155
  require_relative './aspose-email-cloud/models/email_dto_list'
156
+ require_relative './aspose-email-cloud/models/email_thread_list'
157
+ require_relative './aspose-email-cloud/models/email_thread_read_flag_rq'
153
158
  require_relative './aspose-email-cloud/models/file_version'
154
159
  require_relative './aspose-email-cloud/models/hierarchical_object'
155
160
  require_relative './aspose-email-cloud/models/indexed_hierarchical_object'
156
161
  require_relative './aspose-email-cloud/models/indexed_primitive_object'
157
162
  require_relative './aspose-email-cloud/models/linked_resource'
163
+ require_relative './aspose-email-cloud/models/move_email_message_rq'
164
+ require_relative './aspose-email-cloud/models/move_email_thread_rq'
158
165
  require_relative './aspose-email-cloud/models/primitive_object'
159
166
  require_relative './aspose-email-cloud/models/save_email_account_request'
160
167
  require_relative './aspose-email-cloud/models/save_o_auth_email_account_request'
@@ -198,6 +205,11 @@ require_relative './aspose-email-cloud/models/requests/append_email_message_requ
198
205
  require_relative './aspose-email-cloud/models/requests/append_email_model_message_request_data.rb'
199
206
  require_relative './aspose-email-cloud/models/requests/append_mime_message_request_data.rb'
200
207
  require_relative './aspose-email-cloud/models/requests/convert_calendar_model_to_alternate_request_data.rb'
208
+ require_relative './aspose-email-cloud/models/requests/convert_calendar_model_to_file_request_data.rb'
209
+ require_relative './aspose-email-cloud/models/requests/convert_calendar_request_data.rb'
210
+ require_relative './aspose-email-cloud/models/requests/convert_contact_model_to_file_request_data.rb'
211
+ require_relative './aspose-email-cloud/models/requests/convert_contact_request_data.rb'
212
+ require_relative './aspose-email-cloud/models/requests/convert_email_model_to_file_request_data.rb'
201
213
  require_relative './aspose-email-cloud/models/requests/convert_email_request_data.rb'
202
214
  require_relative './aspose-email-cloud/models/requests/copy_file_request_data.rb'
203
215
  require_relative './aspose-email-cloud/models/requests/copy_folder_request_data.rb'
@@ -211,6 +223,7 @@ require_relative './aspose-email-cloud/models/requests/delete_calendar_property_
211
223
  require_relative './aspose-email-cloud/models/requests/delete_contact_property_request_data.rb'
212
224
  require_relative './aspose-email-cloud/models/requests/delete_email_folder_request_data.rb'
213
225
  require_relative './aspose-email-cloud/models/requests/delete_email_message_request_data.rb'
226
+ require_relative './aspose-email-cloud/models/requests/delete_email_thread_request_data.rb'
214
227
  require_relative './aspose-email-cloud/models/requests/delete_file_request_data.rb'
215
228
  require_relative './aspose-email-cloud/models/requests/delete_folder_request_data.rb'
216
229
  require_relative './aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb'
@@ -222,13 +235,18 @@ require_relative './aspose-email-cloud/models/requests/download_file_request_dat
222
235
  require_relative './aspose-email-cloud/models/requests/email_request.rb'
223
236
  require_relative './aspose-email-cloud/models/requests/fetch_email_message_request_data.rb'
224
237
  require_relative './aspose-email-cloud/models/requests/fetch_email_model_request_data.rb'
238
+ require_relative './aspose-email-cloud/models/requests/fetch_email_thread_messages_request_data.rb'
239
+ require_relative './aspose-email-cloud/models/requests/get_calendar_as_file_request_data.rb'
225
240
  require_relative './aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb'
241
+ require_relative './aspose-email-cloud/models/requests/get_calendar_file_as_model_request_data.rb'
226
242
  require_relative './aspose-email-cloud/models/requests/get_calendar_list_request_data.rb'
227
243
  require_relative './aspose-email-cloud/models/requests/get_calendar_model_as_alternate_request_data.rb'
228
244
  require_relative './aspose-email-cloud/models/requests/get_calendar_model_list_request_data.rb'
229
245
  require_relative './aspose-email-cloud/models/requests/get_calendar_model_request_data.rb'
230
246
  require_relative './aspose-email-cloud/models/requests/get_calendar_request_data.rb'
247
+ require_relative './aspose-email-cloud/models/requests/get_contact_as_file_request_data.rb'
231
248
  require_relative './aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb'
249
+ require_relative './aspose-email-cloud/models/requests/get_contact_file_as_model_request_data.rb'
232
250
  require_relative './aspose-email-cloud/models/requests/get_contact_list_request_data.rb'
233
251
  require_relative './aspose-email-cloud/models/requests/get_contact_model_list_request_data.rb'
234
252
  require_relative './aspose-email-cloud/models/requests/get_contact_model_request_data.rb'
@@ -238,6 +256,7 @@ require_relative './aspose-email-cloud/models/requests/get_email_as_file_request
238
256
  require_relative './aspose-email-cloud/models/requests/get_email_attachment_request_data.rb'
239
257
  require_relative './aspose-email-cloud/models/requests/get_email_client_account_request_data.rb'
240
258
  require_relative './aspose-email-cloud/models/requests/get_email_client_multi_account_request_data.rb'
259
+ require_relative './aspose-email-cloud/models/requests/get_email_file_as_model_request_data.rb'
241
260
  require_relative './aspose-email-cloud/models/requests/get_email_model_list_request_data.rb'
242
261
  require_relative './aspose-email-cloud/models/requests/get_email_model_request_data.rb'
243
262
  require_relative './aspose-email-cloud/models/requests/get_email_property_request_data.rb'
@@ -253,6 +272,9 @@ require_relative './aspose-email-cloud/models/requests/is_email_address_disposab
253
272
  require_relative './aspose-email-cloud/models/requests/list_email_folders_request_data.rb'
254
273
  require_relative './aspose-email-cloud/models/requests/list_email_messages_request_data.rb'
255
274
  require_relative './aspose-email-cloud/models/requests/list_email_models_request_data.rb'
275
+ require_relative './aspose-email-cloud/models/requests/list_email_threads_request_data.rb'
276
+ require_relative './aspose-email-cloud/models/requests/move_email_message_request_data.rb'
277
+ require_relative './aspose-email-cloud/models/requests/move_email_thread_request_data.rb'
256
278
  require_relative './aspose-email-cloud/models/requests/move_file_request_data.rb'
257
279
  require_relative './aspose-email-cloud/models/requests/move_folder_request_data.rb'
258
280
  require_relative './aspose-email-cloud/models/requests/object_exists_request_data.rb'
@@ -268,6 +290,7 @@ require_relative './aspose-email-cloud/models/requests/send_email_model_request_
268
290
  require_relative './aspose-email-cloud/models/requests/send_email_request_data.rb'
269
291
  require_relative './aspose-email-cloud/models/requests/set_email_property_request_data.rb'
270
292
  require_relative './aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb'
293
+ require_relative './aspose-email-cloud/models/requests/set_email_thread_read_flag_request_data.rb'
271
294
  require_relative './aspose-email-cloud/models/requests/storage_exists_request_data.rb'
272
295
  require_relative './aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb'
273
296
  require_relative './aspose-email-cloud/models/requests/update_contact_properties_request_data.rb'
@@ -1,7 +1,7 @@
1
1
 
2
2
  # ----------------------------------------------------------------------------
3
3
  # <copyright company="Aspose" file="email_api.rb">
4
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
4
+ # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a
@@ -237,6 +237,14 @@ module AsposeEmailCloud
237
237
  make_request(http_request, :PUT, 'ValueResponse')
238
238
  end
239
239
 
240
+ # Converts calendar document to specified format and returns as file
241
+ # @param [ConvertCalendarRequestData] request Request object.
242
+ # @return [File]
243
+ def convert_calendar(request)
244
+ http_request = request.to_http_info(@api_client)
245
+ make_request(http_request, :PUT, 'File')
246
+ end
247
+
240
248
  # Convert iCalendar to AlternateView
241
249
  # @param [ConvertCalendarModelToAlternateRequestData] request Request object.
242
250
  # @return [AlternateView]
@@ -245,6 +253,30 @@ module AsposeEmailCloud
245
253
  make_request(http_request, :PUT, 'AlternateView')
246
254
  end
247
255
 
256
+ # Converts calendar model to specified format and returns as file
257
+ # @param [ConvertCalendarModelToFileRequestData] request Request object.
258
+ # @return [File]
259
+ def convert_calendar_model_to_file(request)
260
+ http_request = request.to_http_info(@api_client)
261
+ make_request(http_request, :PUT, 'File')
262
+ end
263
+
264
+ # Converts contact document to specified format and returns as file
265
+ # @param [ConvertContactRequestData] request Request object.
266
+ # @return [File]
267
+ def convert_contact(request)
268
+ http_request = request.to_http_info(@api_client)
269
+ make_request(http_request, :PUT, 'File')
270
+ end
271
+
272
+ # Converts contact model to specified format and returns as file
273
+ # @param [ConvertContactModelToFileRequestData] request Request object.
274
+ # @return [File]
275
+ def convert_contact_model_to_file(request)
276
+ http_request = request.to_http_info(@api_client)
277
+ make_request(http_request, :PUT, 'File')
278
+ end
279
+
248
280
  # Converts email document to specified format and returns as file
249
281
  # @param [ConvertEmailRequestData] request Request object.
250
282
  # @return [File]
@@ -253,7 +285,14 @@ module AsposeEmailCloud
253
285
  make_request(http_request, :PUT, 'File')
254
286
  end
255
287
 
256
- # Copy file
288
+ # Converts Email model to specified format and returns as file
289
+ # @param [ConvertEmailModelToFileRequestData] request Request object.
290
+ # @return [File]
291
+ def convert_email_model_to_file(request)
292
+ http_request = request.to_http_info(@api_client)
293
+ make_request(http_request, :PUT, 'File')
294
+ end
295
+
257
296
  # @param [CopyFileRequestData] request Request object.
258
297
  # @return [nil]
259
298
  def copy_file(request)
@@ -262,7 +301,6 @@ module AsposeEmailCloud
262
301
  nil
263
302
  end
264
303
 
265
- # Copy folder
266
304
  # @param [CopyFolderRequestData] request Request object.
267
305
  # @return [nil]
268
306
  def copy_folder(request)
@@ -306,7 +344,6 @@ module AsposeEmailCloud
306
344
  nil
307
345
  end
308
346
 
309
- # Create the folder
310
347
  # @param [CreateFolderRequestData] request Request object.
311
348
  # @return [nil]
312
349
  def create_folder(request)
@@ -360,7 +397,15 @@ module AsposeEmailCloud
360
397
  nil
361
398
  end
362
399
 
363
- # Delete file
400
+ # Delete thread by id. All messages from thread will also be deleted
401
+ # @param [DeleteEmailThreadRequestData] request Request object.
402
+ # @return [nil]
403
+ def delete_email_thread(request)
404
+ http_request = request.to_http_info(@api_client)
405
+ make_request(http_request, :DELETE, nil)
406
+ nil
407
+ end
408
+
364
409
  # @param [DeleteFileRequestData] request Request object.
365
410
  # @return [nil]
366
411
  def delete_file(request)
@@ -369,7 +414,6 @@ module AsposeEmailCloud
369
414
  nil
370
415
  end
371
416
 
372
- # Delete folder
373
417
  # @param [DeleteFolderRequestData] request Request object.
374
418
  # @return [nil]
375
419
  def delete_folder(request)
@@ -420,7 +464,6 @@ module AsposeEmailCloud
420
464
  make_request(http_request, :POST, 'EmailAccountConfigList')
421
465
  end
422
466
 
423
- # Download file
424
467
  # @param [DownloadFileRequestData] request Request object.
425
468
  # @return [File]
426
469
  def download_file(request)
@@ -444,6 +487,14 @@ module AsposeEmailCloud
444
487
  make_request(http_request, :GET, 'EmailDto')
445
488
  end
446
489
 
490
+ # Get messages from thread by id. All messages are fully fetched. For accounts with CacheFile only cached messages will be returned.
491
+ # @param [FetchEmailThreadMessagesRequestData] request Request object.
492
+ # @return [ListResponseOfEmailDto]
493
+ def fetch_email_thread_messages(request)
494
+ http_request = request.to_http_info(@api_client)
495
+ make_request(http_request, :GET, 'ListResponseOfEmailDto')
496
+ end
497
+
447
498
  # Get calendar file properties
448
499
  # @param [GetCalendarRequestData] request Request object.
449
500
  # @return [HierarchicalObject]
@@ -452,6 +503,14 @@ module AsposeEmailCloud
452
503
  make_request(http_request, :GET, 'HierarchicalObject')
453
504
  end
454
505
 
506
+ # Converts calendar document from storage to specified format and returns as file
507
+ # @param [GetCalendarAsFileRequestData] request Request object.
508
+ # @return [File]
509
+ def get_calendar_as_file(request)
510
+ http_request = request.to_http_info(@api_client)
511
+ make_request(http_request, :GET, 'File')
512
+ end
513
+
455
514
  # Get iCalendar document attachment by name
456
515
  # @param [GetCalendarAttachmentRequestData] request Request object.
457
516
  # @return [File]
@@ -460,6 +519,14 @@ module AsposeEmailCloud
460
519
  make_request(http_request, :GET, 'File')
461
520
  end
462
521
 
522
+ # Converts calendar document to a model representation
523
+ # @param [GetCalendarFileAsModelRequestData] request Request object.
524
+ # @return [CalendarDto]
525
+ def get_calendar_file_as_model(request)
526
+ http_request = request.to_http_info(@api_client)
527
+ make_request(http_request, :PUT, 'CalendarDto')
528
+ end
529
+
463
530
  # Get iCalendar files list in folder on storage
464
531
  # @param [GetCalendarListRequestData] request Request object.
465
532
  # @return [ListResponseOfHierarchicalObjectResponse]
@@ -492,6 +559,14 @@ module AsposeEmailCloud
492
559
  make_request(http_request, :GET, 'CalendarDtoList')
493
560
  end
494
561
 
562
+ # Converts calendar document from storage to specified format and returns as file
563
+ # @param [GetContactAsFileRequestData] request Request object.
564
+ # @return [File]
565
+ def get_contact_as_file(request)
566
+ http_request = request.to_http_info(@api_client)
567
+ make_request(http_request, :GET, 'File')
568
+ end
569
+
495
570
  # Get attachment file by name
496
571
  # @param [GetContactAttachmentRequestData] request Request object.
497
572
  # @return [File]
@@ -500,6 +575,14 @@ module AsposeEmailCloud
500
575
  make_request(http_request, :GET, 'File')
501
576
  end
502
577
 
578
+ # Converts contact document to a model representation
579
+ # @param [GetContactFileAsModelRequestData] request Request object.
580
+ # @return [ContactDto]
581
+ def get_contact_file_as_model(request)
582
+ http_request = request.to_http_info(@api_client)
583
+ make_request(http_request, :PUT, 'ContactDto')
584
+ end
585
+
503
586
  # Get contact list from storage folder
504
587
  # @param [GetContactListRequestData] request Request object.
505
588
  # @return [ListResponseOfHierarchicalObjectResponse]
@@ -532,7 +615,6 @@ module AsposeEmailCloud
532
615
  make_request(http_request, :GET, 'HierarchicalObject')
533
616
  end
534
617
 
535
- # Get disc usage
536
618
  # @param [GetDiscUsageRequestData] request Request object.
537
619
  # @return [DiscUsage]
538
620
  def get_disc_usage(request)
@@ -580,6 +662,14 @@ module AsposeEmailCloud
580
662
  make_request(http_request, :GET, 'EmailClientMultiAccount')
581
663
  end
582
664
 
665
+ # Converts email document to a model representation
666
+ # @param [GetEmailFileAsModelRequestData] request Request object.
667
+ # @return [EmailDto]
668
+ def get_email_file_as_model(request)
669
+ http_request = request.to_http_info(@api_client)
670
+ make_request(http_request, :PUT, 'EmailDto')
671
+ end
672
+
583
673
  # Get email document.
584
674
  # @param [GetEmailModelRequestData] request Request object.
585
675
  # @return [EmailDto]
@@ -604,7 +694,6 @@ module AsposeEmailCloud
604
694
  make_request(http_request, :GET, 'EmailPropertyResponse')
605
695
  end
606
696
 
607
- # Get file versions
608
697
  # @param [GetFileVersionsRequestData] request Request object.
609
698
  # @return [FileVersions]
610
699
  def get_file_versions(request)
@@ -612,7 +701,6 @@ module AsposeEmailCloud
612
701
  make_request(http_request, :GET, 'FileVersions')
613
702
  end
614
703
 
615
- # Get all files and folders within a folder
616
704
  # @param [GetFilesListRequestData] request Request object.
617
705
  # @return [FilesList]
618
706
  def get_files_list(request)
@@ -686,7 +774,32 @@ module AsposeEmailCloud
686
774
  make_request(http_request, :GET, 'ListResponseOfEmailDto')
687
775
  end
688
776
 
689
- # Move file
777
+ # Get message threads from folder. All messages are partly fetched (without email body and other fields)
778
+ # @param [ListEmailThreadsRequestData] request Request object.
779
+ # @return [EmailThreadList]
780
+ def list_email_threads(request)
781
+ http_request = request.to_http_info(@api_client)
782
+ make_request(http_request, :GET, 'EmailThreadList')
783
+ end
784
+
785
+ # Move message to another folder
786
+ # @param [MoveEmailMessageRequestData] request Request object.
787
+ # @return [nil]
788
+ def move_email_message(request)
789
+ http_request = request.to_http_info(@api_client)
790
+ make_request(http_request, :PUT, nil)
791
+ nil
792
+ end
793
+
794
+ # Move thread to another folder
795
+ # @param [MoveEmailThreadRequestData] request Request object.
796
+ # @return [nil]
797
+ def move_email_thread(request)
798
+ http_request = request.to_http_info(@api_client)
799
+ make_request(http_request, :PUT, nil)
800
+ nil
801
+ end
802
+
690
803
  # @param [MoveFileRequestData] request Request object.
691
804
  # @return [nil]
692
805
  def move_file(request)
@@ -695,7 +808,6 @@ module AsposeEmailCloud
695
808
  nil
696
809
  end
697
810
 
698
- # Move folder
699
811
  # @param [MoveFolderRequestData] request Request object.
700
812
  # @return [nil]
701
813
  def move_folder(request)
@@ -704,7 +816,6 @@ module AsposeEmailCloud
704
816
  nil
705
817
  end
706
818
 
707
- # Check if file or folder exists
708
819
  # @param [ObjectExistsRequestData] request Request object.
709
820
  # @return [ObjectExist]
710
821
  def object_exists(request)
@@ -819,7 +930,15 @@ module AsposeEmailCloud
819
930
  nil
820
931
  end
821
932
 
822
- # Check if storage exists
933
+ # Mark all messages in thread as read or unread
934
+ # @param [SetEmailThreadReadFlagRequestData] request Request object.
935
+ # @return [nil]
936
+ def set_email_thread_read_flag(request)
937
+ http_request = request.to_http_info(@api_client)
938
+ make_request(http_request, :PUT, nil)
939
+ nil
940
+ end
941
+
823
942
  # @param [StorageExistsRequestData] request Request object.
824
943
  # @return [StorageExist]
825
944
  def storage_exists(request)
@@ -854,7 +973,6 @@ module AsposeEmailCloud
854
973
  nil
855
974
  end
856
975
 
857
- # Upload file
858
976
  # @param [UploadFileRequestData] request Request object.
859
977
  # @return [FilesUploadResult]
860
978
  def upload_file(request)
@@ -1,6 +1,6 @@
1
1
  # ----------------------------------------------------------------------------
2
2
  # <copyright company="Aspose" file="api_client.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
3
+ # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a
@@ -248,7 +248,6 @@ module AsposeEmailCloud
248
248
  # @see Configuration#temp_folder_path
249
249
  def download_file(response)
250
250
  tempfile = nil
251
- encoding = nil
252
251
  content_disposition = response.headers['Content-Disposition']
253
252
  if content_disposition and content_disposition =~ /filename=/i
254
253
  filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
@@ -257,8 +256,8 @@ module AsposeEmailCloud
257
256
  prefix = 'download-'
258
257
  end
259
258
  prefix += '-' unless prefix.end_with?('-')
260
- encoding = response.body.encoding
261
- tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding)
259
+ tempfile = Tempfile.open(prefix, @config.temp_folder_path)
260
+ tempfile.binmode
262
261
  @tempfile = tempfile
263
262
  tempfile.write(response.body)
264
263
  response.on_complete do |resp|
@@ -1,6 +1,6 @@
1
1
  # ----------------------------------------------------------------------------
2
2
  # <copyright company="Aspose" file="api_error.rb">
3
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
3
+ # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
4
4
  # </copyright>
5
5
  # <summary>
6
6
  # Permission is hereby granted, free of charge, to any person obtaining a