aspose_email_cloud 19.11.0 → 20.5.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 +155 -2
- data/lib/aspose-email-cloud/api/email_api.rb +1039 -577
- data/lib/aspose-email-cloud/api_client.rb +385 -381
- data/lib/aspose-email-cloud/api_error.rb +41 -41
- data/lib/aspose-email-cloud/configuration.rb +240 -236
- data/lib/aspose-email-cloud/models/account_base_request.rb +154 -141
- data/lib/aspose-email-cloud/models/add_attachment_request.rb +150 -143
- data/lib/aspose-email-cloud/models/ai_bcr_base64_image.rb +231 -0
- data/lib/aspose-email-cloud/models/ai_bcr_base64_rq.rb +228 -0
- data/lib/aspose-email-cloud/models/ai_bcr_image.rb +218 -0
- data/lib/aspose-email-cloud/models/ai_bcr_image_storage_file.rb +231 -0
- data/lib/aspose-email-cloud/models/ai_bcr_ocr_data.rb +256 -0
- data/lib/aspose-email-cloud/models/ai_bcr_ocr_data_part.rb +300 -0
- data/lib/aspose-email-cloud/models/ai_bcr_options.rb +226 -0
- data/lib/aspose-email-cloud/models/ai_bcr_parse_ocr_data_rq.rb +233 -0
- data/lib/aspose-email-cloud/models/ai_bcr_parse_storage_rq.rb +251 -0
- data/lib/aspose-email-cloud/models/ai_bcr_rq.rb +213 -0
- data/lib/aspose-email-cloud/models/ai_bcr_storage_image_rq.rb +233 -0
- data/lib/aspose-email-cloud/models/ai_name_component.rb +267 -0
- data/lib/aspose-email-cloud/models/ai_name_cultural_context.rb +270 -0
- data/lib/aspose-email-cloud/models/ai_name_extracted.rb +233 -0
- data/lib/aspose-email-cloud/models/ai_name_extracted_component.rb +231 -0
- data/lib/aspose-email-cloud/models/ai_name_formatted.rb +226 -0
- data/lib/aspose-email-cloud/models/ai_name_gender_hypothesis.rb +236 -0
- data/lib/aspose-email-cloud/models/ai_name_match_result.rb +233 -0
- data/lib/aspose-email-cloud/models/ai_name_mismatch.rb +249 -0
- data/lib/aspose-email-cloud/models/ai_name_parsed_match_rq.rb +266 -0
- data/lib/aspose-email-cloud/models/ai_name_parsed_rq.rb +246 -0
- data/lib/aspose-email-cloud/models/ai_name_weighted.rb +231 -0
- data/lib/aspose-email-cloud/models/ai_name_weighted_variants.rb +228 -0
- data/lib/aspose-email-cloud/models/alternate_view.rb +282 -0
- data/lib/aspose-email-cloud/models/append_email_account_base_request.rb +162 -144
- data/lib/aspose-email-cloud/models/append_email_base_request.rb +167 -147
- data/lib/aspose-email-cloud/models/append_email_mime_base_request.rb +166 -146
- data/lib/aspose-email-cloud/models/append_email_model_rq.rb +336 -0
- data/lib/aspose-email-cloud/models/associated_person.rb +244 -0
- data/lib/aspose-email-cloud/models/attachment.rb +324 -0
- data/lib/aspose-email-cloud/models/attachment_base.rb +254 -0
- data/lib/aspose-email-cloud/models/base_object.rb +91 -84
- data/lib/aspose-email-cloud/models/calendar_dto.rb +557 -0
- data/lib/aspose-email-cloud/models/calendar_dto_alternate_rq.rb +268 -0
- data/lib/aspose-email-cloud/models/calendar_dto_list.rb +215 -0
- data/lib/aspose-email-cloud/models/calendar_reminder.rb +318 -0
- data/lib/aspose-email-cloud/models/contact_dto.rb +699 -0
- data/lib/aspose-email-cloud/models/contact_dto_list.rb +215 -0
- data/lib/aspose-email-cloud/models/contact_photo.rb +231 -0
- data/lib/aspose-email-cloud/models/content_type.rb +267 -0
- data/lib/aspose-email-cloud/models/content_type_parameter.rb +226 -0
- data/lib/aspose-email-cloud/models/create_email_request.rb +150 -143
- data/lib/aspose-email-cloud/models/create_folder_base_request.rb +162 -146
- data/lib/aspose-email-cloud/models/customer_event.rb +231 -0
- data/lib/aspose-email-cloud/models/delete_email_thread_account_rq.rb +276 -0
- data/lib/aspose-email-cloud/models/delete_folder_base_request.rb +162 -146
- data/lib/aspose-email-cloud/models/delete_message_base_request.rb +177 -148
- data/lib/aspose-email-cloud/models/disc_usage.rb +149 -143
- data/lib/aspose-email-cloud/models/discover_email_config_oauth.rb +391 -0
- data/lib/aspose-email-cloud/models/discover_email_config_password.rb +304 -0
- data/lib/aspose-email-cloud/models/discover_email_config_rq.rb +268 -0
- data/lib/aspose-email-cloud/models/email_account_config.rb +323 -0
- data/lib/aspose-email-cloud/models/email_account_config_list.rb +215 -0
- data/lib/aspose-email-cloud/models/email_account_request.rb +210 -155
- data/lib/aspose-email-cloud/models/email_address.rb +283 -0
- data/lib/aspose-email-cloud/models/email_client_account.rb +350 -0
- data/lib/aspose-email-cloud/models/email_client_account_credentials.rb +261 -0
- data/lib/aspose-email-cloud/models/email_client_account_oauth_credentials.rb +385 -0
- data/lib/aspose-email-cloud/models/email_client_account_password_credentials.rb +298 -0
- data/lib/aspose-email-cloud/models/email_client_multi_account.rb +233 -0
- data/lib/aspose-email-cloud/models/email_document.rb +150 -143
- data/lib/aspose-email-cloud/models/email_document_response.rb +146 -141
- data/lib/aspose-email-cloud/models/email_dto.rb +681 -0
- data/lib/aspose-email-cloud/models/email_dto_list.rb +215 -0
- data/lib/aspose-email-cloud/models/email_properties.rb +150 -142
- data/lib/aspose-email-cloud/models/email_property.rb +154 -142
- data/lib/aspose-email-cloud/models/email_property_response.rb +146 -141
- data/lib/aspose-email-cloud/models/email_thread.rb +254 -0
- data/lib/aspose-email-cloud/models/email_thread_list.rb +215 -0
- data/lib/aspose-email-cloud/models/email_thread_read_flag_rq.rb +294 -0
- data/lib/aspose-email-cloud/models/enum_with_custom_of_associated_person_category.rb +230 -0
- data/lib/aspose-email-cloud/models/enum_with_custom_of_email_address_category.rb +230 -0
- data/lib/aspose-email-cloud/models/enum_with_custom_of_event_category.rb +230 -0
- data/lib/aspose-email-cloud/models/enum_with_custom_of_instant_messenger_category.rb +230 -0
- data/lib/aspose-email-cloud/models/enum_with_custom_of_phone_number_category.rb +230 -0
- data/lib/aspose-email-cloud/models/enum_with_custom_of_postal_address_category.rb +230 -0
- data/lib/aspose-email-cloud/models/enum_with_custom_of_url_category.rb +230 -0
- data/lib/aspose-email-cloud/models/error.rb +157 -147
- data/lib/aspose-email-cloud/models/error_details.rb +149 -143
- data/lib/aspose-email-cloud/models/file_version.rb +169 -153
- data/lib/aspose-email-cloud/models/file_versions.rb +145 -141
- data/lib/aspose-email-cloud/models/files_list.rb +145 -141
- data/lib/aspose-email-cloud/models/files_upload_result.rb +149 -143
- data/lib/aspose-email-cloud/models/hierarchical_object.rb +106 -97
- data/lib/aspose-email-cloud/models/hierarchical_object_request.rb +150 -143
- data/lib/aspose-email-cloud/models/hierarchical_object_response.rb +150 -143
- data/lib/aspose-email-cloud/models/indexed_hierarchical_object.rb +124 -113
- data/lib/aspose-email-cloud/models/indexed_primitive_object.rb +122 -111
- data/lib/aspose-email-cloud/models/instant_messenger_address.rb +244 -0
- data/lib/aspose-email-cloud/models/link.rb +158 -147
- data/lib/aspose-email-cloud/models/linked_resource.rb +267 -0
- data/lib/aspose-email-cloud/models/list_response_of_ai_bcr_ocr_data.rb +214 -0
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_component.rb +214 -0
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_extracted.rb +214 -0
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_gender_hypothesis.rb +214 -0
- data/lib/aspose-email-cloud/models/list_response_of_contact_dto.rb +214 -0
- data/lib/aspose-email-cloud/models/list_response_of_email_account_config.rb +214 -0
- data/lib/aspose-email-cloud/models/list_response_of_email_dto.rb +214 -0
- data/lib/aspose-email-cloud/models/list_response_of_email_thread.rb +214 -0
- data/lib/aspose-email-cloud/models/list_response_of_hierarchical_object.rb +214 -0
- data/lib/aspose-email-cloud/models/list_response_of_hierarchical_object_response.rb +145 -139
- data/lib/aspose-email-cloud/models/list_response_of_mail_server_folder.rb +145 -139
- data/lib/aspose-email-cloud/models/list_response_of_storage_file_location.rb +214 -0
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_calendar_dto.rb +214 -0
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_contact_dto.rb +214 -0
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_email_dto.rb +214 -0
- data/lib/aspose-email-cloud/models/list_response_of_string.rb +145 -139
- data/lib/aspose-email-cloud/models/mail_address.rb +257 -0
- data/lib/aspose-email-cloud/models/mail_server_folder.rb +150 -143
- data/lib/aspose-email-cloud/models/mime_response.rb +146 -141
- data/lib/aspose-email-cloud/models/move_email_message_rq.rb +302 -0
- data/lib/aspose-email-cloud/models/move_email_thread_rq.rb +276 -0
- data/lib/aspose-email-cloud/models/name_value_pair.rb +226 -0
- data/lib/aspose-email-cloud/models/object_exist.rb +149 -143
- data/lib/aspose-email-cloud/models/phone_number.rb +244 -0
- data/lib/aspose-email-cloud/models/postal_address.rb +353 -0
- data/lib/aspose-email-cloud/models/primitive_object.rb +104 -95
- data/lib/aspose-email-cloud/models/reminder_attendee.rb +213 -0
- data/lib/aspose-email-cloud/models/reminder_trigger.rb +249 -0
- data/lib/aspose-email-cloud/models/requests/add_calendar_attachment_request_data.rb +99 -89
- data/lib/aspose-email-cloud/models/requests/add_contact_attachment_request_data.rb +109 -101
- data/lib/aspose-email-cloud/models/requests/add_email_attachment_request_data.rb +99 -89
- data/lib/aspose-email-cloud/models/requests/add_mapi_attachment_request_data.rb +99 -89
- data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_model_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_ocr_data_model_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_storage_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_complete_request_data.rb +110 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_parsed_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_request_data.rb +110 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_format_parsed_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_format_request_data.rb +116 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_parsed_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_request_data.rb +110 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_match_parsed_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_match_request_data.rb +121 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_email_address_request_data.rb +110 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_request_data.rb +110 -0
- data/lib/aspose-email-cloud/models/requests/append_email_message_request_data.rb +79 -75
- data/lib/aspose-email-cloud/models/requests/append_email_model_message_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/append_mime_message_request_data.rb +79 -75
- data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_alternate_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_file_request_data.rb +89 -0
- data/lib/aspose-email-cloud/models/requests/convert_calendar_request_data.rb +90 -0
- data/lib/aspose-email-cloud/models/requests/convert_contact_model_to_file_request_data.rb +89 -0
- data/lib/aspose-email-cloud/models/requests/convert_contact_request_data.rb +100 -0
- data/lib/aspose-email-cloud/models/requests/convert_email_model_to_file_request_data.rb +89 -0
- data/lib/aspose-email-cloud/models/requests/convert_email_request_data.rb +90 -0
- data/lib/aspose-email-cloud/models/requests/copy_file_request_data.rb +107 -92
- data/lib/aspose-email-cloud/models/requests/copy_folder_request_data.rb +101 -89
- data/lib/aspose-email-cloud/models/requests/create_calendar_request_data.rb +89 -82
- data/lib/aspose-email-cloud/models/requests/create_contact_request_data.rb +99 -94
- data/lib/aspose-email-cloud/models/requests/create_email_folder_request_data.rb +79 -75
- data/lib/aspose-email-cloud/models/requests/create_email_request_data.rb +89 -82
- data/lib/aspose-email-cloud/models/requests/create_folder_request_data.rb +84 -78
- data/lib/aspose-email-cloud/models/requests/create_mapi_request_data.rb +89 -82
- data/lib/aspose-email-cloud/models/requests/delete_calendar_property_request_data.rb +109 -96
- data/lib/aspose-email-cloud/models/requests/delete_contact_property_request_data.rb +119 -108
- data/lib/aspose-email-cloud/models/requests/delete_email_folder_request_data.rb +79 -75
- data/lib/aspose-email-cloud/models/requests/delete_email_message_request_data.rb +79 -75
- data/lib/aspose-email-cloud/models/requests/delete_email_thread_request_data.rb +89 -0
- data/lib/aspose-email-cloud/models/requests/delete_file_request_data.rb +90 -81
- data/lib/aspose-email-cloud/models/requests/delete_folder_request_data.rb +90 -81
- data/lib/aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb +99 -89
- data/lib/aspose-email-cloud/models/requests/delete_mapi_properties_request_data.rb +89 -82
- data/lib/aspose-email-cloud/models/requests/discover_email_config_oauth_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/discover_email_config_password_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/discover_email_config_request_data.rb +86 -0
- data/lib/aspose-email-cloud/models/requests/download_file_request_data.rb +90 -81
- data/lib/aspose-email-cloud/models/requests/email_request.rb +75 -75
- data/lib/aspose-email-cloud/models/requests/fetch_email_message_request_data.rb +115 -93
- data/lib/aspose-email-cloud/models/requests/fetch_email_model_request_data.rb +115 -0
- data/lib/aspose-email-cloud/models/requests/fetch_email_thread_messages_request_data.rb +114 -0
- data/lib/aspose-email-cloud/models/requests/get_calendar_as_file_request_data.rb +101 -0
- data/lib/aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb +101 -88
- data/lib/aspose-email-cloud/models/requests/get_calendar_file_as_model_request_data.rb +80 -0
- data/lib/aspose-email-cloud/models/requests/get_calendar_list_request_data.rb +108 -95
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_as_alternate_request_data.rb +107 -0
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_list_request_data.rb +98 -0
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_request_data.rb +91 -0
- data/lib/aspose-email-cloud/models/requests/get_calendar_request_data.rb +91 -81
- data/lib/aspose-email-cloud/models/requests/get_contact_as_file_request_data.rb +111 -0
- data/lib/aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb +111 -100
- data/lib/aspose-email-cloud/models/requests/get_contact_file_as_model_request_data.rb +90 -0
- data/lib/aspose-email-cloud/models/requests/get_contact_list_request_data.rb +103 -92
- data/lib/aspose-email-cloud/models/requests/get_contact_model_list_request_data.rb +103 -0
- data/lib/aspose-email-cloud/models/requests/get_contact_model_request_data.rb +101 -0
- data/lib/aspose-email-cloud/models/requests/get_contact_properties_request_data.rb +101 -93
- data/lib/aspose-email-cloud/models/requests/get_disc_usage_request_data.rb +74 -71
- data/lib/aspose-email-cloud/models/requests/get_email_as_file_request_data.rb +101 -0
- data/lib/aspose-email-cloud/models/requests/get_email_attachment_request_data.rb +101 -88
- data/lib/aspose-email-cloud/models/requests/get_email_client_account_request_data.rb +102 -0
- data/lib/aspose-email-cloud/models/requests/get_email_client_multi_account_request_data.rb +102 -0
- data/lib/aspose-email-cloud/models/requests/get_email_file_as_model_request_data.rb +80 -0
- data/lib/aspose-email-cloud/models/requests/get_email_model_list_request_data.rb +103 -0
- data/lib/aspose-email-cloud/models/requests/get_email_model_request_data.rb +101 -0
- data/lib/aspose-email-cloud/models/requests/get_email_property_request_data.rb +101 -88
- data/lib/aspose-email-cloud/models/requests/get_email_request_data.rb +91 -81
- data/lib/aspose-email-cloud/models/requests/get_file_versions_request_data.rb +84 -78
- data/lib/aspose-email-cloud/models/requests/get_files_list_request_data.rb +84 -78
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachment_request_data.rb +101 -88
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachments_request_data.rb +91 -81
- data/lib/aspose-email-cloud/models/requests/get_mapi_list_request_data.rb +93 -80
- data/lib/aspose-email-cloud/models/requests/get_mapi_properties_request_data.rb +91 -81
- data/lib/aspose-email-cloud/models/requests/http_request.rb +51 -51
- data/lib/aspose-email-cloud/models/requests/is_email_address_disposable_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/list_email_folders_request_data.rb +104 -88
- data/lib/aspose-email-cloud/models/requests/list_email_messages_request_data.rb +127 -105
- data/lib/aspose-email-cloud/models/requests/list_email_models_request_data.rb +122 -0
- data/lib/aspose-email-cloud/models/requests/list_email_threads_request_data.rb +121 -0
- data/lib/aspose-email-cloud/models/requests/move_email_message_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/move_email_thread_request_data.rb +89 -0
- data/lib/aspose-email-cloud/models/requests/move_file_request_data.rb +107 -92
- data/lib/aspose-email-cloud/models/requests/move_folder_request_data.rb +101 -89
- data/lib/aspose-email-cloud/models/requests/object_exists_request_data.rb +90 -81
- data/lib/aspose-email-cloud/models/requests/save_calendar_model_request_data.rb +89 -0
- data/lib/aspose-email-cloud/models/requests/save_contact_model_request_data.rb +99 -0
- data/lib/aspose-email-cloud/models/requests/save_email_client_account_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/save_email_client_multi_account_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/save_email_model_request_data.rb +99 -0
- data/lib/aspose-email-cloud/models/requests/save_mail_account_request_data.rb +79 -75
- data/lib/aspose-email-cloud/models/requests/save_mail_o_auth_account_request_data.rb +79 -75
- data/lib/aspose-email-cloud/models/requests/send_email_mime_request_data.rb +79 -75
- data/lib/aspose-email-cloud/models/requests/send_email_model_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/send_email_request_data.rb +79 -75
- data/lib/aspose-email-cloud/models/requests/set_email_property_request_data.rb +99 -89
- data/lib/aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb +79 -75
- data/lib/aspose-email-cloud/models/requests/set_email_thread_read_flag_request_data.rb +89 -0
- data/lib/aspose-email-cloud/models/requests/storage_exists_request_data.rb +78 -75
- data/lib/aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb +89 -82
- data/lib/aspose-email-cloud/models/requests/update_contact_properties_request_data.rb +99 -94
- data/lib/aspose-email-cloud/models/requests/update_mapi_properties_request_data.rb +89 -82
- data/lib/aspose-email-cloud/models/requests/upload_file_request_data.rb +96 -87
- data/lib/aspose-email-cloud/models/save_email_account_request.rb +214 -157
- data/lib/aspose-email-cloud/models/save_o_auth_email_account_request.rb +240 -166
- data/lib/aspose-email-cloud/models/send_email_base_request.rb +159 -145
- data/lib/aspose-email-cloud/models/send_email_mime_base_request.rb +158 -144
- data/lib/aspose-email-cloud/models/send_email_model_rq.rb +276 -0
- data/lib/aspose-email-cloud/models/set_email_property_request.rb +150 -143
- data/lib/aspose-email-cloud/models/set_message_read_flag_account_base_request.rb +162 -146
- data/lib/aspose-email-cloud/models/storage_exist.rb +145 -141
- data/lib/aspose-email-cloud/models/storage_file.rb +161 -149
- data/lib/aspose-email-cloud/models/storage_file_location.rb +154 -145
- data/lib/aspose-email-cloud/models/storage_file_rq_of_email_client_account.rb +225 -0
- data/lib/aspose-email-cloud/models/storage_file_rq_of_email_client_multi_account.rb +225 -0
- data/lib/aspose-email-cloud/models/storage_folder_location.rb +150 -143
- data/lib/aspose-email-cloud/models/storage_model_of_calendar_dto.rb +225 -0
- data/lib/aspose-email-cloud/models/storage_model_of_contact_dto.rb +225 -0
- data/lib/aspose-email-cloud/models/storage_model_of_email_dto.rb +225 -0
- data/lib/aspose-email-cloud/models/storage_model_rq_of_calendar_dto.rb +225 -0
- data/lib/aspose-email-cloud/models/storage_model_rq_of_contact_dto.rb +225 -0
- data/lib/aspose-email-cloud/models/storage_model_rq_of_email_dto.rb +225 -0
- data/lib/aspose-email-cloud/models/url.rb +244 -0
- data/lib/aspose-email-cloud/models/value_response.rb +146 -141
- data/lib/aspose-email-cloud/models/value_t_of_boolean.rb +217 -0
- data/lib/aspose-email-cloud/version.rb +15 -15
- metadata +206 -53
- data/lib/aspose-email-cloud/models/contact_format.rb +0 -45
@@ -1,82 +1,89 @@
|
|
1
|
-
|
2
|
-
# ----------------------------------------------------------------------------
|
3
|
-
# <copyright company="Aspose" file="update_mapi_properties_request_data.rb">
|
4
|
-
# Copyright (c) 2018-
|
5
|
-
# </copyright>
|
6
|
-
# <summary>
|
7
|
-
# Permission is hereby granted, free of charge, to any person obtaining a
|
8
|
-
# copy of this software and associated documentation files (the "Software"),
|
9
|
-
# to deal in the Software without restriction, including without limitation
|
10
|
-
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
11
|
-
# and/or sell copies of the Software, and to permit persons to whom the
|
12
|
-
# Software is furnished to do so, subject to the following conditions:
|
13
|
-
#
|
14
|
-
# The above copyright notice and this permission notice shall be included in
|
15
|
-
# all copies or substantial portions of the Software.
|
16
|
-
#
|
17
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
22
|
-
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
23
|
-
# DEALINGS IN THE SOFTWARE.
|
24
|
-
# </summary>
|
25
|
-
# ----------------------------------------------------------------------------
|
26
|
-
|
27
|
-
|
28
|
-
require_relative './email_request'
|
29
|
-
require_relative './http_request'
|
30
|
-
|
31
|
-
module AsposeEmailCloud
|
32
|
-
# Request model for update_mapi_properties operation.
|
33
|
-
class UpdateMapiPropertiesRequestData < EmailRequest
|
34
|
-
|
35
|
-
#
|
36
|
-
# @
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
#
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="update_mapi_properties_request_data.rb">
|
4
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
8
|
+
# copy of this software and associated documentation files (the "Software"),
|
9
|
+
# to deal in the Software without restriction, including without limitation
|
10
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
11
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
12
|
+
# Software is furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in
|
15
|
+
# all copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
22
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
23
|
+
# DEALINGS IN THE SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# ----------------------------------------------------------------------------
|
26
|
+
|
27
|
+
|
28
|
+
require_relative './email_request'
|
29
|
+
require_relative './http_request'
|
30
|
+
|
31
|
+
module AsposeEmailCloud
|
32
|
+
# Request model for update_mapi_properties operation.
|
33
|
+
class UpdateMapiPropertiesRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Document file name
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :name
|
38
|
+
# Properties that should be updated/added
|
39
|
+
# @return [HierarchicalObjectRequest]
|
40
|
+
attr_accessor :request
|
41
|
+
|
42
|
+
# Update document properties
|
43
|
+
# @param [String] name Document file name
|
44
|
+
# @param [HierarchicalObjectRequest] request Properties that should be updated/added
|
45
|
+
def initialize(name, request)
|
46
|
+
self.name = name if name
|
47
|
+
self.request = request if request
|
48
|
+
end
|
49
|
+
|
50
|
+
def to_http_info(api_client)
|
51
|
+
# verify the required parameter 'name' is set
|
52
|
+
if api_client.config.client_side_validation && self.name.nil?
|
53
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.update_mapi_properties"
|
54
|
+
end
|
55
|
+
|
56
|
+
# verify the required parameter 'request' is set
|
57
|
+
if api_client.config.client_side_validation && self.request.nil?
|
58
|
+
raise ArgumentError, "Missing the required parameter 'request' when calling EmailApi.update_mapi_properties"
|
59
|
+
end
|
60
|
+
|
61
|
+
# resource path
|
62
|
+
local_var_path = '/email/Mapi/{name}/properties'.sub('{' + 'name' + '}', self.name.to_s)
|
63
|
+
|
64
|
+
# query parameters
|
65
|
+
query_params = {}
|
66
|
+
|
67
|
+
# form parameters
|
68
|
+
form_params = {}
|
69
|
+
|
70
|
+
# http body (model)
|
71
|
+
post_body = api_client.object_to_http_body(self.request)
|
72
|
+
auth_names = ['JWT']
|
73
|
+
|
74
|
+
# header parameters
|
75
|
+
header_params = {}
|
76
|
+
# HTTP header 'Accept' (if needed)
|
77
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
78
|
+
# HTTP header 'Content-Type'
|
79
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
80
|
+
|
81
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
82
|
+
header_params,
|
83
|
+
query_params,
|
84
|
+
form_params,
|
85
|
+
post_body,
|
86
|
+
auth_names)
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
@@ -1,87 +1,96 @@
|
|
1
|
-
|
2
|
-
# ----------------------------------------------------------------------------
|
3
|
-
# <copyright company="Aspose" file="upload_file_request_data.rb">
|
4
|
-
# Copyright (c) 2018-
|
5
|
-
# </copyright>
|
6
|
-
# <summary>
|
7
|
-
# Permission is hereby granted, free of charge, to any person obtaining a
|
8
|
-
# copy of this software and associated documentation files (the "Software"),
|
9
|
-
# to deal in the Software without restriction, including without limitation
|
10
|
-
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
11
|
-
# and/or sell copies of the Software, and to permit persons to whom the
|
12
|
-
# Software is furnished to do so, subject to the following conditions:
|
13
|
-
#
|
14
|
-
# The above copyright notice and this permission notice shall be included in
|
15
|
-
# all copies or substantial portions of the Software.
|
16
|
-
#
|
17
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
22
|
-
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
23
|
-
# DEALINGS IN THE SOFTWARE.
|
24
|
-
# </summary>
|
25
|
-
# ----------------------------------------------------------------------------
|
26
|
-
|
27
|
-
|
28
|
-
require_relative './email_request'
|
29
|
-
require_relative './http_request'
|
30
|
-
|
31
|
-
module AsposeEmailCloud
|
32
|
-
# Request model for upload_file operation.
|
33
|
-
class UploadFileRequestData < EmailRequest
|
34
|
-
|
35
|
-
#
|
36
|
-
# @
|
37
|
-
|
38
|
-
#
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="upload_file_request_data.rb">
|
4
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
8
|
+
# copy of this software and associated documentation files (the "Software"),
|
9
|
+
# to deal in the Software without restriction, including without limitation
|
10
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
11
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
12
|
+
# Software is furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in
|
15
|
+
# all copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
22
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
23
|
+
# DEALINGS IN THE SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# ----------------------------------------------------------------------------
|
26
|
+
|
27
|
+
|
28
|
+
require_relative './email_request'
|
29
|
+
require_relative './http_request'
|
30
|
+
|
31
|
+
module AsposeEmailCloud
|
32
|
+
# Request model for upload_file operation.
|
33
|
+
class UploadFileRequestData < EmailRequest
|
34
|
+
|
35
|
+
#
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :path
|
38
|
+
# File to upload
|
39
|
+
# @return [File]
|
40
|
+
attr_accessor :file
|
41
|
+
#
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :storage_name
|
44
|
+
|
45
|
+
# @param [String] path
|
46
|
+
# @param [File] file File to upload
|
47
|
+
# @param [String] storage_name
|
48
|
+
def initialize(path, file, storage_name = nil)
|
49
|
+
self.path = path if path
|
50
|
+
self.file = file if file
|
51
|
+
self.storage_name = storage_name if storage_name
|
52
|
+
end
|
53
|
+
|
54
|
+
def to_http_info(api_client)
|
55
|
+
# verify the required parameter 'path' is set
|
56
|
+
if api_client.config.client_side_validation && self.path.nil?
|
57
|
+
raise ArgumentError, "Missing the required parameter 'path' when calling EmailApi.upload_file"
|
58
|
+
end
|
59
|
+
|
60
|
+
# verify the required parameter 'file' is set
|
61
|
+
if api_client.config.client_side_validation && self.file.nil?
|
62
|
+
raise ArgumentError, "Missing the required parameter 'file' when calling EmailApi.upload_file"
|
63
|
+
end
|
64
|
+
|
65
|
+
# resource path
|
66
|
+
local_var_path = '/email/storage/file/{path}'.sub('{' + 'path' + '}', self.path.to_s)
|
67
|
+
|
68
|
+
# query parameters
|
69
|
+
query_params = {}
|
70
|
+
query_params[:storageName] = self.storage_name unless self.storage_name.nil?
|
71
|
+
|
72
|
+
# form parameters
|
73
|
+
form_params = {}
|
74
|
+
form_params['File'] = self.file
|
75
|
+
|
76
|
+
# http body (model)
|
77
|
+
post_body = nil
|
78
|
+
auth_names = ['JWT']
|
79
|
+
|
80
|
+
# header parameters
|
81
|
+
header_params = {}
|
82
|
+
# HTTP header 'Accept' (if needed)
|
83
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
84
|
+
# HTTP header 'Content-Type'
|
85
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['multipart/form-data'])
|
86
|
+
|
87
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
88
|
+
header_params,
|
89
|
+
query_params,
|
90
|
+
form_params,
|
91
|
+
post_body,
|
92
|
+
auth_names)
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
@@ -1,56 +1,64 @@
|
|
1
|
-
# ----------------------------------------------------------------------------
|
2
|
-
# <copyright company="Aspose" file="SaveEmailAccountRequest.rb">
|
3
|
-
# Copyright (c) 2018-
|
4
|
-
# </copyright>
|
5
|
-
# <summary>
|
6
|
-
# Permission is hereby granted, free of charge, to any person obtaining a
|
7
|
-
# copy of this software and associated documentation files (the "Software"),
|
8
|
-
# to deal in the Software without restriction, including without limitation
|
9
|
-
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
10
|
-
# and/or sell copies of the Software, and to permit persons to whom the
|
11
|
-
# Software is furnished to do so, subject to the following conditions:
|
12
|
-
#
|
13
|
-
# The above copyright notice and this permission notice shall be included in
|
14
|
-
# all copies or substantial portions of the Software.
|
15
|
-
#
|
16
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21
|
-
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22
|
-
# DEALINGS IN THE SOFTWARE.
|
23
|
-
# </summary>
|
24
|
-
# ----------------------------------------------------------------------------
|
25
|
-
|
26
|
-
|
27
|
-
require 'date'
|
28
|
-
|
29
|
-
module AsposeEmailCloud
|
30
|
-
# Save email account settings with login/password authentication request
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="SaveEmailAccountRequest.rb">
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
|
+
# </copyright>
|
5
|
+
# <summary>
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
7
|
+
# copy of this software and associated documentation files (the "Software"),
|
8
|
+
# to deal in the Software without restriction, including without limitation
|
9
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
10
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
11
|
+
# Software is furnished to do so, subject to the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be included in
|
14
|
+
# all copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22
|
+
# DEALINGS IN THE SOFTWARE.
|
23
|
+
# </summary>
|
24
|
+
# ----------------------------------------------------------------------------
|
25
|
+
|
26
|
+
|
27
|
+
require 'date'
|
28
|
+
|
29
|
+
module AsposeEmailCloud
|
30
|
+
# Save email account settings with login/password authentication request
|
31
31
|
class SaveEmailAccountRequest
|
32
|
-
# Email account host
|
32
|
+
# Email account host
|
33
|
+
# @return [String]
|
33
34
|
attr_accessor :host
|
34
35
|
|
35
|
-
# Email account port
|
36
|
+
# Email account port
|
37
|
+
# @return [Integer]
|
36
38
|
attr_accessor :port
|
37
39
|
|
38
|
-
# Email account login
|
40
|
+
# Email account login
|
41
|
+
# @return [String]
|
39
42
|
attr_accessor :login
|
40
43
|
|
41
|
-
# Email account security
|
44
|
+
# Email account security mode Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
|
45
|
+
# @return [String]
|
42
46
|
attr_accessor :security_options
|
43
47
|
|
44
|
-
#
|
48
|
+
# Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav
|
49
|
+
# @return [String]
|
45
50
|
attr_accessor :protocol_type
|
46
51
|
|
47
|
-
# Email account description
|
52
|
+
# Email account description
|
53
|
+
# @return [String]
|
48
54
|
attr_accessor :description
|
49
55
|
|
50
|
-
# A storage file location info to store email account
|
56
|
+
# A storage file location info to store email account
|
57
|
+
# @return [StorageFileLocation]
|
51
58
|
attr_accessor :storage_file
|
52
59
|
|
53
|
-
# Email account password
|
60
|
+
# Email account password
|
61
|
+
# @return [String]
|
54
62
|
attr_accessor :password
|
55
63
|
|
56
64
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -73,8 +81,8 @@ module AsposeEmailCloud
|
|
73
81
|
:'host' => :'String',
|
74
82
|
:'port' => :'Integer',
|
75
83
|
:'login' => :'String',
|
76
|
-
:'security_options' => :'
|
77
|
-
:'protocol_type' => :'
|
84
|
+
:'security_options' => :'String',
|
85
|
+
:'protocol_type' => :'String',
|
78
86
|
:'description' => :'String',
|
79
87
|
:'storage_file' => :'StorageFileLocation',
|
80
88
|
:'password' => :'String'
|
@@ -123,15 +131,23 @@ module AsposeEmailCloud
|
|
123
131
|
end
|
124
132
|
|
125
133
|
# Initializes the object
|
134
|
+
# @param [String] host Email account host
|
135
|
+
# @param [Integer] port Email account port
|
136
|
+
# @param [String] login Email account login
|
137
|
+
# @param [String] security_options Email account security mode Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
|
138
|
+
# @param [String] protocol_type Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav
|
139
|
+
# @param [String] description Email account description
|
140
|
+
# @param [StorageFileLocation] storage_file A storage file location info to store email account
|
141
|
+
# @param [String] password Email account password
|
126
142
|
def initialize(host=nil, port=nil, login=nil, security_options=nil, protocol_type=nil, description=nil, storage_file=nil, password=nil)
|
127
|
-
self.host = host
|
128
|
-
self.port = port
|
129
|
-
self.login = login
|
130
|
-
self.security_options = security_options
|
131
|
-
self.protocol_type = protocol_type
|
132
|
-
self.description = description
|
133
|
-
self.storage_file = storage_file
|
134
|
-
self.password = password
|
143
|
+
self.host = host if host
|
144
|
+
self.port = port if port
|
145
|
+
self.login = login if login
|
146
|
+
self.security_options = security_options if security_options
|
147
|
+
self.protocol_type = protocol_type if protocol_type
|
148
|
+
self.description = description if description
|
149
|
+
self.storage_file = storage_file if storage_file
|
150
|
+
self.password = password if password
|
135
151
|
end
|
136
152
|
|
137
153
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -162,10 +178,18 @@ module AsposeEmailCloud
|
|
162
178
|
invalid_properties.push('invalid value for "security_options", security_options cannot be nil.')
|
163
179
|
end
|
164
180
|
|
181
|
+
if @security_options.to_s.length < 1
|
182
|
+
invalid_properties.push('invalid value for "security_options", the character length must be great than or equal to 1.')
|
183
|
+
end
|
184
|
+
|
165
185
|
if @protocol_type.nil?
|
166
186
|
invalid_properties.push('invalid value for "protocol_type", protocol_type cannot be nil.')
|
167
187
|
end
|
168
188
|
|
189
|
+
if @protocol_type.to_s.length < 1
|
190
|
+
invalid_properties.push('invalid value for "protocol_type", the character length must be great than or equal to 1.')
|
191
|
+
end
|
192
|
+
|
169
193
|
if @storage_file.nil?
|
170
194
|
invalid_properties.push('invalid value for "storage_file", storage_file cannot be nil.')
|
171
195
|
end
|
@@ -190,7 +214,9 @@ module AsposeEmailCloud
|
|
190
214
|
return false if @login.nil?
|
191
215
|
return false if @login.to_s.length < 1
|
192
216
|
return false if @security_options.nil?
|
217
|
+
return false if @security_options.to_s.length < 1
|
193
218
|
return false if @protocol_type.nil?
|
219
|
+
return false if @protocol_type.to_s.length < 1
|
194
220
|
return false if @storage_file.nil?
|
195
221
|
return false if @password.nil?
|
196
222
|
return false if @password.to_s.length < 1
|
@@ -225,6 +251,34 @@ module AsposeEmailCloud
|
|
225
251
|
@login = login
|
226
252
|
end
|
227
253
|
|
254
|
+
# Custom attribute writer method with validation
|
255
|
+
# @param [Object] security_options Value to be assigned
|
256
|
+
def security_options=(security_options)
|
257
|
+
if security_options.nil?
|
258
|
+
fail ArgumentError, 'security_options cannot be nil'
|
259
|
+
end
|
260
|
+
|
261
|
+
if security_options.to_s.length < 1
|
262
|
+
fail ArgumentError, 'invalid value for "security_options", the character length must be great than or equal to 1.'
|
263
|
+
end
|
264
|
+
|
265
|
+
@security_options = security_options
|
266
|
+
end
|
267
|
+
|
268
|
+
# Custom attribute writer method with validation
|
269
|
+
# @param [Object] protocol_type Value to be assigned
|
270
|
+
def protocol_type=(protocol_type)
|
271
|
+
if protocol_type.nil?
|
272
|
+
fail ArgumentError, 'protocol_type cannot be nil'
|
273
|
+
end
|
274
|
+
|
275
|
+
if protocol_type.to_s.length < 1
|
276
|
+
fail ArgumentError, 'invalid value for "protocol_type", the character length must be great than or equal to 1.'
|
277
|
+
end
|
278
|
+
|
279
|
+
@protocol_type = protocol_type
|
280
|
+
end
|
281
|
+
|
228
282
|
# Custom attribute writer method with validation
|
229
283
|
# @param [Object] password Value to be assigned
|
230
284
|
def password=(password)
|
@@ -266,112 +320,115 @@ module AsposeEmailCloud
|
|
266
320
|
[host, port, login, security_options, protocol_type, description, storage_file, password].hash
|
267
321
|
end
|
268
322
|
|
269
|
-
# Builds the object from hash
|
270
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
271
|
-
# @return [Object] Returns the model itself
|
272
|
-
def build_from_hash(attributes)
|
273
|
-
return nil unless attributes.is_a?(Hash)
|
274
|
-
self.class.swagger_types.each_pair do |key, type|
|
275
|
-
attribute_key = self.class.attribute_map[key]
|
276
|
-
attribute_key = (attribute_key[0, 1].downcase + attribute_key[1..-1]).to_sym
|
277
|
-
if type =~ /\AArray<(.*)>/i
|
278
|
-
# check to ensure the input is an array given that the the attribute
|
279
|
-
# is documented as an array but the input is not
|
280
|
-
if attributes[attribute_key].is_a?(Array)
|
281
|
-
self.send("#{key}=", attributes[attribute_key].map { |v| _deserialize($1, v) })
|
282
|
-
end
|
283
|
-
elsif !attributes[attribute_key].nil?
|
284
|
-
self.send("#{key}=", _deserialize(type, attributes[attribute_key]))
|
285
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
286
|
-
end
|
287
|
-
|
288
|
-
self
|
289
|
-
end
|
290
|
-
|
291
|
-
# Deserializes the data based on type
|
292
|
-
# @param string type Data type
|
293
|
-
# @param string value Value to be deserialized
|
294
|
-
# @return [Object] Deserialized data
|
295
|
-
def _deserialize(type, value)
|
296
|
-
case type.to_sym
|
297
|
-
when :DateTime
|
298
|
-
DateTime.parse(value)
|
299
|
-
when :Date
|
300
|
-
Date.parse(value)
|
301
|
-
when :String
|
302
|
-
value.to_s
|
303
|
-
when :Integer
|
304
|
-
value.to_i
|
305
|
-
when :Float
|
306
|
-
value.to_f
|
307
|
-
when :BOOLEAN
|
308
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
309
|
-
true
|
310
|
-
else
|
311
|
-
false
|
312
|
-
end
|
313
|
-
when :Object
|
314
|
-
# generic object (usually a Hash), return directly
|
315
|
-
value
|
316
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
317
|
-
inner_type = Regexp.last_match[:inner_type]
|
318
|
-
value.map { |v| _deserialize(inner_type, v) }
|
319
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
320
|
-
k_type = Regexp.last_match[:k_type]
|
321
|
-
v_type = Regexp.last_match[:v_type]
|
322
|
-
{}.tap do |hash|
|
323
|
-
value.each do |k, v|
|
324
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
325
|
-
end
|
326
|
-
end
|
327
|
-
else # model
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
#
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
end
|
323
|
+
# Builds the object from hash
|
324
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
325
|
+
# @return [Object] Returns the model itself
|
326
|
+
def build_from_hash(attributes)
|
327
|
+
return nil unless attributes.is_a?(Hash)
|
328
|
+
self.class.swagger_types.each_pair do |key, type|
|
329
|
+
attribute_key = self.class.attribute_map[key]
|
330
|
+
attribute_key = (attribute_key[0, 1].downcase + attribute_key[1..-1]).to_sym
|
331
|
+
if type =~ /\AArray<(.*)>/i
|
332
|
+
# check to ensure the input is an array given that the the attribute
|
333
|
+
# is documented as an array but the input is not
|
334
|
+
if attributes[attribute_key].is_a?(Array)
|
335
|
+
self.send("#{key}=", attributes[attribute_key].map { |v| _deserialize($1, v) })
|
336
|
+
end
|
337
|
+
elsif !attributes[attribute_key].nil?
|
338
|
+
self.send("#{key}=", _deserialize(type, attributes[attribute_key]))
|
339
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
340
|
+
end
|
341
|
+
|
342
|
+
self
|
343
|
+
end
|
344
|
+
|
345
|
+
# Deserializes the data based on type
|
346
|
+
# @param string type Data type
|
347
|
+
# @param string value Value to be deserialized
|
348
|
+
# @return [Object] Deserialized data
|
349
|
+
def _deserialize(type, value)
|
350
|
+
case type.to_sym
|
351
|
+
when :DateTime
|
352
|
+
DateTime.parse(value)
|
353
|
+
when :Date
|
354
|
+
Date.parse(value)
|
355
|
+
when :String
|
356
|
+
value.to_s
|
357
|
+
when :Integer
|
358
|
+
value.to_i
|
359
|
+
when :Float
|
360
|
+
value.to_f
|
361
|
+
when :BOOLEAN
|
362
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
363
|
+
true
|
364
|
+
else
|
365
|
+
false
|
366
|
+
end
|
367
|
+
when :Object
|
368
|
+
# generic object (usually a Hash), return directly
|
369
|
+
value
|
370
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
371
|
+
inner_type = Regexp.last_match[:inner_type]
|
372
|
+
value.map { |v| _deserialize(inner_type, v) }
|
373
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
374
|
+
k_type = Regexp.last_match[:k_type]
|
375
|
+
v_type = Regexp.last_match[:v_type]
|
376
|
+
{}.tap do |hash|
|
377
|
+
value.each do |k, v|
|
378
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
379
|
+
end
|
380
|
+
end
|
381
|
+
else # model
|
382
|
+
sub_type = value[:type] || value[:discriminator] || type
|
383
|
+
if AsposeEmailCloud.const_defined?(sub_type)
|
384
|
+
type = sub_type
|
385
|
+
end
|
386
|
+
temp_model = AsposeEmailCloud.const_get(type).new
|
387
|
+
temp_model.build_from_hash(value)
|
388
|
+
end
|
389
|
+
end
|
390
|
+
|
391
|
+
# Returns the string representation of the object
|
392
|
+
# @return [String] String presentation of the object
|
393
|
+
def to_s
|
394
|
+
to_hash.to_s
|
395
|
+
end
|
396
|
+
|
397
|
+
# to_body is an alias to to_hash (backward compatibility)
|
398
|
+
# @return [Hash] Returns the object in the form of hash
|
399
|
+
def to_body
|
400
|
+
to_hash
|
401
|
+
end
|
402
|
+
|
403
|
+
# Returns the object in the form of hash
|
404
|
+
# @return [Hash] Returns the object in the form of hash
|
405
|
+
def to_hash
|
406
|
+
hash = {}
|
407
|
+
self.class.attribute_map.each_pair do |attr, param|
|
408
|
+
value = self.send(attr)
|
409
|
+
next if value.nil?
|
410
|
+
hash[param] = _to_hash(value)
|
411
|
+
end
|
412
|
+
hash
|
413
|
+
end
|
414
|
+
|
415
|
+
# Outputs non-array value in the form of hash
|
416
|
+
# For object, use to_hash. Otherwise, just return the value
|
417
|
+
# @param [Object] value Any valid value
|
418
|
+
# @return [Hash] Returns the value in the form of hash
|
419
|
+
def _to_hash(value)
|
420
|
+
if value.is_a?(Array)
|
421
|
+
value.compact.map { |v| _to_hash(v) }
|
422
|
+
elsif value.is_a?(Hash)
|
423
|
+
{}.tap do |hash|
|
424
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
425
|
+
end
|
426
|
+
elsif value.respond_to? :to_hash
|
427
|
+
value.to_hash
|
428
|
+
else
|
429
|
+
value
|
430
|
+
end
|
431
|
+
end
|
432
|
+
|
433
|
+
end
|
434
|
+
end
|