aspose_email_cloud 19.12.0 → 20.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (341) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose-email-cloud.rb +186 -1
  3. data/lib/aspose-email-cloud/api/email_api.rb +1186 -698
  4. data/lib/aspose-email-cloud/api_client.rb +385 -382
  5. data/lib/aspose-email-cloud/api_error.rb +41 -41
  6. data/lib/aspose-email-cloud/configuration.rb +240 -240
  7. data/lib/aspose-email-cloud/models/account_base_request.rb +263 -260
  8. data/lib/aspose-email-cloud/models/add_attachment_request.rb +226 -223
  9. data/lib/aspose-email-cloud/models/ai_bcr_base64_image.rb +231 -228
  10. data/lib/aspose-email-cloud/models/ai_bcr_base64_rq.rb +228 -225
  11. data/lib/aspose-email-cloud/models/ai_bcr_image.rb +218 -215
  12. data/lib/aspose-email-cloud/models/ai_bcr_image_storage_file.rb +231 -228
  13. data/lib/aspose-email-cloud/models/ai_bcr_ocr_data.rb +256 -253
  14. data/lib/aspose-email-cloud/models/ai_bcr_ocr_data_part.rb +300 -297
  15. data/lib/aspose-email-cloud/models/ai_bcr_options.rb +226 -223
  16. data/lib/aspose-email-cloud/models/ai_bcr_parse_ocr_data_rq.rb +233 -0
  17. data/lib/aspose-email-cloud/models/ai_bcr_parse_storage_rq.rb +251 -248
  18. data/lib/aspose-email-cloud/models/ai_bcr_rq.rb +213 -210
  19. data/lib/aspose-email-cloud/models/ai_bcr_storage_image_rq.rb +233 -230
  20. data/lib/aspose-email-cloud/models/ai_name_component.rb +267 -264
  21. data/lib/aspose-email-cloud/models/ai_name_cultural_context.rb +270 -267
  22. data/lib/aspose-email-cloud/models/ai_name_extracted.rb +233 -230
  23. data/lib/aspose-email-cloud/models/ai_name_extracted_component.rb +231 -228
  24. data/lib/aspose-email-cloud/models/ai_name_formatted.rb +226 -223
  25. data/lib/aspose-email-cloud/models/ai_name_gender_hypothesis.rb +236 -233
  26. data/lib/aspose-email-cloud/models/ai_name_match_result.rb +233 -230
  27. data/lib/aspose-email-cloud/models/ai_name_mismatch.rb +249 -246
  28. data/lib/aspose-email-cloud/models/ai_name_parsed_match_rq.rb +266 -263
  29. data/lib/aspose-email-cloud/models/ai_name_parsed_rq.rb +246 -243
  30. data/lib/aspose-email-cloud/models/ai_name_weighted.rb +231 -228
  31. data/lib/aspose-email-cloud/models/ai_name_weighted_variants.rb +228 -225
  32. data/lib/aspose-email-cloud/models/alternate_view.rb +282 -0
  33. data/lib/aspose-email-cloud/models/append_email_account_base_request.rb +318 -315
  34. data/lib/aspose-email-cloud/models/append_email_base_request.rb +336 -333
  35. data/lib/aspose-email-cloud/models/append_email_mime_base_request.rb +355 -352
  36. data/lib/aspose-email-cloud/models/append_email_model_rq.rb +336 -0
  37. data/lib/aspose-email-cloud/models/associated_person.rb +244 -0
  38. data/lib/aspose-email-cloud/models/attachment.rb +324 -0
  39. data/lib/aspose-email-cloud/models/attachment_base.rb +254 -0
  40. data/lib/aspose-email-cloud/models/base_object.rb +91 -88
  41. data/lib/aspose-email-cloud/models/calendar_dto.rb +570 -0
  42. data/lib/aspose-email-cloud/models/calendar_dto_alternate_rq.rb +268 -0
  43. data/lib/aspose-email-cloud/models/calendar_dto_list.rb +215 -0
  44. data/lib/aspose-email-cloud/models/calendar_reminder.rb +318 -0
  45. data/lib/aspose-email-cloud/models/contact_dto.rb +699 -0
  46. data/lib/aspose-email-cloud/models/contact_dto_list.rb +215 -0
  47. data/lib/aspose-email-cloud/models/contact_photo.rb +255 -0
  48. data/lib/aspose-email-cloud/models/content_type.rb +267 -0
  49. data/lib/aspose-email-cloud/models/content_type_parameter.rb +226 -0
  50. data/lib/aspose-email-cloud/models/create_email_request.rb +231 -228
  51. data/lib/aspose-email-cloud/models/create_folder_base_request.rb +313 -310
  52. data/lib/aspose-email-cloud/models/customer_event.rb +231 -0
  53. data/lib/aspose-email-cloud/models/daily_recurrence_pattern_dto.rb +296 -0
  54. data/lib/aspose-email-cloud/models/delete_email_thread_account_rq.rb +276 -0
  55. data/lib/aspose-email-cloud/models/delete_folder_base_request.rb +318 -315
  56. data/lib/aspose-email-cloud/models/delete_message_base_request.rb +331 -315
  57. data/lib/aspose-email-cloud/models/disc_usage.rb +235 -233
  58. data/lib/aspose-email-cloud/models/discover_email_config_oauth.rb +391 -0
  59. data/lib/aspose-email-cloud/models/discover_email_config_password.rb +304 -0
  60. data/lib/aspose-email-cloud/models/discover_email_config_rq.rb +268 -0
  61. data/lib/aspose-email-cloud/models/email_account_config.rb +323 -0
  62. data/lib/aspose-email-cloud/models/email_account_config_list.rb +215 -0
  63. data/lib/aspose-email-cloud/models/email_account_request.rb +397 -394
  64. data/lib/aspose-email-cloud/models/email_address.rb +283 -0
  65. data/lib/aspose-email-cloud/models/email_client_account.rb +350 -0
  66. data/lib/aspose-email-cloud/models/email_client_account_credentials.rb +261 -0
  67. data/lib/aspose-email-cloud/models/email_client_account_oauth_credentials.rb +385 -0
  68. data/lib/aspose-email-cloud/models/email_client_account_password_credentials.rb +298 -0
  69. data/lib/aspose-email-cloud/models/email_client_multi_account.rb +233 -0
  70. data/lib/aspose-email-cloud/models/email_document.rb +233 -230
  71. data/lib/aspose-email-cloud/models/email_document_response.rb +213 -210
  72. data/lib/aspose-email-cloud/models/email_dto.rb +681 -0
  73. data/lib/aspose-email-cloud/models/email_dto_list.rb +215 -0
  74. data/lib/aspose-email-cloud/models/email_properties.rb +233 -230
  75. data/lib/aspose-email-cloud/models/email_property.rb +268 -265
  76. data/lib/aspose-email-cloud/models/email_property_response.rb +213 -210
  77. data/lib/aspose-email-cloud/models/email_thread.rb +254 -0
  78. data/lib/aspose-email-cloud/models/email_thread_list.rb +215 -0
  79. data/lib/aspose-email-cloud/models/email_thread_read_flag_rq.rb +294 -0
  80. data/lib/aspose-email-cloud/models/enum_with_custom_of_associated_person_category.rb +230 -0
  81. data/lib/aspose-email-cloud/models/enum_with_custom_of_email_address_category.rb +230 -0
  82. data/lib/aspose-email-cloud/models/enum_with_custom_of_event_category.rb +230 -0
  83. data/lib/aspose-email-cloud/models/enum_with_custom_of_instant_messenger_category.rb +230 -0
  84. data/lib/aspose-email-cloud/models/enum_with_custom_of_phone_number_category.rb +230 -0
  85. data/lib/aspose-email-cloud/models/enum_with_custom_of_postal_address_category.rb +230 -0
  86. data/lib/aspose-email-cloud/models/enum_with_custom_of_url_category.rb +230 -0
  87. data/lib/aspose-email-cloud/models/error.rb +251 -249
  88. data/lib/aspose-email-cloud/models/error_details.rb +230 -228
  89. data/lib/aspose-email-cloud/models/file_version.rb +305 -303
  90. data/lib/aspose-email-cloud/models/file_versions.rb +214 -212
  91. data/lib/aspose-email-cloud/models/files_list.rb +214 -212
  92. data/lib/aspose-email-cloud/models/files_upload_result.rb +229 -227
  93. data/lib/aspose-email-cloud/models/hierarchical_object.rb +106 -103
  94. data/lib/aspose-email-cloud/models/hierarchical_object_request.rb +231 -228
  95. data/lib/aspose-email-cloud/models/hierarchical_object_response.rb +226 -223
  96. data/lib/aspose-email-cloud/models/indexed_hierarchical_object.rb +124 -121
  97. data/lib/aspose-email-cloud/models/indexed_primitive_object.rb +122 -119
  98. data/lib/aspose-email-cloud/models/instant_messenger_address.rb +244 -0
  99. data/lib/aspose-email-cloud/models/link.rb +252 -249
  100. data/lib/aspose-email-cloud/models/linked_resource.rb +267 -0
  101. data/lib/aspose-email-cloud/models/list_response_of_ai_bcr_ocr_data.rb +214 -211
  102. data/lib/aspose-email-cloud/models/list_response_of_ai_name_component.rb +214 -211
  103. data/lib/aspose-email-cloud/models/list_response_of_ai_name_extracted.rb +214 -211
  104. data/lib/aspose-email-cloud/models/list_response_of_ai_name_gender_hypothesis.rb +214 -211
  105. data/lib/aspose-email-cloud/models/list_response_of_contact_dto.rb +214 -0
  106. data/lib/aspose-email-cloud/models/list_response_of_email_account_config.rb +214 -0
  107. data/lib/aspose-email-cloud/models/list_response_of_email_dto.rb +214 -0
  108. data/lib/aspose-email-cloud/models/list_response_of_email_thread.rb +214 -0
  109. data/lib/aspose-email-cloud/models/list_response_of_hierarchical_object.rb +214 -211
  110. data/lib/aspose-email-cloud/models/list_response_of_hierarchical_object_response.rb +214 -211
  111. data/lib/aspose-email-cloud/models/list_response_of_mail_server_folder.rb +214 -211
  112. data/lib/aspose-email-cloud/models/list_response_of_storage_file_location.rb +214 -211
  113. data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_calendar_dto.rb +214 -0
  114. data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_contact_dto.rb +214 -0
  115. data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_email_dto.rb +214 -0
  116. data/lib/aspose-email-cloud/models/list_response_of_string.rb +214 -211
  117. data/lib/aspose-email-cloud/models/mail_address.rb +257 -0
  118. data/lib/aspose-email-cloud/models/mail_server_folder.rb +226 -223
  119. data/lib/aspose-email-cloud/models/mapi_attachment_dto.rb +226 -0
  120. data/lib/aspose-email-cloud/models/mapi_binary_property_dto.rb +250 -0
  121. data/lib/aspose-email-cloud/models/mapi_boolean_property_dto.rb +255 -0
  122. data/lib/aspose-email-cloud/models/mapi_calendar_attendees_dto.rb +266 -0
  123. data/lib/aspose-email-cloud/models/mapi_calendar_daily_recurrence_pattern_dto.rb +464 -0
  124. data/lib/aspose-email-cloud/models/mapi_calendar_dto.rb +728 -0
  125. data/lib/aspose-email-cloud/models/mapi_calendar_event_recurrence_dto.rb +293 -0
  126. data/lib/aspose-email-cloud/models/mapi_calendar_exception_info_dto.rb +431 -0
  127. data/lib/aspose-email-cloud/models/mapi_calendar_recurrence_pattern_dto.rb +449 -0
  128. data/lib/aspose-email-cloud/models/mapi_calendar_time_zone_dto.rb +228 -0
  129. data/lib/aspose-email-cloud/models/mapi_calendar_time_zone_info_dto.rb +313 -0
  130. data/lib/aspose-email-cloud/models/mapi_calendar_time_zone_rule_dto.rb +362 -0
  131. data/lib/aspose-email-cloud/models/mapi_calendar_weekly_recurrence_pattern_dto.rb +464 -0
  132. data/lib/aspose-email-cloud/models/mapi_calendar_yearly_and_monthly_recurrence_pattern_dto.rb +500 -0
  133. data/lib/aspose-email-cloud/models/mapi_contact_dto.rb +569 -0
  134. data/lib/aspose-email-cloud/models/mapi_contact_electronic_address_dto.rb +283 -0
  135. data/lib/aspose-email-cloud/models/mapi_contact_electronic_address_property_set_dto.rb +327 -0
  136. data/lib/aspose-email-cloud/models/mapi_contact_event_property_set_dto.rb +236 -0
  137. data/lib/aspose-email-cloud/models/mapi_contact_name_property_set_dto.rb +335 -0
  138. data/lib/aspose-email-cloud/models/mapi_contact_other_property_set_dto.rb +319 -0
  139. data/lib/aspose-email-cloud/models/mapi_contact_personal_info_property_set_dto.rb +454 -0
  140. data/lib/aspose-email-cloud/models/mapi_contact_photo_dto.rb +255 -0
  141. data/lib/aspose-email-cloud/models/mapi_contact_physical_address_dto.rb +322 -0
  142. data/lib/aspose-email-cloud/models/mapi_contact_physical_address_property_set_dto.rb +239 -0
  143. data/lib/aspose-email-cloud/models/mapi_contact_professional_property_set_dto.rb +291 -0
  144. data/lib/aspose-email-cloud/models/mapi_contact_telephone_property_set_dto.rb +457 -0
  145. data/lib/aspose-email-cloud/models/mapi_date_time_property_dto.rb +255 -0
  146. data/lib/aspose-email-cloud/models/mapi_electronic_address_dto.rb +265 -0
  147. data/lib/aspose-email-cloud/models/mapi_file_as_property_dto.rb +255 -0
  148. data/lib/aspose-email-cloud/models/mapi_importance_property_dto.rb +255 -0
  149. data/lib/aspose-email-cloud/models/mapi_int_property_dto.rb +255 -0
  150. data/lib/aspose-email-cloud/models/mapi_known_property_descriptor.rb +237 -0
  151. data/lib/aspose-email-cloud/models/mapi_legacy_free_busy_property_dto.rb +255 -0
  152. data/lib/aspose-email-cloud/models/mapi_message_dto.rb +801 -0
  153. data/lib/aspose-email-cloud/models/mapi_message_item_base_dto.rb +452 -0
  154. data/lib/aspose-email-cloud/models/mapi_multi_int_property_dto.rb +252 -0
  155. data/lib/aspose-email-cloud/models/mapi_multi_string_property_dto.rb +252 -0
  156. data/lib/aspose-email-cloud/models/mapi_physical_address_index_property_dto.rb +255 -0
  157. data/lib/aspose-email-cloud/models/mapi_pid_lid_property_descriptor.rb +322 -0
  158. data/lib/aspose-email-cloud/models/mapi_pid_name_property_descriptor.rb +304 -0
  159. data/lib/aspose-email-cloud/models/mapi_pid_property_descriptor.rb +286 -0
  160. data/lib/aspose-email-cloud/models/mapi_pid_tag_property_descriptor.rb +322 -0
  161. data/lib/aspose-email-cloud/models/mapi_property_descriptor.rb +224 -0
  162. data/lib/aspose-email-cloud/models/mapi_property_dto.rb +237 -0
  163. data/lib/aspose-email-cloud/models/mapi_recipient_dto.rb +257 -0
  164. data/lib/aspose-email-cloud/models/mapi_response_type_property_dto.rb +255 -0
  165. data/lib/aspose-email-cloud/models/mapi_string_property_dto.rb +250 -0
  166. data/lib/aspose-email-cloud/models/mime_response.rb +213 -210
  167. data/lib/aspose-email-cloud/models/monthly_recurrence_pattern_dto.rb +350 -0
  168. data/lib/aspose-email-cloud/models/move_email_message_rq.rb +302 -0
  169. data/lib/aspose-email-cloud/models/move_email_thread_rq.rb +276 -0
  170. data/lib/aspose-email-cloud/models/name_value_pair.rb +226 -0
  171. data/lib/aspose-email-cloud/models/object_exist.rb +235 -233
  172. data/lib/aspose-email-cloud/models/phone_number.rb +244 -0
  173. data/lib/aspose-email-cloud/models/postal_address.rb +353 -0
  174. data/lib/aspose-email-cloud/models/primitive_object.rb +104 -101
  175. data/lib/aspose-email-cloud/models/recurrence_pattern_dto.rb +296 -0
  176. data/lib/aspose-email-cloud/models/reminder_attendee.rb +213 -0
  177. data/lib/aspose-email-cloud/models/reminder_trigger.rb +249 -0
  178. data/lib/aspose-email-cloud/models/requests/add_calendar_attachment_request_data.rb +99 -89
  179. data/lib/aspose-email-cloud/models/requests/add_contact_attachment_request_data.rb +109 -96
  180. data/lib/aspose-email-cloud/models/requests/add_email_attachment_request_data.rb +99 -89
  181. data/lib/aspose-email-cloud/models/requests/add_mapi_attachment_request_data.rb +99 -89
  182. data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_request_data.rb +79 -75
  183. data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb +79 -75
  184. data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_model_request_data.rb +79 -0
  185. data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_ocr_data_model_request_data.rb +79 -0
  186. data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_request_data.rb +79 -75
  187. data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_storage_request_data.rb +79 -75
  188. data/lib/aspose-email-cloud/models/requests/ai_name_complete_request_data.rb +110 -91
  189. data/lib/aspose-email-cloud/models/requests/ai_name_expand_parsed_request_data.rb +79 -75
  190. data/lib/aspose-email-cloud/models/requests/ai_name_expand_request_data.rb +110 -91
  191. data/lib/aspose-email-cloud/models/requests/ai_name_format_parsed_request_data.rb +79 -75
  192. data/lib/aspose-email-cloud/models/requests/ai_name_format_request_data.rb +116 -94
  193. data/lib/aspose-email-cloud/models/requests/ai_name_genderize_parsed_request_data.rb +79 -75
  194. data/lib/aspose-email-cloud/models/requests/ai_name_genderize_request_data.rb +110 -91
  195. data/lib/aspose-email-cloud/models/requests/ai_name_match_parsed_request_data.rb +79 -75
  196. data/lib/aspose-email-cloud/models/requests/ai_name_match_request_data.rb +121 -99
  197. data/lib/aspose-email-cloud/models/requests/ai_name_parse_email_address_request_data.rb +110 -91
  198. data/lib/aspose-email-cloud/models/requests/ai_name_parse_request_data.rb +110 -91
  199. data/lib/aspose-email-cloud/models/requests/append_email_message_request_data.rb +79 -75
  200. data/lib/aspose-email-cloud/models/requests/append_email_model_message_request_data.rb +79 -0
  201. data/lib/aspose-email-cloud/models/requests/append_mime_message_request_data.rb +79 -75
  202. data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_alternate_request_data.rb +79 -0
  203. data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_file_request_data.rb +89 -0
  204. data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_mapi_model_request_data.rb +79 -0
  205. data/lib/aspose-email-cloud/models/requests/convert_calendar_request_data.rb +90 -0
  206. data/lib/aspose-email-cloud/models/requests/convert_contact_model_to_file_request_data.rb +89 -0
  207. data/lib/aspose-email-cloud/models/requests/convert_contact_model_to_mapi_model_request_data.rb +79 -0
  208. data/lib/aspose-email-cloud/models/requests/convert_contact_request_data.rb +100 -0
  209. data/lib/aspose-email-cloud/models/requests/convert_email_model_to_file_request_data.rb +89 -0
  210. data/lib/aspose-email-cloud/models/requests/convert_email_model_to_mapi_model_request_data.rb +79 -0
  211. data/lib/aspose-email-cloud/models/requests/convert_email_request_data.rb +90 -0
  212. data/lib/aspose-email-cloud/models/requests/convert_mapi_calendar_model_to_calendar_model_request_data.rb +79 -0
  213. data/lib/aspose-email-cloud/models/requests/convert_mapi_calendar_model_to_file_request_data.rb +89 -0
  214. data/lib/aspose-email-cloud/models/requests/convert_mapi_contact_model_to_contact_model_request_data.rb +79 -0
  215. data/lib/aspose-email-cloud/models/requests/convert_mapi_contact_model_to_file_request_data.rb +89 -0
  216. data/lib/aspose-email-cloud/models/requests/convert_mapi_message_model_to_email_model_request_data.rb +79 -0
  217. data/lib/aspose-email-cloud/models/requests/convert_mapi_message_model_to_file_request_data.rb +89 -0
  218. data/lib/aspose-email-cloud/models/requests/copy_file_request_data.rb +107 -92
  219. data/lib/aspose-email-cloud/models/requests/copy_folder_request_data.rb +101 -89
  220. data/lib/aspose-email-cloud/models/requests/create_calendar_request_data.rb +89 -82
  221. data/lib/aspose-email-cloud/models/requests/create_contact_request_data.rb +99 -89
  222. data/lib/aspose-email-cloud/models/requests/create_email_folder_request_data.rb +79 -75
  223. data/lib/aspose-email-cloud/models/requests/create_email_request_data.rb +89 -82
  224. data/lib/aspose-email-cloud/models/requests/create_folder_request_data.rb +84 -78
  225. data/lib/aspose-email-cloud/models/requests/create_mapi_request_data.rb +89 -82
  226. data/lib/aspose-email-cloud/models/requests/delete_calendar_property_request_data.rb +109 -96
  227. data/lib/aspose-email-cloud/models/requests/delete_contact_property_request_data.rb +119 -103
  228. data/lib/aspose-email-cloud/models/requests/delete_email_folder_request_data.rb +79 -75
  229. data/lib/aspose-email-cloud/models/requests/delete_email_message_request_data.rb +79 -75
  230. data/lib/aspose-email-cloud/models/requests/delete_email_thread_request_data.rb +89 -0
  231. data/lib/aspose-email-cloud/models/requests/delete_file_request_data.rb +90 -81
  232. data/lib/aspose-email-cloud/models/requests/delete_folder_request_data.rb +90 -81
  233. data/lib/aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb +99 -89
  234. data/lib/aspose-email-cloud/models/requests/delete_mapi_properties_request_data.rb +89 -82
  235. data/lib/aspose-email-cloud/models/requests/discover_email_config_oauth_request_data.rb +79 -0
  236. data/lib/aspose-email-cloud/models/requests/discover_email_config_password_request_data.rb +79 -0
  237. data/lib/aspose-email-cloud/models/requests/discover_email_config_request_data.rb +86 -0
  238. data/lib/aspose-email-cloud/models/requests/download_file_request_data.rb +90 -81
  239. data/lib/aspose-email-cloud/models/requests/email_request.rb +75 -75
  240. data/lib/aspose-email-cloud/models/requests/fetch_email_message_request_data.rb +115 -93
  241. data/lib/aspose-email-cloud/models/requests/fetch_email_model_request_data.rb +115 -0
  242. data/lib/aspose-email-cloud/models/requests/fetch_email_thread_messages_request_data.rb +114 -0
  243. data/lib/aspose-email-cloud/models/requests/get_calendar_as_file_request_data.rb +101 -0
  244. data/lib/aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb +101 -88
  245. data/lib/aspose-email-cloud/models/requests/get_calendar_file_as_mapi_model_request_data.rb +80 -0
  246. data/lib/aspose-email-cloud/models/requests/get_calendar_file_as_model_request_data.rb +80 -0
  247. data/lib/aspose-email-cloud/models/requests/get_calendar_list_request_data.rb +108 -95
  248. data/lib/aspose-email-cloud/models/requests/get_calendar_model_as_alternate_request_data.rb +107 -0
  249. data/lib/aspose-email-cloud/models/requests/get_calendar_model_list_request_data.rb +98 -0
  250. data/lib/aspose-email-cloud/models/requests/get_calendar_model_request_data.rb +91 -0
  251. data/lib/aspose-email-cloud/models/requests/get_calendar_request_data.rb +91 -81
  252. data/lib/aspose-email-cloud/models/requests/get_contact_as_file_request_data.rb +111 -0
  253. data/lib/aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb +111 -95
  254. data/lib/aspose-email-cloud/models/requests/get_contact_file_as_mapi_model_request_data.rb +90 -0
  255. data/lib/aspose-email-cloud/models/requests/get_contact_file_as_model_request_data.rb +90 -0
  256. data/lib/aspose-email-cloud/models/requests/get_contact_list_request_data.rb +103 -87
  257. data/lib/aspose-email-cloud/models/requests/get_contact_model_list_request_data.rb +103 -0
  258. data/lib/aspose-email-cloud/models/requests/get_contact_model_request_data.rb +101 -0
  259. data/lib/aspose-email-cloud/models/requests/get_contact_properties_request_data.rb +101 -88
  260. data/lib/aspose-email-cloud/models/requests/get_disc_usage_request_data.rb +74 -71
  261. data/lib/aspose-email-cloud/models/requests/get_email_as_file_request_data.rb +101 -0
  262. data/lib/aspose-email-cloud/models/requests/get_email_attachment_request_data.rb +101 -88
  263. data/lib/aspose-email-cloud/models/requests/get_email_client_account_request_data.rb +102 -0
  264. data/lib/aspose-email-cloud/models/requests/get_email_client_multi_account_request_data.rb +102 -0
  265. data/lib/aspose-email-cloud/models/requests/get_email_file_as_mapi_model_request_data.rb +90 -0
  266. data/lib/aspose-email-cloud/models/requests/get_email_file_as_model_request_data.rb +80 -0
  267. data/lib/aspose-email-cloud/models/requests/get_email_model_list_request_data.rb +103 -0
  268. data/lib/aspose-email-cloud/models/requests/get_email_model_request_data.rb +101 -0
  269. data/lib/aspose-email-cloud/models/requests/get_email_property_request_data.rb +101 -88
  270. data/lib/aspose-email-cloud/models/requests/get_email_request_data.rb +91 -81
  271. data/lib/aspose-email-cloud/models/requests/get_file_versions_request_data.rb +84 -78
  272. data/lib/aspose-email-cloud/models/requests/get_files_list_request_data.rb +84 -78
  273. data/lib/aspose-email-cloud/models/requests/get_mapi_attachment_request_data.rb +101 -88
  274. data/lib/aspose-email-cloud/models/requests/get_mapi_attachments_request_data.rb +91 -81
  275. data/lib/aspose-email-cloud/models/requests/get_mapi_calendar_model_request_data.rb +91 -0
  276. data/lib/aspose-email-cloud/models/requests/get_mapi_contact_model_request_data.rb +101 -0
  277. data/lib/aspose-email-cloud/models/requests/get_mapi_list_request_data.rb +93 -80
  278. data/lib/aspose-email-cloud/models/requests/get_mapi_message_model_request_data.rb +101 -0
  279. data/lib/aspose-email-cloud/models/requests/get_mapi_properties_request_data.rb +91 -81
  280. data/lib/aspose-email-cloud/models/requests/http_request.rb +51 -51
  281. data/lib/aspose-email-cloud/models/requests/is_email_address_disposable_request_data.rb +79 -0
  282. data/lib/aspose-email-cloud/models/requests/list_email_folders_request_data.rb +104 -88
  283. data/lib/aspose-email-cloud/models/requests/list_email_messages_request_data.rb +127 -105
  284. data/lib/aspose-email-cloud/models/requests/list_email_models_request_data.rb +122 -0
  285. data/lib/aspose-email-cloud/models/requests/list_email_threads_request_data.rb +121 -0
  286. data/lib/aspose-email-cloud/models/requests/move_email_message_request_data.rb +79 -0
  287. data/lib/aspose-email-cloud/models/requests/move_email_thread_request_data.rb +89 -0
  288. data/lib/aspose-email-cloud/models/requests/move_file_request_data.rb +107 -92
  289. data/lib/aspose-email-cloud/models/requests/move_folder_request_data.rb +101 -89
  290. data/lib/aspose-email-cloud/models/requests/object_exists_request_data.rb +90 -81
  291. data/lib/aspose-email-cloud/models/requests/save_calendar_model_request_data.rb +89 -0
  292. data/lib/aspose-email-cloud/models/requests/save_contact_model_request_data.rb +99 -0
  293. data/lib/aspose-email-cloud/models/requests/save_email_client_account_request_data.rb +79 -0
  294. data/lib/aspose-email-cloud/models/requests/save_email_client_multi_account_request_data.rb +79 -0
  295. data/lib/aspose-email-cloud/models/requests/save_email_model_request_data.rb +99 -0
  296. data/lib/aspose-email-cloud/models/requests/save_mail_account_request_data.rb +79 -75
  297. data/lib/aspose-email-cloud/models/requests/save_mail_o_auth_account_request_data.rb +79 -75
  298. data/lib/aspose-email-cloud/models/requests/save_mapi_calendar_model_request_data.rb +99 -0
  299. data/lib/aspose-email-cloud/models/requests/save_mapi_contact_model_request_data.rb +99 -0
  300. data/lib/aspose-email-cloud/models/requests/save_mapi_message_model_request_data.rb +99 -0
  301. data/lib/aspose-email-cloud/models/requests/send_email_mime_request_data.rb +79 -75
  302. data/lib/aspose-email-cloud/models/requests/send_email_model_request_data.rb +79 -0
  303. data/lib/aspose-email-cloud/models/requests/send_email_request_data.rb +79 -75
  304. data/lib/aspose-email-cloud/models/requests/set_email_property_request_data.rb +99 -89
  305. data/lib/aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb +79 -75
  306. data/lib/aspose-email-cloud/models/requests/set_email_thread_read_flag_request_data.rb +89 -0
  307. data/lib/aspose-email-cloud/models/requests/storage_exists_request_data.rb +78 -75
  308. data/lib/aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb +89 -82
  309. data/lib/aspose-email-cloud/models/requests/update_contact_properties_request_data.rb +99 -89
  310. data/lib/aspose-email-cloud/models/requests/update_mapi_properties_request_data.rb +89 -82
  311. data/lib/aspose-email-cloud/models/requests/upload_file_request_data.rb +96 -87
  312. data/lib/aspose-email-cloud/models/save_email_account_request.rb +434 -431
  313. data/lib/aspose-email-cloud/models/save_o_auth_email_account_request.rb +521 -505
  314. data/lib/aspose-email-cloud/models/send_email_base_request.rb +281 -278
  315. data/lib/aspose-email-cloud/models/send_email_mime_base_request.rb +300 -297
  316. data/lib/aspose-email-cloud/models/send_email_model_rq.rb +276 -0
  317. data/lib/aspose-email-cloud/models/set_email_property_request.rb +231 -228
  318. data/lib/aspose-email-cloud/models/set_message_read_flag_account_base_request.rb +318 -315
  319. data/lib/aspose-email-cloud/models/storage_exist.rb +217 -215
  320. data/lib/aspose-email-cloud/models/storage_file.rb +274 -272
  321. data/lib/aspose-email-cloud/models/storage_file_location.rb +263 -260
  322. data/lib/aspose-email-cloud/models/storage_file_rq_of_email_client_account.rb +225 -0
  323. data/lib/aspose-email-cloud/models/storage_file_rq_of_email_client_multi_account.rb +225 -0
  324. data/lib/aspose-email-cloud/models/storage_folder_location.rb +226 -223
  325. data/lib/aspose-email-cloud/models/storage_model_of_calendar_dto.rb +225 -0
  326. data/lib/aspose-email-cloud/models/storage_model_of_contact_dto.rb +225 -0
  327. data/lib/aspose-email-cloud/models/storage_model_of_email_dto.rb +225 -0
  328. data/lib/aspose-email-cloud/models/storage_model_rq_of_calendar_dto.rb +225 -0
  329. data/lib/aspose-email-cloud/models/storage_model_rq_of_contact_dto.rb +225 -0
  330. data/lib/aspose-email-cloud/models/storage_model_rq_of_email_dto.rb +225 -0
  331. data/lib/aspose-email-cloud/models/storage_model_rq_of_mapi_calendar_dto.rb +225 -0
  332. data/lib/aspose-email-cloud/models/storage_model_rq_of_mapi_contact_dto.rb +225 -0
  333. data/lib/aspose-email-cloud/models/storage_model_rq_of_mapi_message_dto.rb +225 -0
  334. data/lib/aspose-email-cloud/models/task_regenerating_pattern_dto.rb +314 -0
  335. data/lib/aspose-email-cloud/models/url.rb +244 -0
  336. data/lib/aspose-email-cloud/models/value_response.rb +213 -210
  337. data/lib/aspose-email-cloud/models/value_t_of_boolean.rb +217 -0
  338. data/lib/aspose-email-cloud/models/weekly_recurrence_pattern_dto.rb +311 -0
  339. data/lib/aspose-email-cloud/models/yearly_recurrence_pattern_dto.rb +368 -0
  340. data/lib/aspose-email-cloud/version.rb +15 -15
  341. metadata +237 -52
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d31a692ef9f2f963c38dc34d7d541109cd01e0a9e7fa098b408a0458fb36af66
4
- data.tar.gz: 15c95c328ea2a662394a3004ef01d70c1b4a0e3257b3da3ad02deed707c7fccb
3
+ metadata.gz: 82dd62b7db78d2e56e3d124d244465278350c6dd7539170b6b5d4033949ec556
4
+ data.tar.gz: 597cd19181b9d924cf6f33a911d6c7c97d75853d45217e96769d818d0887bf5f
5
5
  SHA512:
