aspose_email_cloud 20.1.0 → 20.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aspose-email-cloud.rb +215 -174
- data/lib/aspose-email-cloud/api/ai_bcr_api.rb +84 -0
- data/lib/aspose-email-cloud/api/ai_group.rb +49 -0
- data/lib/aspose-email-cloud/api/ai_name_api.rb +213 -0
- data/lib/aspose-email-cloud/api/calendar_api.rb +206 -0
- data/lib/aspose-email-cloud/api/client_account_api.rb +121 -0
- data/lib/aspose-email-cloud/api/client_folder_api.rb +113 -0
- data/lib/aspose-email-cloud/api/client_group.rb +59 -0
- data/lib/aspose-email-cloud/api/client_message_api.rb +230 -0
- data/lib/aspose-email-cloud/api/client_thread_api.rb +149 -0
- data/lib/aspose-email-cloud/api/cloud_storage_group.rb +54 -0
- data/lib/aspose-email-cloud/api/contact_api.rb +171 -0
- data/lib/aspose-email-cloud/api/disposable_email_api.rb +57 -0
- data/lib/aspose-email-cloud/api/email_api.rb +171 -855
- data/lib/aspose-email-cloud/api/email_cloud.rb +96 -0
- data/lib/aspose-email-cloud/api/email_config_api.rb +111 -0
- data/lib/aspose-email-cloud/api/file_api.rb +92 -0
- data/lib/aspose-email-cloud/api/folder_api.rb +93 -0
- data/lib/aspose-email-cloud/api/mapi_calendar_api.rb +147 -0
- data/lib/aspose-email-cloud/api/mapi_contact_api.rb +147 -0
- data/lib/aspose-email-cloud/api/mapi_group.rb +54 -0
- data/lib/aspose-email-cloud/api/mapi_message_api.rb +147 -0
- data/lib/aspose-email-cloud/api/storage_api.rb +81 -0
- data/lib/aspose-email-cloud/api_client.rb +387 -382
- data/lib/aspose-email-cloud/api_error.rb +41 -41
- data/lib/aspose-email-cloud/api_invoker.rb +92 -0
- data/lib/aspose-email-cloud/configuration.rb +240 -240
- data/lib/aspose-email-cloud/models/ai_bcr_image.rb +204 -215
- data/lib/aspose-email-cloud/models/ai_bcr_image_storage_file.rb +218 -228
- data/lib/aspose-email-cloud/models/ai_bcr_options.rb +208 -223
- data/lib/aspose-email-cloud/models/ai_bcr_parse_request.rb +93 -0
- data/lib/aspose-email-cloud/models/{ai_bcr_parse_storage_rq.rb → ai_bcr_parse_storage_request.rb} +227 -248
- data/lib/aspose-email-cloud/models/{requests/ai_name_complete_request_data.rb → ai_name_complete_request.rb} +104 -91
- data/lib/aspose-email-cloud/models/ai_name_component.rb +241 -264
- data/lib/aspose-email-cloud/models/ai_name_component_list.rb +199 -0
- data/lib/aspose-email-cloud/models/ai_name_cultural_context.rb +240 -267
- data/lib/aspose-email-cloud/models/{requests/ai_name_expand_request_data.rb → ai_name_expand_request.rb} +104 -91
- data/lib/aspose-email-cloud/models/ai_name_extracted.rb +213 -230
- data/lib/aspose-email-cloud/models/ai_name_extracted_component.rb +213 -228
- data/lib/aspose-email-cloud/models/ai_name_extracted_list.rb +199 -0
- data/lib/aspose-email-cloud/models/ai_name_format_request.rb +110 -0
- data/lib/aspose-email-cloud/models/ai_name_formatted.rb +208 -223
- data/lib/aspose-email-cloud/models/ai_name_gender_hypothesis.rb +218 -233
- data/lib/aspose-email-cloud/models/{list_response_of_ai_bcr_ocr_data.rb → ai_name_gender_hypothesis_list.rb} +199 -211
- data/lib/aspose-email-cloud/models/ai_name_genderize_request.rb +104 -0
- data/lib/aspose-email-cloud/models/{ai_name_parsed_match_rq.rb → ai_name_match_parsed_request.rb} +236 -263
- data/lib/aspose-email-cloud/models/ai_name_match_request.rb +114 -0
- data/lib/aspose-email-cloud/models/ai_name_match_result.rb +213 -230
- data/lib/aspose-email-cloud/models/ai_name_mismatch.rb +227 -246
- data/lib/aspose-email-cloud/models/ai_name_parse_email_address_request.rb +105 -0
- data/lib/aspose-email-cloud/models/ai_name_parse_request.rb +104 -0
- data/lib/aspose-email-cloud/models/{ai_name_parsed_rq.rb → ai_name_parsed_request.rb} +222 -243
- data/lib/aspose-email-cloud/models/ai_name_weighted.rb +213 -228
- data/lib/aspose-email-cloud/models/ai_name_weighted_variants.rb +208 -225
- data/lib/aspose-email-cloud/models/alternate_view.rb +244 -279
- data/lib/aspose-email-cloud/models/associated_person.rb +222 -241
- data/lib/aspose-email-cloud/models/attachment.rb +276 -321
- data/lib/aspose-email-cloud/models/attachment_base.rb +226 -251
- data/lib/aspose-email-cloud/models/{calendar_dto_alternate_rq.rb → calendar_as_alternate_request.rb} +246 -265
- data/lib/aspose-email-cloud/models/calendar_as_file_request.rb +218 -0
- data/lib/aspose-email-cloud/models/{requests/save_email_model_request_data.rb → calendar_convert_request.rb} +84 -89
- data/lib/aspose-email-cloud/models/calendar_dto.rb +462 -554
- data/lib/aspose-email-cloud/models/{requests/ai_bcr_ocr_storage_request_data.rb → calendar_from_file_request.rb} +74 -75
- data/lib/aspose-email-cloud/models/calendar_get_as_alternate_request.rb +102 -0
- data/lib/aspose-email-cloud/models/calendar_get_as_file_request.rb +96 -0
- data/lib/aspose-email-cloud/models/{requests/get_email_model_list_request_data.rb → calendar_get_list_request.rb} +93 -87
- data/lib/aspose-email-cloud/models/{requests/get_email_request_data.rb → calendar_get_request.rb} +86 -81
- data/lib/aspose-email-cloud/models/calendar_reminder.rb +272 -315
- data/lib/aspose-email-cloud/models/{storage_model_rq_of_calendar_dto.rb → calendar_save_request.rb} +232 -222
- data/lib/aspose-email-cloud/models/{calendar_dto_list.rb → calendar_storage_list.rb} +199 -212
- data/lib/aspose-email-cloud/models/client_account_base_request.rb +204 -0
- data/lib/aspose-email-cloud/models/{requests/get_email_attachment_request_data.rb → client_account_get_multi_request.rb} +87 -88
- data/lib/aspose-email-cloud/models/{requests/create_email_request_data.rb → client_account_get_request.rb} +86 -82
- data/lib/aspose-email-cloud/models/client_account_save_multi_request.rb +218 -0
- data/lib/aspose-email-cloud/models/client_account_save_request.rb +218 -0
- data/lib/aspose-email-cloud/models/{email_property.rb → client_folder_create_request.rb} +246 -265
- data/lib/aspose-email-cloud/models/{ai_bcr_base64_image.rb → client_folder_delete_request.rb} +237 -228
- data/lib/aspose-email-cloud/models/client_folder_get_list_request.rb +93 -0
- data/lib/aspose-email-cloud/models/client_message_append_file_request.rb +114 -0
- data/lib/aspose-email-cloud/models/client_message_append_request.rb +241 -0
- data/lib/aspose-email-cloud/models/client_message_base_request.rb +237 -0
- data/lib/aspose-email-cloud/models/{ai_bcr_ocr_data.rb → client_message_delete_request.rb} +246 -253
- data/lib/aspose-email-cloud/models/client_message_fetch_file_request.rb +108 -0
- data/lib/aspose-email-cloud/models/client_message_fetch_request.rb +114 -0
- data/lib/aspose-email-cloud/models/{requests/list_email_messages_request_data.rb → client_message_list_request.rb} +121 -105
- data/lib/aspose-email-cloud/models/{set_message_read_flag_account_base_request.rb → client_message_move_request.rb} +279 -315
- data/lib/aspose-email-cloud/models/client_message_send_file_request.rb +103 -0
- data/lib/aspose-email-cloud/models/client_message_send_request.rb +218 -0
- data/lib/aspose-email-cloud/models/client_message_set_is_read_request.rb +251 -0
- data/lib/aspose-email-cloud/models/{hierarchical_object_response.rb → client_thread_base_request.rb} +237 -223
- data/lib/aspose-email-cloud/models/{hierarchical_object.rb → client_thread_delete_request.rb} +246 -244
- data/lib/aspose-email-cloud/models/client_thread_get_list_request.rb +108 -0
- data/lib/aspose-email-cloud/models/client_thread_get_messages_request.rb +103 -0
- data/lib/aspose-email-cloud/models/{account_base_request.rb → client_thread_move_request.rb} +270 -260
- data/lib/aspose-email-cloud/models/client_thread_set_is_read_request.rb +260 -0
- data/lib/aspose-email-cloud/models/contact_as_file_request.rb +218 -0
- data/lib/aspose-email-cloud/models/contact_convert_request.rb +94 -0
- data/lib/aspose-email-cloud/models/contact_dto.rb +529 -696
- data/lib/aspose-email-cloud/models/{requests/convert_email_request_data.rb → contact_from_file_request.rb} +84 -83
- data/lib/aspose-email-cloud/models/contact_get_as_file_request.rb +106 -0
- data/lib/aspose-email-cloud/models/{requests/get_contact_model_list_request_data.rb → contact_get_list_request.rb} +99 -87
- data/lib/aspose-email-cloud/models/{requests/get_contact_model_request_data.rb → contact_get_request.rb} +96 -88
- data/lib/aspose-email-cloud/models/contact_list.rb +199 -0
- data/lib/aspose-email-cloud/models/contact_photo.rb +252 -228
- data/lib/aspose-email-cloud/models/{storage_model_rq_of_contact_dto.rb → contact_save_request.rb} +232 -222
- data/lib/aspose-email-cloud/models/{contact_dto_list.rb → contact_storage_list.rb} +199 -212
- data/lib/aspose-email-cloud/models/content_type.rb +235 -264
- data/lib/aspose-email-cloud/models/content_type_parameter.rb +208 -223
- data/lib/aspose-email-cloud/models/{requests/copy_file_request_data.rb → copy_file_request.rb} +101 -92
- data/lib/aspose-email-cloud/models/{requests/copy_folder_request_data.rb → copy_folder_request.rb} +95 -89
- data/lib/aspose-email-cloud/models/{requests/create_folder_request_data.rb → create_folder_request.rb} +79 -78
- data/lib/aspose-email-cloud/models/customer_event.rb +213 -228
- data/lib/aspose-email-cloud/models/daily_recurrence_pattern_dto.rb +261 -0
- data/lib/aspose-email-cloud/models/{requests/delete_file_request_data.rb → delete_file_request.rb} +85 -81
- data/lib/aspose-email-cloud/models/{requests/delete_folder_request_data.rb → delete_folder_request.rb} +85 -81
- data/lib/aspose-email-cloud/models/disc_usage.rb +218 -233
- data/lib/aspose-email-cloud/models/discover_email_config_request.rb +246 -0
- data/lib/aspose-email-cloud/models/{requests/ai_bcr_parse_model_request_data.rb → disposable_email_is_disposable_request.rb} +75 -75
- data/lib/aspose-email-cloud/models/{requests/download_file_request_data.rb → download_file_request.rb} +85 -81
- data/lib/aspose-email-cloud/models/{link.rb → email_account_config.rb} +277 -249
- data/lib/aspose-email-cloud/models/{list_response_of_hierarchical_object.rb → email_account_config_list.rb} +199 -211
- data/lib/aspose-email-cloud/models/email_address.rb +273 -267
- data/lib/aspose-email-cloud/models/email_as_file_request.rb +218 -0
- data/lib/aspose-email-cloud/models/{email_account_request.rb → email_client_account.rb} +316 -394
- data/lib/aspose-email-cloud/models/{ai_bcr_parse_ocr_data_rq.rb → email_client_account_credentials.rb} +238 -230
- data/lib/aspose-email-cloud/models/{save_o_auth_email_account_request.rb → email_client_account_oauth_credentials.rb} +346 -505
- data/lib/aspose-email-cloud/models/{indexed_hierarchical_object.rb → email_client_account_password_credentials.rb} +271 -262
- data/lib/aspose-email-cloud/models/email_client_multi_account.rb +213 -0
- data/lib/aspose-email-cloud/models/email_config_discover_oauth_request.rb +353 -0
- data/lib/aspose-email-cloud/models/email_config_discover_password_request.rb +278 -0
- data/lib/aspose-email-cloud/models/email_config_discover_request.rb +81 -0
- data/lib/aspose-email-cloud/models/email_convert_request.rb +94 -0
- data/lib/aspose-email-cloud/models/email_dto.rb +523 -678
- data/lib/aspose-email-cloud/models/email_from_file_request.rb +84 -0
- data/lib/aspose-email-cloud/models/{requests/get_email_as_file_request_data.rb → email_get_as_file_request.rb} +96 -88
- data/lib/aspose-email-cloud/models/email_get_list_request.rb +99 -0
- data/lib/aspose-email-cloud/models/email_get_request.rb +96 -0
- data/lib/aspose-email-cloud/models/email_list.rb +199 -0
- data/lib/aspose-email-cloud/models/{requests/email_request.rb → email_request.rb} +72 -75
- data/lib/aspose-email-cloud/models/{storage_model_rq_of_email_dto.rb → email_save_request.rb} +232 -222
- data/lib/aspose-email-cloud/models/{email_dto_list.rb → email_storage_list.rb} +199 -212
- data/lib/aspose-email-cloud/models/email_thread.rb +226 -0
- data/lib/aspose-email-cloud/models/email_thread_list.rb +199 -0
- data/lib/aspose-email-cloud/models/enum_with_custom_of_associated_person_category.rb +231 -227
- data/lib/aspose-email-cloud/models/enum_with_custom_of_email_address_category.rb +231 -227
- data/lib/aspose-email-cloud/models/enum_with_custom_of_event_category.rb +231 -227
- data/lib/aspose-email-cloud/models/enum_with_custom_of_instant_messenger_category.rb +231 -227
- data/lib/aspose-email-cloud/models/enum_with_custom_of_phone_number_category.rb +231 -227
- data/lib/aspose-email-cloud/models/enum_with_custom_of_postal_address_category.rb +231 -227
- data/lib/aspose-email-cloud/models/enum_with_custom_of_url_category.rb +231 -227
- data/lib/aspose-email-cloud/models/error.rb +226 -249
- data/lib/aspose-email-cloud/models/error_details.rb +213 -228
- data/lib/aspose-email-cloud/models/file_version.rb +268 -303
- data/lib/aspose-email-cloud/models/file_versions.rb +199 -212
- data/lib/aspose-email-cloud/models/files_list.rb +199 -212
- data/lib/aspose-email-cloud/models/files_upload_result.rb +208 -227
- data/lib/aspose-email-cloud/models/{requests/get_disc_usage_request_data.rb → get_disc_usage_request.rb} +70 -71
- data/lib/aspose-email-cloud/models/{requests/get_file_versions_request_data.rb → get_file_versions_request.rb} +79 -78
- data/lib/aspose-email-cloud/models/{requests/get_files_list_request_data.rb → get_files_list_request.rb} +79 -78
- data/lib/aspose-email-cloud/models/{requests/http_request.rb → http_request.rb} +47 -51
- data/lib/aspose-email-cloud/models/instant_messenger_address.rb +222 -241
- data/lib/aspose-email-cloud/models/linked_resource.rb +235 -264
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_component.rb +198 -211
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_extracted.rb +198 -211
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_gender_hypothesis.rb +198 -211
- data/lib/aspose-email-cloud/models/list_response_of_contact_dto.rb +198 -211
- data/lib/aspose-email-cloud/models/list_response_of_email_account_config.rb +198 -0
- data/lib/aspose-email-cloud/models/list_response_of_email_dto.rb +198 -211
- data/lib/aspose-email-cloud/models/list_response_of_email_thread.rb +198 -0
- data/lib/aspose-email-cloud/models/list_response_of_mail_message_base.rb +198 -0
- data/lib/aspose-email-cloud/models/list_response_of_mail_server_folder.rb +198 -211
- data/lib/aspose-email-cloud/models/list_response_of_storage_file_location.rb +198 -211
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_calendar_dto.rb +198 -211
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_contact_dto.rb +198 -211
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_email_dto.rb +198 -211
- data/lib/aspose-email-cloud/models/mail_address.rb +231 -241
- data/lib/aspose-email-cloud/models/mail_message_base.rb +205 -0
- data/lib/aspose-email-cloud/models/{indexed_primitive_object.rb → mail_message_base64.rb} +252 -260
- data/lib/aspose-email-cloud/models/mail_message_base_list.rb +199 -0
- data/lib/aspose-email-cloud/models/mail_message_dto.rb +219 -0
- data/lib/aspose-email-cloud/models/mail_message_mapi.rb +219 -0
- data/lib/aspose-email-cloud/models/mail_server_folder.rb +208 -223
- data/lib/aspose-email-cloud/models/mail_server_folder_list.rb +199 -0
- data/lib/aspose-email-cloud/models/{mime_response.rb → mapi_attachment_dto.rb} +208 -210
- data/lib/aspose-email-cloud/models/{base_object.rb → mapi_binary_property_dto.rb} +223 -229
- data/lib/aspose-email-cloud/models/mapi_boolean_property_dto.rb +228 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_as_file_request.rb +218 -0
- data/lib/aspose-email-cloud/models/{ai_bcr_base64_rq.rb → mapi_calendar_attendees_dto.rb} +236 -225
- data/lib/aspose-email-cloud/models/mapi_calendar_daily_recurrence_pattern_dto.rb +381 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_dto.rb +561 -0
- data/lib/aspose-email-cloud/models/{ai_bcr_ocr_data_part.rb → mapi_calendar_event_recurrence_dto.rb} +259 -297
- data/lib/aspose-email-cloud/models/mapi_calendar_exception_info_dto.rb +361 -0
- data/lib/aspose-email-cloud/models/{requests/ai_bcr_ocr_request_data.rb → mapi_calendar_from_file_request.rb} +74 -75
- data/lib/aspose-email-cloud/models/mapi_calendar_get_request.rb +87 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_recurrence_pattern_dto.rb +372 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_save_request.rb +232 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_time_zone_dto.rb +208 -0
- data/lib/aspose-email-cloud/models/{send_email_base_request.rb → mapi_calendar_time_zone_info_dto.rb} +273 -278
- data/lib/aspose-email-cloud/models/{delete_folder_base_request.rb → mapi_calendar_time_zone_rule_dto.rb} +344 -315
- data/lib/aspose-email-cloud/models/mapi_calendar_weekly_recurrence_pattern_dto.rb +381 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_yearly_and_monthly_recurrence_pattern_dto.rb +409 -0
- data/lib/aspose-email-cloud/models/mapi_contact_as_file_request.rb +218 -0
- data/lib/aspose-email-cloud/models/mapi_contact_dto.rb +440 -0
- data/lib/aspose-email-cloud/models/mapi_contact_electronic_address_dto.rb +249 -0
- data/lib/aspose-email-cloud/models/mapi_contact_electronic_address_property_set_dto.rb +281 -0
- data/lib/aspose-email-cloud/models/mapi_contact_event_property_set_dto.rb +218 -0
- data/lib/aspose-email-cloud/models/mapi_contact_from_file_request.rb +84 -0
- data/lib/aspose-email-cloud/models/mapi_contact_get_request.rb +97 -0
- data/lib/aspose-email-cloud/models/mapi_contact_name_property_set_dto.rb +285 -0
- data/lib/aspose-email-cloud/models/mapi_contact_other_property_set_dto.rb +277 -0
- data/lib/aspose-email-cloud/models/mapi_contact_personal_info_property_set_dto.rb +366 -0
- data/lib/aspose-email-cloud/models/mapi_contact_photo_dto.rb +252 -0
- data/lib/aspose-email-cloud/models/mapi_contact_physical_address_dto.rb +276 -0
- data/lib/aspose-email-cloud/models/{ai_bcr_storage_image_rq.rb → mapi_contact_physical_address_property_set_dto.rb} +217 -230
- data/lib/aspose-email-cloud/models/mapi_contact_professional_property_set_dto.rb +253 -0
- data/lib/aspose-email-cloud/models/mapi_contact_save_request.rb +232 -0
- data/lib/aspose-email-cloud/models/mapi_contact_telephone_property_set_dto.rb +371 -0
- data/lib/aspose-email-cloud/models/mapi_date_time_property_dto.rb +228 -0
- data/lib/aspose-email-cloud/models/mapi_electronic_address_dto.rb +235 -0
- data/lib/aspose-email-cloud/models/mapi_file_as_property_dto.rb +228 -0
- data/lib/aspose-email-cloud/models/mapi_importance_property_dto.rb +228 -0
- data/lib/aspose-email-cloud/models/mapi_int_property_dto.rb +228 -0
- data/lib/aspose-email-cloud/models/mapi_known_property_descriptor.rb +238 -0
- data/lib/aspose-email-cloud/models/mapi_legacy_free_busy_property_dto.rb +228 -0
- data/lib/aspose-email-cloud/models/mapi_message_as_file_request.rb +218 -0
- data/lib/aspose-email-cloud/models/mapi_message_dto.rb +604 -0
- data/lib/aspose-email-cloud/models/{requests/get_email_model_request_data.rb → mapi_message_from_file_request.rb} +84 -88
- data/lib/aspose-email-cloud/models/mapi_message_get_request.rb +97 -0
- data/lib/aspose-email-cloud/models/mapi_message_item_base_dto.rb +359 -0
- data/lib/aspose-email-cloud/models/mapi_message_save_request.rb +232 -0
- data/lib/aspose-email-cloud/models/mapi_multi_int_property_dto.rb +223 -0
- data/lib/aspose-email-cloud/models/mapi_multi_string_property_dto.rb +223 -0
- data/lib/aspose-email-cloud/models/mapi_physical_address_index_property_dto.rb +228 -0
- data/lib/aspose-email-cloud/models/mapi_pid_lid_property_descriptor.rb +279 -0
- data/lib/aspose-email-cloud/models/mapi_pid_name_property_descriptor.rb +265 -0
- data/lib/aspose-email-cloud/models/mapi_pid_property_descriptor.rb +251 -0
- data/lib/aspose-email-cloud/models/mapi_pid_tag_property_descriptor.rb +279 -0
- data/lib/aspose-email-cloud/models/mapi_property_descriptor.rb +205 -0
- data/lib/aspose-email-cloud/models/mapi_property_dto.rb +214 -0
- data/lib/aspose-email-cloud/models/mapi_recipient_dto.rb +231 -0
- data/lib/aspose-email-cloud/models/{primitive_object.rb → mapi_response_type_property_dto.rb} +228 -242
- data/lib/aspose-email-cloud/models/mapi_string_property_dto.rb +223 -0
- data/lib/aspose-email-cloud/models/{create_folder_base_request.rb → monthly_recurrence_pattern_dto.rb} +303 -310
- data/lib/aspose-email-cloud/models/{requests/move_file_request_data.rb → move_file_request.rb} +101 -92
- data/lib/aspose-email-cloud/models/{requests/move_folder_request_data.rb → move_folder_request.rb} +96 -89
- data/lib/aspose-email-cloud/models/{value_response.rb → name_value_pair.rb} +208 -210
- data/lib/aspose-email-cloud/models/object_exist.rb +218 -233
- data/lib/aspose-email-cloud/models/{requests/object_exists_request_data.rb → object_exists_request.rb} +85 -81
- data/lib/aspose-email-cloud/models/phone_number.rb +222 -241
- data/lib/aspose-email-cloud/models/postal_address.rb +299 -350
- data/lib/aspose-email-cloud/models/recurrence_pattern_dto.rb +261 -0
- data/lib/aspose-email-cloud/models/reminder_attendee.rb +223 -210
- data/lib/aspose-email-cloud/models/reminder_trigger.rb +227 -246
- data/lib/aspose-email-cloud/models/storage_exist.rb +204 -215
- data/lib/aspose-email-cloud/models/{requests/storage_exists_request_data.rb → storage_exists_request.rb} +74 -75
- data/lib/aspose-email-cloud/models/storage_file.rb +245 -272
- data/lib/aspose-email-cloud/models/storage_file_location.rb +241 -260
- data/lib/aspose-email-cloud/models/storage_file_location_list.rb +199 -0
- data/lib/aspose-email-cloud/models/storage_folder_location.rb +208 -223
- data/lib/aspose-email-cloud/models/storage_model_of_calendar_dto.rb +217 -222
- data/lib/aspose-email-cloud/models/storage_model_of_contact_dto.rb +217 -222
- data/lib/aspose-email-cloud/models/storage_model_of_email_client_account.rb +217 -0
- data/lib/aspose-email-cloud/models/storage_model_of_email_client_multi_account.rb +217 -0
- data/lib/aspose-email-cloud/models/storage_model_of_email_dto.rb +217 -222
- data/lib/aspose-email-cloud/models/storage_model_of_mapi_calendar_dto.rb +217 -0
- data/lib/aspose-email-cloud/models/storage_model_of_mapi_contact_dto.rb +217 -0
- data/lib/aspose-email-cloud/models/storage_model_of_mapi_message_dto.rb +217 -0
- data/lib/aspose-email-cloud/models/task_regenerating_pattern_dto.rb +275 -0
- data/lib/aspose-email-cloud/models/{requests/upload_file_request_data.rb → upload_file_request.rb} +90 -87
- data/lib/aspose-email-cloud/models/url.rb +222 -241
- data/lib/aspose-email-cloud/models/{list_response_of_string.rb → value_t_of_boolean.rb} +203 -211
- data/lib/aspose-email-cloud/models/value_t_of_string.rb +222 -0
- data/lib/aspose-email-cloud/models/weekly_recurrence_pattern_dto.rb +270 -0
- data/lib/aspose-email-cloud/models/yearly_recurrence_pattern_dto.rb +317 -0
- data/lib/aspose-email-cloud/version.rb +15 -15
- metadata +254 -198
- data/lib/aspose-email-cloud/models/add_attachment_request.rb +0 -223
- data/lib/aspose-email-cloud/models/ai_bcr_rq.rb +0 -210
- data/lib/aspose-email-cloud/models/append_email_account_base_request.rb +0 -315
- data/lib/aspose-email-cloud/models/append_email_base_request.rb +0 -333
- data/lib/aspose-email-cloud/models/append_email_mime_base_request.rb +0 -352
- data/lib/aspose-email-cloud/models/append_email_model_rq.rb +0 -333
- data/lib/aspose-email-cloud/models/create_email_request.rb +0 -228
- data/lib/aspose-email-cloud/models/delete_message_base_request.rb +0 -315
- data/lib/aspose-email-cloud/models/email_document.rb +0 -230
- data/lib/aspose-email-cloud/models/email_document_response.rb +0 -210
- data/lib/aspose-email-cloud/models/email_properties.rb +0 -230
- data/lib/aspose-email-cloud/models/email_property_response.rb +0 -210
- data/lib/aspose-email-cloud/models/hierarchical_object_request.rb +0 -228
- data/lib/aspose-email-cloud/models/list_response_of_hierarchical_object_response.rb +0 -211
- data/lib/aspose-email-cloud/models/requests/add_calendar_attachment_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/add_contact_attachment_request_data.rb +0 -96
- data/lib/aspose-email-cloud/models/requests/add_email_attachment_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/add_mapi_attachment_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_ocr_data_model_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_storage_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_parsed_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/ai_name_format_parsed_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/ai_name_format_request_data.rb +0 -94
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_parsed_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_request_data.rb +0 -91
- data/lib/aspose-email-cloud/models/requests/ai_name_match_parsed_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/ai_name_match_request_data.rb +0 -99
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_email_address_request_data.rb +0 -91
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_request_data.rb +0 -91
- data/lib/aspose-email-cloud/models/requests/append_email_message_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/append_email_model_message_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/append_mime_message_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_alternate_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/create_calendar_request_data.rb +0 -82
- data/lib/aspose-email-cloud/models/requests/create_contact_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/create_email_folder_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/create_mapi_request_data.rb +0 -82
- data/lib/aspose-email-cloud/models/requests/delete_calendar_property_request_data.rb +0 -96
- data/lib/aspose-email-cloud/models/requests/delete_contact_property_request_data.rb +0 -103
- data/lib/aspose-email-cloud/models/requests/delete_email_folder_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/delete_email_message_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/delete_mapi_properties_request_data.rb +0 -82
- data/lib/aspose-email-cloud/models/requests/fetch_email_message_request_data.rb +0 -93
- data/lib/aspose-email-cloud/models/requests/fetch_email_model_request_data.rb +0 -93
- data/lib/aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb +0 -88
- data/lib/aspose-email-cloud/models/requests/get_calendar_list_request_data.rb +0 -95
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_as_alternate_request_data.rb +0 -91
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_list_request_data.rb +0 -85
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_request_data.rb +0 -81
- data/lib/aspose-email-cloud/models/requests/get_calendar_request_data.rb +0 -81
- data/lib/aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb +0 -95
- data/lib/aspose-email-cloud/models/requests/get_contact_list_request_data.rb +0 -87
- data/lib/aspose-email-cloud/models/requests/get_contact_properties_request_data.rb +0 -88
- data/lib/aspose-email-cloud/models/requests/get_email_property_request_data.rb +0 -88
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachment_request_data.rb +0 -88
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachments_request_data.rb +0 -81
- data/lib/aspose-email-cloud/models/requests/get_mapi_list_request_data.rb +0 -80
- data/lib/aspose-email-cloud/models/requests/get_mapi_properties_request_data.rb +0 -81
- data/lib/aspose-email-cloud/models/requests/list_email_folders_request_data.rb +0 -88
- data/lib/aspose-email-cloud/models/requests/list_email_models_request_data.rb +0 -105
- data/lib/aspose-email-cloud/models/requests/save_calendar_model_request_data.rb +0 -82
- data/lib/aspose-email-cloud/models/requests/save_contact_model_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/save_mail_account_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/save_mail_o_auth_account_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/send_email_mime_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/send_email_model_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/send_email_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/set_email_property_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb +0 -82
- data/lib/aspose-email-cloud/models/requests/update_contact_properties_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/update_mapi_properties_request_data.rb +0 -82
- data/lib/aspose-email-cloud/models/save_email_account_request.rb +0 -431
- data/lib/aspose-email-cloud/models/send_email_mime_base_request.rb +0 -297
- data/lib/aspose-email-cloud/models/send_email_model_rq.rb +0 -273
- data/lib/aspose-email-cloud/models/set_email_property_request.rb +0 -228
@@ -0,0 +1,218 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="MapiContactAsFileRequest.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
|
+
# Convert MapiContact to file request.
|
30
|
+
class MapiContactAsFileRequest
|
31
|
+
# Enumerates contact formats. Enum, available values: VCard, WebDav, Msg
|
32
|
+
# @return [String]
|
33
|
+
attr_accessor :format
|
34
|
+
# MAPI contact model.
|
35
|
+
# @return [MapiContactDto]
|
36
|
+
attr_accessor :value
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
38
|
+
def self.attribute_map
|
39
|
+
{
|
40
|
+
:'format' => :'format',
|
41
|
+
:'value' => :'value'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
def self.swagger_types
|
47
|
+
{
|
48
|
+
:'format' => :'String',
|
49
|
+
:'value' => :'MapiContactDto'
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param [String] format Enumerates contact formats. Enum, available values: VCard, WebDav, Msg
|
55
|
+
# @param [MapiContactDto] value MAPI contact model.
|
56
|
+
def initialize(
|
57
|
+
format: nil,
|
58
|
+
value: nil)
|
59
|
+
self.format = format if format
|
60
|
+
self.value = value if value
|
61
|
+
end
|
62
|
+
|
63
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
64
|
+
# @return Array for valid properties with the reasons
|
65
|
+
def list_invalid_properties
|
66
|
+
invalid_properties = Array.new
|
67
|
+
if @format.nil?
|
68
|
+
invalid_properties.push('invalid value for "format", format cannot be nil.')
|
69
|
+
end
|
70
|
+
|
71
|
+
if @value.nil?
|
72
|
+
invalid_properties.push('invalid value for "value", value cannot be nil.')
|
73
|
+
end
|
74
|
+
|
75
|
+
invalid_properties
|
76
|
+
end
|
77
|
+
|
78
|
+
# Check to see if the all the properties in the model are valid
|
79
|
+
# @return true if the model is valid
|
80
|
+
def valid?
|
81
|
+
return false if @format.nil?
|
82
|
+
return false if @value.nil?
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Checks equality by comparing each attribute.
|
87
|
+
# @param [Object] Object to be compared
|
88
|
+
def ==(o)
|
89
|
+
return true if self.equal?(o)
|
90
|
+
self.class == o.class &&
|
91
|
+
format == o.format &&
|
92
|
+
value == o.value
|
93
|
+
end
|
94
|
+
|
95
|
+
# @see the `==` method
|
96
|
+
# @param [Object] Object to be compared
|
97
|
+
def eql?(o)
|
98
|
+
self == o
|
99
|
+
end
|
100
|
+
|
101
|
+
# Calculates hash code according to all attributes.
|
102
|
+
# @return [Fixnum] Hash code
|
103
|
+
def hash
|
104
|
+
[format, value].hash
|
105
|
+
end
|
106
|
+
|
107
|
+
# Builds the object from hash
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
109
|
+
# @return [Object] Returns the model itself
|
110
|
+
def build_from_hash(attributes)
|
111
|
+
return nil unless attributes.is_a?(Hash)
|
112
|
+
self.class.swagger_types.each_pair do |key, type|
|
113
|
+
attribute_key = self.class.attribute_map[key]
|
114
|
+
attribute_key = (attribute_key[0, 1].downcase + attribute_key[1..-1]).to_sym
|
115
|
+
if type =~ /\AArray<(.*)>/i
|
116
|
+
# check to ensure the input is an array given that the the attribute
|
117
|
+
# is documented as an array but the input is not
|
118
|
+
if attributes[attribute_key].is_a?(Array)
|
119
|
+
self.send("#{key}=", attributes[attribute_key].map { |v| _deserialize($1, v) })
|
120
|
+
end
|
121
|
+
elsif !attributes[attribute_key].nil?
|
122
|
+
self.send("#{key}=", _deserialize(type, attributes[attribute_key]))
|
123
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
124
|
+
end
|
125
|
+
|
126
|
+
self
|
127
|
+
end
|
128
|
+
|
129
|
+
# Deserializes the data based on type
|
130
|
+
# @param string type Data type
|
131
|
+
# @param string value Value to be deserialized
|
132
|
+
# @return [Object] Deserialized data
|
133
|
+
def _deserialize(type, value)
|
134
|
+
case type.to_sym
|
135
|
+
when :DateTime
|
136
|
+
DateTime.parse(value)
|
137
|
+
when :Date
|
138
|
+
Date.parse(value)
|
139
|
+
when :String
|
140
|
+
value.to_s
|
141
|
+
when :Integer
|
142
|
+
value.to_i
|
143
|
+
when :Float
|
144
|
+
value.to_f
|
145
|
+
when :BOOLEAN
|
146
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
147
|
+
true
|
148
|
+
else
|
149
|
+
false
|
150
|
+
end
|
151
|
+
when :Object
|
152
|
+
# generic object (usually a Hash), return directly
|
153
|
+
value
|
154
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
155
|
+
inner_type = Regexp.last_match[:inner_type]
|
156
|
+
value.map { |v| _deserialize(inner_type, v) }
|
157
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
158
|
+
k_type = Regexp.last_match[:k_type]
|
159
|
+
v_type = Regexp.last_match[:v_type]
|
160
|
+
{}.tap do |hash|
|
161
|
+
value.each do |k, v|
|
162
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
163
|
+
end
|
164
|
+
end
|
165
|
+
else # model
|
166
|
+
sub_type = value[:type] || value[:discriminator] || type
|
167
|
+
if AsposeEmailCloud.const_defined?(sub_type)
|
168
|
+
type = sub_type
|
169
|
+
end
|
170
|
+
temp_model = AsposeEmailCloud.const_get(type).new
|
171
|
+
temp_model.build_from_hash(value)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
# Returns the string representation of the object
|
176
|
+
# @return [String] String presentation of the object
|
177
|
+
def to_s
|
178
|
+
to_hash.to_s
|
179
|
+
end
|
180
|
+
|
181
|
+
# to_body is an alias to to_hash (backward compatibility)
|
182
|
+
# @return [Hash] Returns the object in the form of hash
|
183
|
+
def to_body
|
184
|
+
to_hash
|
185
|
+
end
|
186
|
+
|
187
|
+
# Returns the object in the form of hash
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
189
|
+
def to_hash
|
190
|
+
hash = {}
|
191
|
+
self.class.attribute_map.each_pair do |attr, param|
|
192
|
+
value = self.send(attr)
|
193
|
+
next if value.nil?
|
194
|
+
hash[param] = _to_hash(value)
|
195
|
+
end
|
196
|
+
hash
|
197
|
+
end
|
198
|
+
|
199
|
+
# Outputs non-array value in the form of hash
|
200
|
+
# For object, use to_hash. Otherwise, just return the value
|
201
|
+
# @param [Object] value Any valid value
|
202
|
+
# @return [Hash] Returns the value in the form of hash
|
203
|
+
def _to_hash(value)
|
204
|
+
if value.is_a?(Array)
|
205
|
+
value.compact.map { |v| _to_hash(v) }
|
206
|
+
elsif value.is_a?(Hash)
|
207
|
+
{}.tap do |hash|
|
208
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
209
|
+
end
|
210
|
+
elsif value.respond_to? :to_hash
|
211
|
+
value.to_hash
|
212
|
+
else
|
213
|
+
value
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
end
|
218
|
+
end
|
@@ -0,0 +1,440 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="MapiContactDto.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 outlook contact information.
|
30
|
+
class MapiContactDto < 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
|
+
# Specify properties for up to three different e-mail addresses and three different fax addresses.
|
87
|
+
# @return [MapiContactElectronicAddressPropertySetDto]
|
88
|
+
attr_accessor :electronic_addresses
|
89
|
+
# Specify events associated with a contact.
|
90
|
+
# @return [MapiContactEventPropertySetDto]
|
91
|
+
attr_accessor :events
|
92
|
+
# The properties are used to specify the name of the person represented by the contact.
|
93
|
+
# @return [MapiContactNamePropertySetDto]
|
94
|
+
attr_accessor :name_info
|
95
|
+
# Specify other fields of contact.
|
96
|
+
# @return [MapiContactOtherPropertySetDto]
|
97
|
+
attr_accessor :other_fields
|
98
|
+
# Specify other additional contact information.
|
99
|
+
# @return [MapiContactPersonalInfoPropertySetDto]
|
100
|
+
attr_accessor :personal_info
|
101
|
+
# Contact photo.
|
102
|
+
# @return [MapiContactPhotoDto]
|
103
|
+
attr_accessor :photo
|
104
|
+
# Specify three physical addresses: Home Address, Work Address, and Other Address. One of the addresses can be marked as the Mailing Address.
|
105
|
+
# @return [MapiContactPhysicalAddressPropertySetDto]
|
106
|
+
attr_accessor :physical_addresses
|
107
|
+
# Properties are used to store professional details for the person represented by the contact.
|
108
|
+
# @return [MapiContactProfessionalPropertySetDto]
|
109
|
+
attr_accessor :professional_info
|
110
|
+
# Specify telephone numbers for the contact.
|
111
|
+
# @return [MapiContactTelephonePropertySetDto]
|
112
|
+
attr_accessor :telephones
|
113
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
114
|
+
def self.attribute_map
|
115
|
+
{
|
116
|
+
:'attachments' => :'attachments',
|
117
|
+
:'billing' => :'billing',
|
118
|
+
:'body' => :'body',
|
119
|
+
:'body_html' => :'bodyHtml',
|
120
|
+
:'body_rtf' => :'bodyRtf',
|
121
|
+
:'body_type' => :'bodyType',
|
122
|
+
:'categories' => :'categories',
|
123
|
+
:'companies' => :'companies',
|
124
|
+
:'item_id' => :'itemId',
|
125
|
+
:'message_class' => :'messageClass',
|
126
|
+
:'mileage' => :'mileage',
|
127
|
+
:'recipients' => :'recipients',
|
128
|
+
:'sensitivity' => :'sensitivity',
|
129
|
+
:'subject' => :'subject',
|
130
|
+
:'subject_prefix' => :'subjectPrefix',
|
131
|
+
:'properties' => :'properties',
|
132
|
+
:'discriminator' => :'discriminator',
|
133
|
+
:'electronic_addresses' => :'electronicAddresses',
|
134
|
+
:'events' => :'events',
|
135
|
+
:'name_info' => :'nameInfo',
|
136
|
+
:'other_fields' => :'otherFields',
|
137
|
+
:'personal_info' => :'personalInfo',
|
138
|
+
:'photo' => :'photo',
|
139
|
+
:'physical_addresses' => :'physicalAddresses',
|
140
|
+
:'professional_info' => :'professionalInfo',
|
141
|
+
:'telephones' => :'telephones'
|
142
|
+
}
|
143
|
+
end
|
144
|
+
|
145
|
+
# Attribute type mapping.
|
146
|
+
def self.swagger_types
|
147
|
+
{
|
148
|
+
:'attachments' => :'Array<MapiAttachmentDto>',
|
149
|
+
:'billing' => :'String',
|
150
|
+
:'body' => :'String',
|
151
|
+
:'body_html' => :'String',
|
152
|
+
:'body_rtf' => :'String',
|
153
|
+
:'body_type' => :'String',
|
154
|
+
:'categories' => :'Array<String>',
|
155
|
+
:'companies' => :'Array<String>',
|
156
|
+
:'item_id' => :'String',
|
157
|
+
:'message_class' => :'String',
|
158
|
+
:'mileage' => :'String',
|
159
|
+
:'recipients' => :'Array<MapiRecipientDto>',
|
160
|
+
:'sensitivity' => :'String',
|
161
|
+
:'subject' => :'String',
|
162
|
+
:'subject_prefix' => :'String',
|
163
|
+
:'properties' => :'Array<MapiPropertyDto>',
|
164
|
+
:'discriminator' => :'String',
|
165
|
+
:'electronic_addresses' => :'MapiContactElectronicAddressPropertySetDto',
|
166
|
+
:'events' => :'MapiContactEventPropertySetDto',
|
167
|
+
:'name_info' => :'MapiContactNamePropertySetDto',
|
168
|
+
:'other_fields' => :'MapiContactOtherPropertySetDto',
|
169
|
+
:'personal_info' => :'MapiContactPersonalInfoPropertySetDto',
|
170
|
+
:'photo' => :'MapiContactPhotoDto',
|
171
|
+
:'physical_addresses' => :'MapiContactPhysicalAddressPropertySetDto',
|
172
|
+
:'professional_info' => :'MapiContactProfessionalPropertySetDto',
|
173
|
+
:'telephones' => :'MapiContactTelephonePropertySetDto'
|
174
|
+
}
|
175
|
+
end
|
176
|
+
|
177
|
+
# Initializes the object
|
178
|
+
# @param [Array<MapiAttachmentDto>] attachments Message item attachments.
|
179
|
+
# @param [String] billing Billing information associated with an item.
|
180
|
+
# @param [String] body Message text.
|
181
|
+
# @param [String] body_html Gets the BodyRtf of the message converted to HTML, if present, otherwise an empty string.
|
182
|
+
# @param [String] body_rtf RTF formatted message text.
|
183
|
+
# @param [String] body_type The content type of message body. Enum, available values: PlainText, Html, Rtf
|
184
|
+
# @param [Array<String>] categories Contains keywords or categories for the message object.
|
185
|
+
# @param [Array<String>] companies Contains the names of the companies that are associated with an item.
|
186
|
+
# @param [String] item_id The item id, uses with a server.
|
187
|
+
# @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.
|
188
|
+
# @param [String] mileage Contains the mileage information that is associated with an item.
|
189
|
+
# @param [Array<MapiRecipientDto>] recipients Recipients of the message.
|
190
|
+
# @param [String] sensitivity Contains values that indicate the message sensitivity. Enum, available values: None, Personal, Private, CompanyConfidential
|
191
|
+
# @param [String] subject Subject of the message.
|
192
|
+
# @param [String] subject_prefix Subject prefix that typically indicates some action on a message, such as \"FW: \" for forwarding.
|
193
|
+
# @param [Array<MapiPropertyDto>] properties List of MAPI properties
|
194
|
+
# @param [MapiContactElectronicAddressPropertySetDto] electronic_addresses Specify properties for up to three different e-mail addresses and three different fax addresses.
|
195
|
+
# @param [MapiContactEventPropertySetDto] events Specify events associated with a contact.
|
196
|
+
# @param [MapiContactNamePropertySetDto] name_info The properties are used to specify the name of the person represented by the contact.
|
197
|
+
# @param [MapiContactOtherPropertySetDto] other_fields Specify other fields of contact.
|
198
|
+
# @param [MapiContactPersonalInfoPropertySetDto] personal_info Specify other additional contact information.
|
199
|
+
# @param [MapiContactPhotoDto] photo Contact photo.
|
200
|
+
# @param [MapiContactPhysicalAddressPropertySetDto] physical_addresses Specify three physical addresses: Home Address, Work Address, and Other Address. One of the addresses can be marked as the Mailing Address.
|
201
|
+
# @param [MapiContactProfessionalPropertySetDto] professional_info Properties are used to store professional details for the person represented by the contact.
|
202
|
+
# @param [MapiContactTelephonePropertySetDto] telephones Specify telephone numbers for the contact.
|
203
|
+
def initialize(
|
204
|
+
attachments: nil,
|
205
|
+
billing: nil,
|
206
|
+
body: nil,
|
207
|
+
body_html: nil,
|
208
|
+
body_rtf: nil,
|
209
|
+
body_type: nil,
|
210
|
+
categories: nil,
|
211
|
+
companies: nil,
|
212
|
+
item_id: nil,
|
213
|
+
message_class: nil,
|
214
|
+
mileage: nil,
|
215
|
+
recipients: nil,
|
216
|
+
sensitivity: nil,
|
217
|
+
subject: nil,
|
218
|
+
subject_prefix: nil,
|
219
|
+
properties: nil,
|
220
|
+
electronic_addresses: nil,
|
221
|
+
events: nil,
|
222
|
+
name_info: nil,
|
223
|
+
other_fields: nil,
|
224
|
+
personal_info: nil,
|
225
|
+
photo: nil,
|
226
|
+
physical_addresses: nil,
|
227
|
+
professional_info: nil,
|
228
|
+
telephones: nil)
|
229
|
+
self.attachments = attachments if attachments
|
230
|
+
self.billing = billing if billing
|
231
|
+
self.body = body if body
|
232
|
+
self.body_html = body_html if body_html
|
233
|
+
self.body_rtf = body_rtf if body_rtf
|
234
|
+
self.body_type = body_type if body_type
|
235
|
+
self.categories = categories if categories
|
236
|
+
self.companies = companies if companies
|
237
|
+
self.item_id = item_id if item_id
|
238
|
+
self.message_class = message_class if message_class
|
239
|
+
self.mileage = mileage if mileage
|
240
|
+
self.recipients = recipients if recipients
|
241
|
+
self.sensitivity = sensitivity if sensitivity
|
242
|
+
self.subject = subject if subject
|
243
|
+
self.subject_prefix = subject_prefix if subject_prefix
|
244
|
+
self.properties = properties if properties
|
245
|
+
self.electronic_addresses = electronic_addresses if electronic_addresses
|
246
|
+
self.events = events if events
|
247
|
+
self.name_info = name_info if name_info
|
248
|
+
self.other_fields = other_fields if other_fields
|
249
|
+
self.personal_info = personal_info if personal_info
|
250
|
+
self.photo = photo if photo
|
251
|
+
self.physical_addresses = physical_addresses if physical_addresses
|
252
|
+
self.professional_info = professional_info if professional_info
|
253
|
+
self.telephones = telephones if telephones
|
254
|
+
end
|
255
|
+
|
256
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
257
|
+
# @return Array for valid properties with the reasons
|
258
|
+
def list_invalid_properties
|
259
|
+
invalid_properties = Array.new
|
260
|
+
if @body_type.nil?
|
261
|
+
invalid_properties.push('invalid value for "body_type", body_type cannot be nil.')
|
262
|
+
end
|
263
|
+
|
264
|
+
if @sensitivity.nil?
|
265
|
+
invalid_properties.push('invalid value for "sensitivity", sensitivity cannot be nil.')
|
266
|
+
end
|
267
|
+
|
268
|
+
if @discriminator.nil?
|
269
|
+
invalid_properties.push('invalid value for "discriminator", discriminator cannot be nil.')
|
270
|
+
end
|
271
|
+
|
272
|
+
invalid_properties
|
273
|
+
end
|
274
|
+
|
275
|
+
# Check to see if the all the properties in the model are valid
|
276
|
+
# @return true if the model is valid
|
277
|
+
def valid?
|
278
|
+
return false if @body_type.nil?
|
279
|
+
return false if @sensitivity.nil?
|
280
|
+
return false if @discriminator.nil?
|
281
|
+
true
|
282
|
+
end
|
283
|
+
|
284
|
+
# Checks equality by comparing each attribute.
|
285
|
+
# @param [Object] Object to be compared
|
286
|
+
def ==(o)
|
287
|
+
return true if self.equal?(o)
|
288
|
+
self.class == o.class &&
|
289
|
+
attachments == o.attachments &&
|
290
|
+
billing == o.billing &&
|
291
|
+
body == o.body &&
|
292
|
+
body_html == o.body_html &&
|
293
|
+
body_rtf == o.body_rtf &&
|
294
|
+
body_type == o.body_type &&
|
295
|
+
categories == o.categories &&
|
296
|
+
companies == o.companies &&
|
297
|
+
item_id == o.item_id &&
|
298
|
+
message_class == o.message_class &&
|
299
|
+
mileage == o.mileage &&
|
300
|
+
recipients == o.recipients &&
|
301
|
+
sensitivity == o.sensitivity &&
|
302
|
+
subject == o.subject &&
|
303
|
+
subject_prefix == o.subject_prefix &&
|
304
|
+
properties == o.properties &&
|
305
|
+
discriminator == o.discriminator &&
|
306
|
+
electronic_addresses == o.electronic_addresses &&
|
307
|
+
events == o.events &&
|
308
|
+
name_info == o.name_info &&
|
309
|
+
other_fields == o.other_fields &&
|
310
|
+
personal_info == o.personal_info &&
|
311
|
+
photo == o.photo &&
|
312
|
+
physical_addresses == o.physical_addresses &&
|
313
|
+
professional_info == o.professional_info &&
|
314
|
+
telephones == o.telephones
|
315
|
+
end
|
316
|
+
|
317
|
+
# @see the `==` method
|
318
|
+
# @param [Object] Object to be compared
|
319
|
+
def eql?(o)
|
320
|
+
self == o
|
321
|
+
end
|
322
|
+
|
323
|
+
# Calculates hash code according to all attributes.
|
324
|
+
# @return [Fixnum] Hash code
|
325
|
+
def hash
|
326
|
+
[attachments, billing, body, body_html, body_rtf, body_type, categories, companies, item_id, message_class, mileage, recipients, sensitivity, subject, subject_prefix, properties, discriminator, electronic_addresses, events, name_info, other_fields, personal_info, photo, physical_addresses, professional_info, telephones].hash
|
327
|
+
end
|
328
|
+
|
329
|
+
# Builds the object from hash
|
330
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
331
|
+
# @return [Object] Returns the model itself
|
332
|
+
def build_from_hash(attributes)
|
333
|
+
return nil unless attributes.is_a?(Hash)
|
334
|
+
self.class.swagger_types.each_pair do |key, type|
|
335
|
+
attribute_key = self.class.attribute_map[key]
|
336
|
+
attribute_key = (attribute_key[0, 1].downcase + attribute_key[1..-1]).to_sym
|
337
|
+
if type =~ /\AArray<(.*)>/i
|
338
|
+
# check to ensure the input is an array given that the the attribute
|
339
|
+
# is documented as an array but the input is not
|
340
|
+
if attributes[attribute_key].is_a?(Array)
|
341
|
+
self.send("#{key}=", attributes[attribute_key].map { |v| _deserialize($1, v) })
|
342
|
+
end
|
343
|
+
elsif !attributes[attribute_key].nil?
|
344
|
+
self.send("#{key}=", _deserialize(type, attributes[attribute_key]))
|
345
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
346
|
+
end
|
347
|
+
|
348
|
+
self
|
349
|
+
end
|
350
|
+
|
351
|
+
# Deserializes the data based on type
|
352
|
+
# @param string type Data type
|
353
|
+
# @param string value Value to be deserialized
|
354
|
+
# @return [Object] Deserialized data
|
355
|
+
def _deserialize(type, value)
|
356
|
+
case type.to_sym
|
357
|
+
when :DateTime
|
358
|
+
DateTime.parse(value)
|
359
|
+
when :Date
|
360
|
+
Date.parse(value)
|
361
|
+
when :String
|
362
|
+
value.to_s
|
363
|
+
when :Integer
|
364
|
+
value.to_i
|
365
|
+
when :Float
|
366
|
+
value.to_f
|
367
|
+
when :BOOLEAN
|
368
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
369
|
+
true
|
370
|
+
else
|
371
|
+
false
|
372
|
+
end
|
373
|
+
when :Object
|
374
|
+
# generic object (usually a Hash), return directly
|
375
|
+
value
|
376
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
377
|
+
inner_type = Regexp.last_match[:inner_type]
|
378
|
+
value.map { |v| _deserialize(inner_type, v) }
|
379
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
380
|
+
k_type = Regexp.last_match[:k_type]
|
381
|
+
v_type = Regexp.last_match[:v_type]
|
382
|
+
{}.tap do |hash|
|
383
|
+
value.each do |k, v|
|
384
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
385
|
+
end
|
386
|
+
end
|
387
|
+
else # model
|
388
|
+
sub_type = value[:type] || value[:discriminator] || type
|
389
|
+
if AsposeEmailCloud.const_defined?(sub_type)
|
390
|
+
type = sub_type
|
391
|
+
end
|
392
|
+
temp_model = AsposeEmailCloud.const_get(type).new
|
393
|
+
temp_model.build_from_hash(value)
|
394
|
+
end
|
395
|
+
end
|
396
|
+
|
397
|
+
# Returns the string representation of the object
|
398
|
+
# @return [String] String presentation of the object
|
399
|
+
def to_s
|
400
|
+
to_hash.to_s
|
401
|
+
end
|
402
|
+
|
403
|
+
# to_body is an alias to to_hash (backward compatibility)
|
404
|
+
# @return [Hash] Returns the object in the form of hash
|
405
|
+
def to_body
|
406
|
+
to_hash
|
407
|
+
end
|
408
|
+
|
409
|
+
# Returns the object in the form of hash
|
410
|
+
# @return [Hash] Returns the object in the form of hash
|
411
|
+
def to_hash
|
412
|
+
hash = {}
|
413
|
+
self.class.attribute_map.each_pair do |attr, param|
|
414
|
+
value = self.send(attr)
|
415
|
+
next if value.nil?
|
416
|
+
hash[param] = _to_hash(value)
|
417
|
+
end
|
418
|
+
hash
|
419
|
+
end
|
420
|
+
|
421
|
+
# Outputs non-array value in the form of hash
|
422
|
+
# For object, use to_hash. Otherwise, just return the value
|
423
|
+
# @param [Object] value Any valid value
|
424
|
+
# @return [Hash] Returns the value in the form of hash
|
425
|
+
def _to_hash(value)
|
426
|
+
if value.is_a?(Array)
|
427
|
+
value.compact.map { |v| _to_hash(v) }
|
428
|
+
elsif value.is_a?(Hash)
|
429
|
+
{}.tap do |hash|
|
430
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
431
|
+
end
|
432
|
+
elsif value.respond_to? :to_hash
|
433
|
+
value.to_hash
|
434
|
+
else
|
435
|
+
value
|
436
|
+
end
|
437
|
+
end
|
438
|
+
|
439
|
+
end
|
440
|
+
end
|