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
@@ -0,0 +1,464 @@
1
+ # ----------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="MapiCalendarWeeklyRecurrencePatternDto.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
+
27
+ require 'date'
28
+
29
+ module AsposeEmailCloud
30
+ # Represents the weekly recurrence pattern of the mapi calendar
31
+ class MapiCalendarWeeklyRecurrencePatternDto
32
+ # 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
33
+ # @return [String]
34
+ attr_accessor :calendar_type
35
+
36
+ # An array of dates, each of which is the original instance date of either a deleted instance or a modified instance for this recurrence.
37
+ # @return [Array<DateTime>]
38
+ attr_accessor :deleted_instance_dates
39
+
40
+ # End date of an item recurrence pattern.
41
+ # @return [DateTime]
42
+ attr_accessor :end_date
43
+
44
+ # Enumerates the ending type for the recurrence. Enum, available values: None, EndAfterDate, EndAfterNOccurrences, NeverEnd
45
+ # @return [String]
46
+ attr_accessor :end_type
47
+
48
+ # An exception specifies changes to an instance of a recurring series.
49
+ # @return [Array<MapiCalendarExceptionInfoDto>]
50
+ attr_accessor :exceptions
51
+
52
+ # Enumerates mapi calendar recurrence frequency Enum, available values: None, Daily, Weekly, Monthly, Yearly
53
+ # @return [String]
54
+ attr_accessor :frequency
55
+
56
+ # An array of dates, each of which is the date of a modified instance.
57
+ # @return [Array<DateTime>]
58
+ attr_accessor :modified_instance_dates
59
+
60
+ # Number of occurrences in a recurrence.
61
+ # @return [Integer]
62
+ attr_accessor :occurrence_count
63
+
64
+ # Enumerates the mapi calendar recurrence pattern types Enum, available values: Day, Week, Month, MonthEnd, MonthNth, HjMonth, HjMonthNth, HjMonthEnd
65
+ # @return [String]
66
+ attr_accessor :pattern_type
67
+
68
+ # Interval at which the meeting pattern repeats.
69
+ # @return [Integer]
70
+ attr_accessor :period
71
+
72
+ # Defines whether pattern is sliding or not.
73
+ # @return [BOOLEAN]
74
+ attr_accessor :sliding_flag
75
+
76
+ # Start date of an item recurrence pattern.
77
+ # @return [DateTime]
78
+ attr_accessor :start_date
79
+
80
+ # Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
81
+ # @return [String]
82
+ attr_accessor :week_start_day
83
+
84
+
85
+ # @return [String]
86
+ def discriminator #getter method
87
+ self.class.name.split('::').last
88
+ end
89
+
90
+ def discriminator=(discriminator) #setter method, parameter ignored
91
+ @discriminator = self.class.name.split('::').last
92
+ end
93
+
94
+ # 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
95
+ # @return [Array<String>]
96
+ attr_accessor :day_of_week
97
+
98
+ # Attribute mapping from ruby-style variable name to JSON key.
99
+ def self.attribute_map
100
+ {
101
+ :'calendar_type' => :'calendarType',
102
+ :'deleted_instance_dates' => :'deletedInstanceDates',
103
+ :'end_date' => :'endDate',
104
+ :'end_type' => :'endType',
105
+ :'exceptions' => :'exceptions',
106
+ :'frequency' => :'frequency',
107
+ :'modified_instance_dates' => :'modifiedInstanceDates',
108
+ :'occurrence_count' => :'occurrenceCount',
109
+ :'pattern_type' => :'patternType',
110
+ :'period' => :'period',
111
+ :'sliding_flag' => :'slidingFlag',
112
+ :'start_date' => :'startDate',
113
+ :'week_start_day' => :'weekStartDay',
114
+ :'discriminator' => :'discriminator',
115
+ :'day_of_week' => :'dayOfWeek'
116
+ }
117
+ end
118
+
119
+ # Attribute type mapping.
120
+ def self.swagger_types
121
+ {
122
+ :'calendar_type' => :'String',
123
+ :'deleted_instance_dates' => :'Array<DateTime>',
124
+ :'end_date' => :'DateTime',
125
+ :'end_type' => :'String',
126
+ :'exceptions' => :'Array<MapiCalendarExceptionInfoDto>',
127
+ :'frequency' => :'String',
128
+ :'modified_instance_dates' => :'Array<DateTime>',
129
+ :'occurrence_count' => :'Integer',
130
+ :'pattern_type' => :'String',
131
+ :'period' => :'Integer',
132
+ :'sliding_flag' => :'BOOLEAN',
133
+ :'start_date' => :'DateTime',
134
+ :'week_start_day' => :'String',
135
+ :'discriminator' => :'String',
136
+ :'day_of_week' => :'Array<String>'
137
+ }
138
+ end
139
+
140
+ # Initializes the object
141
+ # @param [Hash] attributes Model attributes in the form of hash
142
+ def initialize(attributes = {})
143
+ return unless attributes.is_a?(Hash)
144
+
145
+ # convert string to symbol for hash key
146
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
147
+
148
+ if attributes.has_key?(:'calendarType')
149
+ self.calendar_type = attributes[:'calendarType']
150
+ end
151
+
152
+ if attributes.has_key?(:'deletedInstanceDates')
153
+ if (value = attributes[:'deletedInstanceDates']).is_a?(Array)
154
+ self.deleted_instance_dates = value
155
+ end
156
+ end
157
+
158
+ if attributes.has_key?(:'endDate')
159
+ self.end_date = attributes[:'endDate']
160
+ end
161
+
162
+ if attributes.has_key?(:'endType')
163
+ self.end_type = attributes[:'endType']
164
+ end
165
+
166
+ if attributes.has_key?(:'exceptions')
167
+ if (value = attributes[:'exceptions']).is_a?(Array)
168
+ self.exceptions = value
169
+ end
170
+ end
171
+
172
+ if attributes.has_key?(:'frequency')
173
+ self.frequency = attributes[:'frequency']
174
+ end
175
+
176
+ if attributes.has_key?(:'modifiedInstanceDates')
177
+ if (value = attributes[:'modifiedInstanceDates']).is_a?(Array)
178
+ self.modified_instance_dates = value
179
+ end
180
+ end
181
+
182
+ if attributes.has_key?(:'occurrenceCount')
183
+ self.occurrence_count = attributes[:'occurrenceCount']
184
+ end
185
+
186
+ if attributes.has_key?(:'patternType')
187
+ self.pattern_type = attributes[:'patternType']
188
+ end
189
+
190
+ if attributes.has_key?(:'period')
191
+ self.period = attributes[:'period']
192
+ end
193
+
194
+ if attributes.has_key?(:'slidingFlag')
195
+ self.sliding_flag = attributes[:'slidingFlag']
196
+ end
197
+
198
+ if attributes.has_key?(:'startDate')
199
+ self.start_date = attributes[:'startDate']
200
+ end
201
+
202
+ if attributes.has_key?(:'weekStartDay')
203
+ self.week_start_day = attributes[:'weekStartDay']
204
+ end
205
+
206
+ if attributes.has_key?(:'discriminator')
207
+ @discriminator = self.class.name.split('::').last
208
+ end
209
+
210
+ if attributes.has_key?(:'dayOfWeek')
211
+ if (value = attributes[:'dayOfWeek']).is_a?(Array)
212
+ self.day_of_week = value
213
+ end
214
+ end
215
+ end
216
+
217
+ # Initializes the object
218
+ # @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
219
+ # @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.
220
+ # @param [DateTime] end_date End date of an item recurrence pattern.
221
+ # @param [String] end_type Enumerates the ending type for the recurrence. Enum, available values: None, EndAfterDate, EndAfterNOccurrences, NeverEnd
222
+ # @param [Array<MapiCalendarExceptionInfoDto>] exceptions An exception specifies changes to an instance of a recurring series.
223
+ # @param [String] frequency Enumerates mapi calendar recurrence frequency Enum, available values: None, Daily, Weekly, Monthly, Yearly
224
+ # @param [Array<DateTime>] modified_instance_dates An array of dates, each of which is the date of a modified instance.
225
+ # @param [Integer] occurrence_count Number of occurrences in a recurrence.
226
+ # @param [String] pattern_type Enumerates the mapi calendar recurrence pattern types Enum, available values: Day, Week, Month, MonthEnd, MonthNth, HjMonth, HjMonthNth, HjMonthEnd
227
+ # @param [Integer] period Interval at which the meeting pattern repeats.
228
+ # @param [BOOLEAN] sliding_flag Defines whether pattern is sliding or not.
229
+ # @param [DateTime] start_date Start date of an item recurrence pattern.
230
+ # @param [String] week_start_day Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
231
+ # @param [String] discriminator
232
+ # @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
233
+ def initialize(calendar_type=nil, deleted_instance_dates=nil, end_date=nil, end_type=nil, exceptions=nil, frequency=nil, modified_instance_dates=nil, occurrence_count=nil, pattern_type=nil, period=nil, sliding_flag=nil, start_date=nil, week_start_day=nil, discriminator=nil, day_of_week=nil)
234
+ self.calendar_type = calendar_type if calendar_type
235
+ self.deleted_instance_dates = deleted_instance_dates if deleted_instance_dates
236
+ self.end_date = end_date if end_date
237
+ self.end_type = end_type if end_type
238
+ self.exceptions = exceptions if exceptions
239
+ self.frequency = frequency if frequency
240
+ self.modified_instance_dates = modified_instance_dates if modified_instance_dates
241
+ self.occurrence_count = occurrence_count if occurrence_count
242
+ self.pattern_type = pattern_type if pattern_type
243
+ self.period = period if period
244
+ self.sliding_flag = sliding_flag if sliding_flag
245
+ self.start_date = start_date if start_date
246
+ self.week_start_day = week_start_day if week_start_day
247
+ @discriminator = self.class.name.split('::').last
248
+ self.day_of_week = day_of_week if day_of_week
249
+ end
250
+
251
+ # Show invalid properties with the reasons. Usually used together with valid?
252
+ # @return Array for valid properties with the reasons
253
+ def list_invalid_properties
254
+ invalid_properties = Array.new
255
+ if @calendar_type.nil?
256
+ invalid_properties.push('invalid value for "calendar_type", calendar_type cannot be nil.')
257
+ end
258
+
259
+ if @end_date.nil?
260
+ invalid_properties.push('invalid value for "end_date", end_date cannot be nil.')
261
+ end
262
+
263
+ if @end_type.nil?
264
+ invalid_properties.push('invalid value for "end_type", end_type cannot be nil.')
265
+ end
266
+
267
+ if @frequency.nil?
268
+ invalid_properties.push('invalid value for "frequency", frequency cannot be nil.')
269
+ end
270
+
271
+ if @occurrence_count.nil?
272
+ invalid_properties.push('invalid value for "occurrence_count", occurrence_count cannot be nil.')
273
+ end
274
+
275
+ if @pattern_type.nil?
276
+ invalid_properties.push('invalid value for "pattern_type", pattern_type cannot be nil.')
277
+ end
278
+
279
+ if @period.nil?
280
+ invalid_properties.push('invalid value for "period", period cannot be nil.')
281
+ end
282
+
283
+ if @sliding_flag.nil?
284
+ invalid_properties.push('invalid value for "sliding_flag", sliding_flag cannot be nil.')
285
+ end
286
+
287
+ if @start_date.nil?
288
+ invalid_properties.push('invalid value for "start_date", start_date cannot be nil.')
289
+ end
290
+
291
+ if @week_start_day.nil?
292
+ invalid_properties.push('invalid value for "week_start_day", week_start_day cannot be nil.')
293
+ end
294
+
295
+ if @discriminator.nil?
296
+ invalid_properties.push('invalid value for "discriminator", discriminator cannot be nil.')
297
+ end
298
+
299
+ invalid_properties
300
+ end
301
+
302
+ # Check to see if the all the properties in the model are valid
303
+ # @return true if the model is valid
304
+ def valid?
305
+ return false if @calendar_type.nil?
306
+ return false if @end_date.nil?
307
+ return false if @end_type.nil?
308
+ return false if @frequency.nil?
309
+ return false if @occurrence_count.nil?
310
+ return false if @pattern_type.nil?
311
+ return false if @period.nil?
312
+ return false if @sliding_flag.nil?
313
+ return false if @start_date.nil?
314
+ return false if @week_start_day.nil?
315
+ return false if @discriminator.nil?
316
+ true
317
+ end
318
+
319
+ # Checks equality by comparing each attribute.
320
+ # @param [Object] Object to be compared
321
+ def ==(o)
322
+ return true if self.equal?(o)
323
+ self.class == o.class &&
324
+ calendar_type == o.calendar_type &&
325
+ deleted_instance_dates == o.deleted_instance_dates &&
326
+ end_date == o.end_date &&
327
+ end_type == o.end_type &&
328
+ exceptions == o.exceptions &&
329
+ frequency == o.frequency &&
330
+ modified_instance_dates == o.modified_instance_dates &&
331
+ occurrence_count == o.occurrence_count &&
332
+ pattern_type == o.pattern_type &&
333
+ period == o.period &&
334
+ sliding_flag == o.sliding_flag &&
335
+ start_date == o.start_date &&
336
+ week_start_day == o.week_start_day &&
337
+ discriminator == o.discriminator &&
338
+ day_of_week == o.day_of_week
339
+ end
340
+
341
+ # @see the `==` method
342
+ # @param [Object] Object to be compared
343
+ def eql?(o)
344
+ self == o
345
+ end
346
+
347
+ # Calculates hash code according to all attributes.
348
+ # @return [Fixnum] Hash code
349
+ def hash
350
+ [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
351
+ end
352
+
353
+ # Builds the object from hash
354
+ # @param [Hash] attributes Model attributes in the form of hash
355
+ # @return [Object] Returns the model itself
356
+ def build_from_hash(attributes)
357
+ return nil unless attributes.is_a?(Hash)
358
+ self.class.swagger_types.each_pair do |key, type|
359
+ attribute_key = self.class.attribute_map[key]
360
+ attribute_key = (attribute_key[0, 1].downcase + attribute_key[1..-1]).to_sym
361
+ if type =~ /\AArray<(.*)>/i
362
+ # check to ensure the input is an array given that the the attribute
363
+ # is documented as an array but the input is not
364
+ if attributes[attribute_key].is_a?(Array)
365
+ self.send("#{key}=", attributes[attribute_key].map { |v| _deserialize($1, v) })
366
+ end
367
+ elsif !attributes[attribute_key].nil?
368
+ self.send("#{key}=", _deserialize(type, attributes[attribute_key]))
369
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
370
+ end
371
+
372
+ self
373
+ end
374
+
375
+ # Deserializes the data based on type
376
+ # @param string type Data type
377
+ # @param string value Value to be deserialized
378
+ # @return [Object] Deserialized data
379
+ def _deserialize(type, value)
380
+ case type.to_sym
381
+ when :DateTime
382
+ DateTime.parse(value)
383
+ when :Date
384
+ Date.parse(value)
385
+ when :String
386
+ value.to_s
387
+ when :Integer
388
+ value.to_i
389
+ when :Float
390
+ value.to_f
391
+ when :BOOLEAN
392
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
393
+ true
394
+ else
395
+ false
396
+ end
397
+ when :Object
398
+ # generic object (usually a Hash), return directly
399
+ value
400
+ when /\AArray<(?<inner_type>.+)>\z/
401
+ inner_type = Regexp.last_match[:inner_type]
402
+ value.map { |v| _deserialize(inner_type, v) }
403
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
404
+ k_type = Regexp.last_match[:k_type]
405
+ v_type = Regexp.last_match[:v_type]
406
+ {}.tap do |hash|
407
+ value.each do |k, v|
408
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
409
+ end
410
+ end
411
+ else # model
412
+ sub_type = value[:type] || value[:discriminator] || type
413
+ if AsposeEmailCloud.const_defined?(sub_type)
414
+ type = sub_type
415
+ end
416
+ temp_model = AsposeEmailCloud.const_get(type).new
417
+ temp_model.build_from_hash(value)
418
+ end
419
+ end
420
+
421
+ # Returns the string representation of the object
422
+ # @return [String] String presentation of the object
423
+ def to_s
424
+ to_hash.to_s
425
+ end
426
+
427
+ # to_body is an alias to to_hash (backward compatibility)
428
+ # @return [Hash] Returns the object in the form of hash
429
+ def to_body
430
+ to_hash
431
+ end
432
+
433
+ # Returns the object in the form of hash
434
+ # @return [Hash] Returns the object in the form of hash
435
+ def to_hash
436
+ hash = {}
437
+ self.class.attribute_map.each_pair do |attr, param|
438
+ value = self.send(attr)
439
+ next if value.nil?
440
+ hash[param] = _to_hash(value)
441
+ end
442
+ hash
443
+ end
444
+
445
+ # Outputs non-array value in the form of hash
446
+ # For object, use to_hash. Otherwise, just return the value
447
+ # @param [Object] value Any valid value
448
+ # @return [Hash] Returns the value in the form of hash
449
+ def _to_hash(value)
450
+ if value.is_a?(Array)
451
+ value.compact.map { |v| _to_hash(v) }
452
+ elsif value.is_a?(Hash)
453
+ {}.tap do |hash|
454
+ value.each { |k, v| hash[k] = _to_hash(v) }
455
+ end
456
+ elsif value.respond_to? :to_hash
457
+ value.to_hash
458
+ else
459
+ value
460
+ end
461
+ end
462
+
463
+ end
464
+ end