6
- metadata.gz: b0265de083457e840ffbc51cd9a2d496c6102df8b011fcac202638565aa3f176fcd4a1a8984597d081cabc1474f96912890279f560ebc598bbc3127f5ed7713a
7
- data.tar.gz: 19803109d67c19664b2bf8e8ceea1750b5ff9ae22b18d291c14f4fb0e09bec433364026abcf2471ba7cd8fa36ae51a27b19218eb9697e3893ef2aa1c11155d04
6
+ metadata.gz: 8b522e4e69530f1425be315fd0b205bb983aca5d62a041165b78e3290d63fd3703c2708ac45ec963e878c502060532eead2e2ae71f85e98b08b99fdeb5d3eb2d
7
+ data.tar.gz: e871221e4bf1b6a8e7779881830f98bd962d5b73170d3fb21245b2f5dc7519e506eddf6837c3c0bac8c335196a8fa3cf9411b7e8c84a0ddf979fc10cee2637fb
@@ -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
@@ -49,15 +49,40 @@ require_relative './aspose-email-cloud/models/ai_name_mismatch'
49
49
  require_relative './aspose-email-cloud/models/ai_name_parsed_rq'
50
50
  require_relative './aspose-email-cloud/models/ai_name_weighted'
51
51
  require_relative './aspose-email-cloud/models/ai_name_weighted_variants'
52
+ require_relative './aspose-email-cloud/models/associated_person'
53
+ require_relative './aspose-email-cloud/models/attachment_base'
52
54
  require_relative './aspose-email-cloud/models/base_object'
55
+ require_relative './aspose-email-cloud/models/calendar_dto'
56
+ require_relative './aspose-email-cloud/models/calendar_dto_alternate_rq'
57
+ require_relative './aspose-email-cloud/models/calendar_reminder'
58
+ require_relative './aspose-email-cloud/models/contact_dto'
59
+ require_relative './aspose-email-cloud/models/contact_photo'
60
+ require_relative './aspose-email-cloud/models/content_type'
61
+ require_relative './aspose-email-cloud/models/content_type_parameter'
53
62
  require_relative './aspose-email-cloud/models/create_email_request'
63
+ require_relative './aspose-email-cloud/models/customer_event'
54
64
  require_relative './aspose-email-cloud/models/disc_usage'
65
+ require_relative './aspose-email-cloud/models/discover_email_config_rq'
66
+ require_relative './aspose-email-cloud/models/email_account_config'
55
67
  require_relative './aspose-email-cloud/models/email_account_request'
