aspose_email_cloud 20.3.0 → 20.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (348) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose-email-cloud.rb +205 -187
  3. data/lib/aspose-email-cloud/api/ai_bcr_api.rb +87 -0
  4. data/lib/aspose-email-cloud/api/ai_group.rb +49 -0
  5. data/lib/aspose-email-cloud/api/ai_name_api.rb +216 -0
  6. data/lib/aspose-email-cloud/api/calendar_api.rb +209 -0
  7. data/lib/aspose-email-cloud/api/client_account_api.rb +124 -0
  8. data/lib/aspose-email-cloud/api/client_folder_api.rb +116 -0
  9. data/lib/aspose-email-cloud/api/client_group.rb +59 -0
  10. data/lib/aspose-email-cloud/api/client_message_api.rb +233 -0
  11. data/lib/aspose-email-cloud/api/client_thread_api.rb +152 -0
  12. data/lib/aspose-email-cloud/api/cloud_storage_group.rb +54 -0
  13. data/lib/aspose-email-cloud/api/contact_api.rb +174 -0
  14. data/lib/aspose-email-cloud/api/disposable_email_api.rb +60 -0
  15. data/lib/aspose-email-cloud/api/email_api.rb +107 -854
  16. data/lib/aspose-email-cloud/api/email_cloud.rb +96 -0
  17. data/lib/aspose-email-cloud/api/email_config_api.rb +114 -0
  18. data/lib/aspose-email-cloud/api/file_api.rb +95 -0
  19. data/lib/aspose-email-cloud/api/folder_api.rb +96 -0
  20. data/lib/aspose-email-cloud/api/mapi_calendar_api.rb +150 -0
  21. data/lib/aspose-email-cloud/api/mapi_contact_api.rb +150 -0
  22. data/lib/aspose-email-cloud/api/mapi_group.rb +54 -0
  23. data/lib/aspose-email-cloud/api/mapi_message_api.rb +150 -0
  24. data/lib/aspose-email-cloud/api/storage_api.rb +84 -0
  25. data/lib/aspose-email-cloud/api_client.rb +11 -10
  26. data/lib/aspose-email-cloud/api_error.rb +1 -1
  27. data/lib/aspose-email-cloud/api_invoker.rb +92 -0
  28. data/lib/aspose-email-cloud/configuration.rb +12 -12
  29. data/lib/aspose-email-cloud/models/ai_bcr_image.rb +5 -19
  30. data/lib/aspose-email-cloud/models/ai_bcr_image_storage_file.rb +12 -25
  31. data/lib/aspose-email-cloud/models/ai_bcr_options.rb +9 -27
  32. data/lib/aspose-email-cloud/models/ai_bcr_parse_request.rb +95 -0
  33. data/lib/aspose-email-cloud/models/{ai_bcr_parse_storage_rq.rb → ai_bcr_parse_storage_request.rb} +29 -53
  34. data/lib/aspose-email-cloud/models/{requests/ai_name_complete_request_data.rb → ai_name_complete_request.rb} +23 -29
  35. data/lib/aspose-email-cloud/models/ai_name_component.rb +6 -32
  36. data/lib/aspose-email-cloud/models/{list_response_of_string.rb → ai_name_component_list.rb} +9 -24
  37. data/lib/aspose-email-cloud/models/ai_name_cultural_context.rb +7 -37
  38. data/lib/aspose-email-cloud/models/{requests/ai_name_expand_request_data.rb → ai_name_expand_request.rb} +23 -29
  39. data/lib/aspose-email-cloud/models/ai_name_extracted.rb +4 -24
  40. data/lib/aspose-email-cloud/models/ai_name_extracted_component.rb +4 -22
  41. data/lib/aspose-email-cloud/models/{value_response.rb → ai_name_extracted_list.rb} +10 -24
  42. data/lib/aspose-email-cloud/models/{requests/ai_name_format_request_data.rb → ai_name_format_request.rb} +23 -29
  43. data/lib/aspose-email-cloud/models/ai_name_formatted.rb +4 -22
  44. data/lib/aspose-email-cloud/models/ai_name_gender_hypothesis.rb +4 -22
  45. data/lib/aspose-email-cloud/models/{list_response_of_ai_bcr_ocr_data.rb → ai_name_gender_hypothesis_list.rb} +9 -24
  46. data/lib/aspose-email-cloud/models/{requests/ai_name_genderize_request_data.rb → ai_name_genderize_request.rb} +23 -29
  47. data/lib/aspose-email-cloud/models/{ai_name_parsed_match_rq.rb → ai_name_match_parsed_request.rb} +8 -38
  48. data/lib/aspose-email-cloud/models/{requests/ai_name_match_request_data.rb → ai_name_match_request.rb} +26 -33
  49. data/lib/aspose-email-cloud/models/ai_name_match_result.rb +4 -24
  50. data/lib/aspose-email-cloud/models/ai_name_mismatch.rb +5 -27
  51. data/lib/aspose-email-cloud/models/{requests/ai_name_parse_email_address_request_data.rb → ai_name_parse_email_address_request.rb} +26 -29
  52. data/lib/aspose-email-cloud/models/{requests/ai_name_parse_request_data.rb → ai_name_parse_request.rb} +25 -31
  53. data/lib/aspose-email-cloud/models/{ai_name_parsed_rq.rb → ai_name_parsed_request.rb} +7 -31
  54. data/lib/aspose-email-cloud/models/ai_name_weighted.rb +4 -22
  55. data/lib/aspose-email-cloud/models/ai_name_weighted_variants.rb +4 -24
  56. data/lib/aspose-email-cloud/models/alternate_view.rb +9 -47
  57. data/lib/aspose-email-cloud/models/associated_person.rb +5 -27
  58. data/lib/aspose-email-cloud/models/attachment.rb +12 -60
  59. data/lib/aspose-email-cloud/models/attachment_base.rb +6 -34
  60. data/lib/aspose-email-cloud/models/{calendar_dto_alternate_rq.rb → calendar_as_alternate_request.rb} +8 -30
  61. data/lib/aspose-email-cloud/models/calendar_as_file_request.rb +218 -0
  62. data/lib/aspose-email-cloud/models/{requests/save_email_model_request_data.rb → calendar_convert_request.rb} +27 -42
  63. data/lib/aspose-email-cloud/models/calendar_dto.rb +35 -130
  64. data/lib/aspose-email-cloud/models/{requests/ai_bcr_parse_request_data.rb → calendar_from_file_request.rb} +23 -28
  65. data/lib/aspose-email-cloud/models/{requests/get_calendar_model_as_alternate_request_data.rb → calendar_get_as_alternate_request.rb} +22 -27
  66. data/lib/aspose-email-cloud/models/calendar_get_as_file_request.rb +96 -0
  67. data/lib/aspose-email-cloud/models/{requests/get_calendar_model_list_request_data.rb → calendar_get_list_request.rb} +26 -29
  68. data/lib/aspose-email-cloud/models/{requests/get_calendar_model_request_data.rb → calendar_get_request.rb} +26 -31
  69. data/lib/aspose-email-cloud/models/calendar_reminder.rb +10 -56
  70. data/lib/aspose-email-cloud/models/{storage_model_rq_of_calendar_dto.rb → calendar_save_request.rb} +40 -33
  71. data/lib/aspose-email-cloud/models/{calendar_dto_list.rb → calendar_storage_list.rb} +6 -22
  72. data/lib/aspose-email-cloud/models/{ai_bcr_rq.rb → client_account_base_request.rb} +20 -29
  73. data/lib/aspose-email-cloud/models/{requests/get_email_attachment_request_data.rb → client_account_get_multi_request.rb} +27 -39
  74. data/lib/aspose-email-cloud/models/{requests/get_email_request_data.rb → client_account_get_request.rb} +26 -31
  75. data/lib/aspose-email-cloud/models/{storage_file_rq_of_email_client_multi_account.rb → client_account_save_multi_request.rb} +29 -36
  76. data/lib/aspose-email-cloud/models/{storage_file_rq_of_email_client_account.rb → client_account_save_request.rb} +29 -36
  77. data/lib/aspose-email-cloud/models/client_folder_create_request.rb +246 -0
  78. data/lib/aspose-email-cloud/models/{ai_bcr_base64_image.rb → client_folder_delete_request.rb} +50 -44
  79. data/lib/aspose-email-cloud/models/{requests/list_email_folders_request_data.rb → client_folder_get_list_request.rb} +30 -39
  80. data/lib/aspose-email-cloud/models/client_message_append_file_request.rb +114 -0
  81. data/lib/aspose-email-cloud/models/client_message_append_request.rb +241 -0
  82. data/lib/aspose-email-cloud/models/client_message_base_request.rb +237 -0
  83. data/lib/aspose-email-cloud/models/{email_property.rb → client_message_delete_request.rb} +48 -70
  84. data/lib/aspose-email-cloud/models/client_message_fetch_file_request.rb +108 -0
  85. data/lib/aspose-email-cloud/models/client_message_fetch_request.rb +114 -0
  86. data/lib/aspose-email-cloud/models/{requests/list_email_models_request_data.rb → client_message_list_request.rb} +43 -49
  87. data/lib/aspose-email-cloud/models/{set_message_read_flag_account_base_request.rb → client_message_move_request.rb} +60 -99
  88. data/lib/aspose-email-cloud/models/client_message_send_file_request.rb +105 -0
  89. data/lib/aspose-email-cloud/models/{ai_bcr_base64_rq.rb → client_message_send_request.rb} +34 -44
  90. data/lib/aspose-email-cloud/models/client_message_set_is_read_request.rb +251 -0
  91. data/lib/aspose-email-cloud/models/{hierarchical_object_response.rb → client_thread_base_request.rb} +52 -41
  92. data/lib/aspose-email-cloud/models/{ai_bcr_ocr_data.rb → client_thread_delete_request.rb} +59 -69
  93. data/lib/aspose-email-cloud/models/client_thread_get_list_request.rb +108 -0
  94. data/lib/aspose-email-cloud/models/client_thread_get_messages_request.rb +105 -0
  95. data/lib/aspose-email-cloud/models/{account_base_request.rb → client_thread_move_request.rb} +72 -65
  96. data/lib/aspose-email-cloud/models/client_thread_set_is_read_request.rb +260 -0
  97. data/lib/aspose-email-cloud/models/contact_as_file_request.rb +218 -0
  98. data/lib/aspose-email-cloud/models/contact_convert_request.rb +94 -0
  99. data/lib/aspose-email-cloud/models/contact_dto.rb +38 -208
  100. data/lib/aspose-email-cloud/models/{requests/create_mapi_request_data.rb → contact_from_file_request.rb} +31 -36
  101. data/lib/aspose-email-cloud/models/{requests/get_email_property_request_data.rb → contact_get_as_file_request.rb} +38 -33
  102. data/lib/aspose-email-cloud/models/{requests/get_contact_model_list_request_data.rb → contact_get_list_request.rb} +18 -20
  103. data/lib/aspose-email-cloud/models/{requests/get_contact_model_request_data.rb → contact_get_request.rb} +23 -28
  104. data/lib/aspose-email-cloud/models/{list_response_of_hierarchical_object.rb → contact_list.rb} +9 -24
  105. data/lib/aspose-email-cloud/models/contact_photo.rb +46 -25
  106. data/lib/aspose-email-cloud/models/{storage_model_rq_of_contact_dto.rb → contact_save_request.rb} +40 -33
  107. data/lib/aspose-email-cloud/models/{contact_dto_list.rb → contact_storage_list.rb} +6 -22
  108. data/lib/aspose-email-cloud/models/content_type.rb +7 -39
  109. data/lib/aspose-email-cloud/models/content_type_parameter.rb +4 -22
  110. data/lib/aspose-email-cloud/models/{requests/copy_file_request_data.rb → copy_file_request.rb} +13 -20
  111. data/lib/aspose-email-cloud/models/{requests/copy_folder_request_data.rb → copy_folder_request.rb} +13 -20
  112. data/lib/aspose-email-cloud/models/{requests/create_folder_request_data.rb → create_folder_request.rb} +12 -18
  113. data/lib/aspose-email-cloud/models/customer_event.rb +4 -22
  114. data/lib/aspose-email-cloud/models/{indexed_hierarchical_object.rb → daily_recurrence_pattern_dto.rb} +261 -265
  115. data/lib/aspose-email-cloud/models/{requests/delete_file_request_data.rb → delete_file_request.rb} +12 -18
  116. data/lib/aspose-email-cloud/models/{requests/delete_folder_request_data.rb → delete_folder_request.rb} +12 -18
  117. data/lib/aspose-email-cloud/models/disc_usage.rb +4 -22
  118. data/lib/aspose-email-cloud/models/{discover_email_config_rq.rb → discover_email_config_request.rb} +7 -29
  119. data/lib/aspose-email-cloud/models/{requests/is_email_address_disposable_request_data.rb → disposable_email_is_disposable_request.rb} +18 -20
  120. data/lib/aspose-email-cloud/models/{requests/download_file_request_data.rb → download_file_request.rb} +12 -18
  121. data/lib/aspose-email-cloud/models/email_account_config.rb +10 -56
  122. data/lib/aspose-email-cloud/models/email_account_config_list.rb +4 -20
  123. data/lib/aspose-email-cloud/models/email_address.rb +44 -41
  124. data/lib/aspose-email-cloud/models/email_as_file_request.rb +218 -0
  125. data/lib/aspose-email-cloud/models/email_client_account.rb +20 -41
  126. data/lib/aspose-email-cloud/models/email_client_account_credentials.rb +3 -26
  127. data/lib/aspose-email-cloud/models/email_client_account_oauth_credentials.rb +8 -47
  128. data/lib/aspose-email-cloud/models/email_client_account_password_credentials.rb +5 -32
  129. data/lib/aspose-email-cloud/models/email_client_multi_account.rb +4 -24
  130. data/lib/aspose-email-cloud/models/{discover_email_config_oauth.rb → email_config_discover_oauth_request.rb} +11 -49
  131. data/lib/aspose-email-cloud/models/{discover_email_config_password.rb → email_config_discover_password_request.rb} +8 -34
  132. data/lib/aspose-email-cloud/models/{requests/discover_email_config_request_data.rb → email_config_discover_request.rb} +20 -23
  133. data/lib/aspose-email-cloud/models/email_convert_request.rb +94 -0
  134. data/lib/aspose-email-cloud/models/email_dto.rb +34 -192
  135. data/lib/aspose-email-cloud/models/{requests/save_contact_model_request_data.rb → email_from_file_request.rb} +27 -42
  136. data/lib/aspose-email-cloud/models/{requests/get_email_as_file_request_data.rb → email_get_as_file_request.rb} +19 -24
  137. data/lib/aspose-email-cloud/models/{requests/get_email_model_list_request_data.rb → email_get_list_request.rb} +20 -22
  138. data/lib/aspose-email-cloud/models/{requests/get_email_model_request_data.rb → email_get_request.rb} +25 -30
  139. data/lib/aspose-email-cloud/models/email_list.rb +199 -0
  140. data/lib/aspose-email-cloud/models/{requests/email_request.rb → email_request.rb} +7 -12
  141. data/lib/aspose-email-cloud/models/{storage_model_rq_of_email_dto.rb → email_save_request.rb} +40 -33
  142. data/lib/aspose-email-cloud/models/{email_dto_list.rb → email_storage_list.rb} +6 -22
  143. data/lib/aspose-email-cloud/models/email_thread.rb +226 -0
  144. data/lib/aspose-email-cloud/models/email_thread_list.rb +199 -0
  145. data/lib/aspose-email-cloud/models/enum_with_custom_of_associated_person_category.rb +23 -22
  146. data/lib/aspose-email-cloud/models/enum_with_custom_of_email_address_category.rb +23 -22
  147. data/lib/aspose-email-cloud/models/enum_with_custom_of_event_category.rb +23 -22
  148. data/lib/aspose-email-cloud/models/enum_with_custom_of_instant_messenger_category.rb +23 -22
  149. data/lib/aspose-email-cloud/models/enum_with_custom_of_phone_number_category.rb +23 -22
  150. data/lib/aspose-email-cloud/models/enum_with_custom_of_postal_address_category.rb +23 -22
  151. data/lib/aspose-email-cloud/models/enum_with_custom_of_url_category.rb +23 -22
  152. data/lib/aspose-email-cloud/models/error.rb +6 -32
  153. data/lib/aspose-email-cloud/models/error_details.rb +4 -22
  154. data/lib/aspose-email-cloud/models/file_version.rb +10 -48
  155. data/lib/aspose-email-cloud/models/file_versions.rb +3 -19
  156. data/lib/aspose-email-cloud/models/files_list.rb +3 -19
  157. data/lib/aspose-email-cloud/models/files_upload_result.rb +4 -26
  158. data/lib/aspose-email-cloud/models/{requests/get_disc_usage_request_data.rb → get_disc_usage_request.rb} +11 -16
  159. data/lib/aspose-email-cloud/models/{requests/get_file_versions_request_data.rb → get_file_versions_request.rb} +12 -18
  160. data/lib/aspose-email-cloud/models/{requests/get_files_list_request_data.rb → get_files_list_request.rb} +12 -18
  161. data/lib/aspose-email-cloud/models/{requests/http_request.rb → http_request.rb} +2 -6
  162. data/lib/aspose-email-cloud/models/instant_messenger_address.rb +5 -27
  163. data/lib/aspose-email-cloud/models/linked_resource.rb +8 -40
  164. data/lib/aspose-email-cloud/models/list_response_of_ai_name_component.rb +3 -19
  165. data/lib/aspose-email-cloud/models/list_response_of_ai_name_extracted.rb +3 -19
  166. data/lib/aspose-email-cloud/models/list_response_of_ai_name_gender_hypothesis.rb +3 -19
  167. data/lib/aspose-email-cloud/models/list_response_of_contact_dto.rb +3 -19
  168. data/lib/aspose-email-cloud/models/list_response_of_email_account_config.rb +3 -19
  169. data/lib/aspose-email-cloud/models/list_response_of_email_dto.rb +3 -19
  170. data/lib/aspose-email-cloud/models/list_response_of_email_thread.rb +198 -0
  171. data/lib/aspose-email-cloud/models/list_response_of_mail_message_base.rb +198 -0
  172. data/lib/aspose-email-cloud/models/list_response_of_mail_server_folder.rb +3 -19
  173. data/lib/aspose-email-cloud/models/list_response_of_storage_file_location.rb +3 -19
  174. data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_calendar_dto.rb +3 -19
  175. data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_contact_dto.rb +3 -19
  176. data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_email_dto.rb +3 -19
  177. data/lib/aspose-email-cloud/models/mail_address.rb +18 -31
  178. data/lib/aspose-email-cloud/models/mail_message_base.rb +205 -0
  179. data/lib/aspose-email-cloud/models/mail_message_base64.rb +252 -0
  180. data/lib/aspose-email-cloud/models/mail_message_base_list.rb +199 -0
  181. data/lib/aspose-email-cloud/models/mail_message_dto.rb +219 -0
  182. data/lib/aspose-email-cloud/models/mail_message_mapi.rb +219 -0
  183. data/lib/aspose-email-cloud/models/mail_server_folder.rb +4 -22
  184. data/lib/aspose-email-cloud/models/mail_server_folder_list.rb +199 -0
  185. data/lib/aspose-email-cloud/models/{mime_response.rb → mapi_attachment_dto.rb} +23 -28
  186. data/lib/aspose-email-cloud/models/mapi_binary_property_dto.rb +223 -0
  187. data/lib/aspose-email-cloud/models/mapi_boolean_property_dto.rb +228 -0
  188. data/lib/aspose-email-cloud/models/mapi_calendar_as_file_request.rb +218 -0
  189. data/lib/aspose-email-cloud/models/{add_attachment_request.rb → mapi_calendar_attendees_dto.rb} +52 -42
  190. data/lib/aspose-email-cloud/models/mapi_calendar_daily_recurrence_pattern_dto.rb +381 -0
  191. data/lib/aspose-email-cloud/models/mapi_calendar_dto.rb +561 -0
  192. data/lib/aspose-email-cloud/models/{ai_bcr_ocr_data_part.rb → mapi_calendar_event_recurrence_dto.rb} +69 -110
  193. data/lib/aspose-email-cloud/models/mapi_calendar_exception_info_dto.rb +361 -0
  194. data/lib/aspose-email-cloud/models/{requests/ai_bcr_ocr_request_data.rb → mapi_calendar_from_file_request.rb} +23 -28
  195. data/lib/aspose-email-cloud/models/{requests/get_calendar_request_data.rb → mapi_calendar_get_request.rb} +29 -31
  196. data/lib/aspose-email-cloud/models/mapi_calendar_recurrence_pattern_dto.rb +372 -0
  197. data/lib/aspose-email-cloud/models/mapi_calendar_save_request.rb +232 -0
  198. data/lib/aspose-email-cloud/models/mapi_calendar_time_zone_dto.rb +208 -0
  199. data/lib/aspose-email-cloud/models/{send_email_model_rq.rb → mapi_calendar_time_zone_info_dto.rb} +85 -88
  200. data/lib/aspose-email-cloud/models/{delete_message_base_request.rb → mapi_calendar_time_zone_rule_dto.rb} +133 -107
  201. data/lib/aspose-email-cloud/models/mapi_calendar_weekly_recurrence_pattern_dto.rb +381 -0
  202. data/lib/aspose-email-cloud/models/mapi_calendar_yearly_and_monthly_recurrence_pattern_dto.rb +409 -0
  203. data/lib/aspose-email-cloud/models/mapi_contact_as_file_request.rb +218 -0
  204. data/lib/aspose-email-cloud/models/mapi_contact_dto.rb +440 -0
  205. data/lib/aspose-email-cloud/models/mapi_contact_electronic_address_dto.rb +249 -0
  206. data/lib/aspose-email-cloud/models/{delete_folder_base_request.rb → mapi_contact_electronic_address_property_set_dto.rb} +92 -129
  207. data/lib/aspose-email-cloud/models/mapi_contact_event_property_set_dto.rb +218 -0
  208. data/lib/aspose-email-cloud/models/mapi_contact_from_file_request.rb +84 -0
  209. data/lib/aspose-email-cloud/models/{requests/get_contact_properties_request_data.rb → mapi_contact_get_request.rb} +31 -33
  210. data/lib/aspose-email-cloud/models/mapi_contact_name_property_set_dto.rb +285 -0
  211. data/lib/aspose-email-cloud/models/mapi_contact_other_property_set_dto.rb +277 -0
  212. data/lib/aspose-email-cloud/models/mapi_contact_personal_info_property_set_dto.rb +366 -0
  213. data/lib/aspose-email-cloud/models/{indexed_primitive_object.rb → mapi_contact_photo_dto.rb} +252 -263
  214. data/lib/aspose-email-cloud/models/{link.rb → mapi_contact_physical_address_dto.rb} +88 -64
  215. data/lib/aspose-email-cloud/models/{ai_bcr_parse_ocr_data_rq.rb → mapi_contact_physical_address_property_set_dto.rb} +33 -49
  216. data/lib/aspose-email-cloud/models/mapi_contact_professional_property_set_dto.rb +253 -0
  217. data/lib/aspose-email-cloud/models/mapi_contact_save_request.rb +232 -0
  218. data/lib/aspose-email-cloud/models/mapi_contact_telephone_property_set_dto.rb +371 -0
  219. data/lib/aspose-email-cloud/models/mapi_date_time_property_dto.rb +228 -0
  220. data/lib/aspose-email-cloud/models/{base_object.rb → mapi_electronic_address_dto.rb} +235 -232
  221. data/lib/aspose-email-cloud/models/{primitive_object.rb → mapi_file_as_property_dto.rb} +228 -245
  222. data/lib/aspose-email-cloud/models/mapi_importance_property_dto.rb +228 -0
  223. data/lib/aspose-email-cloud/models/mapi_int_property_dto.rb +228 -0
  224. data/lib/aspose-email-cloud/models/mapi_known_property_descriptor.rb +238 -0
  225. data/lib/aspose-email-cloud/models/mapi_legacy_free_busy_property_dto.rb +228 -0
  226. data/lib/aspose-email-cloud/models/mapi_message_as_file_request.rb +218 -0
  227. data/lib/aspose-email-cloud/models/mapi_message_dto.rb +604 -0
  228. data/lib/aspose-email-cloud/models/{requests/convert_email_request_data.rb → mapi_message_from_file_request.rb} +21 -27
  229. data/lib/aspose-email-cloud/models/mapi_message_get_request.rb +99 -0
  230. data/lib/aspose-email-cloud/models/mapi_message_item_base_dto.rb +359 -0
  231. data/lib/aspose-email-cloud/models/mapi_message_save_request.rb +232 -0
  232. data/lib/aspose-email-cloud/models/mapi_multi_int_property_dto.rb +223 -0
  233. data/lib/aspose-email-cloud/models/mapi_multi_string_property_dto.rb +223 -0
  234. data/lib/aspose-email-cloud/models/mapi_physical_address_index_property_dto.rb +228 -0
  235. data/lib/aspose-email-cloud/models/mapi_pid_lid_property_descriptor.rb +279 -0
  236. data/lib/aspose-email-cloud/models/mapi_pid_name_property_descriptor.rb +265 -0
  237. data/lib/aspose-email-cloud/models/mapi_pid_property_descriptor.rb +251 -0
  238. data/lib/aspose-email-cloud/models/mapi_pid_tag_property_descriptor.rb +279 -0
  239. data/lib/aspose-email-cloud/models/mapi_property_descriptor.rb +205 -0
  240. data/lib/aspose-email-cloud/models/{email_document_response.rb → mapi_property_dto.rb} +29 -28
  241. data/lib/aspose-email-cloud/models/{hierarchical_object.rb → mapi_recipient_dto.rb} +231 -247
  242. data/lib/aspose-email-cloud/models/mapi_response_type_property_dto.rb +228 -0
  243. data/lib/aspose-email-cloud/models/mapi_string_property_dto.rb +223 -0
  244. data/lib/aspose-email-cloud/models/monthly_recurrence_pattern_dto.rb +303 -0
  245. data/lib/aspose-email-cloud/models/{requests/move_file_request_data.rb → move_file_request.rb} +13 -20
  246. data/lib/aspose-email-cloud/models/{requests/move_folder_request_data.rb → move_folder_request.rb} +16 -20
  247. data/lib/aspose-email-cloud/models/name_value_pair.rb +4 -22
  248. data/lib/aspose-email-cloud/models/object_exist.rb +4 -22
  249. data/lib/aspose-email-cloud/models/{requests/object_exists_request_data.rb → object_exists_request.rb} +12 -18
  250. data/lib/aspose-email-cloud/models/phone_number.rb +5 -27
  251. data/lib/aspose-email-cloud/models/postal_address.rb +13 -67
  252. data/lib/aspose-email-cloud/models/recurrence_pattern_dto.rb +261 -0
  253. data/lib/aspose-email-cloud/models/reminder_attendee.rb +27 -17
  254. data/lib/aspose-email-cloud/models/reminder_trigger.rb +5 -27
  255. data/lib/aspose-email-cloud/models/storage_exist.rb +3 -17
  256. data/lib/aspose-email-cloud/models/{requests/storage_exists_request_data.rb → storage_exists_request.rb} +15 -18
  257. data/lib/aspose-email-cloud/models/storage_file.rb +7 -37
  258. data/lib/aspose-email-cloud/models/storage_file_location.rb +6 -28
  259. data/lib/aspose-email-cloud/models/storage_file_location_list.rb +199 -0
  260. data/lib/aspose-email-cloud/models/storage_folder_location.rb +4 -22
  261. data/lib/aspose-email-cloud/models/storage_model_of_calendar_dto.rb +14 -22
  262. data/lib/aspose-email-cloud/models/storage_model_of_contact_dto.rb +14 -22
  263. data/lib/aspose-email-cloud/models/storage_model_of_email_client_account.rb +217 -0
  264. data/lib/aspose-email-cloud/models/storage_model_of_email_client_multi_account.rb +217 -0
  265. data/lib/aspose-email-cloud/models/storage_model_of_email_dto.rb +14 -22
  266. data/lib/aspose-email-cloud/models/storage_model_of_mapi_calendar_dto.rb +217 -0
  267. data/lib/aspose-email-cloud/models/storage_model_of_mapi_contact_dto.rb +217 -0
  268. data/lib/aspose-email-cloud/models/storage_model_of_mapi_message_dto.rb +217 -0
  269. data/lib/aspose-email-cloud/models/task_regenerating_pattern_dto.rb +275 -0
  270. data/lib/aspose-email-cloud/models/{requests/upload_file_request_data.rb → upload_file_request.rb} +15 -20
  271. data/lib/aspose-email-cloud/models/url.rb +5 -27
  272. data/lib/aspose-email-cloud/models/value_t_of_boolean.rb +3 -17
  273. data/lib/aspose-email-cloud/models/value_t_of_string.rb +222 -0
  274. data/lib/aspose-email-cloud/models/weekly_recurrence_pattern_dto.rb +270 -0
  275. data/lib/aspose-email-cloud/models/{create_folder_base_request.rb → yearly_recurrence_pattern_dto.rb} +115 -111
  276. data/lib/aspose-email-cloud/version.rb +15 -15
  277. metadata +247 -214
  278. data/lib/aspose-email-cloud/models/ai_bcr_storage_image_rq.rb +0 -233
  279. data/lib/aspose-email-cloud/models/append_email_account_base_request.rb +0 -318
  280. data/lib/aspose-email-cloud/models/append_email_base_request.rb +0 -336
  281. data/lib/aspose-email-cloud/models/append_email_mime_base_request.rb +0 -355
  282. data/lib/aspose-email-cloud/models/append_email_model_rq.rb +0 -336
  283. data/lib/aspose-email-cloud/models/create_email_request.rb +0 -231
  284. data/lib/aspose-email-cloud/models/email_account_request.rb +0 -397
  285. data/lib/aspose-email-cloud/models/email_document.rb +0 -233
  286. data/lib/aspose-email-cloud/models/email_properties.rb +0 -233
  287. data/lib/aspose-email-cloud/models/email_property_response.rb +0 -213
  288. data/lib/aspose-email-cloud/models/hierarchical_object_request.rb +0 -231
  289. data/lib/aspose-email-cloud/models/list_response_of_hierarchical_object_response.rb +0 -214
  290. data/lib/aspose-email-cloud/models/requests/add_calendar_attachment_request_data.rb +0 -99
  291. data/lib/aspose-email-cloud/models/requests/add_contact_attachment_request_data.rb +0 -109
  292. data/lib/aspose-email-cloud/models/requests/add_email_attachment_request_data.rb +0 -99
  293. data/lib/aspose-email-cloud/models/requests/add_mapi_attachment_request_data.rb +0 -99
  294. data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb +0 -79
  295. data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_model_request_data.rb +0 -79
  296. data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_ocr_data_model_request_data.rb +0 -79
  297. data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_storage_request_data.rb +0 -79
  298. data/lib/aspose-email-cloud/models/requests/ai_name_expand_parsed_request_data.rb +0 -79
  299. data/lib/aspose-email-cloud/models/requests/ai_name_format_parsed_request_data.rb +0 -79
  300. data/lib/aspose-email-cloud/models/requests/ai_name_genderize_parsed_request_data.rb +0 -79
  301. data/lib/aspose-email-cloud/models/requests/ai_name_match_parsed_request_data.rb +0 -79
  302. data/lib/aspose-email-cloud/models/requests/append_email_message_request_data.rb +0 -79
  303. data/lib/aspose-email-cloud/models/requests/append_email_model_message_request_data.rb +0 -79
  304. data/lib/aspose-email-cloud/models/requests/append_mime_message_request_data.rb +0 -79
  305. data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_alternate_request_data.rb +0 -79
  306. data/lib/aspose-email-cloud/models/requests/create_calendar_request_data.rb +0 -89
  307. data/lib/aspose-email-cloud/models/requests/create_contact_request_data.rb +0 -99
  308. data/lib/aspose-email-cloud/models/requests/create_email_folder_request_data.rb +0 -79
  309. data/lib/aspose-email-cloud/models/requests/create_email_request_data.rb +0 -89
  310. data/lib/aspose-email-cloud/models/requests/delete_calendar_property_request_data.rb +0 -109
  311. data/lib/aspose-email-cloud/models/requests/delete_contact_property_request_data.rb +0 -119
  312. data/lib/aspose-email-cloud/models/requests/delete_email_folder_request_data.rb +0 -79
  313. data/lib/aspose-email-cloud/models/requests/delete_email_message_request_data.rb +0 -79
  314. data/lib/aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb +0 -99
  315. data/lib/aspose-email-cloud/models/requests/delete_mapi_properties_request_data.rb +0 -89
  316. data/lib/aspose-email-cloud/models/requests/discover_email_config_oauth_request_data.rb +0 -79
  317. data/lib/aspose-email-cloud/models/requests/discover_email_config_password_request_data.rb +0 -79
  318. data/lib/aspose-email-cloud/models/requests/fetch_email_message_request_data.rb +0 -109
  319. data/lib/aspose-email-cloud/models/requests/fetch_email_model_request_data.rb +0 -109
  320. data/lib/aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb +0 -101
  321. data/lib/aspose-email-cloud/models/requests/get_calendar_list_request_data.rb +0 -108
  322. data/lib/aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb +0 -111
  323. data/lib/aspose-email-cloud/models/requests/get_contact_list_request_data.rb +0 -103
  324. data/lib/aspose-email-cloud/models/requests/get_email_client_account_request_data.rb +0 -102
  325. data/lib/aspose-email-cloud/models/requests/get_email_client_multi_account_request_data.rb +0 -102
  326. data/lib/aspose-email-cloud/models/requests/get_mapi_attachment_request_data.rb +0 -101
  327. data/lib/aspose-email-cloud/models/requests/get_mapi_attachments_request_data.rb +0 -91
  328. data/lib/aspose-email-cloud/models/requests/get_mapi_list_request_data.rb +0 -93
  329. data/lib/aspose-email-cloud/models/requests/get_mapi_properties_request_data.rb +0 -91
  330. data/lib/aspose-email-cloud/models/requests/list_email_messages_request_data.rb +0 -127
  331. data/lib/aspose-email-cloud/models/requests/save_calendar_model_request_data.rb +0 -89
  332. data/lib/aspose-email-cloud/models/requests/save_email_client_account_request_data.rb +0 -79
  333. data/lib/aspose-email-cloud/models/requests/save_email_client_multi_account_request_data.rb +0 -79
  334. data/lib/aspose-email-cloud/models/requests/save_mail_account_request_data.rb +0 -79
  335. data/lib/aspose-email-cloud/models/requests/save_mail_o_auth_account_request_data.rb +0 -79
  336. data/lib/aspose-email-cloud/models/requests/send_email_mime_request_data.rb +0 -79
  337. data/lib/aspose-email-cloud/models/requests/send_email_model_request_data.rb +0 -79
  338. data/lib/aspose-email-cloud/models/requests/send_email_request_data.rb +0 -79
  339. data/lib/aspose-email-cloud/models/requests/set_email_property_request_data.rb +0 -99
  340. data/lib/aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb +0 -79
  341. data/lib/aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb +0 -89
  342. data/lib/aspose-email-cloud/models/requests/update_contact_properties_request_data.rb +0 -99
  343. data/lib/aspose-email-cloud/models/requests/update_mapi_properties_request_data.rb +0 -89
  344. data/lib/aspose-email-cloud/models/save_email_account_request.rb +0 -434
  345. data/lib/aspose-email-cloud/models/save_o_auth_email_account_request.rb +0 -521
  346. data/lib/aspose-email-cloud/models/send_email_base_request.rb +0 -281
  347. data/lib/aspose-email-cloud/models/send_email_mime_base_request.rb +0 -300
  348. data/lib/aspose-email-cloud/models/set_email_property_request.rb +0 -231
