aspose_email_cloud 20.5.0 → 21.4.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 +202 -207
- data/lib/aspose-email-cloud/api/ai_bcr_api.rb +87 -0
- data/lib/aspose-email-cloud/api/ai_group.rb +49 -0
- data/lib/aspose-email-cloud/api/ai_name_api.rb +216 -0
- data/lib/aspose-email-cloud/api/calendar_api.rb +209 -0
- data/lib/aspose-email-cloud/api/client_account_api.rb +124 -0
- data/lib/aspose-email-cloud/api/client_folder_api.rb +116 -0
- data/lib/aspose-email-cloud/api/client_group.rb +59 -0
- data/lib/aspose-email-cloud/api/client_message_api.rb +233 -0
- data/lib/aspose-email-cloud/api/client_thread_api.rb +152 -0
- data/lib/aspose-email-cloud/api/cloud_storage_group.rb +54 -0
- data/lib/aspose-email-cloud/api/contact_api.rb +174 -0
- data/lib/aspose-email-cloud/api/disposable_email_api.rb +60 -0
- data/lib/aspose-email-cloud/api/email_api.rb +105 -970
- data/lib/aspose-email-cloud/api/email_cloud.rb +96 -0
- data/lib/aspose-email-cloud/api/email_config_api.rb +114 -0
- data/lib/aspose-email-cloud/api/file_api.rb +95 -0
- data/lib/aspose-email-cloud/api/folder_api.rb +96 -0
- data/lib/aspose-email-cloud/api/mapi_calendar_api.rb +150 -0
- data/lib/aspose-email-cloud/api/mapi_contact_api.rb +150 -0
- data/lib/aspose-email-cloud/api/mapi_group.rb +54 -0
- data/lib/aspose-email-cloud/api/mapi_message_api.rb +150 -0
- data/lib/aspose-email-cloud/api/storage_api.rb +84 -0
- data/lib/aspose-email-cloud/api_client.rb +8 -6
- data/lib/aspose-email-cloud/api_invoker.rb +92 -0
- data/lib/aspose-email-cloud/configuration.rb +11 -11
- data/lib/aspose-email-cloud/models/ai_bcr_image.rb +4 -18
- data/lib/aspose-email-cloud/models/ai_bcr_image_storage_file.rb +14 -27
- data/lib/aspose-email-cloud/models/ai_bcr_options.rb +8 -26
- data/lib/aspose-email-cloud/models/ai_bcr_parse_request.rb +95 -0
- data/lib/aspose-email-cloud/models/{ai_bcr_storage_image_rq.rb → ai_bcr_parse_storage_request.rb} +34 -40
- data/lib/aspose-email-cloud/models/{requests/ai_name_complete_request_data.rb → ai_name_complete_request.rb} +22 -28
- data/lib/aspose-email-cloud/models/ai_name_component.rb +5 -31
- data/lib/aspose-email-cloud/models/{list_response_of_string.rb → ai_name_component_list.rb} +8 -23
- data/lib/aspose-email-cloud/models/ai_name_cultural_context.rb +6 -36
- data/lib/aspose-email-cloud/models/{requests/ai_name_expand_request_data.rb → ai_name_expand_request.rb} +22 -28
- data/lib/aspose-email-cloud/models/ai_name_extracted.rb +3 -23
- data/lib/aspose-email-cloud/models/ai_name_extracted_component.rb +3 -21
- data/lib/aspose-email-cloud/models/{value_response.rb → ai_name_extracted_list.rb} +9 -23
- data/lib/aspose-email-cloud/models/{requests/ai_name_format_request_data.rb → ai_name_format_request.rb} +22 -28
- data/lib/aspose-email-cloud/models/ai_name_formatted.rb +3 -21
- data/lib/aspose-email-cloud/models/ai_name_gender_hypothesis.rb +3 -21
- data/lib/aspose-email-cloud/models/{list_response_of_ai_bcr_ocr_data.rb → ai_name_gender_hypothesis_list.rb} +8 -23
- data/lib/aspose-email-cloud/models/{requests/ai_name_genderize_request_data.rb → ai_name_genderize_request.rb} +22 -28
- data/lib/aspose-email-cloud/models/{ai_name_parsed_match_rq.rb → ai_name_match_parsed_request.rb} +7 -37
- data/lib/aspose-email-cloud/models/{requests/ai_name_match_request_data.rb → ai_name_match_request.rb} +25 -32
- data/lib/aspose-email-cloud/models/ai_name_match_result.rb +3 -23
- data/lib/aspose-email-cloud/models/ai_name_mismatch.rb +4 -26
- data/lib/aspose-email-cloud/models/{requests/ai_name_parse_email_address_request_data.rb → ai_name_parse_email_address_request.rb} +25 -28
- data/lib/aspose-email-cloud/models/{requests/ai_name_parse_request_data.rb → ai_name_parse_request.rb} +24 -30
- data/lib/aspose-email-cloud/models/{ai_name_parsed_rq.rb → ai_name_parsed_request.rb} +6 -30
- data/lib/aspose-email-cloud/models/ai_name_weighted.rb +3 -21
- data/lib/aspose-email-cloud/models/ai_name_weighted_variants.rb +3 -23
- data/lib/aspose-email-cloud/models/alternate_view.rb +8 -46
- data/lib/aspose-email-cloud/models/associated_person.rb +4 -26
- data/lib/aspose-email-cloud/models/attachment.rb +11 -59
- data/lib/aspose-email-cloud/models/attachment_base.rb +5 -33
- data/lib/aspose-email-cloud/models/{calendar_dto_alternate_rq.rb → calendar_as_alternate_request.rb} +7 -29
- data/lib/aspose-email-cloud/models/calendar_as_file_request.rb +218 -0
- data/lib/aspose-email-cloud/models/{requests/convert_calendar_request_data.rb → calendar_convert_request.rb} +18 -24
- data/lib/aspose-email-cloud/models/calendar_dto.rb +34 -129
- data/lib/aspose-email-cloud/models/{requests/get_email_file_as_model_request_data.rb → calendar_from_file_request.rb} +14 -20
- data/lib/aspose-email-cloud/models/{requests/get_calendar_model_as_alternate_request_data.rb → calendar_get_as_alternate_request.rb} +21 -26
- data/lib/aspose-email-cloud/models/{requests/get_calendar_as_file_request_data.rb → calendar_get_as_file_request.rb} +25 -30
- data/lib/aspose-email-cloud/models/{requests/get_calendar_model_list_request_data.rb → calendar_get_list_request.rb} +25 -28
- data/lib/aspose-email-cloud/models/{requests/get_calendar_model_request_data.rb → calendar_get_request.rb} +25 -30
- data/lib/aspose-email-cloud/models/calendar_reminder.rb +9 -55
- data/lib/aspose-email-cloud/models/{storage_model_rq_of_calendar_dto.rb → calendar_save_request.rb} +39 -32
- data/lib/aspose-email-cloud/models/{calendar_dto_list.rb → calendar_storage_list.rb} +5 -21
- data/lib/aspose-email-cloud/models/{ai_bcr_rq.rb → client_account_base_request.rb} +19 -28
- data/lib/aspose-email-cloud/models/{requests/get_email_attachment_request_data.rb → client_account_get_multi_request.rb} +26 -38
- data/lib/aspose-email-cloud/models/{requests/get_email_request_data.rb → client_account_get_request.rb} +25 -30
- data/lib/aspose-email-cloud/models/{storage_file_rq_of_email_client_multi_account.rb → client_account_save_multi_request.rb} +28 -35
- data/lib/aspose-email-cloud/models/{storage_file_rq_of_email_client_account.rb → client_account_save_request.rb} +28 -35
- data/lib/aspose-email-cloud/models/client_folder_create_request.rb +246 -0
- data/lib/aspose-email-cloud/models/{ai_bcr_base64_image.rb → client_folder_delete_request.rb} +49 -43
- data/lib/aspose-email-cloud/models/{requests/list_email_folders_request_data.rb → client_folder_get_list_request.rb} +29 -38
- 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/{email_property.rb → client_message_delete_request.rb} +47 -69
- data/lib/aspose-email-cloud/models/{requests/fetch_email_model_request_data.rb → client_message_fetch_file_request.rb} +34 -41
- data/lib/aspose-email-cloud/models/{requests/fetch_email_message_request_data.rb → client_message_fetch_request.rb} +40 -41
- data/lib/aspose-email-cloud/models/{requests/list_email_models_request_data.rb → client_message_list_request.rb} +40 -41
- data/lib/aspose-email-cloud/models/{move_email_thread_rq.rb → client_message_move_request.rb} +75 -72
- data/lib/aspose-email-cloud/models/client_message_send_file_request.rb +105 -0
- data/lib/aspose-email-cloud/models/{ai_bcr_base64_rq.rb → client_message_send_request.rb} +33 -43
- 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} +51 -40
- data/lib/aspose-email-cloud/models/{ai_bcr_ocr_data.rb → client_thread_delete_request.rb} +58 -68
- data/lib/aspose-email-cloud/models/{requests/list_email_threads_request_data.rb → client_thread_get_list_request.rb} +28 -41
- data/lib/aspose-email-cloud/models/{requests/fetch_email_thread_messages_request_data.rb → client_thread_get_messages_request.rb} +31 -40
- data/lib/aspose-email-cloud/models/{delete_email_thread_account_rq.rb → client_thread_move_request.rb} +79 -76
- 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/{requests/convert_contact_request_data.rb → contact_convert_request.rb} +27 -33
- data/lib/aspose-email-cloud/models/contact_dto.rb +37 -207
- data/lib/aspose-email-cloud/models/{requests/get_contact_file_as_model_request_data.rb → contact_from_file_request.rb} +15 -21
- data/lib/aspose-email-cloud/models/{requests/get_contact_as_file_request_data.rb → contact_get_as_file_request.rb} +29 -34
- data/lib/aspose-email-cloud/models/{requests/get_contact_model_list_request_data.rb → contact_get_list_request.rb} +17 -19
- data/lib/aspose-email-cloud/models/{requests/get_contact_model_request_data.rb → contact_get_request.rb} +22 -27
- data/lib/aspose-email-cloud/models/{list_response_of_hierarchical_object.rb → contact_list.rb} +8 -23
- data/lib/aspose-email-cloud/models/contact_photo.rb +45 -24
- data/lib/aspose-email-cloud/models/{storage_model_rq_of_contact_dto.rb → contact_save_request.rb} +39 -32
- data/lib/aspose-email-cloud/models/{contact_dto_list.rb → contact_storage_list.rb} +5 -21
- data/lib/aspose-email-cloud/models/content_type.rb +6 -38
- data/lib/aspose-email-cloud/models/content_type_parameter.rb +3 -21
- data/lib/aspose-email-cloud/models/{requests/copy_file_request_data.rb → copy_file_request.rb} +23 -29
- data/lib/aspose-email-cloud/models/{requests/copy_folder_request_data.rb → copy_folder_request.rb} +21 -27
- data/lib/aspose-email-cloud/models/{requests/create_folder_request_data.rb → create_folder_request.rb} +16 -21
- data/lib/aspose-email-cloud/models/customer_event.rb +3 -21
- data/lib/aspose-email-cloud/models/{indexed_hierarchical_object.rb → daily_recurrence_pattern_dto.rb} +261 -265
- data/lib/aspose-email-cloud/models/{requests/delete_file_request_data.rb → delete_file_request.rb} +18 -23
- data/lib/aspose-email-cloud/models/{requests/delete_folder_request_data.rb → delete_folder_request.rb} +18 -23
- data/lib/aspose-email-cloud/models/disc_usage.rb +8 -25
- data/lib/aspose-email-cloud/models/{discover_email_config_rq.rb → discover_email_config_request.rb} +6 -28
- data/lib/aspose-email-cloud/models/{requests/is_email_address_disposable_request_data.rb → disposable_email_is_disposable_request.rb} +17 -19
- data/lib/aspose-email-cloud/models/{requests/download_file_request_data.rb → download_file_request.rb} +18 -23
- data/lib/aspose-email-cloud/models/email_account_config.rb +9 -55
- data/lib/aspose-email-cloud/models/email_account_config_list.rb +3 -19
- data/lib/aspose-email-cloud/models/email_address.rb +31 -41
- data/lib/aspose-email-cloud/models/email_as_file_request.rb +218 -0
- data/lib/aspose-email-cloud/models/email_client_account.rb +7 -41
- data/lib/aspose-email-cloud/models/email_client_account_credentials.rb +2 -25
- data/lib/aspose-email-cloud/models/email_client_account_oauth_credentials.rb +7 -46
- data/lib/aspose-email-cloud/models/email_client_account_password_credentials.rb +4 -31
- data/lib/aspose-email-cloud/models/email_client_multi_account.rb +3 -23
- data/lib/aspose-email-cloud/models/{discover_email_config_oauth.rb → email_config_discover_oauth_request.rb} +10 -48
- data/lib/aspose-email-cloud/models/{discover_email_config_password.rb → email_config_discover_password_request.rb} +7 -33
- data/lib/aspose-email-cloud/models/{requests/discover_email_config_request_data.rb → email_config_discover_request.rb} +19 -22
- data/lib/aspose-email-cloud/models/email_convert_request.rb +94 -0
- data/lib/aspose-email-cloud/models/email_dto.rb +33 -191
- 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} +18 -23
- data/lib/aspose-email-cloud/models/{requests/get_email_model_list_request_data.rb → email_get_list_request.rb} +19 -21
- data/lib/aspose-email-cloud/models/{requests/get_email_model_request_data.rb → email_get_request.rb} +24 -29
- data/lib/aspose-email-cloud/models/email_list.rb +199 -0
- data/lib/aspose-email-cloud/models/{requests/email_request.rb → email_request.rb} +6 -11
- data/lib/aspose-email-cloud/models/{storage_model_rq_of_email_dto.rb → email_save_request.rb} +39 -32
- data/lib/aspose-email-cloud/models/{email_dto_list.rb → email_storage_list.rb} +5 -21
- data/lib/aspose-email-cloud/models/email_thread.rb +5 -33
- data/lib/aspose-email-cloud/models/email_thread_list.rb +3 -19
- data/lib/aspose-email-cloud/models/enum_with_custom_of_associated_person_category.rb +22 -21
- data/lib/aspose-email-cloud/models/enum_with_custom_of_email_address_category.rb +22 -21
- data/lib/aspose-email-cloud/models/enum_with_custom_of_event_category.rb +22 -21
- data/lib/aspose-email-cloud/models/enum_with_custom_of_instant_messenger_category.rb +22 -21
- data/lib/aspose-email-cloud/models/enum_with_custom_of_phone_number_category.rb +22 -21
- data/lib/aspose-email-cloud/models/enum_with_custom_of_postal_address_category.rb +22 -21
- data/lib/aspose-email-cloud/models/enum_with_custom_of_url_category.rb +22 -21
- data/lib/aspose-email-cloud/models/error.rb +14 -39
- data/lib/aspose-email-cloud/models/error_details.rb +8 -25
- data/lib/aspose-email-cloud/models/file_version.rb +24 -61
- data/lib/aspose-email-cloud/models/file_versions.rb +5 -20
- data/lib/aspose-email-cloud/models/files_list.rb +5 -20
- data/lib/aspose-email-cloud/models/files_upload_result.rb +8 -29
- data/lib/aspose-email-cloud/models/{requests/get_disc_usage_request_data.rb → get_disc_usage_request.rb} +13 -17
- data/lib/aspose-email-cloud/models/{requests/get_file_versions_request_data.rb → get_file_versions_request.rb} +16 -21
- data/lib/aspose-email-cloud/models/{requests/get_files_list_request_data.rb → get_files_list_request.rb} +16 -21
- data/lib/aspose-email-cloud/models/{requests/http_request.rb → http_request.rb} +1 -5
- data/lib/aspose-email-cloud/models/instant_messenger_address.rb +4 -26
- data/lib/aspose-email-cloud/models/linked_resource.rb +7 -39
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_component.rb +2 -18
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_extracted.rb +2 -18
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_gender_hypothesis.rb +2 -18
- data/lib/aspose-email-cloud/models/list_response_of_contact_dto.rb +2 -18
- data/lib/aspose-email-cloud/models/list_response_of_email_account_config.rb +2 -18
- data/lib/aspose-email-cloud/models/list_response_of_email_dto.rb +2 -18
- data/lib/aspose-email-cloud/models/list_response_of_email_thread.rb +2 -18
- 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 +2 -18
- data/lib/aspose-email-cloud/models/list_response_of_storage_file_location.rb +2 -18
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_calendar_dto.rb +2 -18
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_contact_dto.rb +2 -18
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_email_dto.rb +2 -18
- data/lib/aspose-email-cloud/models/mail_address.rb +5 -31
- data/lib/aspose-email-cloud/models/mail_message_base.rb +205 -0
- data/lib/aspose-email-cloud/models/mail_message_base64.rb +252 -0
- 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 +3 -21
- 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} +22 -27
- data/lib/aspose-email-cloud/models/mapi_binary_property_dto.rb +223 -0
- 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/{add_attachment_request.rb → mapi_calendar_attendees_dto.rb} +51 -41
- 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} +68 -109
- data/lib/aspose-email-cloud/models/mapi_calendar_exception_info_dto.rb +361 -0
- data/lib/aspose-email-cloud/models/{requests/get_calendar_file_as_model_request_data.rb → mapi_calendar_from_file_request.rb} +14 -20
- data/lib/aspose-email-cloud/models/{requests/get_calendar_request_data.rb → mapi_calendar_get_request.rb} +28 -30
- 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/{account_base_request.rb → mapi_calendar_time_zone_info_dto.rb} +84 -74
- data/lib/aspose-email-cloud/models/{set_message_read_flag_account_base_request.rb → mapi_calendar_time_zone_rule_dto.rb} +132 -106
- 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/{append_email_base_request.rb → mapi_contact_electronic_address_property_set_dto.rb} +91 -146
- 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 +99 -0
- data/lib/aspose-email-cloud/models/{link.rb → mapi_contact_name_property_set_dto.rb} +96 -63
- 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/{indexed_primitive_object.rb → mapi_contact_photo_dto.rb} +252 -263
- data/lib/aspose-email-cloud/models/{email_thread_read_flag_rq.rb → mapi_contact_physical_address_dto.rb} +86 -104
- data/lib/aspose-email-cloud/models/{ai_bcr_parse_ocr_data_rq.rb → mapi_contact_physical_address_property_set_dto.rb} +32 -48
- 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/{base_object.rb → mapi_electronic_address_dto.rb} +235 -232
- data/lib/aspose-email-cloud/models/{primitive_object.rb → mapi_file_as_property_dto.rb} +228 -245
- 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/convert_email_request_data.rb → mapi_message_from_file_request.rb} +18 -24
- data/lib/aspose-email-cloud/models/mapi_message_get_request.rb +99 -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/{email_document_response.rb → mapi_property_dto.rb} +28 -27
- data/lib/aspose-email-cloud/models/{hierarchical_object.rb → mapi_recipient_dto.rb} +231 -247
- data/lib/aspose-email-cloud/models/mapi_response_type_property_dto.rb +228 -0
- data/lib/aspose-email-cloud/models/mapi_string_property_dto.rb +223 -0
- data/lib/aspose-email-cloud/models/monthly_recurrence_pattern_dto.rb +303 -0
- data/lib/aspose-email-cloud/models/{requests/move_file_request_data.rb → move_file_request.rb} +23 -29
- data/lib/aspose-email-cloud/models/{requests/move_folder_request_data.rb → move_folder_request.rb} +24 -27
- data/lib/aspose-email-cloud/models/name_value_pair.rb +3 -21
- data/lib/aspose-email-cloud/models/object_exist.rb +8 -25
- data/lib/aspose-email-cloud/models/{requests/object_exists_request_data.rb → object_exists_request.rb} +18 -23
- data/lib/aspose-email-cloud/models/phone_number.rb +4 -26
- data/lib/aspose-email-cloud/models/postal_address.rb +12 -66
- data/lib/aspose-email-cloud/models/recurrence_pattern_dto.rb +261 -0
- data/lib/aspose-email-cloud/models/reminder_attendee.rb +26 -16
- data/lib/aspose-email-cloud/models/reminder_trigger.rb +4 -26
- data/lib/aspose-email-cloud/models/storage_exist.rb +5 -18
- data/lib/aspose-email-cloud/models/{requests/storage_exists_request_data.rb → storage_exists_request.rb} +17 -19
- data/lib/aspose-email-cloud/models/storage_file.rb +17 -46
- data/lib/aspose-email-cloud/models/storage_file_location.rb +5 -27
- data/lib/aspose-email-cloud/models/storage_file_location_list.rb +199 -0
- data/lib/aspose-email-cloud/models/storage_folder_location.rb +3 -21
- data/lib/aspose-email-cloud/models/storage_model_of_calendar_dto.rb +13 -21
- data/lib/aspose-email-cloud/models/storage_model_of_contact_dto.rb +13 -21
- 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 +13 -21
- 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} +19 -23
- data/lib/aspose-email-cloud/models/url.rb +4 -26
- data/lib/aspose-email-cloud/models/value_t_of_boolean.rb +2 -16
- 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/{move_email_message_rq.rb → yearly_recurrence_pattern_dto.rb} +115 -100
- data/lib/aspose-email-cloud/version.rb +2 -2
- metadata +191 -181
- data/lib/aspose-email-cloud/models/ai_bcr_parse_storage_rq.rb +0 -251
- data/lib/aspose-email-cloud/models/append_email_account_base_request.rb +0 -318
- data/lib/aspose-email-cloud/models/append_email_mime_base_request.rb +0 -355
- data/lib/aspose-email-cloud/models/append_email_model_rq.rb +0 -336
- data/lib/aspose-email-cloud/models/create_email_request.rb +0 -231
- data/lib/aspose-email-cloud/models/create_folder_base_request.rb +0 -313
- data/lib/aspose-email-cloud/models/delete_folder_base_request.rb +0 -318
- data/lib/aspose-email-cloud/models/delete_message_base_request.rb +0 -331
- data/lib/aspose-email-cloud/models/email_account_request.rb +0 -397
- data/lib/aspose-email-cloud/models/email_document.rb +0 -233
- data/lib/aspose-email-cloud/models/email_properties.rb +0 -233
- data/lib/aspose-email-cloud/models/email_property_response.rb +0 -213
- data/lib/aspose-email-cloud/models/hierarchical_object_request.rb +0 -231
- data/lib/aspose-email-cloud/models/list_response_of_hierarchical_object_response.rb +0 -214
- data/lib/aspose-email-cloud/models/requests/add_calendar_attachment_request_data.rb +0 -99
- data/lib/aspose-email-cloud/models/requests/add_contact_attachment_request_data.rb +0 -109
- data/lib/aspose-email-cloud/models/requests/add_email_attachment_request_data.rb +0 -99
- data/lib/aspose-email-cloud/models/requests/add_mapi_attachment_request_data.rb +0 -99
- data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_model_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_ocr_data_model_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_storage_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_parsed_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/ai_name_format_parsed_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_parsed_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/ai_name_match_parsed_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/append_email_message_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/append_email_model_message_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/append_mime_message_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_alternate_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_file_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/convert_contact_model_to_file_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/convert_email_model_to_file_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/create_calendar_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/create_contact_request_data.rb +0 -99
- data/lib/aspose-email-cloud/models/requests/create_email_folder_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/create_email_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/create_mapi_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/delete_calendar_property_request_data.rb +0 -109
- data/lib/aspose-email-cloud/models/requests/delete_contact_property_request_data.rb +0 -119
- data/lib/aspose-email-cloud/models/requests/delete_email_folder_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/delete_email_message_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/delete_email_thread_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb +0 -99
- data/lib/aspose-email-cloud/models/requests/delete_mapi_properties_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/discover_email_config_oauth_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/discover_email_config_password_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb +0 -101
- data/lib/aspose-email-cloud/models/requests/get_calendar_list_request_data.rb +0 -108
- data/lib/aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb +0 -111
- data/lib/aspose-email-cloud/models/requests/get_contact_list_request_data.rb +0 -103
- data/lib/aspose-email-cloud/models/requests/get_contact_properties_request_data.rb +0 -101
- data/lib/aspose-email-cloud/models/requests/get_email_client_account_request_data.rb +0 -102
- data/lib/aspose-email-cloud/models/requests/get_email_client_multi_account_request_data.rb +0 -102
- data/lib/aspose-email-cloud/models/requests/get_email_property_request_data.rb +0 -101
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachment_request_data.rb +0 -101
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachments_request_data.rb +0 -91
- data/lib/aspose-email-cloud/models/requests/get_mapi_list_request_data.rb +0 -93
- data/lib/aspose-email-cloud/models/requests/get_mapi_properties_request_data.rb +0 -91
- data/lib/aspose-email-cloud/models/requests/list_email_messages_request_data.rb +0 -127
- data/lib/aspose-email-cloud/models/requests/move_email_message_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/move_email_thread_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/save_calendar_model_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/save_contact_model_request_data.rb +0 -99
- data/lib/aspose-email-cloud/models/requests/save_email_client_account_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/save_email_client_multi_account_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/save_email_model_request_data.rb +0 -99
- data/lib/aspose-email-cloud/models/requests/save_mail_account_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/save_mail_o_auth_account_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/send_email_mime_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/send_email_model_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/send_email_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/set_email_property_request_data.rb +0 -99
- data/lib/aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/set_email_thread_read_flag_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/update_contact_properties_request_data.rb +0 -99
- data/lib/aspose-email-cloud/models/requests/update_mapi_properties_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/save_email_account_request.rb +0 -434
- data/lib/aspose-email-cloud/models/save_o_auth_email_account_request.rb +0 -521
- data/lib/aspose-email-cloud/models/send_email_base_request.rb +0 -281
- data/lib/aspose-email-cloud/models/send_email_mime_base_request.rb +0 -300
- data/lib/aspose-email-cloud/models/send_email_model_rq.rb +0 -276
- data/lib/aspose-email-cloud/models/set_email_property_request.rb +0 -231
@@ -0,0 +1,218 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="ContactAsFileRequest.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 contact model to file request.
|
30
|
+
class ContactAsFileRequest
|
31
|
+
# Enumerates contact formats. Enum, available values: VCard, WebDav, Msg
|
32
|
+
# @return [String]
|
33
|
+
attr_accessor :format
|
34
|
+
# Contact model.
|
35
|
+
# @return [ContactDto]
|
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' => :'ContactDto'
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param [String] format Enumerates contact formats. Enum, available values: VCard, WebDav, Msg
|
55
|
+
# @param [ContactDto] value 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
|
@@ -1,6 +1,5 @@
|
|
1
|
-
|
2
1
|
# ----------------------------------------------------------------------------
|
3
|
-
# <copyright company="Aspose" file="
|
2
|
+
# <copyright company="Aspose" file="contact_convert_request.rb">
|
4
3
|
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
5
4
|
# </copyright>
|
6
5
|
# <summary>
|
@@ -24,77 +23,72 @@
|
|
24
23
|
# </summary>
|
25
24
|
# ----------------------------------------------------------------------------
|
26
25
|
|
27
|
-
|
28
26
|
require_relative './email_request'
|
29
27
|
require_relative './http_request'
|
30
28
|
|
31
29
|
module AsposeEmailCloud
|
32
|
-
# Request model for
|
33
|
-
class
|
34
|
-
|
30
|
+
# Request model for contact_convert operation.
|
31
|
+
class ContactConvertRequest < EmailRequest
|
35
32
|
# File format to convert to Enum, available values: VCard, WebDav, Msg
|
36
33
|
# @return [String]
|
37
|
-
attr_accessor :
|
34
|
+
attr_accessor :to_format
|
38
35
|
# File format to convert from Enum, available values: VCard, WebDav, Msg
|
39
36
|
# @return [String]
|
40
|
-
attr_accessor :
|
37
|
+
attr_accessor :from_format
|
41
38
|
# File to convert
|
42
39
|
# @return [File]
|
43
40
|
attr_accessor :file
|
44
41
|
|
45
42
|
# Converts contact document to specified format and returns as file
|
46
|
-
# @param [String]
|
47
|
-
# @param [String]
|
43
|
+
# @param [String] to_format File format to convert to Enum, available values: VCard, WebDav, Msg
|
44
|
+
# @param [String] from_format File format to convert from Enum, available values: VCard, WebDav, Msg
|
48
45
|
# @param [File] file File to convert
|
49
|
-
def initialize(
|
50
|
-
self.
|
51
|
-
self.
|
46
|
+
def initialize(to_format:, from_format:, file:)
|
47
|
+
self.to_format = to_format if to_format
|
48
|
+
self.from_format = from_format if from_format
|
52
49
|
self.file = file if file
|
53
50
|
end
|
54
51
|
|
55
52
|
def to_http_info(api_client)
|
56
|
-
# verify the required parameter '
|
57
|
-
if api_client.config.client_side_validation && self.
|
58
|
-
raise ArgumentError, "Missing the required parameter '
|
53
|
+
# verify the required parameter 'to_format' is set
|
54
|
+
if api_client.config.client_side_validation && self.to_format.nil?
|
55
|
+
raise ArgumentError, "Missing the required parameter 'to_format' when calling ContactApi.convert"
|
59
56
|
end
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.convert_contact"
|
57
|
+
# verify the required parameter 'from_format' is set
|
58
|
+
if api_client.config.client_side_validation && self.from_format.nil?
|
59
|
+
raise ArgumentError, "Missing the required parameter 'from_format' when calling ContactApi.convert"
|
64
60
|
end
|
65
|
-
|
66
61
|
# verify the required parameter 'file' is set
|
67
62
|
if api_client.config.client_side_validation && self.file.nil?
|
68
|
-
raise ArgumentError, "Missing the required parameter 'file' when calling
|
63
|
+
raise ArgumentError, "Missing the required parameter 'file' when calling ContactApi.convert"
|
69
64
|
end
|
70
|
-
|
71
65
|
# resource path
|
72
|
-
local_var_path = '/email/
|
66
|
+
local_var_path = '/email/Contact/convert'
|
73
67
|
|
74
68
|
# query parameters
|
75
69
|
query_params = {}
|
70
|
+
query_params[:toFormat] = self.to_format
|
71
|
+
query_params[:fromFormat] = self.from_format
|
76
72
|
|
77
73
|
# form parameters
|
78
74
|
form_params = {}
|
79
75
|
form_params['File'] = self.file
|
80
76
|
|
81
77
|
# http body (model)
|
82
|
-
post_body = nil
|
83
78
|
auth_names = ['JWT']
|
84
79
|
|
85
80
|
# header parameters
|
86
81
|
header_params = {}
|
87
82
|
# HTTP header 'Accept' (if needed)
|
88
|
-
header_params['Accept'] = select_header_accept(['multipart/form-data'])
|
83
|
+
header_params['Accept'] = EmailRequest.select_header_accept(['multipart/form-data'])
|
89
84
|
# HTTP header 'Content-Type'
|
90
|
-
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['multipart/form-data'])
|
85
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : EmailRequest.select_header_content_type(['multipart/form-data'])
|
91
86
|
|
92
|
-
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
auth_names)
|
87
|
+
AsposeEmailCloud::HttpRequest.new(resource_path: local_var_path,
|
88
|
+
header_params: header_params,
|
89
|
+
query_params: query_params,
|
90
|
+
form_params: form_params,
|
91
|
+
auth_names: auth_names)
|
98
92
|
end
|
99
93
|
end
|
100
94
|
end
|
@@ -23,7 +23,6 @@
|
|
23
23
|
# </summary>
|
24
24
|
# ----------------------------------------------------------------------------
|
25
25
|
|
26
|
-
|
27
26
|
require 'date'
|
28
27
|
|
29
28
|
module AsposeEmailCloud
|
@@ -32,147 +31,111 @@ module AsposeEmailCloud
|
|
32
31
|
# Associated persons.
|
33
32
|
# @return [Array<AssociatedPerson>]
|
34
33
|
attr_accessor :associated_persons
|
35
|
-
|
36
34
|
# Document attachments.
|
37
35
|
# @return [Array<Attachment>]
|
38
36
|
attr_accessor :attachments
|
39
|
-
|
40
37
|
# Company name.
|
41
38
|
# @return [String]
|
42
39
|
attr_accessor :company_name
|
43
|
-
|
44
40
|
# Computer network.
|
45
41
|
# @return [String]
|
46
42
|
attr_accessor :computer_network_name
|
47
|
-
|
48
43
|
# Customer id.
|
49
44
|
# @return [String]
|
50
45
|
attr_accessor :customer_id
|
51
|
-
|
52
46
|
# Department name.
|
53
47
|
# @return [String]
|
54
48
|
attr_accessor :department_name
|
55
|
-
|
56
49
|
# Display name.
|
57
50
|
# @return [String]
|
58
51
|
attr_accessor :display_name
|
59
|
-
|
60
52
|
# Person's email addresses.
|
61
53
|
# @return [Array<EmailAddress>]
|
62
54
|
attr_accessor :email_addresses
|
63
|
-
|
64
55
|
# Person's events.
|
65
56
|
# @return [Array<CustomerEvent>]
|
66
57
|
attr_accessor :events
|
67
|
-
|
68
58
|
# A name used for sorting.
|
69
59
|
# @return [String]
|
70
60
|
attr_accessor :file_as
|
71
|
-
|
72
61
|
# Specifies how to generate and recompute the value of the dispidFileAs property when other contact name properties change. Coincides MS-OXPROPS revision 16.2 from 7/31/2014. Enum, available values: Empty, DisplayName, FirstName, LastName, Organization, LastFirstMiddle, OrgLastFirstMiddle, LastFirstMiddleOrg, LastFirstMiddle2, LastFirstMiddle3, OrgLastFirstMiddle2, OrgLastFirstMiddle3, LastFirstMiddleOrg2, LastFirstMiddleOrg3, LastFirstMiddleGen, FirstMiddleLastGen, LastFirstMiddleGen2, BestMatch, AccordingToLocale, None
|
73
62
|
# @return [String]
|
74
63
|
attr_accessor :file_as_mapping
|
75
|
-
|
76
64
|
# URL path from which a client can retrieve free/busy information for the contact as an iCal file.
|
77
65
|
# @return [String]
|
78
66
|
attr_accessor :free_busy_location
|
79
|
-
|
80
67
|
# Enum defines gender of a person. Enum, available values: Unspecified, Female, Male
|
81
68
|
# @return [String]
|
82
69
|
attr_accessor :gender
|
83
|
-
|
84
70
|
# Person's given name.
|
85
71
|
# @return [String]
|
86
72
|
attr_accessor :given_name
|
87
|
-
|
88
73
|
# Government id number.
|
89
74
|
# @return [String]
|
90
75
|
attr_accessor :government_id_number
|
91
|
-
|
92
76
|
# Person's hobbies.
|
93
77
|
# @return [String]
|
94
78
|
attr_accessor :hobbies
|
95
|
-
|
96
79
|
# Person's initials.
|
97
80
|
# @return [String]
|
98
81
|
attr_accessor :initials
|
99
|
-
|
100
82
|
# Person's instant messenger addresses.
|
101
83
|
# @return [Array<InstantMessengerAddress>]
|
102
84
|
attr_accessor :instant_messengers
|
103
|
-
|
104
85
|
# Person's job title.
|
105
86
|
# @return [String]
|
106
87
|
attr_accessor :job_title
|
107
|
-
|
108
88
|
# Language.
|
109
89
|
# @return [String]
|
110
90
|
attr_accessor :language
|
111
|
-
|
112
91
|
# Person's location.
|
113
92
|
# @return [String]
|
114
93
|
attr_accessor :location
|
115
|
-
|
116
94
|
# Person's middle name.
|
117
95
|
# @return [String]
|
118
96
|
attr_accessor :middle_name
|
119
|
-
|
120
97
|
# Person's nickname.
|
121
98
|
# @return [String]
|
122
99
|
attr_accessor :nickname
|
123
|
-
|
124
100
|
# Notes.
|
125
101
|
# @return [String]
|
126
102
|
attr_accessor :notes
|
127
|
-
|
128
103
|
# Defines format of a text. Enum, available values: Text, Html
|
129
104
|
# @return [String]
|
130
105
|
attr_accessor :notes_format
|
131
|
-
|
132
106
|
# Office location.
|
133
107
|
# @return [String]
|
134
108
|
attr_accessor :office_location
|
135
|
-
|
136
109
|
# Contains an identifier for the mail user used within the mail user's organization.
|
137
110
|
# @return [String]
|
138
111
|
attr_accessor :organizational_id_number
|
139
|
-
|
140
112
|
# Person's phone numbers.
|
141
113
|
# @return [Array<PhoneNumber>]
|
142
114
|
attr_accessor :phone_numbers
|
143
|
-
|
144
115
|
# Person's photo.
|
145
116
|
# @return [ContactPhoto]
|
146
117
|
attr_accessor :photo
|
147
|
-
|
148
118
|
# Person's physical addresses.
|
149
119
|
# @return [Array<PostalAddress>]
|
150
120
|
attr_accessor :physical_addresses
|
151
|
-
|
152
121
|
# Encoding for all text properties.
|
153
122
|
# @return [String]
|
154
123
|
attr_accessor :preferred_text_encoding
|
155
|
-
|
156
124
|
# A prefix of a full name such like Mr.(mister), Dr.(doctor) and so on.
|
157
125
|
# @return [String]
|
158
126
|
attr_accessor :prefix
|
159
|
-
|
160
127
|
# A job position of a person in a company.
|
161
128
|
# @return [String]
|
162
129
|
attr_accessor :profession
|
163
|
-
|
164
130
|
# A suffix of a full name such like Jr.(junior), Sr.(senior) and so on.
|
165
131
|
# @return [String]
|
166
132
|
attr_accessor :suffix
|
167
|
-
|
168
133
|
# Person's surname.
|
169
134
|
# @return [String]
|
170
135
|
attr_accessor :surname
|
171
|
-
|
172
136
|
# Person's urls.
|
173
137
|
# @return [Array<Url>]
|
174
138
|
attr_accessor :urls
|
175
|
-
|
176
139
|
# Attribute mapping from ruby-style variable name to JSON key.
|
177
140
|
def self.attribute_map
|
178
141
|
{
|
@@ -257,175 +220,6 @@ module AsposeEmailCloud
|
|
257
220
|
}
|
258
221
|
end
|
259
222
|
|
260
|
-
# Initializes the object
|
261
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
262
|
-
def initialize(attributes = {})
|
263
|
-
return unless attributes.is_a?(Hash)
|
264
|
-
|
265
|
-
# convert string to symbol for hash key
|
266
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
267
|
-
|
268
|
-
if attributes.has_key?(:'associatedPersons')
|
269
|
-
if (value = attributes[:'associatedPersons']).is_a?(Array)
|
270
|
-
self.associated_persons = value
|
271
|
-
end
|
272
|
-
end
|
273
|
-
|
274
|
-
if attributes.has_key?(:'attachments')
|
275
|
-
if (value = attributes[:'attachments']).is_a?(Array)
|
276
|
-
self.attachments = value
|
277
|
-
end
|
278
|
-
end
|
279
|
-
|
280
|
-
if attributes.has_key?(:'companyName')
|
281
|
-
self.company_name = attributes[:'companyName']
|
282
|
-
end
|
283
|
-
|
284
|
-
if attributes.has_key?(:'computerNetworkName')
|
285
|
-
self.computer_network_name = attributes[:'computerNetworkName']
|
286
|
-
end
|
287
|
-
|
288
|
-
if attributes.has_key?(:'customerId')
|
289
|
-
self.customer_id = attributes[:'customerId']
|
290
|
-
end
|
291
|
-
|
292
|
-
if attributes.has_key?(:'departmentName')
|
293
|
-
self.department_name = attributes[:'departmentName']
|
294
|
-
end
|
295
|
-
|
296
|
-
if attributes.has_key?(:'displayName')
|
297
|
-
self.display_name = attributes[:'displayName']
|
298
|
-
end
|
299
|
-
|
300
|
-
if attributes.has_key?(:'emailAddresses')
|
301
|
-
if (value = attributes[:'emailAddresses']).is_a?(Array)
|
302
|
-
self.email_addresses = value
|
303
|
-
end
|
304
|
-
end
|
305
|
-
|
306
|
-
if attributes.has_key?(:'events')
|
307
|
-
if (value = attributes[:'events']).is_a?(Array)
|
308
|
-
self.events = value
|
309
|
-
end
|
310
|
-
end
|
311
|
-
|
312
|
-
if attributes.has_key?(:'fileAs')
|
313
|
-
self.file_as = attributes[:'fileAs']
|
314
|
-
end
|
315
|
-
|
316
|
-
if attributes.has_key?(:'fileAsMapping')
|
317
|
-
self.file_as_mapping = attributes[:'fileAsMapping']
|
318
|
-
end
|
319
|
-
|
320
|
-
if attributes.has_key?(:'freeBusyLocation')
|
321
|
-
self.free_busy_location = attributes[:'freeBusyLocation']
|
322
|
-
end
|
323
|
-
|
324
|
-
if attributes.has_key?(:'gender')
|
325
|
-
self.gender = attributes[:'gender']
|
326
|
-
end
|
327
|
-
|
328
|
-
if attributes.has_key?(:'givenName')
|
329
|
-
self.given_name = attributes[:'givenName']
|
330
|
-
end
|
331
|
-
|
332
|
-
if attributes.has_key?(:'governmentIdNumber')
|
333
|
-
self.government_id_number = attributes[:'governmentIdNumber']
|
334
|
-
end
|
335
|
-
|
336
|
-
if attributes.has_key?(:'hobbies')
|
337
|
-
self.hobbies = attributes[:'hobbies']
|
338
|
-
end
|
339
|
-
|
340
|
-
if attributes.has_key?(:'initials')
|
341
|
-
self.initials = attributes[:'initials']
|
342
|
-
end
|
343
|
-
|
344
|
-
if attributes.has_key?(:'instantMessengers')
|
345
|
-
if (value = attributes[:'instantMessengers']).is_a?(Array)
|
346
|
-
self.instant_messengers = value
|
347
|
-
end
|
348
|
-
end
|
349
|
-
|
350
|
-
if attributes.has_key?(:'jobTitle')
|
351
|
-
self.job_title = attributes[:'jobTitle']
|
352
|
-
end
|
353
|
-
|
354
|
-
if attributes.has_key?(:'language')
|
355
|
-
self.language = attributes[:'language']
|
356
|
-
end
|
357
|
-
|
358
|
-
if attributes.has_key?(:'location')
|
359
|
-
self.location = attributes[:'location']
|
360
|
-
end
|
361
|
-
|
362
|
-
if attributes.has_key?(:'middleName')
|
363
|
-
self.middle_name = attributes[:'middleName']
|
364
|
-
end
|
365
|
-
|
366
|
-
if attributes.has_key?(:'nickname')
|
367
|
-
self.nickname = attributes[:'nickname']
|
368
|
-
end
|
369
|
-
|
370
|
-
if attributes.has_key?(:'notes')
|
371
|
-
self.notes = attributes[:'notes']
|
372
|
-
end
|
373
|
-
|
374
|
-
if attributes.has_key?(:'notesFormat')
|
375
|
-
self.notes_format = attributes[:'notesFormat']
|
376
|
-
end
|
377
|
-
|
378
|
-
if attributes.has_key?(:'officeLocation')
|
379
|
-
self.office_location = attributes[:'officeLocation']
|
380
|
-
end
|
381
|
-
|
382
|
-
if attributes.has_key?(:'organizationalIdNumber')
|
383
|
-
self.organizational_id_number = attributes[:'organizationalIdNumber']
|
384
|
-
end
|
385
|
-
|
386
|
-
if attributes.has_key?(:'phoneNumbers')
|
387
|
-
if (value = attributes[:'phoneNumbers']).is_a?(Array)
|
388
|
-
self.phone_numbers = value
|
389
|
-
end
|
390
|
-
end
|
391
|
-
|
392
|
-
if attributes.has_key?(:'photo')
|
393
|
-
self.photo = attributes[:'photo']
|
394
|
-
end
|
395
|
-
|
396
|
-
if attributes.has_key?(:'physicalAddresses')
|
397
|
-
if (value = attributes[:'physicalAddresses']).is_a?(Array)
|
398
|
-
self.physical_addresses = value
|
399
|
-
end
|
400
|
-
end
|
401
|
-
|
402
|
-
if attributes.has_key?(:'preferredTextEncoding')
|
403
|
-
self.preferred_text_encoding = attributes[:'preferredTextEncoding']
|
404
|
-
end
|
405
|
-
|
406
|
-
if attributes.has_key?(:'prefix')
|
407
|
-
self.prefix = attributes[:'prefix']
|
408
|
-
end
|
409
|
-
|
410
|
-
if attributes.has_key?(:'profession')
|
411
|
-
self.profession = attributes[:'profession']
|
412
|
-
end
|
413
|
-
|
414
|
-
if attributes.has_key?(:'suffix')
|
415
|
-
self.suffix = attributes[:'suffix']
|
416
|
-
end
|
417
|
-
|
418
|
-
if attributes.has_key?(:'surname')
|
419
|
-
self.surname = attributes[:'surname']
|
420
|
-
end
|
421
|
-
|
422
|
-
if attributes.has_key?(:'urls')
|
423
|
-
if (value = attributes[:'urls']).is_a?(Array)
|
424
|
-
self.urls = value
|
425
|
-
end
|
426
|
-
end
|
427
|
-
end
|
428
|
-
|
429
223
|
# Initializes the object
|
430
224
|
# @param [Array<AssociatedPerson>] associated_persons Associated persons.
|
431
225
|
# @param [Array<Attachment>] attachments Document attachments.
|
@@ -463,7 +257,43 @@ module AsposeEmailCloud
|
|
463
257
|
# @param [String] suffix A suffix of a full name such like Jr.(junior), Sr.(senior) and so on.
|
464
258
|
# @param [String] surname Person's surname.
|
465
259
|
# @param [Array<Url>] urls Person's urls.
|
466
|
-
def initialize(
|
260
|
+
def initialize(
|
261
|
+
associated_persons: nil,
|
262
|
+
attachments: nil,
|
263
|
+
company_name: nil,
|
264
|
+
computer_network_name: nil,
|
265
|
+
customer_id: nil,
|
266
|
+
department_name: nil,
|
267
|
+
display_name: nil,
|
268
|
+
email_addresses: nil,
|
269
|
+
events: nil,
|
270
|
+
file_as: nil,
|
271
|
+
file_as_mapping: nil,
|
272
|
+
free_busy_location: nil,
|
273
|
+
gender: nil,
|
274
|
+
given_name: nil,
|
275
|
+
government_id_number: nil,
|
276
|
+
hobbies: nil,
|
277
|
+
initials: nil,
|
278
|
+
instant_messengers: nil,
|
279
|
+
job_title: nil,
|
280
|
+
language: nil,
|
281
|
+
location: nil,
|
282
|
+
middle_name: nil,
|
283
|
+
nickname: nil,
|
284
|
+
notes: nil,
|
285
|
+
notes_format: nil,
|
286
|
+
office_location: nil,
|
287
|
+
organizational_id_number: nil,
|
288
|
+
phone_numbers: nil,
|
289
|
+
photo: nil,
|
290
|
+
physical_addresses: nil,
|
291
|
+
preferred_text_encoding: nil,
|
292
|
+
prefix: nil,
|
293
|
+
profession: nil,
|
294
|
+
suffix: nil,
|
295
|
+
surname: nil,
|
296
|
+
urls: nil)
|
467
297
|
self.associated_persons = associated_persons if associated_persons
|
468
298
|
self.attachments = attachments if attachments
|
469
299
|
self.company_name = company_name if company_name
|