68
+ require_relative './aspose-email-cloud/models/email_address'
69
+ require_relative './aspose-email-cloud/models/email_client_account'
70
+ require_relative './aspose-email-cloud/models/email_client_account_credentials'
71
+ require_relative './aspose-email-cloud/models/email_client_multi_account'
56
72
  require_relative './aspose-email-cloud/models/email_document'
57
73
  require_relative './aspose-email-cloud/models/email_document_response'
74
+ require_relative './aspose-email-cloud/models/email_dto'
58
75
  require_relative './aspose-email-cloud/models/email_properties'
59
76
  require_relative './aspose-email-cloud/models/email_property'
60
77
  require_relative './aspose-email-cloud/models/email_property_response'
78
+ require_relative './aspose-email-cloud/models/email_thread'
79
+ require_relative './aspose-email-cloud/models/enum_with_custom_of_associated_person_category'
80
+ require_relative './aspose-email-cloud/models/enum_with_custom_of_email_address_category'
81
+ require_relative './aspose-email-cloud/models/enum_with_custom_of_event_category'
82
+ require_relative './aspose-email-cloud/models/enum_with_custom_of_instant_messenger_category'
83
+ require_relative './aspose-email-cloud/models/enum_with_custom_of_phone_number_category'
84
+ require_relative './aspose-email-cloud/models/enum_with_custom_of_postal_address_category'
85
+ require_relative './aspose-email-cloud/models/enum_with_custom_of_url_category'
61
86
  require_relative './aspose-email-cloud/models/error'
62
87
  require_relative './aspose-email-cloud/models/error_details'
63
88
  require_relative './aspose-email-cloud/models/file_versions'
@@ -65,47 +90,146 @@ require_relative './aspose-email-cloud/models/files_list'
65
90
  require_relative './aspose-email-cloud/models/files_upload_result'
66
91
  require_relative './aspose-email-cloud/models/hierarchical_object_request'
67
92
  require_relative './aspose-email-cloud/models/hierarchical_object_response'
93
+ require_relative './aspose-email-cloud/models/instant_messenger_address'
68
94
  require_relative './aspose-email-cloud/models/link'
69
95
  require_relative './aspose-email-cloud/models/list_response_of_ai_bcr_ocr_data'
70
96
  require_relative './aspose-email-cloud/models/list_response_of_ai_name_component'
71
97
  require_relative './aspose-email-cloud/models/list_response_of_ai_name_extracted'
72
98
  require_relative './aspose-email-cloud/models/list_response_of_ai_name_gender_hypothesis'
99
+ require_relative './aspose-email-cloud/models/list_response_of_contact_dto'
100
+ require_relative './aspose-email-cloud/models/list_response_of_email_account_config'
101
+ require_relative './aspose-email-cloud/models/list_response_of_email_dto'
102
+ require_relative './aspose-email-cloud/models/list_response_of_email_thread'
73
103
  require_relative './aspose-email-cloud/models/list_response_of_hierarchical_object'
74
104
  require_relative './aspose-email-cloud/models/list_response_of_hierarchical_object_response'
75
105
  require_relative './aspose-email-cloud/models/list_response_of_mail_server_folder'
76
106
  require_relative './aspose-email-cloud/models/list_response_of_storage_file_location'
107
+ require_relative './aspose-email-cloud/models/list_response_of_storage_model_of_calendar_dto'
108
+ require_relative './aspose-email-cloud/models/list_response_of_storage_model_of_contact_dto'
109
+ require_relative './aspose-email-cloud/models/list_response_of_storage_model_of_email_dto'
77
110
  require_relative './aspose-email-cloud/models/list_response_of_string'
111
+ require_relative './aspose-email-cloud/models/mail_address'
78
112
  require_relative './aspose-email-cloud/models/mail_server_folder'
113
+ require_relative './aspose-email-cloud/models/mapi_attachment_dto'
114
+ require_relative './aspose-email-cloud/models/mapi_calendar_attendees_dto'
115
+ require_relative './aspose-email-cloud/models/mapi_calendar_event_recurrence_dto'
116
+ require_relative './aspose-email-cloud/models/mapi_calendar_exception_info_dto'
117
+ require_relative './aspose-email-cloud/models/mapi_calendar_recurrence_pattern_dto'
118
+ require_relative './aspose-email-cloud/models/mapi_calendar_time_zone_dto'
119
+ require_relative './aspose-email-cloud/models/mapi_calendar_time_zone_info_dto'
120
+ require_relative './aspose-email-cloud/models/mapi_calendar_time_zone_rule_dto'
121
+ require_relative './aspose-email-cloud/models/mapi_contact_electronic_address_dto'
122
+ require_relative './aspose-email-cloud/models/mapi_contact_electronic_address_property_set_dto'
123
+ require_relative './aspose-email-cloud/models/mapi_contact_event_property_set_dto'
124
+ require_relative './aspose-email-cloud/models/mapi_contact_name_property_set_dto'
125
+ require_relative './aspose-email-cloud/models/mapi_contact_other_property_set_dto'
126
+ require_relative './aspose-email-cloud/models/mapi_contact_personal_info_property_set_dto'
127
+ require_relative './aspose-email-cloud/models/mapi_contact_physical_address_dto'
128
+ require_relative './aspose-email-cloud/models/mapi_contact_physical_address_property_set_dto'
129
+ require_relative './aspose-email-cloud/models/mapi_contact_professional_property_set_dto'
130
+ require_relative './aspose-email-cloud/models/mapi_contact_telephone_property_set_dto'
131
+ require_relative './aspose-email-cloud/models/mapi_electronic_address_dto'
132
+ require_relative './aspose-email-cloud/models/mapi_message_item_base_dto'
133
+ require_relative './aspose-email-cloud/models/mapi_property_descriptor'
134
+ require_relative './aspose-email-cloud/models/mapi_property_dto'
135
+ require_relative './aspose-email-cloud/models/mapi_recipient_dto'
79
136
  require_relative './aspose-email-cloud/models/mime_response'
137
+ require_relative './aspose-email-cloud/models/name_value_pair'
80
138
  require_relative './aspose-email-cloud/models/object_exist'
139
+ require_relative './aspose-email-cloud/models/phone_number'
140
+ require_relative './aspose-email-cloud/models/postal_address'
141
+ require_relative './aspose-email-cloud/models/recurrence_pattern_dto'
142
+ require_relative './aspose-email-cloud/models/reminder_attendee'
143
+ require_relative './aspose-email-cloud/models/reminder_trigger'
81
144
  require_relative './aspose-email-cloud/models/set_email_property_request'
82
145
  require_relative './aspose-email-cloud/models/storage_exist'
83
146
  require_relative './aspose-email-cloud/models/storage_file'
147
+ require_relative './aspose-email-cloud/models/storage_file_rq_of_email_client_account'
148
+ require_relative './aspose-email-cloud/models/storage_file_rq_of_email_client_multi_account'
84
149
  require_relative './aspose-email-cloud/models/storage_folder_location'
150
+ require_relative './aspose-email-cloud/models/storage_model_of_calendar_dto'
151
+ require_relative './aspose-email-cloud/models/storage_model_of_contact_dto'
152
+ require_relative './aspose-email-cloud/models/storage_model_of_email_dto'
153
+ require_relative './aspose-email-cloud/models/storage_model_rq_of_calendar_dto'
154
+ require_relative './aspose-email-cloud/models/storage_model_rq_of_contact_dto'
155
+ require_relative './aspose-email-cloud/models/storage_model_rq_of_email_dto'
156
+ require_relative './aspose-email-cloud/models/storage_model_rq_of_mapi_calendar_dto'
157
+ require_relative './aspose-email-cloud/models/storage_model_rq_of_mapi_contact_dto'
158
+ require_relative './aspose-email-cloud/models/storage_model_rq_of_mapi_message_dto'
159
+ require_relative './aspose-email-cloud/models/url'
85
160
  require_relative './aspose-email-cloud/models/value_response'
161
+ require_relative './aspose-email-cloud/models/value_t_of_boolean'
86
162
  require_relative './aspose-email-cloud/models/ai_bcr_base64_image'
87
163
  require_relative './aspose-email-cloud/models/ai_bcr_base64_rq'
88
164
  require_relative './aspose-email-cloud/models/ai_bcr_image_storage_file'
165
+ require_relative './aspose-email-cloud/models/ai_bcr_parse_ocr_data_rq'
89
166
  require_relative './aspose-email-cloud/models/ai_bcr_storage_image_rq'
90
167
  require_relative './aspose-email-cloud/models/ai_name_parsed_match_rq'
168
+ require_relative './aspose-email-cloud/models/alternate_view'
91
169
  require_relative './aspose-email-cloud/models/append_email_account_base_request'
170
+ require_relative './aspose-email-cloud/models/attachment'
171
+ require_relative './aspose-email-cloud/models/calendar_dto_list'
172
+ require_relative './aspose-email-cloud/models/contact_dto_list'
92
173
  require_relative './aspose-email-cloud/models/create_folder_base_request'
174
+ require_relative './aspose-email-cloud/models/daily_recurrence_pattern_dto'
175
+ require_relative './aspose-email-cloud/models/delete_email_thread_account_rq'
93
176
  require_relative './aspose-email-cloud/models/delete_folder_base_request'
94
177
  require_relative './aspose-email-cloud/models/delete_message_base_request'
178
+ require_relative './aspose-email-cloud/models/discover_email_config_oauth'
179
+ require_relative './aspose-email-cloud/models/discover_email_config_password'
180
+ require_relative './aspose-email-cloud/models/email_account_config_list'
181
+ require_relative './aspose-email-cloud/models/email_client_account_oauth_credentials'
182
+ require_relative './aspose-email-cloud/models/email_client_account_password_credentials'
183
+ require_relative './aspose-email-cloud/models/email_dto_list'
184
+ require_relative './aspose-email-cloud/models/email_thread_list'
185
+ require_relative './aspose-email-cloud/models/email_thread_read_flag_rq'
95
186
  require_relative './aspose-email-cloud/models/file_version'
96
187
  require_relative './aspose-email-cloud/models/hierarchical_object'
97
188
  require_relative './aspose-email-cloud/models/indexed_hierarchical_object'
98
189
  require_relative './aspose-email-cloud/models/indexed_primitive_object'
190
+ require_relative './aspose-email-cloud/models/linked_resource'
191
+ require_relative './aspose-email-cloud/models/mapi_binary_property_dto'
192
+ require_relative './aspose-email-cloud/models/mapi_boolean_property_dto'
193
+ require_relative './aspose-email-cloud/models/mapi_calendar_daily_recurrence_pattern_dto'
194
+ require_relative './aspose-email-cloud/models/mapi_calendar_dto'
195
+ require_relative './aspose-email-cloud/models/mapi_calendar_weekly_recurrence_pattern_dto'
196
+ require_relative './aspose-email-cloud/models/mapi_calendar_yearly_and_monthly_recurrence_pattern_dto'
197
+ require_relative './aspose-email-cloud/models/mapi_contact_dto'
198
+ require_relative './aspose-email-cloud/models/mapi_contact_photo_dto'
199
+ require_relative './aspose-email-cloud/models/mapi_date_time_property_dto'
200
+ require_relative './aspose-email-cloud/models/mapi_file_as_property_dto'
201
+ require_relative './aspose-email-cloud/models/mapi_importance_property_dto'
202
+ require_relative './aspose-email-cloud/models/mapi_int_property_dto'
203
+ require_relative './aspose-email-cloud/models/mapi_known_property_descriptor'
204
+ require_relative './aspose-email-cloud/models/mapi_legacy_free_busy_property_dto'
205
+ require_relative './aspose-email-cloud/models/mapi_message_dto'
206
+ require_relative './aspose-email-cloud/models/mapi_multi_int_property_dto'
207
+ require_relative './aspose-email-cloud/models/mapi_multi_string_property_dto'
208
+ require_relative './aspose-email-cloud/models/mapi_physical_address_index_property_dto'
209
+ require_relative './aspose-email-cloud/models/mapi_pid_property_descriptor'
210
+ require_relative './aspose-email-cloud/models/mapi_response_type_property_dto'
211
+ require_relative './aspose-email-cloud/models/mapi_string_property_dto'
212
+ require_relative './aspose-email-cloud/models/monthly_recurrence_pattern_dto'
213
+ require_relative './aspose-email-cloud/models/move_email_message_rq'
214
+ require_relative './aspose-email-cloud/models/move_email_thread_rq'
99
215
  require_relative './aspose-email-cloud/models/primitive_object'
100
216
  require_relative './aspose-email-cloud/models/save_email_account_request'
101
217
  require_relative './aspose-email-cloud/models/save_o_auth_email_account_request'
102
218
  require_relative './aspose-email-cloud/models/send_email_base_request'
103
219
  require_relative './aspose-email-cloud/models/send_email_mime_base_request'
220
+ require_relative './aspose-email-cloud/models/send_email_model_rq'
104
221
  require_relative './aspose-email-cloud/models/set_message_read_flag_account_base_request'
105
222
  require_relative './aspose-email-cloud/models/storage_file_location'
223
+ require_relative './aspose-email-cloud/models/task_regenerating_pattern_dto'
224
+ require_relative './aspose-email-cloud/models/weekly_recurrence_pattern_dto'
225
+ require_relative './aspose-email-cloud/models/yearly_recurrence_pattern_dto'
106
226
  require_relative './aspose-email-cloud/models/ai_bcr_parse_storage_rq'
107
227
  require_relative './aspose-email-cloud/models/append_email_base_request'
108
228
  require_relative './aspose-email-cloud/models/append_email_mime_base_request'
229
+ require_relative './aspose-email-cloud/models/append_email_model_rq'
230
+ require_relative './aspose-email-cloud/models/mapi_pid_lid_property_descriptor'
231
+ require_relative './aspose-email-cloud/models/mapi_pid_name_property_descriptor'
232
+ require_relative './aspose-email-cloud/models/mapi_pid_tag_property_descriptor'
109
233
 
110
234
  # APIs
111
235
  require_relative 'aspose-email-cloud/api/email_api'
@@ -118,6 +242,8 @@ require_relative './aspose-email-cloud/models/requests/add_email_attachment_requ
118
242
  require_relative './aspose-email-cloud/models/requests/add_mapi_attachment_request_data.rb'
119
243
  require_relative './aspose-email-cloud/models/requests/ai_bcr_ocr_request_data.rb'
120
244
  require_relative './aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb'
245
+ require_relative './aspose-email-cloud/models/requests/ai_bcr_parse_model_request_data.rb'
246
+ require_relative './aspose-email-cloud/models/requests/ai_bcr_parse_ocr_data_model_request_data.rb'
121
247
  require_relative './aspose-email-cloud/models/requests/ai_bcr_parse_request_data.rb'
122
248
  require_relative './aspose-email-cloud/models/requests/ai_bcr_parse_storage_request_data.rb'
123
249
  require_relative './aspose-email-cloud/models/requests/ai_name_complete_request_data.rb'
@@ -132,7 +258,24 @@ require_relative './aspose-email-cloud/models/requests/ai_name_match_request_dat
132
258
  require_relative './aspose-email-cloud/models/requests/ai_name_parse_email_address_request_data.rb'
133
259
  require_relative './aspose-email-cloud/models/requests/ai_name_parse_request_data.rb'
134
260
  require_relative './aspose-email-cloud/models/requests/append_email_message_request_data.rb'
261
+ require_relative './aspose-email-cloud/models/requests/append_email_model_message_request_data.rb'
135
262
  require_relative './aspose-email-cloud/models/requests/append_mime_message_request_data.rb'
263
+ require_relative './aspose-email-cloud/models/requests/convert_calendar_model_to_alternate_request_data.rb'
264
+ require_relative './aspose-email-cloud/models/requests/convert_calendar_model_to_file_request_data.rb'
265
+ require_relative './aspose-email-cloud/models/requests/convert_calendar_model_to_mapi_model_request_data.rb'
266
+ require_relative './aspose-email-cloud/models/requests/convert_calendar_request_data.rb'
267
+ require_relative './aspose-email-cloud/models/requests/convert_contact_model_to_file_request_data.rb'
268
+ require_relative './aspose-email-cloud/models/requests/convert_contact_model_to_mapi_model_request_data.rb'
269
+ require_relative './aspose-email-cloud/models/requests/convert_contact_request_data.rb'
270
+ require_relative './aspose-email-cloud/models/requests/convert_email_model_to_file_request_data.rb'
271
+ require_relative './aspose-email-cloud/models/requests/convert_email_model_to_mapi_model_request_data.rb'
272
+ require_relative './aspose-email-cloud/models/requests/convert_email_request_data.rb'
273
+ require_relative './aspose-email-cloud/models/requests/convert_mapi_calendar_model_to_calendar_model_request_data.rb'
274
+ require_relative './aspose-email-cloud/models/requests/convert_mapi_calendar_model_to_file_request_data.rb'
275
+ require_relative './aspose-email-cloud/models/requests/convert_mapi_contact_model_to_contact_model_request_data.rb'
276
+ require_relative './aspose-email-cloud/models/requests/convert_mapi_contact_model_to_file_request_data.rb'
277
+ require_relative './aspose-email-cloud/models/requests/convert_mapi_message_model_to_email_model_request_data.rb'
278
+ require_relative './aspose-email-cloud/models/requests/convert_mapi_message_model_to_file_request_data.rb'
136
279
  require_relative './aspose-email-cloud/models/requests/copy_file_request_data.rb'
137
280
  require_relative './aspose-email-cloud/models/requests/copy_folder_request_data.rb'
138
281
  require_relative './aspose-email-cloud/models/requests/create_calendar_request_data.rb'
@@ -145,41 +288,83 @@ require_relative './aspose-email-cloud/models/requests/delete_calendar_property_
145
288
  require_relative './aspose-email-cloud/models/requests/delete_contact_property_request_data.rb'
146
289
  require_relative './aspose-email-cloud/models/requests/delete_email_folder_request_data.rb'
147
290
  require_relative './aspose-email-cloud/models/requests/delete_email_message_request_data.rb'