@@ -0,0 +1,381 @@
1
+ # ----------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="MapiCalendarDailyRecurrencePatternDto.rb">
3
+ # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
4
+ # </copyright>
5
+ # <summary>
6
+ # Permission is hereby granted, free of charge, to any person obtaining a
7
+ # copy of this software and associated documentation files (the "Software"),
8
+ # to deal in the Software without restriction, including without limitation
9
+ # the rights to use, copy, modify, merge, publish, distribute, sublicense,
10
+ # and/or sell copies of the Software, and to permit persons to whom the
11
+ # Software is furnished to do so, subject to the following conditions:
12
+ #
13
+ # The above copyright notice and this permission notice shall be included in
14
+ # all copies or substantial portions of the Software.
15
+ #
16
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22
+ # DEALINGS IN THE SOFTWARE.
23
+ # </summary>
24
+ # ----------------------------------------------------------------------------
25
+
26
+ require 'date'
27
+
28
+ module AsposeEmailCloud
29
+ # Represents the daily recurrence pattern of the mapi calendar.
30
+ class MapiCalendarDailyRecurrencePatternDto < MapiCalendarRecurrencePatternDto
31
+ # Enumerated the calendar type of the mapi recurrence Enum, available values: Default, CalGregorian, CalGregorianUs, CalJapan, CalTaiwan, CalKorea, CalHijri, CalThai, CalHebrew, CalGregorianMeFrench, CalGregorianArabic, CalGregorianXLitEnglish, CalGregorianXLitFrench, CalLunarJapanese, CalChineseLunar, CalSaka, CalLunarEtoChn, CalLunarEtoKor, CalLunarRokuyou, CalLunarKorean, CalUmAlQura
32
+ # @return [String]
33
+ attr_accessor :calendar_type
34
+ # An array of dates, each of which is the original instance date of either a deleted instance or a modified instance for this recurrence.
35
+ # @return [Array<DateTime>]
36
+ attr_accessor :deleted_instance_dates
37
+ # End date of an item recurrence pattern.
38
+ # @return [DateTime]
39
+ attr_accessor :end_date
40
+ # Enumerates the ending type for the recurrence. Enum, available values: None, EndAfterDate, EndAfterNOccurrences, NeverEnd
41
+ # @return [String]
42
+ attr_accessor :end_type
43
+ # An exception specifies changes to an instance of a recurring series.
44
+ # @return [Array<MapiCalendarExceptionInfoDto>]
45
+ attr_accessor :exceptions
46
+ # Enumerates mapi calendar recurrence frequency Enum, available values: None, Daily, Weekly, Monthly, Yearly
47
+ # @return [String]
48
+ attr_accessor :frequency
49
+ # An array of dates, each of which is the date of a modified instance.
50
+ # @return [Array<DateTime>]
51
+ attr_accessor :modified_instance_dates
52
+ # Number of occurrences in a recurrence.
53
+ # @return [Integer]
54
+ attr_accessor :occurrence_count
55
+ # Enumerates the mapi calendar recurrence pattern types Enum, available values: Day, Week, Month, MonthEnd, MonthNth, HjMonth, HjMonthNth, HjMonthEnd
56
+ # @return [String]
57
+ attr_accessor :pattern_type
58
+ # Interval at which the meeting pattern repeats.
59
+ # @return [Integer]
60
+ attr_accessor :period
61
+ # Defines whether pattern is sliding or not.
62
+ # @return [BOOLEAN]
63
+ attr_accessor :sliding_flag
64
+ # Start date of an item recurrence pattern.
65
+ # @return [DateTime]
66
+ attr_accessor :start_date
67
+ # Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
68
+ # @return [String]
69
+ attr_accessor :week_start_day
70
+ def discriminator #getter method
71
+ self.class.name.split('::').last
72
+ end
73
+
74
+ def discriminator=(discriminator) #setter method, parameter ignored
75
+ @discriminator = self.class.name.split('::').last
76
+ end
77
+ # Days of week at which the event occurs. Items: Enumerates the days of week of the mapi calendar recurrence pattern Enum, available values: Saturday, Friday, Thursday, Wednesday, Tuesday, Monday, Sunday
78
+ # @return [Array<String>]
79
+ attr_accessor :day_of_week
80
+ # Attribute mapping from ruby-style variable name to JSON key.
81
+ def self.attribute_map
82
+ {
83
+ :'calendar_type' => :'calendarType',
84
+ :'deleted_instance_dates' => :'deletedInstanceDates',
85
+ :'end_date' => :'endDate',
86
+ :'end_type' => :'endType',
87
+ :'exceptions' => :'exceptions',
88
+ :'frequency' => :'frequency',
89
+ :'modified_instance_dates' => :'modifiedInstanceDates',
90
+ :'occurrence_count' => :'occurrenceCount',
91
+ :'pattern_type' => :'patternType',
92
+ :'period' => :'period',
93
+ :'sliding_flag' => :'slidingFlag',
94
+ :'start_date' => :'startDate',
95
+ :'week_start_day' => :'weekStartDay',
96
+ :'discriminator' => :'discriminator',
97
+ :'day_of_week' => :'dayOfWeek'
98
+ }
99
+ end
100
+
101
+ # Attribute type mapping.
102
+ def self.swagger_types
103
+ {
104
+ :'calendar_type' => :'String',
105
+ :'deleted_instance_dates' => :'Array<DateTime>',
106
+ :'end_date' => :'DateTime',
107
+ :'end_type' => :'String',
108
+ :'exceptions' => :'Array<MapiCalendarExceptionInfoDto>',
109
+ :'frequency' => :'String',
110
+ :'modified_instance_dates' => :'Array<DateTime>',
111
+ :'occurrence_count' => :'Integer',
112
+ :'pattern_type' => :'String',
113
+ :'period' => :'Integer',
114
+ :'sliding_flag' => :'BOOLEAN',
115
+ :'start_date' => :'DateTime',
116
+ :'week_start_day' => :'String',
117
+ :'discriminator' => :'String',
118
+ :'day_of_week' => :'Array<String>'
119
+ }
120
+ end
121
+
122
+ # Initializes the object
123
+ # @param [String] calendar_type Enumerated the calendar type of the mapi recurrence Enum, available values: Default, CalGregorian, CalGregorianUs, CalJapan, CalTaiwan, CalKorea, CalHijri, CalThai, CalHebrew, CalGregorianMeFrench, CalGregorianArabic, CalGregorianXLitEnglish, CalGregorianXLitFrench, CalLunarJapanese, CalChineseLunar, CalSaka, CalLunarEtoChn, CalLunarEtoKor, CalLunarRokuyou, CalLunarKorean, CalUmAlQura
124
+ # @param [Array<DateTime>] deleted_instance_dates An array of dates, each of which is the original instance date of either a deleted instance or a modified instance for this recurrence.
125
+ # @param [DateTime] end_date End date of an item recurrence pattern.
126
+ # @param [String] end_type Enumerates the ending type for the recurrence. Enum, available values: None, EndAfterDate, EndAfterNOccurrences, NeverEnd
127
+ # @param [Array<MapiCalendarExceptionInfoDto>] exceptions An exception specifies changes to an instance of a recurring series.
128
+ # @param [String] frequency Enumerates mapi calendar recurrence frequency Enum, available values: None, Daily, Weekly, Monthly, Yearly
129
+ # @param [Array<DateTime>] modified_instance_dates An array of dates, each of which is the date of a modified instance.
130
+ # @param [Integer] occurrence_count Number of occurrences in a recurrence.
131
+ # @param [String] pattern_type Enumerates the mapi calendar recurrence pattern types Enum, available values: Day, Week, Month, MonthEnd, MonthNth, HjMonth, HjMonthNth, HjMonthEnd
132
+ # @param [Integer] period Interval at which the meeting pattern repeats.
133
+ # @param [BOOLEAN] sliding_flag Defines whether pattern is sliding or not.
134
+ # @param [DateTime] start_date Start date of an item recurrence pattern.
135
+ # @param [String] week_start_day Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
136
+ # @param [Array<String>] day_of_week Days of week at which the event occurs. Items: Enumerates the days of week of the mapi calendar recurrence pattern Enum, available values: Saturday, Friday, Thursday, Wednesday, Tuesday, Monday, Sunday
137
+ def initialize(
138
+ calendar_type: nil,
139
+ deleted_instance_dates: nil,
140
+ end_date: nil,
141
+ end_type: nil,
142
+ exceptions: nil,
143
+ frequency: nil,
144
+ modified_instance_dates: nil,
145
+ occurrence_count: nil,
146
+ pattern_type: nil,
147
+ period: nil,
148
+ sliding_flag: nil,
149
+ start_date: nil,
150
+ week_start_day: nil,
151
+ day_of_week: nil)
152
+ self.calendar_type = calendar_type if calendar_type
153
+ self.deleted_instance_dates = deleted_instance_dates if deleted_instance_dates
154
+ self.end_date = end_date if end_date
155
+ self.end_type = end_type if end_type
156
+ self.exceptions = exceptions if exceptions
157
+ self.frequency = frequency if frequency
158
+ self.modified_instance_dates = modified_instance_dates if modified_instance_dates
159
+ self.occurrence_count = occurrence_count if occurrence_count
160
+ self.pattern_type = pattern_type if pattern_type
161
+ self.period = period if period
162
+ self.sliding_flag = sliding_flag if sliding_flag
163
+ self.start_date = start_date if start_date
164
+ self.week_start_day = week_start_day if week_start_day
165
+ self.day_of_week = day_of_week if day_of_week
166
+ end
167
+
168
+ # Show invalid properties with the reasons. Usually used together with valid?
169
+ # @return Array for valid properties with the reasons
170
+ def list_invalid_properties
171
+ invalid_properties = Array.new
172
+ if @calendar_type.nil?
173
+ invalid_properties.push('invalid value for "calendar_type", calendar_type cannot be nil.')
174
+ end
175
+
176
+ if @end_date.nil?
177
+ invalid_properties.push('invalid value for "end_date", end_date cannot be nil.')
178
+ end
179
+
180
+ if @end_type.nil?
181
+ invalid_properties.push('invalid value for "end_type", end_type cannot be nil.')
182
+ end
183
+
184
+ if @frequency.nil?
185
+ invalid_properties.push('invalid value for "frequency", frequency cannot be nil.')
186
+ end
187
+
188
+ if @occurrence_count.nil?
189
+ invalid_properties.push('invalid value for "occurrence_count", occurrence_count cannot be nil.')
190
+ end
191
+
192
+ if @pattern_type.nil?
193
+ invalid_properties.push('invalid value for "pattern_type", pattern_type cannot be nil.')
194
+ end
195
+
196
+ if @period.nil?
197
+ invalid_properties.push('invalid value for "period", period cannot be nil.')
198
+ end
199
+
200
+ if @sliding_flag.nil?
201
+ invalid_properties.push('invalid value for "sliding_flag", sliding_flag cannot be nil.')
202
+ end
203
+
204
+ if @start_date.nil?
205
+ invalid_properties.push('invalid value for "start_date", start_date cannot be nil.')
206
+ end
207
+
208
+ if @week_start_day.nil?
209
+ invalid_properties.push('invalid value for "week_start_day", week_start_day cannot be nil.')
210
+ end
211
+
212
+ if @discriminator.nil?
213
+ invalid_properties.push('invalid value for "discriminator", discriminator cannot be nil.')
214
+ end
215
+
216
+ invalid_properties
217
+ end
218
+
219
+ # Check to see if the all the properties in the model are valid
220
+ # @return true if the model is valid
221
+ def valid?
222
+ return false if @calendar_type.nil?
223
+ return false if @end_date.nil?
224
+ return false if @end_type.nil?
225
+ return false if @frequency.nil?
226
+ return false if @occurrence_count.nil?
227
+ return false if @pattern_type.nil?
228
+ return false if @period.nil?
229
+ return false if @sliding_flag.nil?
230
+ return false if @start_date.nil?
231
+ return false if @week_start_day.nil?
232
+ return false if @discriminator.nil?
233
+ true
234
+ end
235
+
236
+ # Checks equality by comparing each attribute.
237
+ # @param [Object] Object to be compared
238
+ def ==(o)
239
+ return true if self.equal?(o)
240
+ self.class == o.class &&
241
+ calendar_type == o.calendar_type &&
242
+ deleted_instance_dates == o.deleted_instance_dates &&
243
+ end_date == o.end_date &&
244
+ end_type == o.end_type &&
245
+ exceptions == o.exceptions &&
246
+ frequency == o.frequency &&
247
+ modified_instance_dates == o.modified_instance_dates &&
248
+ occurrence_count == o.occurrence_count &&
249
+ pattern_type == o.pattern_type &&
250
+ period == o.period &&
251
+ sliding_flag == o.sliding_flag &&
252
+ start_date == o.start_date &&
253
+ week_start_day == o.week_start_day &&
254
+ discriminator == o.discriminator &&
255
+ day_of_week == o.day_of_week
256
+ end
257
+
258
+ # @see the `==` method
259
+ # @param [Object] Object to be compared
260
+ def eql?(o)
261
+ self == o
262
+ end
263
+
264
+ # Calculates hash code according to all attributes.
265
+ # @return [Fixnum] Hash code
266
+ def hash
267
+ [calendar_type, deleted_instance_dates, end_date, end_type, exceptions, frequency, modified_instance_dates, occurrence_count, pattern_type, period, sliding_flag, start_date, week_start_day, discriminator, day_of_week].hash
268
+ end
269
+
270
+ # Builds the object from hash
271
+ # @param [Hash] attributes Model attributes in the form of hash
272
+ # @return [Object] Returns the model itself
273
+ def build_from_hash(attributes)
274
+ return nil unless attributes.is_a?(Hash)
275
+ self.class.swagger_types.each_pair do |key, type|
276
+ attribute_key = self.class.attribute_map[key]
277
+ attribute_key = (attribute_key[0, 1].downcase + attribute_key[1..-1]).to_sym
278
+ if type =~ /\AArray<(.*)>/i
279
+ # check to ensure the input is an array given that the the attribute
280
+ # is documented as an array but the input is not
281
+ if attributes[attribute_key].is_a?(Array)
282
+ self.send("#{key}=", attributes[attribute_key].map { |v| _deserialize($1, v) })
283
+ end
284
+ elsif !attributes[attribute_key].nil?
285
+ self.send("#{key}=", _deserialize(type, attributes[attribute_key]))
286
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
287
+ end
288
+
289
+ self
290
+ end
291
+
292
+ # Deserializes the data based on type
293
+ # @param string type Data type
294
+ # @param string value Value to be deserialized
295
+ # @return [Object] Deserialized data
296
+ def _deserialize(type, value)
297
+ case type.to_sym
298
+ when :DateTime
299
+ DateTime.parse(value)
300
+ when :Date
301
+ Date.parse(value)
302
+ when :String
303
+ value.to_s
304
+ when :Integer
305
+ value.to_i
306
+ when :Float
307
+ value.to_f
308
+ when :BOOLEAN
309
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
310
+ true
311
+ else
312
+ false
313
+ end
314
+ when :Object
315
+ # generic object (usually a Hash), return directly
316
+ value
317
+ when /\AArray<(?<inner_type>.+)>\z/
318
+ inner_type = Regexp.last_match[:inner_type]
319
+ value.map { |v| _deserialize(inner_type, v) }
320
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
321
+ k_type = Regexp.last_match[:k_type]
322
+ v_type = Regexp.last_match[:v_type]
323
+ {}.tap do |hash|
324
+ value.each do |k, v|
325
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
326
+ end
327
+ end
328
+ else # model
329
+ sub_type = value[:type] || value[:discriminator] || type
330
+ if AsposeEmailCloud.const_defined?(sub_type)
331
+ type = sub_type
332
+ end
333
+ temp_model = AsposeEmailCloud.const_get(type).new
334
+ temp_model.build_from_hash(value)
335
+ end
336
+ end
337
+
338
+ # Returns the string representation of the object
339
+ # @return [String] String presentation of the object
340
+ def to_s
341
+ to_hash.to_s
342
+ end
343
+
344
+ # to_body is an alias to to_hash (backward compatibility)
345
+ # @return [Hash] Returns the object in the form of hash
346
+ def to_body
347
+ to_hash
348
+ end
349
+
350
+ # Returns the object in the form of hash
351
+ # @return [Hash] Returns the object in the form of hash
352
+ def to_hash
353
+ hash = {}
354
+ self.class.attribute_map.each_pair do |attr, param|
355
+ value = self.send(attr)
356
+ next if value.nil?
357
+ hash[param] = _to_hash(value)
358
+ end
359
+ hash
360
+ end
361
+
362
+ # Outputs non-array value in the form of hash
363
+ # For object, use to_hash. Otherwise, just return the value
364
+ # @param [Object] value Any valid value
365
+ # @return [Hash] Returns the value in the form of hash
366
+ def _to_hash(value)
367
+ if value.is_a?(Array)
368
+ value.compact.map { |v| _to_hash(v) }
369
+ elsif value.is_a?(Hash)
370
+ {}.tap do |hash|
371
+ value.each { |k, v| hash[k] = _to_hash(v) }
372
+ end
373
+ elsif value.respond_to? :to_hash
374
+ value.to_hash
375
+ else
376
+ value
377
+ end
378
+ end
379
+
380
+ end
381
+ end
@@ -0,0 +1,561 @@
1
+ # ----------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="MapiCalendarDto.rb">
3
+ # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
4
+ # </copyright>
5
+ # <summary>
6
+ # Permission is hereby granted, free of charge, to any person obtaining a
7
+ # copy of this software and associated documentation files (the "Software"),
8
+ # to deal in the Software without restriction, including without limitation
9
+ # the rights to use, copy, modify, merge, publish, distribute, sublicense,
10
+ # and/or sell copies of the Software, and to permit persons to whom the
11
+ # Software is furnished to do so, subject to the following conditions:
12
+ #
13
+ # The above copyright notice and this permission notice shall be included in
14
+ # all copies or substantial portions of the Software.
15
+ #
16
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22
+ # DEALINGS IN THE SOFTWARE.
23
+ # </summary>
24
+ # ----------------------------------------------------------------------------
25
+
26
+ require 'date'
27
+
28
+ module AsposeEmailCloud
29
+ # Represents the mapi calendar object
30
+ class MapiCalendarDto < MapiMessageItemBaseDto
31
+ # Message item attachments.
32
+ # @return [Array<MapiAttachmentDto>]
33
+ attr_accessor :attachments
34
+ # Billing information associated with an item.
35
+ # @return [String]
36
+ attr_accessor :billing
37
+ # Message text.
38
+ # @return [String]
39
+ attr_accessor :body
40
+ # Gets the BodyRtf of the message converted to HTML, if present, otherwise an empty string.
41
+ # @return [String]
42
+ attr_accessor :body_html
43
+ # RTF formatted message text.
44
+ # @return [String]
45
+ attr_accessor :body_rtf
46
+ # The content type of message body. Enum, available values: PlainText, Html, Rtf
47
+ # @return [String]
48
+ attr_accessor :body_type
49
+ # Contains keywords or categories for the message object.
50
+ # @return [Array<String>]
51
+ attr_accessor :categories
52
+ # Contains the names of the companies that are associated with an item.
53
+ # @return [Array<String>]
54
+ attr_accessor :companies
55
+ # The item id, uses with a server.
56
+ # @return [String]
57
+ attr_accessor :item_id
58
+ # Case-sensitive string that identifies the sender-defined message class, such as IPM.Note. The message class specifies the type, purpose, or content of the message.
59
+ # @return [String]
60
+ attr_accessor :message_class
61
+ # Contains the mileage information that is associated with an item.
62
+ # @return [String]
63
+ attr_accessor :mileage
64
+ # Recipients of the message.
65
+ # @return [Array<MapiRecipientDto>]
66
+ attr_accessor :recipients
67
+ # Contains values that indicate the message sensitivity. Enum, available values: None, Personal, Private, CompanyConfidential
68
+ # @return [String]
69
+ attr_accessor :sensitivity
70
+ # Subject of the message.
71
+ # @return [String]
72
+ attr_accessor :subject
73
+ # Subject prefix that typically indicates some action on a message, such as \"FW: \" for forwarding.
74
+ # @return [String]
75
+ attr_accessor :subject_prefix
76
+ # List of MAPI properties
77
+ # @return [Array<MapiPropertyDto>]
78
+ attr_accessor :properties
79
+ def discriminator #getter method
80
+ self.class.name.split('::').last
81
+ end
82
+
83
+ def discriminator=(discriminator) #setter method, parameter ignored
84
+ @discriminator = self.class.name.split('::').last
85
+ end
86
+ # Value indicating whether a Meeting Response object is a counter proposal.
87
+ # @return [BOOLEAN]
88
+ attr_accessor :appointment_counter_proposal
89
+ # Attendees
90
+ # @return [MapiCalendarAttendeesDto]
91
+ attr_accessor :attendees
92
+ # Enumerates the mapi calendar possible busy status Enum, available values: Free, Tentative, Busy, OutOfOffice
93
+ # @return [String]
94
+ attr_accessor :busy_status
95
+ # Actions the user has taken on this Meeting object. Items: Enumerates the actions the user can taken on the Meeting object Enum, available values: Manager, Delegate, DeletedWithNoResponse, DeletedExceptionWithNoResponse, RespondedTentative, RespondedAccept, RespondedDecline, ModifiedStartTime, ModifiedEndTime, ModifiedLocation, RespondedExceptionDecline, Canceled, ExceptionCanceled
96
+ # @return [Array<String>]
97
+ attr_accessor :client_intent
98
+ # End date and time of the event. If the date is not set, default value for DateTime is returned.
99
+ # @return [DateTime]
100
+ attr_accessor :end_date
101
+ # Time zone information that indicates the time zone of the EndDate property.
102
+ # @return [MapiCalendarTimeZoneDto]
103
+ attr_accessor :end_date_time_zone
104
+ # Value indicating whether the event is an all-day event.
105
+ # @return [BOOLEAN]
106
+ attr_accessor :is_all_day
107
+ # Categories of the calendar object.
108
+ # @return [String]
109
+ attr_accessor :key_words
110
+ # Location of the event.
111
+ # @return [String]
112
+ attr_accessor :location
113
+ # Recurrence properties.
114
+ # @return [MapiCalendarEventRecurrenceDto]
115
+ attr_accessor :recurrence
116
+ # Interval, in minutes, between the time at which the reminder first becomes overdue and the start time of the Calendar object.
117
+ # @return [Integer]
118
+ attr_accessor :reminder_delta
119
+ # Full path of the sound that a client SHOULD play when the reminder becomes overdue.
120
+ # @return [String]
121
+ attr_accessor :reminder_file_parameter
122
+ # Value indicating whether a reminder is set on the object.
123
+ # @return [BOOLEAN]
124
+ attr_accessor :reminder_set
125
+ # Sequence number.
126
+ # @return [Integer]
127
+ attr_accessor :sequence
128
+ # Start date and time of the event. If the date is not set, default value for DateTime is returned.
129
+ # @return [DateTime]
130
+ attr_accessor :start_date
131
+ # Time zone information that indicates the time zone of the StartDate property.
132
+ # @return [MapiCalendarTimeZoneDto]
133
+ attr_accessor :start_date_time_zone
134
+ # Unique identifier.
135
+ # @return [String]
136
+ attr_accessor :uid
137
+ # Organizer
138
+ # @return [MapiElectronicAddressDto]
139
+ attr_accessor :organizer
140
+ # Attribute mapping from ruby-style variable name to JSON key.
141
+ def self.attribute_map
142
+ {
143
+ :'attachments' => :'attachments',
144
+ :'billing' => :'billing',
145
+ :'body' => :'body',
146
+ :'body_html' => :'bodyHtml',
147
+ :'body_rtf' => :'bodyRtf',
148
+ :'body_type' => :'bodyType',
149
+ :'categories' => :'categories',
150
+ :'companies' => :'companies',
151
+ :'item_id' => :'itemId',
152
+ :'message_class' => :'messageClass',
153
+ :'mileage' => :'mileage',
154
+ :'recipients' => :'recipients',
155
+ :'sensitivity' => :'sensitivity',
156
+ :'subject' => :'subject',
157
+ :'subject_prefix' => :'subjectPrefix',
158
+ :'properties' => :'properties',
159
+ :'discriminator' => :'discriminator',
160
+ :'appointment_counter_proposal' => :'appointmentCounterProposal',
161
+ :'attendees' => :'attendees',
162
+ :'busy_status' => :'busyStatus',
163
+ :'client_intent' => :'clientIntent',
164
+ :'end_date' => :'endDate',
165
+ :'end_date_time_zone' => :'endDateTimeZone',
166
+ :'is_all_day' => :'isAllDay',
167
+ :'key_words' => :'keyWords',
168
+ :'location' => :'location',
169
+ :'recurrence' => :'recurrence',
170
+ :'reminder_delta' => :'reminderDelta',
171
+ :'reminder_file_parameter' => :'reminderFileParameter',
172
+ :'reminder_set' => :'reminderSet',
173
+ :'sequence' => :'sequence',
174
+ :'start_date' => :'startDate',
175
+ :'start_date_time_zone' => :'startDateTimeZone',
176
+ :'uid' => :'uid',
177
+ :'organizer' => :'organizer'
178
+ }
179
+ end
180
+
181
+ # Attribute type mapping.
182
+ def self.swagger_types
183
+ {
184
+ :'attachments' => :'Array<MapiAttachmentDto>',
185
+ :'billing' => :'String',
186
+ :'body' => :'String',
187
+ :'body_html' => :'String',
188
+ :'body_rtf' => :'String',
189
+ :'body_type' => :'String',
190
+ :'categories' => :'Array<String>',
191
+ :'companies' => :'Array<String>',
192
+ :'item_id' => :'String',
193
+ :'message_class' => :'String',
194
+ :'mileage' => :'String',
195
+ :'recipients' => :'Array<MapiRecipientDto>',
196
+ :'sensitivity' => :'String',
197
+ :'subject' => :'String',
198
+ :'subject_prefix' => :'String',
199
+ :'properties' => :'Array<MapiPropertyDto>',
200
+ :'discriminator' => :'String',
201
+ :'appointment_counter_proposal' => :'BOOLEAN',
202
+ :'attendees' => :'MapiCalendarAttendeesDto',
203
+ :'busy_status' => :'String',
204
+ :'client_intent' => :'Array<String>',
205
+ :'end_date' => :'DateTime',
206
+ :'end_date_time_zone' => :'MapiCalendarTimeZoneDto',
207
+ :'is_all_day' => :'BOOLEAN',
208
+ :'key_words' => :'String',
209
+ :'location' => :'String',
210
+ :'recurrence' => :'MapiCalendarEventRecurrenceDto',
211
+ :'reminder_delta' => :'Integer',
212
+ :'reminder_file_parameter' => :'String',
213
+ :'reminder_set' => :'BOOLEAN',
214
+ :'sequence' => :'Integer',
215
+ :'start_date' => :'DateTime',
216
+ :'start_date_time_zone' => :'MapiCalendarTimeZoneDto',
217
+ :'uid' => :'String',
218
+ :'organizer' => :'MapiElectronicAddressDto'
219
+ }
220
+ end
221
+
222
+ # Initializes the object
223
+ # @param [Array<MapiAttachmentDto>] attachments Message item attachments.
224
+ # @param [String] billing Billing information associated with an item.
225
+ # @param [String] body Message text.
226
+ # @param [String] body_html Gets the BodyRtf of the message converted to HTML, if present, otherwise an empty string.
227
+ # @param [String] body_rtf RTF formatted message text.
228
+ # @param [String] body_type The content type of message body. Enum, available values: PlainText, Html, Rtf
229
+ # @param [Array<String>] categories Contains keywords or categories for the message object.
230
+ # @param [Array<String>] companies Contains the names of the companies that are associated with an item.
231
+ # @param [String] item_id The item id, uses with a server.
232
+ # @param [String] message_class Case-sensitive string that identifies the sender-defined message class, such as IPM.Note. The message class specifies the type, purpose, or content of the message.
233
+ # @param [String] mileage Contains the mileage information that is associated with an item.
234
+ # @param [Array<MapiRecipientDto>] recipients Recipients of the message.
235
+ # @param [String] sensitivity Contains values that indicate the message sensitivity. Enum, available values: None, Personal, Private, CompanyConfidential
236
+ # @param [String] subject Subject of the message.
237
+ # @param [String] subject_prefix Subject prefix that typically indicates some action on a message, such as \"FW: \" for forwarding.
238
+ # @param [Array<MapiPropertyDto>] properties List of MAPI properties
239
+ # @param [BOOLEAN] appointment_counter_proposal Value indicating whether a Meeting Response object is a counter proposal.
240
+ # @param [MapiCalendarAttendeesDto] attendees Attendees
241
+ # @param [String] busy_status Enumerates the mapi calendar possible busy status Enum, available values: Free, Tentative, Busy, OutOfOffice
242
+ # @param [Array<String>] client_intent Actions the user has taken on this Meeting object. Items: Enumerates the actions the user can taken on the Meeting object Enum, available values: Manager, Delegate, DeletedWithNoResponse, DeletedExceptionWithNoResponse, RespondedTentative, RespondedAccept, RespondedDecline, ModifiedStartTime, ModifiedEndTime, ModifiedLocation, RespondedExceptionDecline, Canceled, ExceptionCanceled
243
+ # @param [DateTime] end_date End date and time of the event. If the date is not set, default value for DateTime is returned.
244
+ # @param [MapiCalendarTimeZoneDto] end_date_time_zone Time zone information that indicates the time zone of the EndDate property.
245
+ # @param [BOOLEAN] is_all_day Value indicating whether the event is an all-day event.
246
+ # @param [String] key_words Categories of the calendar object.
247
+ # @param [String] location Location of the event.
248
+ # @param [MapiCalendarEventRecurrenceDto] recurrence Recurrence properties.
249
+ # @param [Integer] reminder_delta Interval, in minutes, between the time at which the reminder first becomes overdue and the start time of the Calendar object.
250
+ # @param [String] reminder_file_parameter Full path of the sound that a client SHOULD play when the reminder becomes overdue.
251
+ # @param [BOOLEAN] reminder_set Value indicating whether a reminder is set on the object.
252
+ # @param [Integer] sequence Sequence number.
253
+ # @param [DateTime] start_date Start date and time of the event. If the date is not set, default value for DateTime is returned.
254
+ # @param [MapiCalendarTimeZoneDto] start_date_time_zone Time zone information that indicates the time zone of the StartDate property.
255
+ # @param [String] uid Unique identifier.
256
+ # @param [MapiElectronicAddressDto] organizer Organizer
257
+ def initialize(
258
+ attachments: nil,
259
+ billing: nil,
260
+ body: nil,
261
+ body_html: nil,
262
+ body_rtf: nil,
263
+ body_type: nil,
264
+ categories: nil,
265
+ companies: nil,
266
+ item_id: nil,
267
+ message_class: nil,
268
+ mileage: nil,
269
+ recipients: nil,
270
+ sensitivity: nil,
271
+ subject: nil,
272
+ subject_prefix: nil,
273
+ properties: nil,
274
+ appointment_counter_proposal: nil,
275
+ attendees: nil,
276
+ busy_status: nil,
277
+ client_intent: nil,
278
+ end_date: nil,
279
+ end_date_time_zone: nil,
280
+ is_all_day: nil,
281
+ key_words: nil,
282
+ location: nil,
283
+ recurrence: nil,
284
+ reminder_delta: nil,
285
+ reminder_file_parameter: nil,
286
+ reminder_set: nil,
287
+ sequence: nil,
288
+ start_date: nil,
289
+ start_date_time_zone: nil,
290
+ uid: nil,
291
+ organizer: nil)
292
+ self.attachments = attachments if attachments
293
+ self.billing = billing if billing
294
+ self.body = body if body
295
+ self.body_html = body_html if body_html
296
+ self.body_rtf = body_rtf if body_rtf
297
+ self.body_type = body_type if body_type
298
+ self.categories = categories if categories
299
+ self.companies = companies if companies
300
+ self.item_id = item_id if item_id
301
+ self.message_class = message_class if message_class
302
+ self.mileage = mileage if mileage
303
+ self.recipients = recipients if recipients
304
+ self.sensitivity = sensitivity if sensitivity
305
+ self.subject = subject if subject
306
+ self.subject_prefix = subject_prefix if subject_prefix
307
+ self.properties = properties if properties
308
+ self.appointment_counter_proposal = appointment_counter_proposal if appointment_counter_proposal
309
+ self.attendees = attendees if attendees
310
+ self.busy_status = busy_status if busy_status
311
+ self.client_intent = client_intent if client_intent
312
+ self.end_date = end_date if end_date
313
+ self.end_date_time_zone = end_date_time_zone if end_date_time_zone
314
+ self.is_all_day = is_all_day if is_all_day
315
+ self.key_words = key_words if key_words
316
+ self.location = location if location
317
+ self.recurrence = recurrence if recurrence
318
+ self.reminder_delta = reminder_delta if reminder_delta
319
+ self.reminder_file_parameter = reminder_file_parameter if reminder_file_parameter
320
+ self.reminder_set = reminder_set if reminder_set
321
+ self.sequence = sequence if sequence
322
+ self.start_date = start_date if start_date
323
+ self.start_date_time_zone = start_date_time_zone if start_date_time_zone
324
+ self.uid = uid if uid
325
+ self.organizer = organizer if organizer
326
+ end
327
+
328
+ # Show invalid properties with the reasons. Usually used together with valid?
329
+ # @return Array for valid properties with the reasons
330
+ def list_invalid_properties
331
+ invalid_properties = Array.new
332
+ if @body_type.nil?
333
+ invalid_properties.push('invalid value for "body_type", body_type cannot be nil.')
334
+ end
335
+
336
+ if @sensitivity.nil?
337
+ invalid_properties.push('invalid value for "sensitivity", sensitivity cannot be nil.')
338
+ end
339
+
340
+ if @discriminator.nil?
341
+ invalid_properties.push('invalid value for "discriminator", discriminator cannot be nil.')
342
+ end
343
+
344
+ if @appointment_counter_proposal.nil?
345
+ invalid_properties.push('invalid value for "appointment_counter_proposal", appointment_counter_proposal cannot be nil.')
346
+ end
347
+
348
+ if @busy_status.nil?
349
+ invalid_properties.push('invalid value for "busy_status", busy_status cannot be nil.')
350
+ end
351
+
352
+ if @end_date.nil?
353
+ invalid_properties.push('invalid value for "end_date", end_date cannot be nil.')
354
+ end
355
+
356
+ if @is_all_day.nil?
357
+ invalid_properties.push('invalid value for "is_all_day", is_all_day cannot be nil.')
358
+ end
359
+
360
+ if @reminder_delta.nil?
361
+ invalid_properties.push('invalid value for "reminder_delta", reminder_delta cannot be nil.')
362
+ end
363
+
364
+ if @reminder_set.nil?
365
+ invalid_properties.push('invalid value for "reminder_set", reminder_set cannot be nil.')
366
+ end
367
+
368
+ if @sequence.nil?
369
+ invalid_properties.push('invalid value for "sequence", sequence cannot be nil.')
370
+ end
371
+
372
+ if @start_date.nil?
373
+ invalid_properties.push('invalid value for "start_date", start_date cannot be nil.')
374
+ end
375
+
376
+ invalid_properties
377
+ end
378
+
379
+ # Check to see if the all the properties in the model are valid
380
+ # @return true if the model is valid
381
+ def valid?
382
+ return false if @body_type.nil?
383
+ return false if @sensitivity.nil?
384
+ return false if @discriminator.nil?
385
+ return false if @appointment_counter_proposal.nil?
386
+ return false if @busy_status.nil?
387
+ return false if @end_date.nil?
388
+ return false if @is_all_day.nil?
389
+ return false if @reminder_delta.nil?
390
+ return false if @reminder_set.nil?
391
+ return false if @sequence.nil?
392
+ return false if @start_date.nil?
393
+ true
394
+ end
395
+
396
+ # Checks equality by comparing each attribute.
397
+ # @param [Object] Object to be compared
398
+ def ==(o)
399
+ return true if self.equal?(o)
400
+ self.class == o.class &&
401
+ attachments == o.attachments &&
402
+ billing == o.billing &&
403
+ body == o.body &&
404
+ body_html == o.body_html &&
405
+ body_rtf == o.body_rtf &&
406
+ body_type == o.body_type &&
407
+ categories == o.categories &&
408
+ companies == o.companies &&
409
+ item_id == o.item_id &&
410
+ message_class == o.message_class &&
411
+ mileage == o.mileage &&
412
+ recipients == o.recipients &&
413
+ sensitivity == o.sensitivity &&
414
+ subject == o.subject &&
415
+ subject_prefix == o.subject_prefix &&
416
+ properties == o.properties &&
417
+ discriminator == o.discriminator &&
418
+ appointment_counter_proposal == o.appointment_counter_proposal &&
419
+ attendees == o.attendees &&
420
+ busy_status == o.busy_status &&
421
+ client_intent == o.client_intent &&
422
+ end_date == o.end_date &&
423
+ end_date_time_zone == o.end_date_time_zone &&
424
+ is_all_day == o.is_all_day &&
425
+ key_words == o.key_words &&
426
+ location == o.location &&
427
+ recurrence == o.recurrence &&
428
+ reminder_delta == o.reminder_delta &&
429
+ reminder_file_parameter == o.reminder_file_parameter &&
430
+ reminder_set == o.reminder_set &&
431
+ sequence == o.sequence &&
432
+ start_date == o.start_date &&
433
+ start_date_time_zone == o.start_date_time_zone &&
434
+ uid == o.uid &&
435
+ organizer == o.organizer
436
+ end
437
+
438
+ # @see the `==` method
439
+ # @param [Object] Object to be compared
440
+ def eql?(o)
441
+ self == o
442
+ end
443
+
444
+ # Calculates hash code according to all attributes.
445
+ # @return [Fixnum] Hash code
446
+ def hash
447
+ [attachments, billing, body, body_html, body_rtf, body_type, categories, companies, item_id, message_class, mileage, recipients, sensitivity, subject, subject_prefix, properties, discriminator, appointment_counter_proposal, attendees, busy_status, client_intent, end_date, end_date_time_zone, is_all_day, key_words, location, recurrence, reminder_delta, reminder_file_parameter, reminder_set, sequence, start_date, start_date_time_zone, uid, organizer].hash
448
+ end
449
+
450
+ # Builds the object from hash
451
+ # @param [Hash] attributes Model attributes in the form of hash
452
+ # @return [Object] Returns the model itself
453
+ def build_from_hash(attributes)
454
+ return nil unless attributes.is_a?(Hash)
455
+ self.class.swagger_types.each_pair do |key, type|
456
+ attribute_key = self.class.attribute_map[key]
457
+ attribute_key = (attribute_key[0, 1].downcase + attribute_key[1..-1]).to_sym
458
+ if type =~ /\AArray<(.*)>/i
459
+ # check to ensure the input is an array given that the the attribute
460
+ # is documented as an array but the input is not
461
+ if attributes[attribute_key].is_a?(Array)
462
+ self.send("#{key}=", attributes[attribute_key].map { |v| _deserialize($1, v) })
463
+ end
464
+ elsif !attributes[attribute_key].nil?
465
+ self.send("#{key}=", _deserialize(type, attributes[attribute_key]))
466
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
467
+ end
468
+
469
+ self
470
+ end
471
+
472
+ # Deserializes the data based on type
473
+ # @param string type Data type
474
+ # @param string value Value to be deserialized
475
+ # @return [Object] Deserialized data
476
+ def _deserialize(type, value)
477
+ case type.to_sym
478
+ when :DateTime
479
+ DateTime.parse(value)
480
+ when :Date
481
+ Date.parse(value)
482
+ when :String
483
+ value.to_s
484
+ when :Integer
485
+ value.to_i
486
+ when :Float
487
+ value.to_f
488
+ when :BOOLEAN
489
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
490
+ true
491
+ else
492
+ false
493
+ end
494
+ when :Object
495
+ # generic object (usually a Hash), return directly
496
+ value
497
+ when /\AArray<(?<inner_type>.+)>\z/
498
+ inner_type = Regexp.last_match[:inner_type]
499
+ value.map { |v| _deserialize(inner_type, v) }
500
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
501
+ k_type = Regexp.last_match[:k_type]
502
+ v_type = Regexp.last_match[:v_type]
503
+ {}.tap do |hash|
504
+ value.each do |k, v|
505
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
506
+ end
507
+ end
508
+ else # model
509
+ sub_type = value[:type] || value[:discriminator] || type
510
+ if AsposeEmailCloud.const_defined?(sub_type)
511
+ type = sub_type
512
+ end
513
+ temp_model = AsposeEmailCloud.const_get(type).new
514
+ temp_model.build_from_hash(value)
515
+ end
516
+ end
517
+
518
+ # Returns the string representation of the object
519
+ # @return [String] String presentation of the object
520
+ def to_s
521
+ to_hash.to_s
522
+ end
523
+
524
+ # to_body is an alias to to_hash (backward compatibility)
525
+ # @return [Hash] Returns the object in the form of hash
526
+ def to_body
527
+ to_hash
528
+ end
529
+
530
+ # Returns the object in the form of hash
531
+ # @return [Hash] Returns the object in the form of hash
532
+ def to_hash
533
+ hash = {}
534
+ self.class.attribute_map.each_pair do |attr, param|
535
+ value = self.send(attr)
536
+ next if value.nil?
537
+ hash[param] = _to_hash(value)
538
+ end
539
+ hash
540
+ end
541
+
542
+ # Outputs non-array value in the form of hash
543
+ # For object, use to_hash. Otherwise, just return the value
544
+ # @param [Object] value Any valid value
545
+ # @return [Hash] Returns the value in the form of hash
546
+ def _to_hash(value)
547
+ if value.is_a?(Array)
548
+ value.compact.map { |v| _to_hash(v) }
549
+ elsif value.is_a?(Hash)
550
+ {}.tap do |hash|
551
+ value.each { |k, v| hash[k] = _to_hash(v) }
552
+ end
553
+ elsif value.respond_to? :to_hash
554
+ value.to_hash
555
+ else
556
+ value
557
+ end
558
+ end
559
+
560
+ end
561
+ end