aspose_email_cloud 20.3.0 → 20.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aspose-email-cloud.rb +205 -187
- 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 +107 -854
- 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 +11 -10
- data/lib/aspose-email-cloud/api_error.rb +1 -1
- data/lib/aspose-email-cloud/api_invoker.rb +92 -0
- data/lib/aspose-email-cloud/configuration.rb +12 -12
- data/lib/aspose-email-cloud/models/ai_bcr_image.rb +5 -19
- data/lib/aspose-email-cloud/models/ai_bcr_image_storage_file.rb +12 -25
- data/lib/aspose-email-cloud/models/ai_bcr_options.rb +9 -27
- data/lib/aspose-email-cloud/models/ai_bcr_parse_request.rb +95 -0
- data/lib/aspose-email-cloud/models/{ai_bcr_parse_storage_rq.rb → ai_bcr_parse_storage_request.rb} +29 -53
- data/lib/aspose-email-cloud/models/{requests/ai_name_complete_request_data.rb → ai_name_complete_request.rb} +23 -29
- data/lib/aspose-email-cloud/models/ai_name_component.rb +6 -32
- data/lib/aspose-email-cloud/models/{list_response_of_string.rb → ai_name_component_list.rb} +9 -24
- data/lib/aspose-email-cloud/models/ai_name_cultural_context.rb +7 -37
- data/lib/aspose-email-cloud/models/{requests/ai_name_expand_request_data.rb → ai_name_expand_request.rb} +23 -29
- data/lib/aspose-email-cloud/models/ai_name_extracted.rb +4 -24
- data/lib/aspose-email-cloud/models/ai_name_extracted_component.rb +4 -22
- data/lib/aspose-email-cloud/models/{value_response.rb → ai_name_extracted_list.rb} +10 -24
- data/lib/aspose-email-cloud/models/{requests/ai_name_format_request_data.rb → ai_name_format_request.rb} +23 -29
- data/lib/aspose-email-cloud/models/ai_name_formatted.rb +4 -22
- data/lib/aspose-email-cloud/models/ai_name_gender_hypothesis.rb +4 -22
- data/lib/aspose-email-cloud/models/{list_response_of_ai_bcr_ocr_data.rb → ai_name_gender_hypothesis_list.rb} +9 -24
- data/lib/aspose-email-cloud/models/{requests/ai_name_genderize_request_data.rb → ai_name_genderize_request.rb} +23 -29
- data/lib/aspose-email-cloud/models/{ai_name_parsed_match_rq.rb → ai_name_match_parsed_request.rb} +8 -38
- data/lib/aspose-email-cloud/models/{requests/ai_name_match_request_data.rb → ai_name_match_request.rb} +26 -33
- data/lib/aspose-email-cloud/models/ai_name_match_result.rb +4 -24
- data/lib/aspose-email-cloud/models/ai_name_mismatch.rb +5 -27
- data/lib/aspose-email-cloud/models/{requests/ai_name_parse_email_address_request_data.rb → ai_name_parse_email_address_request.rb} +26 -29
- data/lib/aspose-email-cloud/models/{requests/ai_name_parse_request_data.rb → ai_name_parse_request.rb} +25 -31
- data/lib/aspose-email-cloud/models/{ai_name_parsed_rq.rb → ai_name_parsed_request.rb} +7 -31
- data/lib/aspose-email-cloud/models/ai_name_weighted.rb +4 -22
- data/lib/aspose-email-cloud/models/ai_name_weighted_variants.rb +4 -24
- data/lib/aspose-email-cloud/models/alternate_view.rb +9 -47
- data/lib/aspose-email-cloud/models/associated_person.rb +5 -27
- data/lib/aspose-email-cloud/models/attachment.rb +12 -60
- data/lib/aspose-email-cloud/models/attachment_base.rb +6 -34
- data/lib/aspose-email-cloud/models/{calendar_dto_alternate_rq.rb → calendar_as_alternate_request.rb} +8 -30
- 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} +27 -42
- data/lib/aspose-email-cloud/models/calendar_dto.rb +35 -130
- data/lib/aspose-email-cloud/models/{requests/ai_bcr_parse_request_data.rb → calendar_from_file_request.rb} +23 -28
- data/lib/aspose-email-cloud/models/{requests/get_calendar_model_as_alternate_request_data.rb → calendar_get_as_alternate_request.rb} +22 -27
- data/lib/aspose-email-cloud/models/calendar_get_as_file_request.rb +96 -0
- data/lib/aspose-email-cloud/models/{requests/get_calendar_model_list_request_data.rb → calendar_get_list_request.rb} +26 -29
- data/lib/aspose-email-cloud/models/{requests/get_calendar_model_request_data.rb → calendar_get_request.rb} +26 -31
- data/lib/aspose-email-cloud/models/calendar_reminder.rb +10 -56
- data/lib/aspose-email-cloud/models/{storage_model_rq_of_calendar_dto.rb → calendar_save_request.rb} +40 -33
- data/lib/aspose-email-cloud/models/{calendar_dto_list.rb → calendar_storage_list.rb} +6 -22
- data/lib/aspose-email-cloud/models/{ai_bcr_rq.rb → client_account_base_request.rb} +20 -29
- data/lib/aspose-email-cloud/models/{requests/get_email_attachment_request_data.rb → client_account_get_multi_request.rb} +27 -39
- data/lib/aspose-email-cloud/models/{requests/get_email_request_data.rb → client_account_get_request.rb} +26 -31
- data/lib/aspose-email-cloud/models/{storage_file_rq_of_email_client_multi_account.rb → client_account_save_multi_request.rb} +29 -36
- data/lib/aspose-email-cloud/models/{storage_file_rq_of_email_client_account.rb → client_account_save_request.rb} +29 -36
- 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} +50 -44
- data/lib/aspose-email-cloud/models/{requests/list_email_folders_request_data.rb → client_folder_get_list_request.rb} +30 -39
- 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} +48 -70
- 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_models_request_data.rb → client_message_list_request.rb} +43 -49
- data/lib/aspose-email-cloud/models/{set_message_read_flag_account_base_request.rb → client_message_move_request.rb} +60 -99
- 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} +34 -44
- 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} +52 -41
- data/lib/aspose-email-cloud/models/{ai_bcr_ocr_data.rb → client_thread_delete_request.rb} +59 -69
- 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 +105 -0
- data/lib/aspose-email-cloud/models/{account_base_request.rb → client_thread_move_request.rb} +72 -65
- 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 +38 -208
- data/lib/aspose-email-cloud/models/{requests/create_mapi_request_data.rb → contact_from_file_request.rb} +31 -36
- data/lib/aspose-email-cloud/models/{requests/get_email_property_request_data.rb → contact_get_as_file_request.rb} +38 -33
- data/lib/aspose-email-cloud/models/{requests/get_contact_model_list_request_data.rb → contact_get_list_request.rb} +18 -20
- data/lib/aspose-email-cloud/models/{requests/get_contact_model_request_data.rb → contact_get_request.rb} +23 -28
- data/lib/aspose-email-cloud/models/{list_response_of_hierarchical_object.rb → contact_list.rb} +9 -24
- data/lib/aspose-email-cloud/models/contact_photo.rb +46 -25
- data/lib/aspose-email-cloud/models/{storage_model_rq_of_contact_dto.rb → contact_save_request.rb} +40 -33
- data/lib/aspose-email-cloud/models/{contact_dto_list.rb → contact_storage_list.rb} +6 -22
- data/lib/aspose-email-cloud/models/content_type.rb +7 -39
- data/lib/aspose-email-cloud/models/content_type_parameter.rb +4 -22
- data/lib/aspose-email-cloud/models/{requests/copy_file_request_data.rb → copy_file_request.rb} +13 -20
- data/lib/aspose-email-cloud/models/{requests/copy_folder_request_data.rb → copy_folder_request.rb} +13 -20
- data/lib/aspose-email-cloud/models/{requests/create_folder_request_data.rb → create_folder_request.rb} +12 -18
- data/lib/aspose-email-cloud/models/customer_event.rb +4 -22
- 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} +12 -18
- data/lib/aspose-email-cloud/models/{requests/delete_folder_request_data.rb → delete_folder_request.rb} +12 -18
- data/lib/aspose-email-cloud/models/disc_usage.rb +4 -22
- data/lib/aspose-email-cloud/models/{discover_email_config_rq.rb → discover_email_config_request.rb} +7 -29
- data/lib/aspose-email-cloud/models/{requests/is_email_address_disposable_request_data.rb → disposable_email_is_disposable_request.rb} +18 -20
- data/lib/aspose-email-cloud/models/{requests/download_file_request_data.rb → download_file_request.rb} +12 -18
- data/lib/aspose-email-cloud/models/email_account_config.rb +10 -56
- data/lib/aspose-email-cloud/models/email_account_config_list.rb +4 -20
- data/lib/aspose-email-cloud/models/email_address.rb +44 -41
- data/lib/aspose-email-cloud/models/email_as_file_request.rb +218 -0
- data/lib/aspose-email-cloud/models/email_client_account.rb +20 -41
- data/lib/aspose-email-cloud/models/email_client_account_credentials.rb +3 -26
- data/lib/aspose-email-cloud/models/email_client_account_oauth_credentials.rb +8 -47
- data/lib/aspose-email-cloud/models/email_client_account_password_credentials.rb +5 -32
- data/lib/aspose-email-cloud/models/email_client_multi_account.rb +4 -24
- data/lib/aspose-email-cloud/models/{discover_email_config_oauth.rb → email_config_discover_oauth_request.rb} +11 -49
- data/lib/aspose-email-cloud/models/{discover_email_config_password.rb → email_config_discover_password_request.rb} +8 -34
- data/lib/aspose-email-cloud/models/{requests/discover_email_config_request_data.rb → email_config_discover_request.rb} +20 -23
- data/lib/aspose-email-cloud/models/email_convert_request.rb +94 -0
- data/lib/aspose-email-cloud/models/email_dto.rb +34 -192
- data/lib/aspose-email-cloud/models/{requests/save_contact_model_request_data.rb → email_from_file_request.rb} +27 -42
- data/lib/aspose-email-cloud/models/{requests/get_email_as_file_request_data.rb → email_get_as_file_request.rb} +19 -24
- data/lib/aspose-email-cloud/models/{requests/get_email_model_list_request_data.rb → email_get_list_request.rb} +20 -22
- data/lib/aspose-email-cloud/models/{requests/get_email_model_request_data.rb → email_get_request.rb} +25 -30
- data/lib/aspose-email-cloud/models/email_list.rb +199 -0
- data/lib/aspose-email-cloud/models/{requests/email_request.rb → email_request.rb} +7 -12
- data/lib/aspose-email-cloud/models/{storage_model_rq_of_email_dto.rb → email_save_request.rb} +40 -33
- data/lib/aspose-email-cloud/models/{email_dto_list.rb → email_storage_list.rb} +6 -22
- 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 +23 -22
- data/lib/aspose-email-cloud/models/enum_with_custom_of_email_address_category.rb +23 -22
- data/lib/aspose-email-cloud/models/enum_with_custom_of_event_category.rb +23 -22
- data/lib/aspose-email-cloud/models/enum_with_custom_of_instant_messenger_category.rb +23 -22
- data/lib/aspose-email-cloud/models/enum_with_custom_of_phone_number_category.rb +23 -22
- data/lib/aspose-email-cloud/models/enum_with_custom_of_postal_address_category.rb +23 -22
- data/lib/aspose-email-cloud/models/enum_with_custom_of_url_category.rb +23 -22
- data/lib/aspose-email-cloud/models/error.rb +6 -32
- data/lib/aspose-email-cloud/models/error_details.rb +4 -22
- data/lib/aspose-email-cloud/models/file_version.rb +10 -48
- data/lib/aspose-email-cloud/models/file_versions.rb +3 -19
- data/lib/aspose-email-cloud/models/files_list.rb +3 -19
- data/lib/aspose-email-cloud/models/files_upload_result.rb +4 -26
- data/lib/aspose-email-cloud/models/{requests/get_disc_usage_request_data.rb → get_disc_usage_request.rb} +11 -16
- data/lib/aspose-email-cloud/models/{requests/get_file_versions_request_data.rb → get_file_versions_request.rb} +12 -18
- data/lib/aspose-email-cloud/models/{requests/get_files_list_request_data.rb → get_files_list_request.rb} +12 -18
- data/lib/aspose-email-cloud/models/{requests/http_request.rb → http_request.rb} +2 -6
- data/lib/aspose-email-cloud/models/instant_messenger_address.rb +5 -27
- data/lib/aspose-email-cloud/models/linked_resource.rb +8 -40
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_component.rb +3 -19
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_extracted.rb +3 -19
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_gender_hypothesis.rb +3 -19
- data/lib/aspose-email-cloud/models/list_response_of_contact_dto.rb +3 -19
- data/lib/aspose-email-cloud/models/list_response_of_email_account_config.rb +3 -19
- data/lib/aspose-email-cloud/models/list_response_of_email_dto.rb +3 -19
- 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 +3 -19
- data/lib/aspose-email-cloud/models/list_response_of_storage_file_location.rb +3 -19
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_calendar_dto.rb +3 -19
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_contact_dto.rb +3 -19
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_email_dto.rb +3 -19
- data/lib/aspose-email-cloud/models/mail_address.rb +18 -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 +4 -22
- 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} +23 -28
- 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} +52 -42
- 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} +69 -110
- 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} +23 -28
- data/lib/aspose-email-cloud/models/{requests/get_calendar_request_data.rb → mapi_calendar_get_request.rb} +29 -31
- 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_model_rq.rb → mapi_calendar_time_zone_info_dto.rb} +85 -88
- data/lib/aspose-email-cloud/models/{delete_message_base_request.rb → mapi_calendar_time_zone_rule_dto.rb} +133 -107
- 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/{delete_folder_base_request.rb → mapi_contact_electronic_address_property_set_dto.rb} +92 -129
- 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/{requests/get_contact_properties_request_data.rb → mapi_contact_get_request.rb} +31 -33
- 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/{indexed_primitive_object.rb → mapi_contact_photo_dto.rb} +252 -263
- data/lib/aspose-email-cloud/models/{link.rb → mapi_contact_physical_address_dto.rb} +88 -64
- data/lib/aspose-email-cloud/models/{ai_bcr_parse_ocr_data_rq.rb → mapi_contact_physical_address_property_set_dto.rb} +33 -49
- 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} +21 -27
- 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} +29 -28
- 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} +13 -20
- data/lib/aspose-email-cloud/models/{requests/move_folder_request_data.rb → move_folder_request.rb} +16 -20
- data/lib/aspose-email-cloud/models/name_value_pair.rb +4 -22
- data/lib/aspose-email-cloud/models/object_exist.rb +4 -22
- data/lib/aspose-email-cloud/models/{requests/object_exists_request_data.rb → object_exists_request.rb} +12 -18
- data/lib/aspose-email-cloud/models/phone_number.rb +5 -27
- data/lib/aspose-email-cloud/models/postal_address.rb +13 -67
- data/lib/aspose-email-cloud/models/recurrence_pattern_dto.rb +261 -0
- data/lib/aspose-email-cloud/models/reminder_attendee.rb +27 -17
- data/lib/aspose-email-cloud/models/reminder_trigger.rb +5 -27
- data/lib/aspose-email-cloud/models/storage_exist.rb +3 -17
- data/lib/aspose-email-cloud/models/{requests/storage_exists_request_data.rb → storage_exists_request.rb} +15 -18
- data/lib/aspose-email-cloud/models/storage_file.rb +7 -37
- data/lib/aspose-email-cloud/models/storage_file_location.rb +6 -28
- data/lib/aspose-email-cloud/models/storage_file_location_list.rb +199 -0
- data/lib/aspose-email-cloud/models/storage_folder_location.rb +4 -22
- data/lib/aspose-email-cloud/models/storage_model_of_calendar_dto.rb +14 -22
- data/lib/aspose-email-cloud/models/storage_model_of_contact_dto.rb +14 -22
- 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 +14 -22
- 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} +15 -20
- data/lib/aspose-email-cloud/models/url.rb +5 -27
- data/lib/aspose-email-cloud/models/value_t_of_boolean.rb +3 -17
- 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/{create_folder_base_request.rb → yearly_recurrence_pattern_dto.rb} +115 -111
- data/lib/aspose-email-cloud/version.rb +15 -15
- metadata +247 -214
- data/lib/aspose-email-cloud/models/ai_bcr_storage_image_rq.rb +0 -233
- data/lib/aspose-email-cloud/models/append_email_account_base_request.rb +0 -318
- data/lib/aspose-email-cloud/models/append_email_base_request.rb +0 -336
- 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/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_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_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/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/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_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/fetch_email_message_request_data.rb +0 -109
- data/lib/aspose-email-cloud/models/requests/fetch_email_model_request_data.rb +0 -109
- 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_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_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/save_calendar_model_request_data.rb +0 -89
- 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_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/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/set_email_property_request.rb +0 -231
@@ -0,0 +1,124 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="email_api.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 'uri'
|
27
|
+
|
28
|
+
module AsposeEmailCloud
|
29
|
+
# ClientAccountApi operations.
|
30
|
+
class ClientAccountApi
|
31
|
+
attr_reader :api_invoker
|
32
|
+
|
33
|
+
# Initializes a new instance of the ClientAccountApi class.
|
34
|
+
# @param [String] client_secret Key to access the server.
|
35
|
+
# @param [String] client_id ID to access the server.
|
36
|
+
# @param [String] base_url Server URL.
|
37
|
+
# @param [String] api_version Api version.
|
38
|
+
# @param [Object] debug Debug switch [true, false].
|
39
|
+
# def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
|
40
|
+
# @api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
|
41
|
+
# end
|
42
|
+
|
43
|
+
# Initializes a new instance of the ClientAccountApi class.
|
44
|
+
# @param [ApiInvoker] api_invoker
|
45
|
+
def initialize(api_invoker)
|
46
|
+
@api_invoker = api_invoker
|
47
|
+
end
|
48
|
+
|
49
|
+
# Get email client account from storage.
|
50
|
+
# @param [ClientAccountGetRequest] request Request object.
|
51
|
+
# @return [EmailClientAccount]
|
52
|
+
def get(request)
|
53
|
+
http_request = request.to_http_info(@api_invoker.api_client)
|
54
|
+
@api_invoker.make_request(http_request, :GET, 'EmailClientAccount')
|
55
|
+
end
|
56
|
+
|
57
|
+
# Get email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\".
|
58
|
+
# @param [ClientAccountGetMultiRequest] request Request object.
|
59
|
+
# @return [EmailClientMultiAccount]
|
60
|
+
def get_multi(request)
|
61
|
+
http_request = request.to_http_info(@api_invoker.api_client)
|
62
|
+
@api_invoker.make_request(http_request, :GET, 'EmailClientMultiAccount')
|
63
|
+
end
|
64
|
+
|
65
|
+
# Create/update email client account file (*.account) with credentials
|
66
|
+
# @param [ClientAccountSaveRequest] request Email account information
|
67
|
+
# @return [nil]
|
68
|
+
def save(request)
|
69
|
+
# verify the required parameter 'request' is set
|
70
|
+
if @api_invoker.api_client.config.client_side_validation && request.nil?
|
71
|
+
raise ArgumentError, "Missing the required parameter 'request' when calling ClientAccountApi.save"
|
72
|
+
end
|
73
|
+
|
74
|
+
local_var_path = '/email/client/account'
|
75
|
+
post_body = @api_invoker.api_client.object_to_http_body(request)
|
76
|
+
auth_names = ['JWT']
|
77
|
+
|
78
|
+
# header parameters
|
79
|
+
header_params = {}
|
80
|
+
# HTTP header 'Accept' (if needed)
|
81
|
+
header_params['Accept'] = EmailRequest.select_header_accept(['application/json'])
|
82
|
+
# HTTP header 'Content-Type'
|
83
|
+
header_params['Content-Type'] = EmailRequest.select_header_content_type(['application/json'])
|
84
|
+
http_request = AsposeEmailCloud::HttpRequest.new(resource_path: local_var_path,
|
85
|
+
header_params: header_params,
|
86
|
+
body: post_body,
|
87
|
+
auth_names: auth_names)
|
88
|
+
|
89
|
+
@api_invoker.make_request(http_request, :PUT, nil)
|
90
|
+
nil
|
91
|
+
end
|
92
|
+
|
93
|
+
# Create email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\".
|
94
|
+
# @param [ClientAccountSaveMultiRequest] request Email accounts information.
|
95
|
+
# @return [nil]
|
96
|
+
def save_multi(request)
|
97
|
+
# verify the required parameter 'request' is set
|
98
|
+
if @api_invoker.api_client.config.client_side_validation && request.nil?
|
99
|
+
raise ArgumentError, "Missing the required parameter 'request' when calling ClientAccountApi.save_multi"
|
100
|
+
end
|
101
|
+
|
102
|
+
local_var_path = '/email/client/account/multi'
|
103
|
+
post_body = @api_invoker.api_client.object_to_http_body(request)
|
104
|
+
auth_names = ['JWT']
|
105
|
+
|
106
|
+
# header parameters
|
107
|
+
header_params = {}
|
108
|
+
# HTTP header 'Accept' (if needed)
|
109
|
+
header_params['Accept'] = EmailRequest.select_header_accept(['application/json'])
|
110
|
+
# HTTP header 'Content-Type'
|
111
|
+
header_params['Content-Type'] = EmailRequest.select_header_content_type(['application/json'])
|
112
|
+
http_request = AsposeEmailCloud::HttpRequest.new(resource_path: local_var_path,
|
113
|
+
header_params: header_params,
|
114
|
+
body: post_body,
|
115
|
+
auth_names: auth_names)
|
116
|
+
|
117
|
+
@api_invoker.make_request(http_request, :PUT, nil)
|
118
|
+
nil
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
|
124
|
+
|
@@ -0,0 +1,116 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="email_api.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 'uri'
|
27
|
+
|
28
|
+
module AsposeEmailCloud
|
29
|
+
# ClientFolderApi operations.
|
30
|
+
class ClientFolderApi
|
31
|
+
attr_reader :api_invoker
|
32
|
+
|
33
|
+
# Initializes a new instance of the ClientFolderApi class.
|
34
|
+
# @param [String] client_secret Key to access the server.
|
35
|
+
# @param [String] client_id ID to access the server.
|
36
|
+
# @param [String] base_url Server URL.
|
37
|
+
# @param [String] api_version Api version.
|
38
|
+
# @param [Object] debug Debug switch [true, false].
|
39
|
+
# def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
|
40
|
+
# @api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
|
41
|
+
# end
|
42
|
+
|
43
|
+
# Initializes a new instance of the ClientFolderApi class.
|
44
|
+
# @param [ApiInvoker] api_invoker
|
45
|
+
def initialize(api_invoker)
|
46
|
+
@api_invoker = api_invoker
|
47
|
+
end
|
48
|
+
|
49
|
+
# Create new folder in email account
|
50
|
+
# @param [ClientFolderCreateRequest] request Create folder request
|
51
|
+
# @return [nil]
|
52
|
+
def create(request)
|
53
|
+
# verify the required parameter 'request' is set
|
54
|
+
if @api_invoker.api_client.config.client_side_validation && request.nil?
|
55
|
+
raise ArgumentError, "Missing the required parameter 'request' when calling ClientFolderApi.create"
|
56
|
+
end
|
57
|
+
|
58
|
+
local_var_path = '/email/client/folder'
|
59
|
+
post_body = @api_invoker.api_client.object_to_http_body(request)
|
60
|
+
auth_names = ['JWT']
|
61
|
+
|
62
|
+
# header parameters
|
63
|
+
header_params = {}
|
64
|
+
# HTTP header 'Accept' (if needed)
|
65
|
+
header_params['Accept'] = EmailRequest.select_header_accept(['application/json'])
|
66
|
+
# HTTP header 'Content-Type'
|
67
|
+
header_params['Content-Type'] = EmailRequest.select_header_content_type(['application/json'])
|
68
|
+
http_request = AsposeEmailCloud::HttpRequest.new(resource_path: local_var_path,
|
69
|
+
header_params: header_params,
|
70
|
+
body: post_body,
|
71
|
+
auth_names: auth_names)
|
72
|
+
|
73
|
+
@api_invoker.make_request(http_request, :PUT, nil)
|
74
|
+
nil
|
75
|
+
end
|
76
|
+
|
77
|
+
# Delete a folder in email account
|
78
|
+
# @param [ClientFolderDeleteRequest] request Delete folder request
|
79
|
+
# @return [nil]
|
80
|
+
def delete(request)
|
81
|
+
# verify the required parameter 'request' is set
|
82
|
+
if @api_invoker.api_client.config.client_side_validation && request.nil?
|
83
|
+
raise ArgumentError, "Missing the required parameter 'request' when calling ClientFolderApi.delete"
|
84
|
+
end
|
85
|
+
|
86
|
+
local_var_path = '/email/client/folder'
|
87
|
+
post_body = @api_invoker.api_client.object_to_http_body(request)
|
88
|
+
auth_names = ['JWT']
|
89
|
+
|
90
|
+
# header parameters
|
91
|
+
header_params = {}
|
92
|
+
# HTTP header 'Accept' (if needed)
|
93
|
+
header_params['Accept'] = EmailRequest.select_header_accept(['application/json'])
|
94
|
+
# HTTP header 'Content-Type'
|
95
|
+
header_params['Content-Type'] = EmailRequest.select_header_content_type(['application/json'])
|
96
|
+
http_request = AsposeEmailCloud::HttpRequest.new(resource_path: local_var_path,
|
97
|
+
header_params: header_params,
|
98
|
+
body: post_body,
|
99
|
+
auth_names: auth_names)
|
100
|
+
|
101
|
+
@api_invoker.make_request(http_request, :DELETE, nil)
|
102
|
+
nil
|
103
|
+
end
|
104
|
+
|
105
|
+
# Get folders list in email account
|
106
|
+
# @param [ClientFolderGetListRequest] request Request object.
|
107
|
+
# @return [MailServerFolderList]
|
108
|
+
def get_list(request)
|
109
|
+
http_request = request.to_http_info(@api_invoker.api_client)
|
110
|
+
@api_invoker.make_request(http_request, :GET, 'MailServerFolderList')
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
|
116
|
+
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# ----------------------------------------------------------------------------
|
4
|
+
# <copyright company="Aspose" file="client_group.rb">
|
5
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
6
|
+
# </copyright>
|
7
|
+
# <summary>
|
8
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
9
|
+
# copy of this software and associated documentation files (the "Software"),
|
10
|
+
# to deal in the Software without restriction, including without limitation
|
11
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
12
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
13
|
+
# Software is furnished to do so, subject to the following conditions:
|
14
|
+
#
|
15
|
+
# The above copyright notice and this permission notice shall be included in
|
16
|
+
# all copies or substantial portions of the Software.
|
17
|
+
#
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
21
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
23
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
24
|
+
# DEALINGS IN THE SOFTWARE.
|
25
|
+
# </summary>
|
26
|
+
# ----------------------------------------------------------------------------
|
27
|
+
|
28
|
+
module AsposeEmailCloud
|
29
|
+
|
30
|
+
# Builtin Email client operations.
|
31
|
+
class ClientGroup
|
32
|
+
|
33
|
+
# Email server account for built-in client operations.
|
34
|
+
attr_reader :account
|
35
|
+
|
36
|
+
# Email client folder operations.
|
37
|
+
attr_reader :folder
|
38
|
+
|
39
|
+
# Email client message operations.
|
40
|
+
attr_reader :message
|
41
|
+
|
42
|
+
# Email client thread operations.
|
43
|
+
attr_reader :thread
|
44
|
+
|
45
|
+
|
46
|
+
def initialize(api_invoker)
|
47
|
+
|
48
|
+
@account = ClientAccountApi.new(api_invoker)
|
49
|
+
|
50
|
+
@folder = ClientFolderApi.new(api_invoker)
|
51
|
+
|
52
|
+
@message = ClientMessageApi.new(api_invoker)
|
53
|
+
|
54
|
+
@thread = ClientThreadApi.new(api_invoker)
|
55
|
+
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
@@ -0,0 +1,233 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="email_api.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 'uri'
|
27
|
+
|
28
|
+
module AsposeEmailCloud
|
29
|
+
# ClientMessageApi operations.
|
30
|
+
class ClientMessageApi
|
31
|
+
attr_reader :api_invoker
|
32
|
+
|
33
|
+
# Initializes a new instance of the ClientMessageApi class.
|
34
|
+
# @param [String] client_secret Key to access the server.
|
35
|
+
# @param [String] client_id ID to access the server.
|
36
|
+
# @param [String] base_url Server URL.
|
37
|
+
# @param [String] api_version Api version.
|
38
|
+
# @param [Object] debug Debug switch [true, false].
|
39
|
+
# def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
|
40
|
+
# @api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
|
41
|
+
# end
|
42
|
+
|
43
|
+
# Initializes a new instance of the ClientMessageApi class.
|
44
|
+
# @param [ApiInvoker] api_invoker
|
45
|
+
def initialize(api_invoker)
|
46
|
+
@api_invoker = api_invoker
|
47
|
+
end
|
48
|
+
|
49
|
+
# Add email message to specified folder in email account.
|
50
|
+
# @param [ClientMessageAppendRequest] request Append email request.
|
51
|
+
# @return [ValueTOfString]
|
52
|
+
def append(request)
|
53
|
+
# verify the required parameter 'request' is set
|
54
|
+
if @api_invoker.api_client.config.client_side_validation && request.nil?
|
55
|
+
raise ArgumentError, "Missing the required parameter 'request' when calling ClientMessageApi.append"
|
56
|
+
end
|
57
|
+
|
58
|
+
local_var_path = '/email/client/message/append'
|
59
|
+
post_body = @api_invoker.api_client.object_to_http_body(request)
|
60
|
+
auth_names = ['JWT']
|
61
|
+
|
62
|
+
# header parameters
|
63
|
+
header_params = {}
|
64
|
+
# HTTP header 'Accept' (if needed)
|
65
|
+
header_params['Accept'] = EmailRequest.select_header_accept(['application/json'])
|
66
|
+
# HTTP header 'Content-Type'
|
67
|
+
header_params['Content-Type'] = EmailRequest.select_header_content_type(['application/json'])
|
68
|
+
http_request = AsposeEmailCloud::HttpRequest.new(resource_path: local_var_path,
|
69
|
+
header_params: header_params,
|
70
|
+
body: post_body,
|
71
|
+
auth_names: auth_names)
|
72
|
+
|
73
|
+
@api_invoker.make_request(http_request, :POST, 'ValueTOfString')
|
74
|
+
end
|
75
|
+
|
76
|
+
# Add email message from file to specified folder in email account.
|
77
|
+
# @param [ClientMessageAppendFileRequest] request Request object.
|
78
|
+
# @return [ValueTOfString]
|
79
|
+
def append_file(request)
|
80
|
+
http_request = request.to_http_info(@api_invoker.api_client)
|
81
|
+
@api_invoker.make_request(http_request, :POST, 'ValueTOfString')
|
82
|
+
end
|
83
|
+
|
84
|
+
# Delete message.
|
85
|
+
# @param [ClientMessageDeleteRequest] request Delete message request.
|
86
|
+
# @return [nil]
|
87
|
+
def delete(request)
|
88
|
+
# verify the required parameter 'request' is set
|
89
|
+
if @api_invoker.api_client.config.client_side_validation && request.nil?
|
90
|
+
raise ArgumentError, "Missing the required parameter 'request' when calling ClientMessageApi.delete"
|
91
|
+
end
|
92
|
+
|
93
|
+
local_var_path = '/email/client/message'
|
94
|
+
post_body = @api_invoker.api_client.object_to_http_body(request)
|
95
|
+
auth_names = ['JWT']
|
96
|
+
|
97
|
+
# header parameters
|
98
|
+
header_params = {}
|
99
|
+
# HTTP header 'Accept' (if needed)
|
100
|
+
header_params['Accept'] = EmailRequest.select_header_accept(['application/json'])
|
101
|
+
# HTTP header 'Content-Type'
|
102
|
+
header_params['Content-Type'] = EmailRequest.select_header_content_type(['application/json'])
|
103
|
+
http_request = AsposeEmailCloud::HttpRequest.new(resource_path: local_var_path,
|
104
|
+
header_params: header_params,
|
105
|
+
body: post_body,
|
106
|
+
auth_names: auth_names)
|
107
|
+
|
108
|
+
@api_invoker.make_request(http_request, :DELETE, nil)
|
109
|
+
nil
|
110
|
+
end
|
111
|
+
|
112
|
+
# Fetch message from email account
|
113
|
+
# @param [ClientMessageFetchRequest] request Request object.
|
114
|
+
# @return [MailMessageBase]
|
115
|
+
def fetch(request)
|
116
|
+
http_request = request.to_http_info(@api_invoker.api_client)
|
117
|
+
@api_invoker.make_request(http_request, :GET, 'MailMessageBase')
|
118
|
+
end
|
119
|
+
|
120
|
+
# Fetch message as file from email account
|
121
|
+
# @param [ClientMessageFetchFileRequest] request Request object.
|
122
|
+
# @return [File]
|
123
|
+
def fetch_file(request)
|
124
|
+
http_request = request.to_http_info(@api_invoker.api_client)
|
125
|
+
@api_invoker.make_request(http_request, :GET, 'File')
|
126
|
+
end
|
127
|
+
|
128
|
+
# Get messages from folder, filtered by query
|
129
|
+
# The query string should have the following view. The example of a simple expression: '<Field name>' <Comparison operator> '<Field value>', where <Field Name> - the name of a message field through which filtering is made, <Comparison operator> - comparison operators, as their name implies, allow to compare message field and specified value, <Field value> - value to be compared with a message field. The number of simple expressions can make a compound one, ex.: (<Simple expression 1> & <Simple expression 2>) | <Simple expression 3 >, where \"&\" - logical-AND operator, \"|\" - logical-OR operator At present the following values are allowed as a field name (<Field name>): \"To\" - represents a TO field of message, \"Text\" - represents string in the header or body of the message, \"Bcc\" - represents a BCC field of message, \"Body\" - represents a string in the body of message, \"Cc\" - represents a CC field of message, \"From\" - represents a From field of message, \"Subject\" - represents a string in the subject of message, \"InternalDate\" - represents an internal date of message, \"SentDate\" - represents a sent date of message Additionally, the following field names are allowed for IMAP-protocol: \"Answered\" - represents an /Answered flag of message \"Seen\" - represents a /Seen flag of message \"Flagged\" - represents a /Flagged flag of message \"Draft\" - represents a /Draft flag of message \"Deleted\" - represents a Deleted/ flag of message \"Recent\" - represents a Deleted/ flag of message \"MessageSize\" - represents a size (in bytes) of message Additionally, the following field names are allowed for Exchange: \"IsRead\" - Indicates whether the message has been read \"HasAttachment\" - Indicates whether or not the message has attachments \"IsSubmitted\" - Indicates whether the message has been submitted to the Outbox \"ContentClass\" - represents a content class of item Additionally, the following field names are allowed for pst/ost files: \"MessageClass\" - Represents a message class \"ContainerClass\" - Represents a folder container class \"Importance\" - Represents a message importance \"MessageSize\" - represents a size (in bytes) of message \"FolderName\" - represents a folder name \"ContentsCount\" - represents a total number of items in the folder \"UnreadContentsCount\" - represents the number of unread items in the folder. \"Subfolders\" - Indicates whether or not the folder has subfolders \"Read\" - the message is marked as having been read \"HasAttachment\" - the message has at least one attachment \"Unsent\" - the message is still being composed \"Unmodified\" - the message has not been modified since it was first saved (if unsent) or it was delivered (if sent) \"FromMe\" - the user receiving the message was also the user who sent the message \"Resend\" - the message includes a request for a resend operation with a non-delivery report \"NotifyRead\" - the user who sent the message has requested notification when a recipient first reads it \"NotifyUnread\" - the user who sent the message has requested notification when a recipient deletes it before reading or the Message object expires \"EverRead\" - the message has been read at least once The field value (<Field value>) can take the following values: For text fields - any string, For date type fields - the string of \"d-MMM-yyy\" format, ex. \"10-Feb-2009\", For flags (fields of boolean type) - either \"True\", or \"False\"
|
130
|
+
# @param [ClientMessageListRequest] request Request object.
|
131
|
+
# @return [MailMessageBaseList]
|
132
|
+
def list(request)
|
133
|
+
http_request = request.to_http_info(@api_invoker.api_client)
|
134
|
+
@api_invoker.make_request(http_request, :GET, 'MailMessageBaseList')
|
135
|
+
end
|
136
|
+
|
137
|
+
# Move message to another folder.
|
138
|
+
# @param [ClientMessageMoveRequest] request Move message request.
|
139
|
+
# @return [nil]
|
140
|
+
def move(request)
|
141
|
+
# verify the required parameter 'request' is set
|
142
|
+
if @api_invoker.api_client.config.client_side_validation && request.nil?
|
143
|
+
raise ArgumentError, "Missing the required parameter 'request' when calling ClientMessageApi.move"
|
144
|
+
end
|
145
|
+
|
146
|
+
local_var_path = '/email/client/message/move'
|
147
|
+
post_body = @api_invoker.api_client.object_to_http_body(request)
|
148
|
+
auth_names = ['JWT']
|
149
|
+
|
150
|
+
# header parameters
|
151
|
+
header_params = {}
|
152
|
+
# HTTP header 'Accept' (if needed)
|
153
|
+
header_params['Accept'] = EmailRequest.select_header_accept(['application/json'])
|
154
|
+
# HTTP header 'Content-Type'
|
155
|
+
header_params['Content-Type'] = EmailRequest.select_header_content_type(['application/json'])
|
156
|
+
http_request = AsposeEmailCloud::HttpRequest.new(resource_path: local_var_path,
|
157
|
+
header_params: header_params,
|
158
|
+
body: post_body,
|
159
|
+
auth_names: auth_names)
|
160
|
+
|
161
|
+
@api_invoker.make_request(http_request, :PUT, nil)
|
162
|
+
nil
|
163
|
+
end
|
164
|
+
|
165
|
+
# Send an email specified by model in request.
|
166
|
+
# @param [ClientMessageSendRequest] request Send email request.
|
167
|
+
# @return [nil]
|
168
|
+
def send(request)
|
169
|
+
# verify the required parameter 'request' is set
|
170
|
+
if @api_invoker.api_client.config.client_side_validation && request.nil?
|
171
|
+
raise ArgumentError, "Missing the required parameter 'request' when calling ClientMessageApi.send"
|
172
|
+
end
|
173
|
+
|
174
|
+
local_var_path = '/email/client/message'
|
175
|
+
post_body = @api_invoker.api_client.object_to_http_body(request)
|
176
|
+
auth_names = ['JWT']
|
177
|
+
|
178
|
+
# header parameters
|
179
|
+
header_params = {}
|
180
|
+
# HTTP header 'Accept' (if needed)
|
181
|
+
header_params['Accept'] = EmailRequest.select_header_accept(['application/json'])
|
182
|
+
# HTTP header 'Content-Type'
|
183
|
+
header_params['Content-Type'] = EmailRequest.select_header_content_type(['application/json'])
|
184
|
+
http_request = AsposeEmailCloud::HttpRequest.new(resource_path: local_var_path,
|
185
|
+
header_params: header_params,
|
186
|
+
body: post_body,
|
187
|
+
auth_names: auth_names)
|
188
|
+
|
189
|
+
@api_invoker.make_request(http_request, :POST, nil)
|
190
|
+
nil
|
191
|
+
end
|
192
|
+
|
193
|
+
# Send an email file.
|
194
|
+
# @param [ClientMessageSendFileRequest] request Request object.
|
195
|
+
# @return [nil]
|
196
|
+
def send_file(request)
|
197
|
+
http_request = request.to_http_info(@api_invoker.api_client)
|
198
|
+
@api_invoker.make_request(http_request, :POST, nil)
|
199
|
+
nil
|
200
|
+
end
|
201
|
+
|
202
|
+
# Mark message as read or unread.
|
203
|
+
# @param [ClientMessageSetIsReadRequest] request Delete message request.
|
204
|
+
# @return [nil]
|
205
|
+
def set_is_read(request)
|
206
|
+
# verify the required parameter 'request' is set
|
207
|
+
if @api_invoker.api_client.config.client_side_validation && request.nil?
|
208
|
+
raise ArgumentError, "Missing the required parameter 'request' when calling ClientMessageApi.set_is_read"
|
209
|
+
end
|
210
|
+
|
211
|
+
local_var_path = '/email/client/message/set-is-read'
|
212
|
+
post_body = @api_invoker.api_client.object_to_http_body(request)
|
213
|
+
auth_names = ['JWT']
|
214
|
+
|
215
|
+
# header parameters
|
216
|
+
header_params = {}
|
217
|
+
# HTTP header 'Accept' (if needed)
|
218
|
+
header_params['Accept'] = EmailRequest.select_header_accept(['application/json'])
|
219
|
+
# HTTP header 'Content-Type'
|
220
|
+
header_params['Content-Type'] = EmailRequest.select_header_content_type(['application/json'])
|
221
|
+
http_request = AsposeEmailCloud::HttpRequest.new(resource_path: local_var_path,
|
222
|
+
header_params: header_params,
|
223
|
+
body: post_body,
|
224
|
+
auth_names: auth_names)
|
225
|
+
|
226
|
+
@api_invoker.make_request(http_request, :PUT, nil)
|
227
|
+
nil
|
228
|
+
end
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
|
233
|
+
|