291
+ require_relative './aspose-email-cloud/models/requests/delete_email_thread_request_data.rb'
148
292
  require_relative './aspose-email-cloud/models/requests/delete_file_request_data.rb'
149
293
  require_relative './aspose-email-cloud/models/requests/delete_folder_request_data.rb'
150
294
  require_relative './aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb'
151
295
  require_relative './aspose-email-cloud/models/requests/delete_mapi_properties_request_data.rb'
296
+ require_relative './aspose-email-cloud/models/requests/discover_email_config_oauth_request_data.rb'
297
+ require_relative './aspose-email-cloud/models/requests/discover_email_config_password_request_data.rb'
298
+ require_relative './aspose-email-cloud/models/requests/discover_email_config_request_data.rb'
152
299
  require_relative './aspose-email-cloud/models/requests/download_file_request_data.rb'
153
300
  require_relative './aspose-email-cloud/models/requests/email_request.rb'
154
301
  require_relative './aspose-email-cloud/models/requests/fetch_email_message_request_data.rb'
302
+ require_relative './aspose-email-cloud/models/requests/fetch_email_model_request_data.rb'
303
+ require_relative './aspose-email-cloud/models/requests/fetch_email_thread_messages_request_data.rb'
304
+ require_relative './aspose-email-cloud/models/requests/get_calendar_as_file_request_data.rb'
155
305
  require_relative './aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb'
306
+ require_relative './aspose-email-cloud/models/requests/get_calendar_file_as_mapi_model_request_data.rb'
307
+ require_relative './aspose-email-cloud/models/requests/get_calendar_file_as_model_request_data.rb'
156
308
  require_relative './aspose-email-cloud/models/requests/get_calendar_list_request_data.rb'
309
+ require_relative './aspose-email-cloud/models/requests/get_calendar_model_as_alternate_request_data.rb'
310
+ require_relative './aspose-email-cloud/models/requests/get_calendar_model_list_request_data.rb'
311
+ require_relative './aspose-email-cloud/models/requests/get_calendar_model_request_data.rb'
157
312
  require_relative './aspose-email-cloud/models/requests/get_calendar_request_data.rb'
313
+ require_relative './aspose-email-cloud/models/requests/get_contact_as_file_request_data.rb'
158
314
  require_relative './aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb'
315
+ require_relative './aspose-email-cloud/models/requests/get_contact_file_as_mapi_model_request_data.rb'
316
+ require_relative './aspose-email-cloud/models/requests/get_contact_file_as_model_request_data.rb'
159
317
  require_relative './aspose-email-cloud/models/requests/get_contact_list_request_data.rb'
318
+ require_relative './aspose-email-cloud/models/requests/get_contact_model_list_request_data.rb'
319
+ require_relative './aspose-email-cloud/models/requests/get_contact_model_request_data.rb'
160
320
  require_relative './aspose-email-cloud/models/requests/get_contact_properties_request_data.rb'
161
321
  require_relative './aspose-email-cloud/models/requests/get_disc_usage_request_data.rb'
322
+ require_relative './aspose-email-cloud/models/requests/get_email_as_file_request_data.rb'
162
323
  require_relative './aspose-email-cloud/models/requests/get_email_attachment_request_data.rb'
324
+ require_relative './aspose-email-cloud/models/requests/get_email_client_account_request_data.rb'
325
+ require_relative './aspose-email-cloud/models/requests/get_email_client_multi_account_request_data.rb'
326
+ require_relative './aspose-email-cloud/models/requests/get_email_file_as_mapi_model_request_data.rb'
327
+ require_relative './aspose-email-cloud/models/requests/get_email_file_as_model_request_data.rb'
328
+ require_relative './aspose-email-cloud/models/requests/get_email_model_list_request_data.rb'
329
+ require_relative './aspose-email-cloud/models/requests/get_email_model_request_data.rb'
163
330
  require_relative './aspose-email-cloud/models/requests/get_email_property_request_data.rb'
164
331
  require_relative './aspose-email-cloud/models/requests/get_email_request_data.rb'
165
332
  require_relative './aspose-email-cloud/models/requests/get_files_list_request_data.rb'
166
333
  require_relative './aspose-email-cloud/models/requests/get_file_versions_request_data.rb'
167
334
  require_relative './aspose-email-cloud/models/requests/get_mapi_attachments_request_data.rb'
168
335
  require_relative './aspose-email-cloud/models/requests/get_mapi_attachment_request_data.rb'
336
+ require_relative './aspose-email-cloud/models/requests/get_mapi_calendar_model_request_data.rb'
337
+ require_relative './aspose-email-cloud/models/requests/get_mapi_contact_model_request_data.rb'
169
338
  require_relative './aspose-email-cloud/models/requests/get_mapi_list_request_data.rb'
339
+ require_relative './aspose-email-cloud/models/requests/get_mapi_message_model_request_data.rb'
170
340
  require_relative './aspose-email-cloud/models/requests/get_mapi_properties_request_data.rb'
171
341
  require_relative './aspose-email-cloud/models/requests/http_request.rb'
342
+ require_relative './aspose-email-cloud/models/requests/is_email_address_disposable_request_data.rb'
172
343
  require_relative './aspose-email-cloud/models/requests/list_email_folders_request_data.rb'
173
344
  require_relative './aspose-email-cloud/models/requests/list_email_messages_request_data.rb'
345
+ require_relative './aspose-email-cloud/models/requests/list_email_models_request_data.rb'
346
+ require_relative './aspose-email-cloud/models/requests/list_email_threads_request_data.rb'
347
+ require_relative './aspose-email-cloud/models/requests/move_email_message_request_data.rb'
348
+ require_relative './aspose-email-cloud/models/requests/move_email_thread_request_data.rb'
174
349
  require_relative './aspose-email-cloud/models/requests/move_file_request_data.rb'
175
350
  require_relative './aspose-email-cloud/models/requests/move_folder_request_data.rb'
176
351
  require_relative './aspose-email-cloud/models/requests/object_exists_request_data.rb'
352
+ require_relative './aspose-email-cloud/models/requests/save_calendar_model_request_data.rb'
353
+ require_relative './aspose-email-cloud/models/requests/save_contact_model_request_data.rb'
354
+ require_relative './aspose-email-cloud/models/requests/save_email_client_account_request_data.rb'
355
+ require_relative './aspose-email-cloud/models/requests/save_email_client_multi_account_request_data.rb'
356
+ require_relative './aspose-email-cloud/models/requests/save_email_model_request_data.rb'
177
357
  require_relative './aspose-email-cloud/models/requests/save_mail_account_request_data.rb'
178
358
  require_relative './aspose-email-cloud/models/requests/save_mail_o_auth_account_request_data.rb'
359
+ require_relative './aspose-email-cloud/models/requests/save_mapi_calendar_model_request_data.rb'
360
+ require_relative './aspose-email-cloud/models/requests/save_mapi_contact_model_request_data.rb'
361
+ require_relative './aspose-email-cloud/models/requests/save_mapi_message_model_request_data.rb'
179
362
  require_relative './aspose-email-cloud/models/requests/send_email_mime_request_data.rb'
363
+ require_relative './aspose-email-cloud/models/requests/send_email_model_request_data.rb'
180
364
  require_relative './aspose-email-cloud/models/requests/send_email_request_data.rb'
181
365
  require_relative './aspose-email-cloud/models/requests/set_email_property_request_data.rb'
182
366
  require_relative './aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb'
367
+ require_relative './aspose-email-cloud/models/requests/set_email_thread_read_flag_request_data.rb'
183
368
  require_relative './aspose-email-cloud/models/requests/storage_exists_request_data.rb'
184
369
  require_relative './aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb'
185
370
  require_relative './aspose-email-cloud/models/requests/update_contact_properties_request_data.rb'
@@ -1,698 +1,1186 @@
1
-
2
- # ----------------------------------------------------------------------------
3
- # <copyright company="Aspose" file="email_api.rb">
4
- # Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
5
- # </copyright>
6
- # <summary>
7
- # Permission is hereby granted, free of charge, to any person obtaining a
8
- # copy of this software and associated documentation files (the "Software"),
9
- # to deal in the Software without restriction, including without limitation
10
- # the rights to use, copy, modify, merge, publish, distribute, sublicense,
11
- # and/or sell copies of the Software, and to permit persons to whom the
12
- # Software is furnished to do so, subject to the following conditions:
13
- #
14
- # The above copyright notice and this permission notice shall be included in
15
- # all copies or substantial portions of the Software.
16
- #
17
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
- # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23
- # DEALINGS IN THE SOFTWARE.
24
- # </summary>
25
- # ----------------------------------------------------------------------------
26
-
27
-
28
- require 'uri'
29
-
30
- module AsposeEmailCloud
31
- # Aspose.Email Cloud API
32
- class EmailApi
33
- attr_accessor :api_client
34
-
35
- # Initializes a new instance of the EmailApi class.
36
- # @param [String] app_key Key to access the server.
37
- # @param [String] app_sid ID to access the server.
38
- # @param [String] base_url Server URL.
39
- # @param [String] api_version Api version.
40
- # @param [Object] debug Debug switch [true, false].
41
- def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v3.0', debug = false)
42
- @api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
43
- end
44
-
45
- # Adds an attachment to iCalendar file
46
- # @param [AddCalendarAttachmentRequestData] request Request object.
47
- # @return [nil]
48
- def add_calendar_attachment(request)
49
- http_request = request.to_http_info(@api_client)
50
- make_request(http_request, :PUT, nil)
51
- nil
52
- end
53
-
54
- # Add attachment to contact document
55
- # @param [AddContactAttachmentRequestData] request Request object.
56
- # @return [nil]
57
- def add_contact_attachment(request)
58
- http_request = request.to_http_info(@api_client)
59
- make_request(http_request, :PUT, nil)
60
- nil
61
- end
62
-
63
- # Adds an attachment to Email document
64
- # @param [AddEmailAttachmentRequestData] request Request object.
65
- # @return [EmailDocumentResponse]
66
- def add_email_attachment(request)
67
- http_request = request.to_http_info(@api_client)
68
- make_request(http_request, :POST, 'EmailDocumentResponse')
69
- end
70
-
71
- # Add attachment to document
72
- # @param [AddMapiAttachmentRequestData] request Request object.
73
- # @return [nil]
74
- def add_mapi_attachment(request)
75
- http_request = request.to_http_info(@api_client)
76
- make_request(http_request, :PUT, nil)
77
- nil
78
- end
79
-
80
- # Ocr images
81
- # @param [AiBcrOcrRequestData] request Request object.
82
- # @return [ListResponseOfAiBcrOcrData]
83
- def ai_bcr_ocr(request)
84
- http_request = request.to_http_info(@api_client)
85
- make_request(http_request, :POST, 'ListResponseOfAiBcrOcrData')
86
- end
87
-
88
- # Ocr images from storage
89
- # @param [AiBcrOcrStorageRequestData] request Request object.
90
- # @return [ListResponseOfAiBcrOcrData]
91
- def ai_bcr_ocr_storage(request)
92
- http_request = request.to_http_info(@api_client)
93
- make_request(http_request, :POST, 'ListResponseOfAiBcrOcrData')
94
- end
95
-
96
- # Parse images to vCard properties
97
- # @param [AiBcrParseRequestData] request Request object.
98
- # @return [ListResponseOfHierarchicalObject]
99
- def ai_bcr_parse(request)
100
- http_request = request.to_http_info(@api_client)
101
- make_request(http_request, :POST, 'ListResponseOfHierarchicalObject')
102
- end
103
-
104
- # Parse images from storage to vCard files
105
- # @param [AiBcrParseStorageRequestData] request Request object.
106
- # @return [ListResponseOfStorageFileLocation]
107
- def ai_bcr_parse_storage(request)
108
- http_request = request.to_http_info(@api_client)
109
- make_request(http_request, :POST, 'ListResponseOfStorageFileLocation')
110
- end
111
-
112
- # The call proposes k most probable names for given starting characters
113
- # @param [AiNameCompleteRequestData] request Request object.
114
- # @return [AiNameWeightedVariants]
115
- def ai_name_complete(request)
116
- http_request = request.to_http_info(@api_client)
117
- make_request(http_request, :GET, 'AiNameWeightedVariants')
118
- end
119
-
120
- # Expands a person's name into a list of possible alternatives using options for expanding instructions
121
- # @param [AiNameExpandRequestData] request Request object.
122
- # @return [AiNameWeightedVariants]
123
- def ai_name_expand(request)
124
- http_request = request.to_http_info(@api_client)
125
- make_request(http_request, :GET, 'AiNameWeightedVariants')
126
- end
127
-
128
- # Expands a person's parsed name into a list of possible alternatives using options for expanding instructions
129
- # @param [AiNameExpandParsedRequestData] request Request object.
130
- # @return [AiNameWeightedVariants]
131
- def ai_name_expand_parsed(request)
132
- http_request = request.to_http_info(@api_client)
133
- make_request(http_request, :POST, 'AiNameWeightedVariants')
134
- end
135
-
136
- # Formats a person's name in correct case and name order using options for formatting instructions
137
- # @param [AiNameFormatRequestData] request Request object.
138
- # @return [AiNameFormatted]
139
- def ai_name_format(request)
140
- http_request = request.to_http_info(@api_client)
141
- make_request(http_request, :GET, 'AiNameFormatted')
142
- end
143
-
144
- # Formats a person's parsed name in correct case and name order using options for formatting instructions
145
- # @param [AiNameFormatParsedRequestData] request Request object.
146
- # @return [AiNameFormatted]
147
- def ai_name_format_parsed(request)
148
- http_request = request.to_http_info(@api_client)
149
- make_request(http_request, :POST, 'AiNameFormatted')
150
- end
151
-
152
- # Detect person's gender from name string
153
- # @param [AiNameGenderizeRequestData] request Request object.
154
- # @return [ListResponseOfAiNameGenderHypothesis]
155
- def ai_name_genderize(request)
156
- http_request = request.to_http_info(@api_client)
157
- make_request(http_request, :GET, 'ListResponseOfAiNameGenderHypothesis')
158
- end
159
-
160
- # Detect person's gender from parsed name
161
- # @param [AiNameGenderizeParsedRequestData] request Request object.
162
- # @return [ListResponseOfAiNameGenderHypothesis]
163
- def ai_name_genderize_parsed(request)
164
- http_request = request.to_http_info(@api_client)
165
- make_request(http_request, :POST, 'ListResponseOfAiNameGenderHypothesis')
166
- end
167
-
168
- # Compare people's names. Uses options for comparing instructions
169
- # @param [AiNameMatchRequestData] request Request object.
170
- # @return [AiNameMatchResult]
171
- def ai_name_match(request)
172
- http_request = request.to_http_info(@api_client)
173
- make_request(http_request, :GET, 'AiNameMatchResult')
174
- end
175
-
176
- # Compare people's parsed names and attributes. Uses options for comparing instructions
177
- # @param [AiNameMatchParsedRequestData] request Request object.
178
- # @return [AiNameMatchResult]
179
- def ai_name_match_parsed(request)
180
- http_request = request.to_http_info(@api_client)
181
- make_request(http_request, :POST, 'AiNameMatchResult')
182
- end
183
-
184
- # Parse name to components
185
- # @param [AiNameParseRequestData] request Request object.
186
- # @return [ListResponseOfAiNameComponent]
187
- def ai_name_parse(request)
188
- http_request = request.to_http_info(@api_client)
189
- make_request(http_request, :GET, 'ListResponseOfAiNameComponent')
190
- end
191
-
192
- # Parse person's name out of an email address
193
- # @param [AiNameParseEmailAddressRequestData] request Request object.
194
- # @return [ListResponseOfAiNameExtracted]
195
- def ai_name_parse_email_address(request)
196
- http_request = request.to_http_info(@api_client)
197
- make_request(http_request, :GET, 'ListResponseOfAiNameExtracted')
198
- end
199
-
200
- # Adds an email from *.eml file to specified folder in email account
201
- # @param [AppendEmailMessageRequestData] request Request object.
202
- # @return [EmailPropertyResponse]
203
- def append_email_message(request)
204
- http_request = request.to_http_info(@api_client)
205
- make_request(http_request, :PUT, 'EmailPropertyResponse')
206
- end
207
-
208
- # Adds an email from MIME to specified folder in email account
209
- # @param [AppendMimeMessageRequestData] request Request object.
210
- # @return [ValueResponse]
211
- def append_mime_message(request)
212
- http_request = request.to_http_info(@api_client)
213
- make_request(http_request, :PUT, 'ValueResponse')
214
- end
215
-
216
- # Copy file
217
- # @param [CopyFileRequestData] request Request object.
218
- # @return [nil]
219
- def copy_file(request)
220
- http_request = request.to_http_info(@api_client)
221
- make_request(http_request, :PUT, nil)
222
- nil
223
- end
224
-
225
- # Copy folder
226
- # @param [CopyFolderRequestData] request Request object.
227
- # @return [nil]
228
- def copy_folder(request)
229
- http_request = request.to_http_info(@api_client)
230
- make_request(http_request, :PUT, nil)
231
- nil
232
- end
233
-
234
- # Create calendar file
235
- # @param [CreateCalendarRequestData] request Request object.
236
- # @return [nil]
237
- def create_calendar(request)
238
- http_request = request.to_http_info(@api_client)
239
- make_request(http_request, :PUT, nil)
240
- nil
241
- end
242
-
243
- # Create contact document
244
- # @param [CreateContactRequestData] request Request object.
245
- # @return [nil]
246
- def create_contact(request)
247
- http_request = request.to_http_info(@api_client)
248
- make_request(http_request, :PUT, nil)
249
- nil
250
- end
251
-
252
- # Create an email document
253
- # @param [CreateEmailRequestData] request Request object.
254
- # @return [EmailDocumentResponse]
255
- def create_email(request)
256
- http_request = request.to_http_info(@api_client)
257
- make_request(http_request, :PUT, 'EmailDocumentResponse')
258
- end
259
-
260
- # Create new folder in email account
261
- # @param [CreateEmailFolderRequestData] request Request object.
262
- # @return [nil]
263
- def create_email_folder(request)
264
- http_request = request.to_http_info(@api_client)
265
- make_request(http_request, :PUT, nil)
266
- nil
267
- end
268
-
269
- # Create the folder
270
- # @param [CreateFolderRequestData] request Request object.
271
- # @return [nil]
272
- def create_folder(request)
273
- http_request = request.to_http_info(@api_client)
274
- make_request(http_request, :PUT, nil)
275
- nil
276
- end
277
-
278
- # Create new document
279
- # @param [CreateMapiRequestData] request Request object.
280
- # @return [nil]
281
- def create_mapi(request)
282
- http_request = request.to_http_info(@api_client)
283
- make_request(http_request, :PUT, nil)
284
- nil
285
- end
286
-
287
- # Deletes indexed property by index and name. To delete Reminder attachment, use path ReminderAttachment/{ReminderIndex}/{AttachmentIndex}
288
- # @param [DeleteCalendarPropertyRequestData] request Request object.
289
- # @return [nil]
290
- def delete_calendar_property(request)
291
- http_request = request.to_http_info(@api_client)
292
- make_request(http_request, :DELETE, nil)
293
- nil
294
- end
295
-
296
- # Delete property from indexed property list
297
- # @param [DeleteContactPropertyRequestData] request Request object.
298
- # @return [nil]
299
- def delete_contact_property(request)
300
- http_request = request.to_http_info(@api_client)
301
- make_request(http_request, :DELETE, nil)
302
- nil
303
- end
304
-
305
- # Delete a folder in email account
306
- # @param [DeleteEmailFolderRequestData] request Request object.
307
- # @return [nil]
308
- def delete_email_folder(request)
309
- http_request = request.to_http_info(@api_client)
310
- make_request(http_request, :DELETE, nil)
311
- nil
312
- end
313
-
314
- # Delete message from email account by id
315
- # @param [DeleteEmailMessageRequestData] request Request object.
316
- # @return [nil]
317
- def delete_email_message(request)
318
- http_request = request.to_http_info(@api_client)
319
- make_request(http_request, :DELETE, nil)
320
- nil
321
- end
322
-
323
- # Delete file
324
- # @param [DeleteFileRequestData] request Request object.
325
- # @return [nil]
326
- def delete_file(request)
327
- http_request = request.to_http_info(@api_client)
328
- make_request(http_request, :DELETE, nil)
329
- nil
330
- end
331
-
332
- # Delete folder
333
- # @param [DeleteFolderRequestData] request Request object.
334
- # @return [nil]
335
- def delete_folder(request)
336
- http_request = request.to_http_info(@api_client)
337
- make_request(http_request, :DELETE, nil)
338
- nil
339
- end
340
-
341
- # Remove attachment from document
342
- # @param [DeleteMapiAttachmentRequestData] request Request object.
343
- # @return [nil]
344
- def delete_mapi_attachment(request)
345
- http_request = request.to_http_info(@api_client)
346
- make_request(http_request, :DELETE, nil)
347
- nil
348
- end
349
-
350
- # Delete document properties
351
- # @param [DeleteMapiPropertiesRequestData] request Request object.
352
- # @return [nil]
353
- def delete_mapi_properties(request)
354
- http_request = request.to_http_info(@api_client)
355
- make_request(http_request, :DELETE, nil)
356
- nil
357
- end
358
-
359
- # Download file
360
- # @param [DownloadFileRequestData] request Request object.
361
- # @return [File]
362
- def download_file(request)
363
- http_request = request.to_http_info(@api_client)
364
- make_request(http_request, :GET, 'File')
365
- end
366
-
367
- # Fetch message mime from email account
368
- # @param [FetchEmailMessageRequestData] request Request object.
369
- # @return [MimeResponse]
370
- def fetch_email_message(request)
371
- http_request = request.to_http_info(@api_client)
372
- make_request(http_request, :GET, 'MimeResponse')
373
- end
374
-
375
- # Get calendar file properties
376
- # @param [GetCalendarRequestData] request Request object.
377
- # @return [HierarchicalObject]
378
- def get_calendar(request)
379
- http_request = request.to_http_info(@api_client)
380
- make_request(http_request, :GET, 'HierarchicalObject')
381
- end
382
-
383
- # Get iCalendar document attachment by name
384
- # @param [GetCalendarAttachmentRequestData] request Request object.
385
- # @return [File]
386
- def get_calendar_attachment(request)
387
- http_request = request.to_http_info(@api_client)
388
- make_request(http_request, :GET, 'File')
389
- end
390
-
391
- # Get iCalendar files list in folder on storage
392
- # @param [GetCalendarListRequestData] request Request object.
393
- # @return [ListResponseOfHierarchicalObjectResponse]
394
- def get_calendar_list(request)
395
- http_request = request.to_http_info(@api_client)
396
- make_request(http_request, :GET, 'ListResponseOfHierarchicalObjectResponse')
397
- end
398
-
399
- # Get attachment file by name
400
- # @param [GetContactAttachmentRequestData] request Request object.
401
- # @return [File]
402
- def get_contact_attachment(request)
403
- http_request = request.to_http_info(@api_client)
404
- make_request(http_request, :GET, 'File')
405
- end
406
-
407
- # Get contact list from storage folder
408
- # @param [GetContactListRequestData] request Request object.
409
- # @return [ListResponseOfHierarchicalObjectResponse]
410
- def get_contact_list(request)
411
- http_request = request.to_http_info(@api_client)
412
- make_request(http_request, :GET, 'ListResponseOfHierarchicalObjectResponse')
413
- end
414
-
415
- # Get contact document properties
416
- # @param [GetContactPropertiesRequestData] request Request object.
417
- # @return [HierarchicalObject]
418
- def get_contact_properties(request)
419
- http_request = request.to_http_info(@api_client)
420
- make_request(http_request, :GET, 'HierarchicalObject')
421
- end
422
-
423
- # Get disc usage
424
- # @param [GetDiscUsageRequestData] request Request object.
425
- # @return [DiscUsage]
426
- def get_disc_usage(request)
427
- http_request = request.to_http_info(@api_client)
428
- make_request(http_request, :GET, 'DiscUsage')
429
- end
430
-
431
- # Get email document
432
- # @param [GetEmailRequestData] request Request object.
433
- # @return [EmailDocument]
434
- def get_email(request)
435
- http_request = request.to_http_info(@api_client)
436
- make_request(http_request, :GET, 'EmailDocument')
437
- end
438
-
439
- # Get email attachment by name
440
- # @param [GetEmailAttachmentRequestData] request Request object.
441
- # @return [File]
442
- def get_email_attachment(request)
443
- http_request = request.to_http_info(@api_client)
444
- make_request(http_request, :GET, 'File')
445
- end
446
-
447
- # Get an email document property by its name
448
- # @param [GetEmailPropertyRequestData] request Request object.
449
- # @return [EmailPropertyResponse]
450
- def get_email_property(request)
451
- http_request = request.to_http_info(@api_client)
452
- make_request(http_request, :GET, 'EmailPropertyResponse')
453
- end
454
-
455
- # Get file versions
456
- # @param [GetFileVersionsRequestData] request Request object.
457
- # @return [FileVersions]
458
- def get_file_versions(request)
459
- http_request = request.to_http_info(@api_client)
460
- make_request(http_request, :GET, 'FileVersions')
461
- end
462
-
463
- # Get all files and folders within a folder
464
- # @param [GetFilesListRequestData] request Request object.
465
- # @return [FilesList]
466
- def get_files_list(request)
467
- http_request = request.to_http_info(@api_client)
468
- make_request(http_request, :GET, 'FilesList')
469
- end
470
-
471
- # Get document attachment as file stream
472
- # @param [GetMapiAttachmentRequestData] request Request object.
473
- # @return [File]
474
- def get_mapi_attachment(request)
475
- http_request = request.to_http_info(@api_client)
476
- make_request(http_request, :GET, 'File')
477
- end
478
-
479
- # Get document attachment list
480
- # @param [GetMapiAttachmentsRequestData] request Request object.
481
- # @return [ListResponseOfString]
482
- def get_mapi_attachments(request)
483
- http_request = request.to_http_info(@api_client)
484
- make_request(http_request, :GET, 'ListResponseOfString')
485
- end
486
-
487
- # Get document list from storage folder
488
- # @param [GetMapiListRequestData] request Request object.
489
- # @return [ListResponseOfHierarchicalObjectResponse]
490
- def get_mapi_list(request)
491
- http_request = request.to_http_info(@api_client)
492
- make_request(http_request, :GET, 'ListResponseOfHierarchicalObjectResponse')
493
- end
494
-
495
- # Get document properties
496
- # @param [GetMapiPropertiesRequestData] request Request object.
497
- # @return [HierarchicalObjectResponse]
498
- def get_mapi_properties(request)
499
- http_request = request.to_http_info(@api_client)
500
- make_request(http_request, :GET, 'HierarchicalObjectResponse')
501
- end
502
-
503
- # Get folders list in email account
504
- # @param [ListEmailFoldersRequestData] request Request object.
505
- # @return [ListResponseOfMailServerFolder]
506
- def list_email_folders(request)
507
- http_request = request.to_http_info(@api_client)
508
- make_request(http_request, :GET, 'ListResponseOfMailServerFolder')
509
- end
510
-
511
- # Get messages from folder, filtered by query
512
- # The query string should have the following view. The example of a simple expression: '<Field name>' <Comparison operator> '<Field value>', where &lt;Field Name&gt; - the name of a message field through which filtering is made, &lt;Comparison operator&gt; - comparison operators, as their name implies, allow to compare message field and specified value, &lt;Field value&gt; - value to be compared with a message field. The number of simple expressions can make a compound one, ex.: (<Simple expression 1> & <Simple expression 2>) | <Simple expression 3>, where \"&amp;\" - logical-AND operator, \"|\" - logical-OR operator At present the following values are allowed as a field name (<Field name>): \"To\" - represents a TO field of message, \"Text\" - represents string in the header or body of the message, \"Bcc\" - represents a BCC field of message, \"Body\" - represents a string in the body of message, \"Cc\" - represents a CC field of message, \"From\" - represents a From field of message, \"Subject\" - represents a string in the subject of message, \"InternalDate\" - represents an internal date of message, \"SentDate\" - represents a sent date of message Additionally, the following field names are allowed for IMAP-protocol: \"Answered\" - represents an /Answered flag of message \"Seen\" - represents a /Seen flag of message \"Flagged\" - represents a /Flagged flag of message \"Draft\" - represents a /Draft flag of message \"Deleted\" - represents a Deleted/ flag of message \"Recent\" - represents a Deleted/ flag of message \"MessageSize\" - represents a size (in bytes) of message Additionally, the following field names are allowed for Exchange: \"IsRead\" - Indicates whether the message has been read \"HasAttachment\" - Indicates whether or not the message has attachments \"IsSubmitted\" - Indicates whether the message has been submitted to the Outbox \"ContentClass\" - represents a content class of item Additionally, the following field names are allowed for pst/ost files: \"MessageClass\" - Represents a message class \"ContainerClass\" - Represents a folder container class \"Importance\" - Represents a message importance \"MessageSize\" - represents a size (in bytes) of message \"FolderName\" - represents a folder name \"ContentsCount\" - represents a total number of items in the folder \"UnreadContentsCount\" - represents the number of unread items in the folder. \"Subfolders\" - Indicates whether or not the folder has subfolders \"Read\" - the message is marked as having been read \"HasAttachment\" - the message has at least one attachment \"Unsent\" - the message is still being composed \"Unmodified\" - the message has not been modified since it was first saved (if unsent) or it was delivered (if sent) \"FromMe\" - the user receiving the message was also the user who sent the message \"Resend\" - the message includes a request for a resend operation with a non-delivery report \"NotifyRead\" - the user who sent the message has requested notification when a recipient first reads it \"NotifyUnread\" - the user who sent the message has requested notification when a recipient deletes it before reading or the Message object expires \"EverRead\" - the message has been read at least once The field value (<Field value>) can take the following values: For text fields - any string, For date type fields - the string of \"d-MMM-yyy\" format, ex. \"10-Feb-2009\", For flags (fields of boolean type) - either \"True\", or \"False\"
513
- # @param [ListEmailMessagesRequestData] request Request object.
514
- # @return [ListResponseOfString]
515
- def list_email_messages(request)
516
- http_request = request.to_http_info(@api_client)
517
- make_request(http_request, :GET, 'ListResponseOfString')
518
- end
519
-
520
- # Move file
521
- # @param [MoveFileRequestData] request Request object.
522
- # @return [nil]
523
- def move_file(request)
524
- http_request = request.to_http_info(@api_client)
525
- make_request(http_request, :PUT, nil)
526
- nil
527
- end
528
-
529
- # Move folder
530
- # @param [MoveFolderRequestData] request Request object.
531
- # @return [nil]
532
- def move_folder(request)
533
- http_request = request.to_http_info(@api_client)
534
- make_request(http_request, :PUT, nil)
535
- nil
536
- end
537
-
538
- # Check if file or folder exists
539
- # @param [ObjectExistsRequestData] request Request object.
540
- # @return [ObjectExist]
541
- def object_exists(request)
542
- http_request = request.to_http_info(@api_client)
543
- make_request(http_request, :GET, 'ObjectExist')
544
- end
545
-
546
- # Create email account file (*.account) with login/password authentication
547
- # @param [SaveMailAccountRequestData] request Request object.
548
- # @return [nil]
549
- def save_mail_account(request)
550
- http_request = request.to_http_info(@api_client)
551
- make_request(http_request, :POST, nil)
552
- nil
553
- end
554
-
555
- # Create email account file (*.account) with OAuth
556
- # @param [SaveMailOAuthAccountRequestData] request Request object.
557
- # @return [nil]
558
- def save_mail_o_auth_account(request)
559
- http_request = request.to_http_info(@api_client)
560
- make_request(http_request, :POST, nil)
561
- nil
562
- end
563
-
564
- # Send an email from *.eml file located on storage
565
- # @param [SendEmailRequestData] request Request object.
566
- # @return [nil]
567
- def send_email(request)
568
- http_request = request.to_http_info(@api_client)
569
- make_request(http_request, :POST, nil)
570
- nil
571
- end
572
-
573
- # Send an email specified by MIME in request
574
- # @param [SendEmailMimeRequestData] request Request object.
575
- # @return [nil]
576
- def send_email_mime(request)
577
- http_request = request.to_http_info(@api_client)
578
- make_request(http_request, :POST, nil)
579
- nil
580
- end
581
-
582
- # Set email document property value
583
- # @param [SetEmailPropertyRequestData] request Request object.
584
- # @return [EmailPropertyResponse]
585
- def set_email_property(request)
586
- http_request = request.to_http_info(@api_client)
587
- make_request(http_request, :PUT, 'EmailPropertyResponse')
588
- end
589
-
590
- # Sets \"Message is read\" flag
591
- # @param [SetEmailReadFlagRequestData] request Request object.
592
- # @return [nil]
593
- def set_email_read_flag(request)
594
- http_request = request.to_http_info(@api_client)
595
- make_request(http_request, :POST, nil)
596
- nil
597
- end
598
-
599
- # Check if storage exists
600
- # @param [StorageExistsRequestData] request Request object.
601
- # @return [StorageExist]
602
- def storage_exists(request)
603
- http_request = request.to_http_info(@api_client)
604
- make_request(http_request, :GET, 'StorageExist')
605
- end
606
-
607
- # Update calendar file properties
608
- # @param [UpdateCalendarPropertiesRequestData] request Request object.
609
- # @return [nil]
610
- def update_calendar_properties(request)
611
- http_request = request.to_http_info(@api_client)
612
- make_request(http_request, :PUT, nil)
613
- nil
614
- end
615
-
616
- # Update contact document properties
617
- # @param [UpdateContactPropertiesRequestData] request Request object.
618
- # @return [nil]
619
- def update_contact_properties(request)
620
- http_request = request.to_http_info(@api_client)
621
- make_request(http_request, :PUT, nil)
622
- nil
623
- end
624
-
625
- # Update document properties
626
- # @param [UpdateMapiPropertiesRequestData] request Request object.
627
- # @return [nil]
628
- def update_mapi_properties(request)
629
- http_request = request.to_http_info(@api_client)
630
- make_request(http_request, :PUT, nil)
631
- nil
632
- end
633
-
634
- # Upload file
635
- # @param [UploadFileRequestData] request Request object.
636
- # @return [FilesUploadResult]
637
- def upload_file(request)
638
- http_request = request.to_http_info(@api_client)
639
- make_request(http_request, :PUT, 'FilesUploadResult')
640
- end
641
-
642
- private
643
-
644
- def make_request(http_request, method, return_type)
645
- call_api(http_request, method, return_type)
646
- rescue ApiError => e
647
- if e.code.equal? 401
648
- request_token
649
- return call_api(http_request, method, return_type)
650
- end
651
- raise
652
-
653
- end
654
-
655
- def call_api(http_request, method, return_type)
656
- response = @api_client.call_api(method,
657
- http_request.resource_path,
658
- header_params: http_request.header_params,
659
- query_params: http_request.query_params,
660
- form_params: http_request.form_params,
661
- body: http_request.body,
662
- auth_names: http_request.auth_names,
663
- return_type: return_type)
664
- response[0]
665
- end
666
-
667
- def request_token
668
- config = @api_client.config
669
- request_url = '/connect/token'
670
- form_params =
671
- {
672
- 'grant_type': 'client_credentials',
673
- 'client_id': config.api_key[:app_sid],
674
- 'client_secret': config.api_key[:api_key]
675
- }
676
-
677
- header_params =
678
- {
679
- 'Accept' => 'application/json',
680
- 'Content-Type' =>'application/x-www-form-urlencoded'
681
- }
682
-
683
- base_path = @api_client.config.base_path
684
- @api_client.config.base_path = ''
685
-
686
- data = @api_client.call_api(:POST, request_url,
687
- header_params: header_params,
688
- form_params: form_params,
689
- return_type: 'Object',
690
- host: @api_client.config.auth_url)
691
- access_token = data[0]['access_token'.to_sym]
692
-
693
- @api_client.config.base_path = base_path
694
- @api_client.config.access_token = access_token
695
- end
696
- end
697
- end
698
-
1
+
2
+ # ----------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="email_api.rb">
4
+ # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
5
+ # </copyright>
6
+ # <summary>
7
+ # Permission is hereby granted, free of charge, to any person obtaining a
8
+ # copy of this software and associated documentation files (the "Software"),
9
+ # to deal in the Software without restriction, including without limitation
10
+ # the rights to use, copy, modify, merge, publish, distribute, sublicense,
11
+ # and/or sell copies of the Software, and to permit persons to whom the
12
+ # Software is furnished to do so, subject to the following conditions:
13
+ #
14
+ # The above copyright notice and this permission notice shall be included in
15
+ # all copies or substantial portions of the Software.
16
+ #
17
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23
+ # DEALINGS IN THE SOFTWARE.
24
+ # </summary>
25
+ # ----------------------------------------------------------------------------
26
+
27
+
28
+ require 'uri'
29
+
30
+ module AsposeEmailCloud
31
+ # Aspose.Email Cloud API
32
+ class EmailApi
33
+ attr_accessor :api_client
34
+
35
+ # Initializes a new instance of the EmailApi class.
36
+ # @param [String] app_key Key to access the server.
37
+ # @param [String] app_sid ID to access the server.
38
+ # @param [String] base_url Server URL.
39
+ # @param [String] api_version Api version.
40
+ # @param [Object] debug Debug switch [true, false].
41
+ def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v3.0', debug = false)
42
+ @api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
43
+ end
44
+
45
+ # Adds an attachment to iCalendar file
46
+ # @param [AddCalendarAttachmentRequestData] request Request object.
47
+ # @return [nil]
48
+ def add_calendar_attachment(request)
49
+ http_request = request.to_http_info(@api_client)
50
+ make_request(http_request, :PUT, nil)
51
+ nil
52
+ end
53
+
54
+ # Add attachment to contact document
55
+ # @param [AddContactAttachmentRequestData] request Request object.
56
+ # @return [nil]
57
+ def add_contact_attachment(request)
58
+ http_request = request.to_http_info(@api_client)
59
+ make_request(http_request, :PUT, nil)
60
+ nil
61
+ end
62
+
63
+ # Adds an attachment to Email document
64
+ # @param [AddEmailAttachmentRequestData] request Request object.
65
+ # @return [EmailDocumentResponse]
66
+ def add_email_attachment(request)
67
+ http_request = request.to_http_info(@api_client)
68
+ make_request(http_request, :POST, 'EmailDocumentResponse')
69
+ end
70
+
71
+ # Add attachment to document
72
+ # @param [AddMapiAttachmentRequestData] request Request object.
73
+ # @return [nil]
74
+ def add_mapi_attachment(request)
75
+ http_request = request.to_http_info(@api_client)
76
+ make_request(http_request, :PUT, nil)
77
+ nil
78
+ end
79
+
80
+ # Ocr images
81
+ # @param [AiBcrOcrRequestData] request Request object.
82
+ # @return [ListResponseOfAiBcrOcrData]
83
+ def ai_bcr_ocr(request)
84
+ http_request = request.to_http_info(@api_client)
85
+ make_request(http_request, :POST, 'ListResponseOfAiBcrOcrData')
86
+ end
87
+
88
+ # Ocr images from storage
89
+ # @param [AiBcrOcrStorageRequestData] request Request object.
90
+ # @return [ListResponseOfAiBcrOcrData]
91
+ def ai_bcr_ocr_storage(request)
92
+ http_request = request.to_http_info(@api_client)
93
+ make_request(http_request, :POST, 'ListResponseOfAiBcrOcrData')
94
+ end
95
+
96
+ # Parse images to vCard properties
97
+ # @param [AiBcrParseRequestData] request Request object.
98
+ # @return [ListResponseOfHierarchicalObject]
99
+ def ai_bcr_parse(request)
100
+ http_request = request.to_http_info(@api_client)
101
+ make_request(http_request, :POST, 'ListResponseOfHierarchicalObject')
102
+ end
103
+
104
+ # Parse images to vCard document models
105
+ # @param [AiBcrParseModelRequestData] request Request object.
106
+ # @return [ListResponseOfContactDto]
107
+ def ai_bcr_parse_model(request)
108
+ http_request = request.to_http_info(@api_client)
109
+ make_request(http_request, :POST, 'ListResponseOfContactDto')
110
+ end
111
+
112
+ # Parse OCR data to vCard document models
113
+ # @param [AiBcrParseOcrDataModelRequestData] request Request object.
114
+ # @return [ListResponseOfContactDto]
115
+ def ai_bcr_parse_ocr_data_model(request)
116
+ http_request = request.to_http_info(@api_client)
117
+ make_request(http_request, :POST, 'ListResponseOfContactDto')
118
+ end
119
+
120
+ # Parse images from storage to vCard files
121
+ # @param [AiBcrParseStorageRequestData] request Request object.
122
+ # @return [ListResponseOfStorageFileLocation]
123
+ def ai_bcr_parse_storage(request)
124
+ http_request = request.to_http_info(@api_client)
125
+ make_request(http_request, :POST, 'ListResponseOfStorageFileLocation')
126
+ end
127
+
128
+ # The call proposes k most probable names for given starting characters
129
+ # @param [AiNameCompleteRequestData] request Request object.
130
+ # @return [AiNameWeightedVariants]
131
+ def ai_name_complete(request)
132
+ http_request = request.to_http_info(@api_client)
133
+ make_request(http_request, :GET, 'AiNameWeightedVariants')
134
+ end
135
+
136
+ # Expands a person's name into a list of possible alternatives using options for expanding instructions
137
+ # @param [AiNameExpandRequestData] request Request object.
138
+ # @return [AiNameWeightedVariants]
139
+ def ai_name_expand(request)
140
+ http_request = request.to_http_info(@api_client)
141
+ make_request(http_request, :GET, 'AiNameWeightedVariants')
142
+ end
143
+
144
+ # Expands a person's parsed name into a list of possible alternatives using options for expanding instructions
145
+ # @param [AiNameExpandParsedRequestData] request Request object.
146
+ # @return [AiNameWeightedVariants]
147
+ def ai_name_expand_parsed(request)
148
+ http_request = request.to_http_info(@api_client)
149
+ make_request(http_request, :POST, 'AiNameWeightedVariants')
150
+ end
151
+
152
+ # Formats a person's name in correct case and name order using options for formatting instructions
153
+ # @param [AiNameFormatRequestData] request Request object.
154
+ # @return [AiNameFormatted]
155
+ def ai_name_format(request)
156
+ http_request = request.to_http_info(@api_client)
157
+ make_request(http_request, :GET, 'AiNameFormatted')
158
+ end
159
+
160
+ # Formats a person's parsed name in correct case and name order using options for formatting instructions
161
+ # @param [AiNameFormatParsedRequestData] request Request object.
162
+ # @return [AiNameFormatted]
163
+ def ai_name_format_parsed(request)
164
+ http_request = request.to_http_info(@api_client)
165
+ make_request(http_request, :POST, 'AiNameFormatted')
166
+ end
167
+
168
+ # Detect person's gender from name string
169
+ # @param [AiNameGenderizeRequestData] request Request object.
170
+ # @return [ListResponseOfAiNameGenderHypothesis]
171
+ def ai_name_genderize(request)
172
+ http_request = request.to_http_info(@api_client)
173
+ make_request(http_request, :GET, 'ListResponseOfAiNameGenderHypothesis')
174
+ end
175
+
176
+ # Detect person's gender from parsed name
177
+ # @param [AiNameGenderizeParsedRequestData] request Request object.
178
+ # @return [ListResponseOfAiNameGenderHypothesis]
179
+ def ai_name_genderize_parsed(request)
180
+ http_request = request.to_http_info(@api_client)
181
+ make_request(http_request, :POST, 'ListResponseOfAiNameGenderHypothesis')
182
+ end
183
+
184
+ # Compare people's names. Uses options for comparing instructions
185
+ # @param [AiNameMatchRequestData] request Request object.
186
+ # @return [AiNameMatchResult]
187
+ def ai_name_match(request)
188
+ http_request = request.to_http_info(@api_client)
189
+ make_request(http_request, :GET, 'AiNameMatchResult')
190
+ end
191
+
192
+ # Compare people's parsed names and attributes. Uses options for comparing instructions
193
+ # @param [AiNameMatchParsedRequestData] request Request object.
194
+ # @return [AiNameMatchResult]
195
+ def ai_name_match_parsed(request)
196
+ http_request = request.to_http_info(@api_client)
197
+ make_request(http_request, :POST, 'AiNameMatchResult')
198
+ end
199
+
200
+ # Parse name to components
201
+ # @param [AiNameParseRequestData] request Request object.
202
+ # @return [ListResponseOfAiNameComponent]
203
+ def ai_name_parse(request)
204
+ http_request = request.to_http_info(@api_client)
205
+ make_request(http_request, :GET, 'ListResponseOfAiNameComponent')
206
+ end
207
+
208
+ # Parse person's name out of an email address
209
+ # @param [AiNameParseEmailAddressRequestData] request Request object.
210
+ # @return [ListResponseOfAiNameExtracted]
211
+ def ai_name_parse_email_address(request)
212
+ http_request = request.to_http_info(@api_client)
213
+ make_request(http_request, :GET, 'ListResponseOfAiNameExtracted')
214
+ end
215
+
216
+ # Adds an email from *.eml file to specified folder in email account
217
+ # @param [AppendEmailMessageRequestData] request Request object.
218
+ # @return [EmailPropertyResponse]
219
+ def append_email_message(request)
220
+ http_request = request.to_http_info(@api_client)
221
+ make_request(http_request, :PUT, 'EmailPropertyResponse')
222
+ end
223
+
224
+ # Adds an email from model to specified folder in email account
225
+ # @param [AppendEmailModelMessageRequestData] request Request object.
226
+ # @return [ValueResponse]
227
+ def append_email_model_message(request)
228
+ http_request = request.to_http_info(@api_client)
229
+ make_request(http_request, :PUT, 'ValueResponse')
230
+ end
231
+
232
+ # Adds an email from MIME to specified folder in email account
233
+ # @param [AppendMimeMessageRequestData] request Request object.
234
+ # @return [ValueResponse]
235
+ def append_mime_message(request)
236
+ http_request = request.to_http_info(@api_client)
237
+ make_request(http_request, :PUT, 'ValueResponse')
238
+ end
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
+
248
+ # Convert iCalendar to AlternateView
249
+ # @param [ConvertCalendarModelToAlternateRequestData] request Request object.
250
+ # @return [AlternateView]
251
+ def convert_calendar_model_to_alternate(request)
252
+ http_request = request.to_http_info(@api_client)
253
+ make_request(http_request, :PUT, 'AlternateView')
254
+ end
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 CalendarDto to MapiCalendarDto.
265
+ # @param [ConvertCalendarModelToMapiModelRequestData] request Request object.
266
+ # @return [MapiCalendarDto]
267
+ def convert_calendar_model_to_mapi_model(request)
268
+ http_request = request.to_http_info(@api_client)
269
+ make_request(http_request, :PUT, 'MapiCalendarDto')
270
+ end
271
+
272
+ # Converts contact document to specified format and returns as file
273
+ # @param [ConvertContactRequestData] request Request object.
274
+ # @return [File]
275
+ def convert_contact(request)
276
+ http_request = request.to_http_info(@api_client)
277
+ make_request(http_request, :PUT, 'File')
278
+ end
279
+
280
+ # Converts contact model to specified format and returns as file
281
+ # @param [ConvertContactModelToFileRequestData] request Request object.
282
+ # @return [File]
283
+ def convert_contact_model_to_file(request)
284
+ http_request = request.to_http_info(@api_client)
285
+ make_request(http_request, :PUT, 'File')
286
+ end
287
+
288
+ # Converts ContactDto to MapiContactDto.
289
+ # @param [ConvertContactModelToMapiModelRequestData] request Request object.
290
+ # @return [MapiContactDto]
291
+ def convert_contact_model_to_mapi_model(request)
292
+ http_request = request.to_http_info(@api_client)
293
+ make_request(http_request, :PUT, 'MapiContactDto')
294
+ end
295
+
296
+ # Converts email document to specified format and returns as file
297
+ # @param [ConvertEmailRequestData] request Request object.
298
+ # @return [File]
299
+ def convert_email(request)
300
+ http_request = request.to_http_info(@api_client)
301
+ make_request(http_request, :PUT, 'File')
302
+ end
303
+
304
+ # Converts Email model to specified format and returns as file
305
+ # @param [ConvertEmailModelToFileRequestData] request Request object.
306
+ # @return [File]
307
+ def convert_email_model_to_file(request)
308
+ http_request = request.to_http_info(@api_client)
309
+ make_request(http_request, :PUT, 'File')
310
+ end
311
+
312
+ # Converts EmailDto to MapiMessageDto.
313
+ # @param [ConvertEmailModelToMapiModelRequestData] request Request object.
314
+ # @return [MapiMessageDto]
315
+ def convert_email_model_to_mapi_model(request)
316
+ http_request = request.to_http_info(@api_client)
317
+ make_request(http_request, :PUT, 'MapiMessageDto')
318
+ end
319
+
320
+ # Converts MAPI calendar model to CalendarDto model
321
+ # @param [ConvertMapiCalendarModelToCalendarModelRequestData] request Request object.
322
+ # @return [CalendarDto]
323
+ def convert_mapi_calendar_model_to_calendar_model(request)
324
+ http_request = request.to_http_info(@api_client)
325
+ make_request(http_request, :PUT, 'CalendarDto')
326
+ end
327
+
328
+ # Converts MAPI calendar model to specified format and returns as file
329
+ # @param [ConvertMapiCalendarModelToFileRequestData] request Request object.
330
+ # @return [File]
331
+ def convert_mapi_calendar_model_to_file(request)
332
+ http_request = request.to_http_info(@api_client)
333
+ make_request(http_request, :PUT, 'File')
334
+ end
335
+
336
+ # Converts MAPI contact model to ContactDto model
337
+ # @param [ConvertMapiContactModelToContactModelRequestData] request Request object.
338
+ # @return [ContactDto]
339
+ def convert_mapi_contact_model_to_contact_model(request)
340
+ http_request = request.to_http_info(@api_client)
341
+ make_request(http_request, :PUT, 'ContactDto')
342
+ end
343
+
344
+ # Converts MAPI contact model to specified format and returns as file
345
+ # @param [ConvertMapiContactModelToFileRequestData] request Request object.
346
+ # @return [File]
347
+ def convert_mapi_contact_model_to_file(request)
348
+ http_request = request.to_http_info(@api_client)
349
+ make_request(http_request, :PUT, 'File')
350
+ end
351
+
352
+ # Converts MAPI message model to EmailDto model
353
+ # @param [ConvertMapiMessageModelToEmailModelRequestData] request Request object.
354
+ # @return [EmailDto]
355
+ def convert_mapi_message_model_to_email_model(request)
356
+ http_request = request.to_http_info(@api_client)
357
+ make_request(http_request, :PUT, 'EmailDto')
358
+ end
359
+
360
+ # Converts MAPI message model to specified format and returns as file
361
+ # @param [ConvertMapiMessageModelToFileRequestData] request Request object.
362
+ # @return [File]
363
+ def convert_mapi_message_model_to_file(request)
364
+ http_request = request.to_http_info(@api_client)
365
+ make_request(http_request, :PUT, 'File')
366
+ end
367
+
368
+ # @param [CopyFileRequestData] request Request object.
369
+ # @return [nil]
370
+ def copy_file(request)
371
+ http_request = request.to_http_info(@api_client)
372
+ make_request(http_request, :PUT, nil)
373
+ nil
374
+ end
375
+
376
+ # @param [CopyFolderRequestData] request Request object.
377
+ # @return [nil]
378
+ def copy_folder(request)
379
+ http_request = request.to_http_info(@api_client)
380
+ make_request(http_request, :PUT, nil)
381
+ nil
382
+ end
383
+
384
+ # Create calendar file
385
+ # @param [CreateCalendarRequestData] request Request object.
386
+ # @return [nil]
387
+ def create_calendar(request)
388
+ http_request = request.to_http_info(@api_client)
389
+ make_request(http_request, :PUT, nil)
390
+ nil
391
+ end
392
+
393
+ # Create contact document
394
+ # @param [CreateContactRequestData] request Request object.
395
+ # @return [nil]
396
+ def create_contact(request)
397
+ http_request = request.to_http_info(@api_client)
398
+ make_request(http_request, :PUT, nil)
399
+ nil
400
+ end
401
+
402
+ # Create an email document
403
+ # @param [CreateEmailRequestData] request Request object.
404
+ # @return [EmailDocumentResponse]
405
+ def create_email(request)
406
+ http_request = request.to_http_info(@api_client)
407
+ make_request(http_request, :PUT, 'EmailDocumentResponse')
408
+ end
409
+
410
+ # Create new folder in email account
411
+ # @param [CreateEmailFolderRequestData] request Request object.
412
+ # @return [nil]
413
+ def create_email_folder(request)
414
+ http_request = request.to_http_info(@api_client)
415
+ make_request(http_request, :PUT, nil)
416
+ nil
417
+ end
418
+
419
+ # @param [CreateFolderRequestData] request Request object.
420
+ # @return [nil]
421
+ def create_folder(request)
422
+ http_request = request.to_http_info(@api_client)
423
+ make_request(http_request, :PUT, nil)
424
+ nil
425
+ end
426
+
427
+ # Create new document
428
+ # @param [CreateMapiRequestData] request Request object.
429
+ # @return [nil]
430
+ def create_mapi(request)
431
+ http_request = request.to_http_info(@api_client)
432
+ make_request(http_request, :PUT, nil)
433
+ nil
434
+ end
435
+
436
+ # Deletes indexed property by index and name. To delete Reminder attachment, use path ReminderAttachment/{ReminderIndex}/{AttachmentIndex}
437
+ # @param [DeleteCalendarPropertyRequestData] request Request object.
438
+ # @return [nil]
439
+ def delete_calendar_property(request)
440
+ http_request = request.to_http_info(@api_client)
441
+ make_request(http_request, :DELETE, nil)
442
+ nil
443
+ end
444
+
445
+ # Delete property from indexed property list
446
+ # @param [DeleteContactPropertyRequestData] request Request object.
447
+ # @return [nil]
448
+ def delete_contact_property(request)
449
+ http_request = request.to_http_info(@api_client)
450
+ make_request(http_request, :DELETE, nil)
451
+ nil
452
+ end
453
+
454
+ # Delete a folder in email account
455
+ # @param [DeleteEmailFolderRequestData] request Request object.
456
+ # @return [nil]
457
+ def delete_email_folder(request)
458
+ http_request = request.to_http_info(@api_client)
459
+ make_request(http_request, :DELETE, nil)
460
+ nil
461
+ end
462
+
463
+ # Delete message from email account by id
464
+ # @param [DeleteEmailMessageRequestData] request Request object.
465
+ # @return [nil]
466
+ def delete_email_message(request)
467
+ http_request = request.to_http_info(@api_client)
468
+ make_request(http_request, :DELETE, nil)
469
+ nil
470
+ end
471
+
472
+ # Delete thread by id. All messages from thread will also be deleted
473
+ # @param [DeleteEmailThreadRequestData] request Request object.
474
+ # @return [nil]
475
+ def delete_email_thread(request)
476
+ http_request = request.to_http_info(@api_client)
477
+ make_request(http_request, :DELETE, nil)
478
+ nil
479
+ end
480
+
481
+ # @param [DeleteFileRequestData] request Request object.
482
+ # @return [nil]
483
+ def delete_file(request)
484
+ http_request = request.to_http_info(@api_client)
485
+ make_request(http_request, :DELETE, nil)
486
+ nil
487
+ end
488
+
489
+ # @param [DeleteFolderRequestData] request Request object.
490
+ # @return [nil]
491
+ def delete_folder(request)
492
+ http_request = request.to_http_info(@api_client)
493
+ make_request(http_request, :DELETE, nil)
494
+ nil
495
+ end
496
+
497
+ # Remove attachment from document
498
+ # @param [DeleteMapiAttachmentRequestData] request Request object.
499
+ # @return [nil]
500
+ def delete_mapi_attachment(request)
501
+ http_request = request.to_http_info(@api_client)
502
+ make_request(http_request, :DELETE, nil)
503
+ nil
504
+ end
505
+
506
+ # Delete document properties
507
+ # @param [DeleteMapiPropertiesRequestData] request Request object.
508
+ # @return [nil]
509
+ def delete_mapi_properties(request)
510
+ http_request = request.to_http_info(@api_client)
511
+ make_request(http_request, :DELETE, nil)
512
+ nil
513
+ end
514
+
515
+ # Discover email accounts by email address. Does not validate discovered accounts.
516
+ # @param [DiscoverEmailConfigRequestData] request Request object.
517
+ # @return [EmailAccountConfigList]
518
+ def discover_email_config(request)
519
+ http_request = request.to_http_info(@api_client)
520
+ make_request(http_request, :GET, 'EmailAccountConfigList')
521
+ end
522
+
523
+ # Discover email accounts by email address. Validates discovered accounts using OAuth 2.0.
524
+ # @param [DiscoverEmailConfigOauthRequestData] request Request object.
525
+ # @return [EmailAccountConfigList]
526
+ def discover_email_config_oauth(request)
527
+ http_request = request.to_http_info(@api_client)
528
+ make_request(http_request, :POST, 'EmailAccountConfigList')
529
+ end
530
+
531
+ # Discover email accounts by email address. Validates discovered accounts using login and password.
532
+ # @param [DiscoverEmailConfigPasswordRequestData] request Request object.
533
+ # @return [EmailAccountConfigList]
534
+ def discover_email_config_password(request)
535
+ http_request = request.to_http_info(@api_client)
536
+ make_request(http_request, :POST, 'EmailAccountConfigList')
537
+ end
538
+
539
+ # @param [DownloadFileRequestData] request Request object.
540
+ # @return [File]
541
+ def download_file(request)
542
+ http_request = request.to_http_info(@api_client)
543
+ make_request(http_request, :GET, 'File')
544
+ end
545
+
546
+ # Fetch message mime from email account
547
+ # @param [FetchEmailMessageRequestData] request Request object.
548
+ # @return [MimeResponse]
549
+ def fetch_email_message(request)
550
+ http_request = request.to_http_info(@api_client)
551
+ make_request(http_request, :GET, 'MimeResponse')
552
+ end
553
+
554
+ # Fetch message model from email account
555
+ # @param [FetchEmailModelRequestData] request Request object.
556
+ # @return [EmailDto]
557
+ def fetch_email_model(request)
558
+ http_request = request.to_http_info(@api_client)
559
+ make_request(http_request, :GET, 'EmailDto')
560
+ end
561
+
562
+ # Get messages from thread by id. All messages are fully fetched. For accounts with CacheFile only cached messages will be returned.
563
+ # @param [FetchEmailThreadMessagesRequestData] request Request object.
564
+ # @return [ListResponseOfEmailDto]
565
+ def fetch_email_thread_messages(request)
566
+ http_request = request.to_http_info(@api_client)
567
+ make_request(http_request, :GET, 'ListResponseOfEmailDto')
568
+ end
569
+
570
+ # Get calendar file properties
571
+ # @param [GetCalendarRequestData] request Request object.
572
+ # @return [HierarchicalObject]
573
+ def get_calendar(request)
574
+ http_request = request.to_http_info(@api_client)
575
+ make_request(http_request, :GET, 'HierarchicalObject')
576
+ end
577
+
578
+ # Converts calendar document from storage to specified format and returns as file
579
+ # @param [GetCalendarAsFileRequestData] request Request object.
580
+ # @return [File]
581
+ def get_calendar_as_file(request)
582
+ http_request = request.to_http_info(@api_client)
583
+ make_request(http_request, :GET, 'File')
584
+ end
585
+
586
+ # Get iCalendar document attachment by name
587
+ # @param [GetCalendarAttachmentRequestData] request Request object.
588
+ # @return [File]
589
+ def get_calendar_attachment(request)
590
+ http_request = request.to_http_info(@api_client)
591
+ make_request(http_request, :GET, 'File')
592
+ end
593
+
594
+ # Converts calendar file to a MAPI model representation
595
+ # @param [GetCalendarFileAsMapiModelRequestData] request Request object.
596
+ # @return [MapiCalendarDto]
597
+ def get_calendar_file_as_mapi_model(request)
598
+ http_request = request.to_http_info(@api_client)
599
+ make_request(http_request, :PUT, 'MapiCalendarDto')
600
+ end
601
+
602
+ # Converts calendar document to a model representation
603
+ # @param [GetCalendarFileAsModelRequestData] request Request object.
604
+ # @return [CalendarDto]
605
+ def get_calendar_file_as_model(request)
606
+ http_request = request.to_http_info(@api_client)
607
+ make_request(http_request, :PUT, 'CalendarDto')
608
+ end
609
+
610
+ # Get iCalendar files list in folder on storage
611
+ # @param [GetCalendarListRequestData] request Request object.
612
+ # @return [ListResponseOfHierarchicalObjectResponse]
613
+ def get_calendar_list(request)
614
+ http_request = request.to_http_info(@api_client)
615
+ make_request(http_request, :GET, 'ListResponseOfHierarchicalObjectResponse')
616
+ end
617
+
618
+ # Get calendar file
619
+ # @param [GetCalendarModelRequestData] request Request object.
620
+ # @return [CalendarDto]
621
+ def get_calendar_model(request)
622
+ http_request = request.to_http_info(@api_client)
623
+ make_request(http_request, :GET, 'CalendarDto')
624
+ end
625
+
626
+ # Get iCalendar from storage as AlternateView
627
+ # @param [GetCalendarModelAsAlternateRequestData] request Request object.
628
+ # @return [AlternateView]
629
+ def get_calendar_model_as_alternate(request)
630
+ http_request = request.to_http_info(@api_client)
631
+ make_request(http_request, :GET, 'AlternateView')
632
+ end
633
+
634
+ # Get iCalendar list from storage folder
635
+ # @param [GetCalendarModelListRequestData] request Request object.
636
+ # @return [CalendarDtoList]
637
+ def get_calendar_model_list(request)
638
+ http_request = request.to_http_info(@api_client)
639
+ make_request(http_request, :GET, 'CalendarDtoList')
640
+ end
641
+
642
+ # Converts calendar document from storage to specified format and returns as file
643
+ # @param [GetContactAsFileRequestData] request Request object.
644
+ # @return [File]
645
+ def get_contact_as_file(request)
646
+ http_request = request.to_http_info(@api_client)
647
+ make_request(http_request, :GET, 'File')
648
+ end
649
+
650
+ # Get attachment file by name
651
+ # @param [GetContactAttachmentRequestData] request Request object.
652
+ # @return [File]
653
+ def get_contact_attachment(request)
654
+ http_request = request.to_http_info(@api_client)
655
+ make_request(http_request, :GET, 'File')
656
+ end
657
+
658
+ # Converts contact file to a MAPI model representation
659
+ # @param [GetContactFileAsMapiModelRequestData] request Request object.
660
+ # @return [MapiContactDto]
661
+ def get_contact_file_as_mapi_model(request)
662
+ http_request = request.to_http_info(@api_client)
663
+ make_request(http_request, :PUT, 'MapiContactDto')
664
+ end
665
+
666
+ # Converts contact document to a model representation
667
+ # @param [GetContactFileAsModelRequestData] request Request object.
668
+ # @return [ContactDto]
669
+ def get_contact_file_as_model(request)
670
+ http_request = request.to_http_info(@api_client)
671
+ make_request(http_request, :PUT, 'ContactDto')
672
+ end
673
+
674
+ # Get contact list from storage folder
675
+ # @param [GetContactListRequestData] request Request object.
676
+ # @return [ListResponseOfHierarchicalObjectResponse]
677
+ def get_contact_list(request)
678
+ http_request = request.to_http_info(@api_client)
679
+ make_request(http_request, :GET, 'ListResponseOfHierarchicalObjectResponse')
680
+ end
681
+
682
+ # Get contact document.
683
+ # @param [GetContactModelRequestData] request Request object.
684
+ # @return [ContactDto]
685
+ def get_contact_model(request)
686
+ http_request = request.to_http_info(@api_client)
687
+ make_request(http_request, :GET, 'ContactDto')
688
+ end
689
+
690
+ # Get contact list from storage folder.
691
+ # @param [GetContactModelListRequestData] request Request object.
692
+ # @return [ContactDtoList]
693
+ def get_contact_model_list(request)
694
+ http_request = request.to_http_info(@api_client)
695
+ make_request(http_request, :GET, 'ContactDtoList')
696
+ end
697
+
698
+ # Get contact document properties
699
+ # @param [GetContactPropertiesRequestData] request Request object.
700
+ # @return [HierarchicalObject]
701
+ def get_contact_properties(request)
702
+ http_request = request.to_http_info(@api_client)
703
+ make_request(http_request, :GET, 'HierarchicalObject')
704
+ end
705
+
706
+ # @param [GetDiscUsageRequestData] request Request object.
707
+ # @return [DiscUsage]
708
+ def get_disc_usage(request)
709
+ http_request = request.to_http_info(@api_client)
710
+ make_request(http_request, :GET, 'DiscUsage')
711
+ end
712
+
713
+ # Get email document
714
+ # @param [GetEmailRequestData] request Request object.
715
+ # @return [EmailDocument]
716
+ def get_email(request)
717
+ http_request = request.to_http_info(@api_client)
718
+ make_request(http_request, :GET, 'EmailDocument')
719
+ end
720
+
721
+ # Converts email document from storage to specified format and returns as file
722
+ # @param [GetEmailAsFileRequestData] request Request object.
723
+ # @return [File]
724
+ def get_email_as_file(request)
725
+ http_request = request.to_http_info(@api_client)
726
+ make_request(http_request, :GET, 'File')
727
+ end
728
+
729
+ # Get email attachment by name
730
+ # @param [GetEmailAttachmentRequestData] request Request object.
731
+ # @return [File]
732
+ def get_email_attachment(request)
733
+ http_request = request.to_http_info(@api_client)
734
+ make_request(http_request, :GET, 'File')
735
+ end
736
+
737
+ # Get email client account from storage
738
+ # @param [GetEmailClientAccountRequestData] request Request object.
739
+ # @return [EmailClientAccount]
740
+ def get_email_client_account(request)
741
+ http_request = request.to_http_info(@api_client)
742
+ make_request(http_request, :GET, 'EmailClientAccount')
743
+ end
744
+
745
+ # Get email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\".
746
+ # @param [GetEmailClientMultiAccountRequestData] request Request object.
747
+ # @return [EmailClientMultiAccount]
748
+ def get_email_client_multi_account(request)
749
+ http_request = request.to_http_info(@api_client)
750
+ make_request(http_request, :GET, 'EmailClientMultiAccount')
751
+ end
752
+
753
+ # Converts email file to a MAPI model representation
754
+ # @param [GetEmailFileAsMapiModelRequestData] request Request object.
755
+ # @return [MapiMessageDto]
756
+ def get_email_file_as_mapi_model(request)
757
+ http_request = request.to_http_info(@api_client)
758
+ make_request(http_request, :PUT, 'MapiMessageDto')
759
+ end
760
+
761
+ # Converts email document to a model representation
762
+ # @param [GetEmailFileAsModelRequestData] request Request object.
763
+ # @return [EmailDto]
764
+ def get_email_file_as_model(request)
765
+ http_request = request.to_http_info(@api_client)
766
+ make_request(http_request, :PUT, 'EmailDto')
767
+ end
768
+
769
+ # Get email document.
770
+ # @param [GetEmailModelRequestData] request Request object.
771
+ # @return [EmailDto]
772
+ def get_email_model(request)
773
+ http_request = request.to_http_info(@api_client)
774
+ make_request(http_request, :GET, 'EmailDto')
775
+ end
776
+
777
+ # Get email list from storage folder.
778
+ # @param [GetEmailModelListRequestData] request Request object.
779
+ # @return [EmailDtoList]
780
+ def get_email_model_list(request)
781
+ http_request = request.to_http_info(@api_client)
782
+ make_request(http_request, :GET, 'EmailDtoList')
783
+ end
784
+
785
+ # Get an email document property by its name
786
+ # @param [GetEmailPropertyRequestData] request Request object.
787
+ # @return [EmailPropertyResponse]
788
+ def get_email_property(request)
789
+ http_request = request.to_http_info(@api_client)
790
+ make_request(http_request, :GET, 'EmailPropertyResponse')
791
+ end
792
+
793
+ # @param [GetFileVersionsRequestData] request Request object.
794
+ # @return [FileVersions]
795
+ def get_file_versions(request)
796
+ http_request = request.to_http_info(@api_client)
797
+ make_request(http_request, :GET, 'FileVersions')
798
+ end
799
+
800
+ # @param [GetFilesListRequestData] request Request object.
801
+ # @return [FilesList]
802
+ def get_files_list(request)
803
+ http_request = request.to_http_info(@api_client)
804
+ make_request(http_request, :GET, 'FilesList')
805
+ end
806
+
807
+ # Get document attachment as file stream
808
+ # @param [GetMapiAttachmentRequestData] request Request object.
809
+ # @return [File]
810
+ def get_mapi_attachment(request)
811
+ http_request = request.to_http_info(@api_client)
812
+ make_request(http_request, :GET, 'File')
813
+ end
814
+
815
+ # Get document attachment list
816
+ # @param [GetMapiAttachmentsRequestData] request Request object.
817
+ # @return [ListResponseOfString]
818
+ def get_mapi_attachments(request)
819
+ http_request = request.to_http_info(@api_client)
820
+ make_request(http_request, :GET, 'ListResponseOfString')
821
+ end
822
+
823
+ # Get MAPI calendar document.
824
+ # @param [GetMapiCalendarModelRequestData] request Request object.
825
+ # @return [MapiCalendarDto]
826
+ def get_mapi_calendar_model(request)
827
+ http_request = request.to_http_info(@api_client)
828
+ make_request(http_request, :GET, 'MapiCalendarDto')
829
+ end
830
+
831
+ # Get MAPI contact document.
832
+ # @param [GetMapiContactModelRequestData] request Request object.
833
+ # @return [MapiContactDto]
834
+ def get_mapi_contact_model(request)
835
+ http_request = request.to_http_info(@api_client)
836
+ make_request(http_request, :GET, 'MapiContactDto')
837
+ end
838
+
839
+ # Get document list from storage folder
840
+ # @param [GetMapiListRequestData] request Request object.
841
+ # @return [ListResponseOfHierarchicalObjectResponse]
842
+ def get_mapi_list(request)
843
+ http_request = request.to_http_info(@api_client)
844
+ make_request(http_request, :GET, 'ListResponseOfHierarchicalObjectResponse')
845
+ end
846
+
847
+ # Get MAPI message document.
848
+ # @param [GetMapiMessageModelRequestData] request Request object.
849
+ # @return [MapiMessageDto]
850
+ def get_mapi_message_model(request)
851
+ http_request = request.to_http_info(@api_client)
852
+ make_request(http_request, :GET, 'MapiMessageDto')
853
+ end
854
+
855
+ # Get document properties
856
+ # @param [GetMapiPropertiesRequestData] request Request object.
857
+ # @return [HierarchicalObjectResponse]
858
+ def get_mapi_properties(request)
859
+ http_request = request.to_http_info(@api_client)
860
+ make_request(http_request, :GET, 'HierarchicalObjectResponse')
861
+ end
862
+
863
+ # Check email address is disposable
864
+ # @param [IsEmailAddressDisposableRequestData] request Request object.
865
+ # @return [ValueTOfBoolean]
866
+ def is_email_address_disposable(request)
867
+ http_request = request.to_http_info(@api_client)
868
+ make_request(http_request, :GET, 'ValueTOfBoolean')
869
+ end
870
+
871
+ # Get folders list in email account
872
+ # @param [ListEmailFoldersRequestData] request Request object.
873
+ # @return [ListResponseOfMailServerFolder]
874
+ def list_email_folders(request)
875
+ http_request = request.to_http_info(@api_client)
876
+ make_request(http_request, :GET, 'ListResponseOfMailServerFolder')
877
+ end
878
+
879
+ # Get messages from folder, filtered by query
880
+ # The query string should have the following view. The example of a simple expression: '<Field name>' <Comparison operator> '<Field value>', where &lt;Field Name&gt; - the name of a message field through which filtering is made, &lt;Comparison operator&gt; - comparison operators, as their name implies, allow to compare message field and specified value, &lt;Field value&gt; - value to be compared with a message field. The number of simple expressions can make a compound one, ex.: (<Simple expression 1> & <Simple expression 2>) | <Simple expression 3 >, where \"&amp;\" - logical-AND operator, \"|\" - logical-OR operator At present the following values are allowed as a field name (<Field name>): \"To\" - represents a TO field of message, \"Text\" - represents string in the header or body of the message, \"Bcc\" - represents a BCC field of message, \"Body\" - represents a string in the body of message, \"Cc\" - represents a CC field of message, \"From\" - represents a From field of message, \"Subject\" - represents a string in the subject of message, \"InternalDate\" - represents an internal date of message, \"SentDate\" - represents a sent date of message Additionally, the following field names are allowed for IMAP-protocol: \"Answered\" - represents an /Answered flag of message \"Seen\" - represents a /Seen flag of message \"Flagged\" - represents a /Flagged flag of message \"Draft\" - represents a /Draft flag of message \"Deleted\" - represents a Deleted/ flag of message \"Recent\" - represents a Deleted/ flag of message \"MessageSize\" - represents a size (in bytes) of message Additionally, the following field names are allowed for Exchange: \"IsRead\" - Indicates whether the message has been read \"HasAttachment\" - Indicates whether or not the message has attachments \"IsSubmitted\" - Indicates whether the message has been submitted to the Outbox \"ContentClass\" - represents a content class of item Additionally, the following field names are allowed for pst/ost files: \"MessageClass\" - Represents a message class \"ContainerClass\" - Represents a folder container class \"Importance\" - Represents a message importance \"MessageSize\" - represents a size (in bytes) of message \"FolderName\" - represents a folder name \"ContentsCount\" - represents a total number of items in the folder \"UnreadContentsCount\" - represents the number of unread items in the folder. \"Subfolders\" - Indicates whether or not the folder has subfolders \"Read\" - the message is marked as having been read \"HasAttachment\" - the message has at least one attachment \"Unsent\" - the message is still being composed \"Unmodified\" - the message has not been modified since it was first saved (if unsent) or it was delivered (if sent) \"FromMe\" - the user receiving the message was also the user who sent the message \"Resend\" - the message includes a request for a resend operation with a non-delivery report \"NotifyRead\" - the user who sent the message has requested notification when a recipient first reads it \"NotifyUnread\" - the user who sent the message has requested notification when a recipient deletes it before reading or the Message object expires \"EverRead\" - the message has been read at least once The field value (<Field value>) can take the following values: For text fields - any string, For date type fields - the string of \"d-MMM-yyy\" format, ex. \"10-Feb-2009\", For flags (fields of boolean type) - either \"True\", or \"False\"
881
+ # @param [ListEmailMessagesRequestData] request Request object.
882
+ # @return [ListResponseOfString]
883
+ def list_email_messages(request)
884
+ http_request = request.to_http_info(@api_client)
885
+ make_request(http_request, :GET, 'ListResponseOfString')
886
+ end
887
+
888
+ # Get messages from folder, filtered by query
889
+ # The query string should have the following view. The example of a simple expression: '<Field name>' <Comparison operator> '<Field value>', where &lt;Field Name&gt; - the name of a message field through which filtering is made, &lt;Comparison operator&gt; - comparison operators, as their name implies, allow to compare message field and specified value, &lt;Field value&gt; - value to be compared with a message field. The number of simple expressions can make a compound one, ex.: (<Simple expression 1> & <Simple expression 2>) | <Simple expression 3 >, where \"&amp;\" - logical-AND operator, \"|\" - logical-OR operator At present the following values are allowed as a field name (<Field name>): \"To\" - represents a TO field of message, \"Text\" - represents string in the header or body of the message, \"Bcc\" - represents a BCC field of message, \"Body\" - represents a string in the body of message, \"Cc\" - represents a CC field of message, \"From\" - represents a From field of message, \"Subject\" - represents a string in the subject of message, \"InternalDate\" - represents an internal date of message, \"SentDate\" - represents a sent date of message Additionally, the following field names are allowed for IMAP-protocol: \"Answered\" - represents an /Answered flag of message \"Seen\" - represents a /Seen flag of message \"Flagged\" - represents a /Flagged flag of message \"Draft\" - represents a /Draft flag of message \"Deleted\" - represents a Deleted/ flag of message \"Recent\" - represents a Deleted/ flag of message \"MessageSize\" - represents a size (in bytes) of message Additionally, the following field names are allowed for Exchange: \"IsRead\" - Indicates whether the message has been read \"HasAttachment\" - Indicates whether or not the message has attachments \"IsSubmitted\" - Indicates whether the message has been submitted to the Outbox \"ContentClass\" - represents a content class of item Additionally, the following field names are allowed for pst/ost files: \"MessageClass\" - Represents a message class \"ContainerClass\" - Represents a folder container class \"Importance\" - Represents a message importance \"MessageSize\" - represents a size (in bytes) of message \"FolderName\" - represents a folder name \"ContentsCount\" - represents a total number of items in the folder \"UnreadContentsCount\" - represents the number of unread items in the folder. \"Subfolders\" - Indicates whether or not the folder has subfolders \"Read\" - the message is marked as having been read \"HasAttachment\" - the message has at least one attachment \"Unsent\" - the message is still being composed \"Unmodified\" - the message has not been modified since it was first saved (if unsent) or it was delivered (if sent) \"FromMe\" - the user receiving the message was also the user who sent the message \"Resend\" - the message includes a request for a resend operation with a non-delivery report \"NotifyRead\" - the user who sent the message has requested notification when a recipient first reads it \"NotifyUnread\" - the user who sent the message has requested notification when a recipient deletes it before reading or the Message object expires \"EverRead\" - the message has been read at least once The field value (<Field value>) can take the following values: For text fields - any string, For date type fields - the string of \"d-MMM-yyy\" format, ex. \"10-Feb-2009\", For flags (fields of boolean type) - either \"True\", or \"False\"
890
+ # @param [ListEmailModelsRequestData] request Request object.
891
+ # @return [ListResponseOfEmailDto]
892
+ def list_email_models(request)
893
+ http_request = request.to_http_info(@api_client)
894
+ make_request(http_request, :GET, 'ListResponseOfEmailDto')
895
+ end
896
+
897
+ # Get message threads from folder. All messages are partly fetched (without email body and other fields)
898
+ # @param [ListEmailThreadsRequestData] request Request object.
899
+ # @return [EmailThreadList]
900
+ def list_email_threads(request)
901
+ http_request = request.to_http_info(@api_client)
902
+ make_request(http_request, :GET, 'EmailThreadList')
903
+ end
904
+
905
+ # Move message to another folder
906
+ # @param [MoveEmailMessageRequestData] request Request object.
907
+ # @return [nil]
908
+ def move_email_message(request)
909
+ http_request = request.to_http_info(@api_client)
910
+ make_request(http_request, :PUT, nil)
911
+ nil
912
+ end
913
+
914
+ # Move thread to another folder
915
+ # @param [MoveEmailThreadRequestData] request Request object.
916
+ # @return [nil]
917
+ def move_email_thread(request)
918
+ http_request = request.to_http_info(@api_client)
919
+ make_request(http_request, :PUT, nil)
920
+ nil
921
+ end
922
+
923
+ # @param [MoveFileRequestData] request Request object.
924
+ # @return [nil]
925
+ def move_file(request)
926
+ http_request = request.to_http_info(@api_client)
927
+ make_request(http_request, :PUT, nil)
928
+ nil
929
+ end
930
+
931
+ # @param [MoveFolderRequestData] request Request object.
932
+ # @return [nil]
933
+ def move_folder(request)
934
+ http_request = request.to_http_info(@api_client)
935
+ make_request(http_request, :PUT, nil)
936
+ nil
937
+ end
938
+
939
+ # @param [ObjectExistsRequestData] request Request object.
940
+ # @return [ObjectExist]
941
+ def object_exists(request)
942
+ http_request = request.to_http_info(@api_client)
943
+ make_request(http_request, :GET, 'ObjectExist')
944
+ end
945
+
946
+ # Save iCalendar
947
+ # @param [SaveCalendarModelRequestData] request Request object.
948
+ # @return [nil]
949
+ def save_calendar_model(request)
950
+ http_request = request.to_http_info(@api_client)
951
+ make_request(http_request, :PUT, nil)
952
+ nil
953
+ end
954
+
955
+ # Save contact.
956
+ # @param [SaveContactModelRequestData] request Request object.
957
+ # @return [nil]
958
+ def save_contact_model(request)
959
+ http_request = request.to_http_info(@api_client)
960
+ make_request(http_request, :PUT, nil)
961
+ nil
962
+ end
963
+
964
+ # Create email client account file (*.account) with any of supported credentials
965
+ # @param [SaveEmailClientAccountRequestData] request Request object.
966
+ # @return [nil]
967
+ def save_email_client_account(request)
968
+ http_request = request.to_http_info(@api_client)
969
+ make_request(http_request, :PUT, nil)
970
+ nil
971
+ end
972
+
973
+ # Create email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\".
974
+ # @param [SaveEmailClientMultiAccountRequestData] request Request object.
975
+ # @return [nil]
976
+ def save_email_client_multi_account(request)
977
+ http_request = request.to_http_info(@api_client)
978
+ make_request(http_request, :PUT, nil)
979
+ nil
980
+ end
981
+
982
+ # Save email document.
983
+ # @param [SaveEmailModelRequestData] request Request object.
984
+ # @return [nil]
985
+ def save_email_model(request)
986
+ http_request = request.to_http_info(@api_client)
987
+ make_request(http_request, :PUT, nil)
988
+ nil
989
+ end
990
+
991
+ # Create email account file (*.account) with login/password authentication
992
+ # @param [SaveMailAccountRequestData] request Request object.
993
+ # @return [nil]
994
+ def save_mail_account(request)
995
+ http_request = request.to_http_info(@api_client)
996
+ make_request(http_request, :POST, nil)
997
+ nil
998
+ end
999
+
1000
+ # Create email account file (*.account) with OAuth
1001
+ # @param [SaveMailOAuthAccountRequestData] request Request object.
1002
+ # @return [nil]
1003
+ def save_mail_o_auth_account(request)
1004
+ http_request = request.to_http_info(@api_client)
1005
+ make_request(http_request, :POST, nil)
1006
+ nil
1007
+ end
1008
+
1009
+ # Save MAPI Calendar to storage.
1010
+ # @param [SaveMapiCalendarModelRequestData] request Request object.
1011
+ # @return [nil]
1012
+ def save_mapi_calendar_model(request)
1013
+ http_request = request.to_http_info(@api_client)
1014
+ make_request(http_request, :PUT, nil)
1015
+ nil
1016
+ end
1017
+
1018
+ # Save MAPI Contact to storage.
1019
+ # @param [SaveMapiContactModelRequestData] request Request object.
1020
+ # @return [nil]
1021
+ def save_mapi_contact_model(request)
1022
+ http_request = request.to_http_info(@api_client)
1023
+ make_request(http_request, :PUT, nil)
1024
+ nil
1025
+ end
1026
+
1027
+ # Save MAPI message to storage.
1028
+ # @param [SaveMapiMessageModelRequestData] request Request object.
1029
+ # @return [nil]
1030
+ def save_mapi_message_model(request)
1031
+ http_request = request.to_http_info(@api_client)
1032
+ make_request(http_request, :PUT, nil)
1033
+ nil
1034
+ end
1035
+
1036
+ # Send an email from *.eml file located on storage
1037
+ # @param [SendEmailRequestData] request Request object.
1038
+ # @return [nil]
1039
+ def send_email(request)
1040
+ http_request = request.to_http_info(@api_client)
1041
+ make_request(http_request, :POST, nil)
1042
+ nil
1043
+ end
1044
+
1045
+ # Send an email specified by MIME in request
1046
+ # @param [SendEmailMimeRequestData] request Request object.
1047
+ # @return [nil]
1048
+ def send_email_mime(request)
1049
+ http_request = request.to_http_info(@api_client)
1050
+ make_request(http_request, :POST, nil)
1051
+ nil
1052
+ end
1053
+
1054
+ # Send an email specified by model in request
1055
+ # @param [SendEmailModelRequestData] request Request object.
1056
+ # @return [nil]
1057
+ def send_email_model(request)
1058
+ http_request = request.to_http_info(@api_client)
1059
+ make_request(http_request, :POST, nil)
1060
+ nil
1061
+ end
1062
+
1063
+ # Set email document property value
1064
+ # @param [SetEmailPropertyRequestData] request Request object.
1065
+ # @return [EmailPropertyResponse]
1066
+ def set_email_property(request)
1067
+ http_request = request.to_http_info(@api_client)
1068
+ make_request(http_request, :PUT, 'EmailPropertyResponse')
1069
+ end
1070
+
1071
+ # Sets \"Message is read\" flag
1072
+ # @param [SetEmailReadFlagRequestData] request Request object.
1073
+ # @return [nil]
1074
+ def set_email_read_flag(request)
1075
+ http_request = request.to_http_info(@api_client)
1076
+ make_request(http_request, :POST, nil)
1077
+ nil
1078
+ end
1079
+
1080
+ # Mark all messages in thread as read or unread
1081
+ # @param [SetEmailThreadReadFlagRequestData] request Request object.
1082
+ # @return [nil]
1083
+ def set_email_thread_read_flag(request)
1084
+ http_request = request.to_http_info(@api_client)
1085
+ make_request(http_request, :PUT, nil)
1086
+ nil
1087
+ end
1088
+
1089
+ # @param [StorageExistsRequestData] request Request object.
1090
+ # @return [StorageExist]
1091
+ def storage_exists(request)
1092
+ http_request = request.to_http_info(@api_client)
1093
+ make_request(http_request, :GET, 'StorageExist')
1094
+ end
1095
+
1096
+ # Update calendar file properties
1097
+ # @param [UpdateCalendarPropertiesRequestData] request Request object.
1098
+ # @return [nil]
1099
+ def update_calendar_properties(request)
1100
+ http_request = request.to_http_info(@api_client)
1101
+ make_request(http_request, :PUT, nil)
1102
+ nil
1103
+ end
1104
+
1105
+ # Update contact document properties
1106
+ # @param [UpdateContactPropertiesRequestData] request Request object.
1107
+ # @return [nil]
1108
+ def update_contact_properties(request)
1109
+ http_request = request.to_http_info(@api_client)
1110
+ make_request(http_request, :PUT, nil)
1111
+ nil
1112
+ end
1113
+
1114
+ # Update document properties
1115
+ # @param [UpdateMapiPropertiesRequestData] request Request object.
1116
+ # @return [nil]
1117
+ def update_mapi_properties(request)
1118
+ http_request = request.to_http_info(@api_client)
1119
+ make_request(http_request, :PUT, nil)
1120
+ nil
1121
+ end
1122
+
1123
+ # @param [UploadFileRequestData] request Request object.
1124
+ # @return [FilesUploadResult]
1125
+ def upload_file(request)
1126
+ http_request = request.to_http_info(@api_client)
1127
+ make_request(http_request, :PUT, 'FilesUploadResult')
1128
+ end
1129
+
1130
+ private
1131
+
1132
+ def make_request(http_request, method, return_type)
1133
+ call_api(http_request, method, return_type)
1134
+ rescue ApiError => e
1135
+ if e.code.equal? 401
1136
+ request_token
1137
+ return call_api(http_request, method, return_type)
1138
+ end
1139
+ raise
1140
+
1141
+ end
1142
+
1143
+ def call_api(http_request, method, return_type)
1144
+ response = @api_client.call_api(method,
1145
+ http_request.resource_path,
1146
+ header_params: http_request.header_params,
1147
+ query_params: http_request.query_params,
1148
+ form_params: http_request.form_params,
1149
+ body: http_request.body,
1150
+ auth_names: http_request.auth_names,
1151
+ return_type: return_type)
1152
+ response[0]
1153
+ end
1154
+
1155
+ def request_token
1156
+ config = @api_client.config
1157
+ request_url = '/connect/token'
1158
+ form_params =
1159
+ {
1160
+ 'grant_type': 'client_credentials',
1161
+ 'client_id': config.api_key[:app_sid],
1162
+ 'client_secret': config.api_key[:api_key]
1163
+ }
1164
+
1165
+ header_params =
1166
+ {
1167
+ 'Accept' => 'application/json',
1168
+ 'Content-Type' =>'application/x-www-form-urlencoded'
1169
+ }
1170
+
1171
+ base_path = @api_client.config.base_path
1172
+ @api_client.config.base_path = ''
1173
+
1174
+ data = @api_client.call_api(:POST, request_url,
1175
+ header_params: header_params,
1176
+ form_params: form_params,
1177
+ return_type: 'Object',
1178
+ host: @api_client.config.auth_url)
1179
+ access_token = data[0]['access_token'.to_sym]
1180
+
1181
+ @api_client.config.base_path = base_path
1182
+ @api_client.config.access_token = access_token
1183
+ end
1184
+ end
1185
+ end
1186
+