aspose_email_cloud 19.12.0 → 20.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aspose-email-cloud.rb +186 -1
- data/lib/aspose-email-cloud/api/email_api.rb +1186 -698
- data/lib/aspose-email-cloud/api_client.rb +385 -382
- data/lib/aspose-email-cloud/api_error.rb +41 -41
- data/lib/aspose-email-cloud/configuration.rb +240 -240
- data/lib/aspose-email-cloud/models/account_base_request.rb +263 -260
- data/lib/aspose-email-cloud/models/add_attachment_request.rb +226 -223
- data/lib/aspose-email-cloud/models/ai_bcr_base64_image.rb +231 -228
- data/lib/aspose-email-cloud/models/ai_bcr_base64_rq.rb +228 -225
- data/lib/aspose-email-cloud/models/ai_bcr_image.rb +218 -215
- data/lib/aspose-email-cloud/models/ai_bcr_image_storage_file.rb +231 -228
- data/lib/aspose-email-cloud/models/ai_bcr_ocr_data.rb +256 -253
- data/lib/aspose-email-cloud/models/ai_bcr_ocr_data_part.rb +300 -297
- data/lib/aspose-email-cloud/models/ai_bcr_options.rb +226 -223
- 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 -248
- data/lib/aspose-email-cloud/models/ai_bcr_rq.rb +213 -210
- data/lib/aspose-email-cloud/models/ai_bcr_storage_image_rq.rb +233 -230
- data/lib/aspose-email-cloud/models/ai_name_component.rb +267 -264
- data/lib/aspose-email-cloud/models/ai_name_cultural_context.rb +270 -267
- data/lib/aspose-email-cloud/models/ai_name_extracted.rb +233 -230
- data/lib/aspose-email-cloud/models/ai_name_extracted_component.rb +231 -228
- data/lib/aspose-email-cloud/models/ai_name_formatted.rb +226 -223
- data/lib/aspose-email-cloud/models/ai_name_gender_hypothesis.rb +236 -233
- data/lib/aspose-email-cloud/models/ai_name_match_result.rb +233 -230
- data/lib/aspose-email-cloud/models/ai_name_mismatch.rb +249 -246
- data/lib/aspose-email-cloud/models/ai_name_parsed_match_rq.rb +266 -263
- data/lib/aspose-email-cloud/models/ai_name_parsed_rq.rb +246 -243
- data/lib/aspose-email-cloud/models/ai_name_weighted.rb +231 -228
- data/lib/aspose-email-cloud/models/ai_name_weighted_variants.rb +228 -225
- data/lib/aspose-email-cloud/models/alternate_view.rb +282 -0
- data/lib/aspose-email-cloud/models/append_email_account_base_request.rb +318 -315
- data/lib/aspose-email-cloud/models/append_email_base_request.rb +336 -333
- data/lib/aspose-email-cloud/models/append_email_mime_base_request.rb +355 -352
- 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 -88
- data/lib/aspose-email-cloud/models/calendar_dto.rb +570 -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 +255 -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 +231 -228
- data/lib/aspose-email-cloud/models/create_folder_base_request.rb +313 -310
- data/lib/aspose-email-cloud/models/customer_event.rb +231 -0
- data/lib/aspose-email-cloud/models/daily_recurrence_pattern_dto.rb +296 -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 +318 -315
- data/lib/aspose-email-cloud/models/delete_message_base_request.rb +331 -315
- data/lib/aspose-email-cloud/models/disc_usage.rb +235 -233
- 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 +397 -394
- 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 +233 -230
- data/lib/aspose-email-cloud/models/email_document_response.rb +213 -210
- 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 +233 -230
- data/lib/aspose-email-cloud/models/email_property.rb +268 -265
- data/lib/aspose-email-cloud/models/email_property_response.rb +213 -210
- 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 +251 -249
- data/lib/aspose-email-cloud/models/error_details.rb +230 -228
- data/lib/aspose-email-cloud/models/file_version.rb +305 -303
- data/lib/aspose-email-cloud/models/file_versions.rb +214 -212
- data/lib/aspose-email-cloud/models/files_list.rb +214 -212
- data/lib/aspose-email-cloud/models/files_upload_result.rb +229 -227
- data/lib/aspose-email-cloud/models/hierarchical_object.rb +106 -103
- data/lib/aspose-email-cloud/models/hierarchical_object_request.rb +231 -228
- data/lib/aspose-email-cloud/models/hierarchical_object_response.rb +226 -223
- data/lib/aspose-email-cloud/models/indexed_hierarchical_object.rb +124 -121
- data/lib/aspose-email-cloud/models/indexed_primitive_object.rb +122 -119
- data/lib/aspose-email-cloud/models/instant_messenger_address.rb +244 -0
- data/lib/aspose-email-cloud/models/link.rb +252 -249
- 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 -211
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_component.rb +214 -211
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_extracted.rb +214 -211
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_gender_hypothesis.rb +214 -211
- 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 -211
- data/lib/aspose-email-cloud/models/list_response_of_hierarchical_object_response.rb +214 -211
- data/lib/aspose-email-cloud/models/list_response_of_mail_server_folder.rb +214 -211
- data/lib/aspose-email-cloud/models/list_response_of_storage_file_location.rb +214 -211
- 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 +214 -211
- data/lib/aspose-email-cloud/models/mail_address.rb +257 -0
- data/lib/aspose-email-cloud/models/mail_server_folder.rb +226 -223
- data/lib/aspose-email-cloud/models/mapi_attachment_dto.rb +226 -0
- data/lib/aspose-email-cloud/models/mapi_binary_property_dto.rb +250 -0
- data/lib/aspose-email-cloud/models/mapi_boolean_property_dto.rb +255 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_attendees_dto.rb +266 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_daily_recurrence_pattern_dto.rb +464 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_dto.rb +728 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_event_recurrence_dto.rb +293 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_exception_info_dto.rb +431 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_recurrence_pattern_dto.rb +449 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_time_zone_dto.rb +228 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_time_zone_info_dto.rb +313 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_time_zone_rule_dto.rb +362 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_weekly_recurrence_pattern_dto.rb +464 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_yearly_and_monthly_recurrence_pattern_dto.rb +500 -0
- data/lib/aspose-email-cloud/models/mapi_contact_dto.rb +569 -0
- data/lib/aspose-email-cloud/models/mapi_contact_electronic_address_dto.rb +283 -0
- data/lib/aspose-email-cloud/models/mapi_contact_electronic_address_property_set_dto.rb +327 -0
- data/lib/aspose-email-cloud/models/mapi_contact_event_property_set_dto.rb +236 -0
- data/lib/aspose-email-cloud/models/mapi_contact_name_property_set_dto.rb +335 -0
- data/lib/aspose-email-cloud/models/mapi_contact_other_property_set_dto.rb +319 -0
- data/lib/aspose-email-cloud/models/mapi_contact_personal_info_property_set_dto.rb +454 -0
- data/lib/aspose-email-cloud/models/mapi_contact_photo_dto.rb +255 -0
- data/lib/aspose-email-cloud/models/mapi_contact_physical_address_dto.rb +322 -0
- data/lib/aspose-email-cloud/models/mapi_contact_physical_address_property_set_dto.rb +239 -0
- data/lib/aspose-email-cloud/models/mapi_contact_professional_property_set_dto.rb +291 -0
- data/lib/aspose-email-cloud/models/mapi_contact_telephone_property_set_dto.rb +457 -0
- data/lib/aspose-email-cloud/models/mapi_date_time_property_dto.rb +255 -0
- data/lib/aspose-email-cloud/models/mapi_electronic_address_dto.rb +265 -0
- data/lib/aspose-email-cloud/models/mapi_file_as_property_dto.rb +255 -0
- data/lib/aspose-email-cloud/models/mapi_importance_property_dto.rb +255 -0
- data/lib/aspose-email-cloud/models/mapi_int_property_dto.rb +255 -0
- data/lib/aspose-email-cloud/models/mapi_known_property_descriptor.rb +237 -0
- data/lib/aspose-email-cloud/models/mapi_legacy_free_busy_property_dto.rb +255 -0
- data/lib/aspose-email-cloud/models/mapi_message_dto.rb +801 -0
- data/lib/aspose-email-cloud/models/mapi_message_item_base_dto.rb +452 -0
- data/lib/aspose-email-cloud/models/mapi_multi_int_property_dto.rb +252 -0
- data/lib/aspose-email-cloud/models/mapi_multi_string_property_dto.rb +252 -0
- data/lib/aspose-email-cloud/models/mapi_physical_address_index_property_dto.rb +255 -0
- data/lib/aspose-email-cloud/models/mapi_pid_lid_property_descriptor.rb +322 -0
- data/lib/aspose-email-cloud/models/mapi_pid_name_property_descriptor.rb +304 -0
- data/lib/aspose-email-cloud/models/mapi_pid_property_descriptor.rb +286 -0
- data/lib/aspose-email-cloud/models/mapi_pid_tag_property_descriptor.rb +322 -0
- data/lib/aspose-email-cloud/models/mapi_property_descriptor.rb +224 -0
- data/lib/aspose-email-cloud/models/mapi_property_dto.rb +237 -0
- data/lib/aspose-email-cloud/models/mapi_recipient_dto.rb +257 -0
- data/lib/aspose-email-cloud/models/mapi_response_type_property_dto.rb +255 -0
- data/lib/aspose-email-cloud/models/mapi_string_property_dto.rb +250 -0
- data/lib/aspose-email-cloud/models/mime_response.rb +213 -210
- data/lib/aspose-email-cloud/models/monthly_recurrence_pattern_dto.rb +350 -0
- 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 +235 -233
- 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 -101
- data/lib/aspose-email-cloud/models/recurrence_pattern_dto.rb +296 -0
- 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 -96
- 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 -75
- data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb +79 -75
- 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 -75
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_storage_request_data.rb +79 -75
- data/lib/aspose-email-cloud/models/requests/ai_name_complete_request_data.rb +110 -91
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_parsed_request_data.rb +79 -75
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_request_data.rb +110 -91
- data/lib/aspose-email-cloud/models/requests/ai_name_format_parsed_request_data.rb +79 -75
- data/lib/aspose-email-cloud/models/requests/ai_name_format_request_data.rb +116 -94
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_parsed_request_data.rb +79 -75
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_request_data.rb +110 -91
- data/lib/aspose-email-cloud/models/requests/ai_name_match_parsed_request_data.rb +79 -75
- data/lib/aspose-email-cloud/models/requests/ai_name_match_request_data.rb +121 -99
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_email_address_request_data.rb +110 -91
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_request_data.rb +110 -91
- 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_model_to_mapi_model_request_data.rb +79 -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_model_to_mapi_model_request_data.rb +79 -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_model_to_mapi_model_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/convert_email_request_data.rb +90 -0
- data/lib/aspose-email-cloud/models/requests/convert_mapi_calendar_model_to_calendar_model_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/convert_mapi_calendar_model_to_file_request_data.rb +89 -0
- data/lib/aspose-email-cloud/models/requests/convert_mapi_contact_model_to_contact_model_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/convert_mapi_contact_model_to_file_request_data.rb +89 -0
- data/lib/aspose-email-cloud/models/requests/convert_mapi_message_model_to_email_model_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/convert_mapi_message_model_to_file_request_data.rb +89 -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 -89
- 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 -103
- 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_mapi_model_request_data.rb +80 -0
- 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 -95
- data/lib/aspose-email-cloud/models/requests/get_contact_file_as_mapi_model_request_data.rb +90 -0
- 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 -87
- 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 -88
- 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_mapi_model_request_data.rb +90 -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_calendar_model_request_data.rb +91 -0
- data/lib/aspose-email-cloud/models/requests/get_mapi_contact_model_request_data.rb +101 -0
- data/lib/aspose-email-cloud/models/requests/get_mapi_list_request_data.rb +93 -80
- data/lib/aspose-email-cloud/models/requests/get_mapi_message_model_request_data.rb +101 -0
- 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/save_mapi_calendar_model_request_data.rb +99 -0
- data/lib/aspose-email-cloud/models/requests/save_mapi_contact_model_request_data.rb +99 -0
- data/lib/aspose-email-cloud/models/requests/save_mapi_message_model_request_data.rb +99 -0
- 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 -89
- 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 +434 -431
- data/lib/aspose-email-cloud/models/save_o_auth_email_account_request.rb +521 -505
- data/lib/aspose-email-cloud/models/send_email_base_request.rb +281 -278
- data/lib/aspose-email-cloud/models/send_email_mime_base_request.rb +300 -297
- data/lib/aspose-email-cloud/models/send_email_model_rq.rb +276 -0
- data/lib/aspose-email-cloud/models/set_email_property_request.rb +231 -228
- data/lib/aspose-email-cloud/models/set_message_read_flag_account_base_request.rb +318 -315
- data/lib/aspose-email-cloud/models/storage_exist.rb +217 -215
- data/lib/aspose-email-cloud/models/storage_file.rb +274 -272
- data/lib/aspose-email-cloud/models/storage_file_location.rb +263 -260
- 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 +226 -223
- 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/storage_model_rq_of_mapi_calendar_dto.rb +225 -0
- data/lib/aspose-email-cloud/models/storage_model_rq_of_mapi_contact_dto.rb +225 -0
- data/lib/aspose-email-cloud/models/storage_model_rq_of_mapi_message_dto.rb +225 -0
- data/lib/aspose-email-cloud/models/task_regenerating_pattern_dto.rb +314 -0
- data/lib/aspose-email-cloud/models/url.rb +244 -0
- data/lib/aspose-email-cloud/models/value_response.rb +213 -210
- data/lib/aspose-email-cloud/models/value_t_of_boolean.rb +217 -0
- data/lib/aspose-email-cloud/models/weekly_recurrence_pattern_dto.rb +311 -0
- data/lib/aspose-email-cloud/models/yearly_recurrence_pattern_dto.rb +368 -0
- data/lib/aspose-email-cloud/version.rb +15 -15
- metadata +237 -52
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82dd62b7db78d2e56e3d124d244465278350c6dd7539170b6b5d4033949ec556
|
4
|
+
data.tar.gz: 597cd19181b9d924cf6f33a911d6c7c97d75853d45217e96769d818d0887bf5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b522e4e69530f1425be315fd0b205bb983aca5d62a041165b78e3290d63fd3703c2708ac45ec963e878c502060532eead2e2ae71f85e98b08b99fdeb5d3eb2d
|
7
|
+
data.tar.gz: e871221e4bf1b6a8e7779881830f98bd962d5b73170d3fb21245b2f5dc7519e506eddf6837c3c0bac8c335196a8fa3cf9411b7e8c84a0ddf979fc10cee2637fb
|
data/lib/aspose-email-cloud.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="aspose-email-cloud.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -49,15 +49,40 @@ require_relative './aspose-email-cloud/models/ai_name_mismatch'
|
|
49
49
|
require_relative './aspose-email-cloud/models/ai_name_parsed_rq'
|
50
50
|
require_relative './aspose-email-cloud/models/ai_name_weighted'
|
51
51
|
require_relative './aspose-email-cloud/models/ai_name_weighted_variants'
|
52
|
+
require_relative './aspose-email-cloud/models/associated_person'
|
53
|
+
require_relative './aspose-email-cloud/models/attachment_base'
|
52
54
|
require_relative './aspose-email-cloud/models/base_object'
|
55
|
+
require_relative './aspose-email-cloud/models/calendar_dto'
|
56
|
+
require_relative './aspose-email-cloud/models/calendar_dto_alternate_rq'
|
57
|
+
require_relative './aspose-email-cloud/models/calendar_reminder'
|
58
|
+
require_relative './aspose-email-cloud/models/contact_dto'
|
59
|
+
require_relative './aspose-email-cloud/models/contact_photo'
|
60
|
+
require_relative './aspose-email-cloud/models/content_type'
|
61
|
+
require_relative './aspose-email-cloud/models/content_type_parameter'
|
53
62
|
require_relative './aspose-email-cloud/models/create_email_request'
|
63
|
+
require_relative './aspose-email-cloud/models/customer_event'
|
54
64
|
require_relative './aspose-email-cloud/models/disc_usage'
|
65
|
+
require_relative './aspose-email-cloud/models/discover_email_config_rq'
|
66
|
+
require_relative './aspose-email-cloud/models/email_account_config'
|
55
67
|
require_relative './aspose-email-cloud/models/email_account_request'
|
68
|
+
require_relative './aspose-email-cloud/models/email_address'
|
69
|
+
require_relative './aspose-email-cloud/models/email_client_account'
|
70
|
+
require_relative './aspose-email-cloud/models/email_client_account_credentials'
|
71
|
+
require_relative './aspose-email-cloud/models/email_client_multi_account'
|
56
72
|
require_relative './aspose-email-cloud/models/email_document'
|
57
73
|
require_relative './aspose-email-cloud/models/email_document_response'
|
74
|
+
require_relative './aspose-email-cloud/models/email_dto'
|
58
75
|
require_relative './aspose-email-cloud/models/email_properties'
|
59
76
|
require_relative './aspose-email-cloud/models/email_property'
|
60
77
|
require_relative './aspose-email-cloud/models/email_property_response'
|
78
|
+
require_relative './aspose-email-cloud/models/email_thread'
|
79
|
+
require_relative './aspose-email-cloud/models/enum_with_custom_of_associated_person_category'
|
80
|
+
require_relative './aspose-email-cloud/models/enum_with_custom_of_email_address_category'
|
81
|
+
require_relative './aspose-email-cloud/models/enum_with_custom_of_event_category'
|
82
|
+
require_relative './aspose-email-cloud/models/enum_with_custom_of_instant_messenger_category'
|
83
|
+
require_relative './aspose-email-cloud/models/enum_with_custom_of_phone_number_category'
|
84
|
+
require_relative './aspose-email-cloud/models/enum_with_custom_of_postal_address_category'
|
85
|
+
require_relative './aspose-email-cloud/models/enum_with_custom_of_url_category'
|
61
86
|
require_relative './aspose-email-cloud/models/error'
|
62
87
|
require_relative './aspose-email-cloud/models/error_details'
|
63
88
|
require_relative './aspose-email-cloud/models/file_versions'
|
@@ -65,47 +90,146 @@ require_relative './aspose-email-cloud/models/files_list'
|
|
65
90
|
require_relative './aspose-email-cloud/models/files_upload_result'
|
66
91
|
require_relative './aspose-email-cloud/models/hierarchical_object_request'
|
67
92
|
require_relative './aspose-email-cloud/models/hierarchical_object_response'
|
93
|
+
require_relative './aspose-email-cloud/models/instant_messenger_address'
|
68
94
|
require_relative './aspose-email-cloud/models/link'
|
69
95
|
require_relative './aspose-email-cloud/models/list_response_of_ai_bcr_ocr_data'
|
70
96
|
require_relative './aspose-email-cloud/models/list_response_of_ai_name_component'
|
71
97
|
require_relative './aspose-email-cloud/models/list_response_of_ai_name_extracted'
|
72
98
|
require_relative './aspose-email-cloud/models/list_response_of_ai_name_gender_hypothesis'
|
99
|
+
require_relative './aspose-email-cloud/models/list_response_of_contact_dto'
|
100
|
+
require_relative './aspose-email-cloud/models/list_response_of_email_account_config'
|
101
|
+
require_relative './aspose-email-cloud/models/list_response_of_email_dto'
|
102
|
+
require_relative './aspose-email-cloud/models/list_response_of_email_thread'
|
73
103
|
require_relative './aspose-email-cloud/models/list_response_of_hierarchical_object'
|
74
104
|
require_relative './aspose-email-cloud/models/list_response_of_hierarchical_object_response'
|
75
105
|
require_relative './aspose-email-cloud/models/list_response_of_mail_server_folder'
|
76
106
|
require_relative './aspose-email-cloud/models/list_response_of_storage_file_location'
|
107
|
+
require_relative './aspose-email-cloud/models/list_response_of_storage_model_of_calendar_dto'
|
108
|
+
require_relative './aspose-email-cloud/models/list_response_of_storage_model_of_contact_dto'
|
109
|
+
require_relative './aspose-email-cloud/models/list_response_of_storage_model_of_email_dto'
|
77
110
|
require_relative './aspose-email-cloud/models/list_response_of_string'
|
111
|
+
require_relative './aspose-email-cloud/models/mail_address'
|
78
112
|
require_relative './aspose-email-cloud/models/mail_server_folder'
|
113
|
+
require_relative './aspose-email-cloud/models/mapi_attachment_dto'
|
114
|
+
require_relative './aspose-email-cloud/models/mapi_calendar_attendees_dto'
|
115
|
+
require_relative './aspose-email-cloud/models/mapi_calendar_event_recurrence_dto'
|
116
|
+
require_relative './aspose-email-cloud/models/mapi_calendar_exception_info_dto'
|
117
|
+
require_relative './aspose-email-cloud/models/mapi_calendar_recurrence_pattern_dto'
|
118
|
+
require_relative './aspose-email-cloud/models/mapi_calendar_time_zone_dto'
|
119
|
+
require_relative './aspose-email-cloud/models/mapi_calendar_time_zone_info_dto'
|
120
|
+
require_relative './aspose-email-cloud/models/mapi_calendar_time_zone_rule_dto'
|
121
|
+
require_relative './aspose-email-cloud/models/mapi_contact_electronic_address_dto'
|
122
|
+
require_relative './aspose-email-cloud/models/mapi_contact_electronic_address_property_set_dto'
|
123
|
+
require_relative './aspose-email-cloud/models/mapi_contact_event_property_set_dto'
|
124
|
+
require_relative './aspose-email-cloud/models/mapi_contact_name_property_set_dto'
|
125
|
+
require_relative './aspose-email-cloud/models/mapi_contact_other_property_set_dto'
|
126
|
+
require_relative './aspose-email-cloud/models/mapi_contact_personal_info_property_set_dto'
|
127
|
+
require_relative './aspose-email-cloud/models/mapi_contact_physical_address_dto'
|
128
|
+
require_relative './aspose-email-cloud/models/mapi_contact_physical_address_property_set_dto'
|
129
|
+
require_relative './aspose-email-cloud/models/mapi_contact_professional_property_set_dto'
|
130
|
+
require_relative './aspose-email-cloud/models/mapi_contact_telephone_property_set_dto'
|
131
|
+
require_relative './aspose-email-cloud/models/mapi_electronic_address_dto'
|
132
|
+
require_relative './aspose-email-cloud/models/mapi_message_item_base_dto'
|
133
|
+
require_relative './aspose-email-cloud/models/mapi_property_descriptor'
|
134
|
+
require_relative './aspose-email-cloud/models/mapi_property_dto'
|
135
|
+
require_relative './aspose-email-cloud/models/mapi_recipient_dto'
|
79
136
|
require_relative './aspose-email-cloud/models/mime_response'
|
137
|
+
require_relative './aspose-email-cloud/models/name_value_pair'
|
80
138
|
require_relative './aspose-email-cloud/models/object_exist'
|
139
|
+
require_relative './aspose-email-cloud/models/phone_number'
|
140
|
+
require_relative './aspose-email-cloud/models/postal_address'
|
141
|
+
require_relative './aspose-email-cloud/models/recurrence_pattern_dto'
|
142
|
+
require_relative './aspose-email-cloud/models/reminder_attendee'
|
143
|
+
require_relative './aspose-email-cloud/models/reminder_trigger'
|
81
144
|
require_relative './aspose-email-cloud/models/set_email_property_request'
|
82
145
|
require_relative './aspose-email-cloud/models/storage_exist'
|
83
146
|
require_relative './aspose-email-cloud/models/storage_file'
|
147
|
+
require_relative './aspose-email-cloud/models/storage_file_rq_of_email_client_account'
|
148
|
+
require_relative './aspose-email-cloud/models/storage_file_rq_of_email_client_multi_account'
|
84
149
|
require_relative './aspose-email-cloud/models/storage_folder_location'
|
150
|
+
require_relative './aspose-email-cloud/models/storage_model_of_calendar_dto'
|
151
|
+
require_relative './aspose-email-cloud/models/storage_model_of_contact_dto'
|
152
|
+
require_relative './aspose-email-cloud/models/storage_model_of_email_dto'
|
153
|
+
require_relative './aspose-email-cloud/models/storage_model_rq_of_calendar_dto'
|
154
|
+
require_relative './aspose-email-cloud/models/storage_model_rq_of_contact_dto'
|
155
|
+
require_relative './aspose-email-cloud/models/storage_model_rq_of_email_dto'
|
156
|
+
require_relative './aspose-email-cloud/models/storage_model_rq_of_mapi_calendar_dto'
|
157
|
+
require_relative './aspose-email-cloud/models/storage_model_rq_of_mapi_contact_dto'
|
158
|
+
require_relative './aspose-email-cloud/models/storage_model_rq_of_mapi_message_dto'
|
159
|
+
require_relative './aspose-email-cloud/models/url'
|
85
160
|
require_relative './aspose-email-cloud/models/value_response'
|
161
|
+
require_relative './aspose-email-cloud/models/value_t_of_boolean'
|
86
162
|
require_relative './aspose-email-cloud/models/ai_bcr_base64_image'
|
87
163
|
require_relative './aspose-email-cloud/models/ai_bcr_base64_rq'
|
88
164
|
require_relative './aspose-email-cloud/models/ai_bcr_image_storage_file'
|
165
|
+
require_relative './aspose-email-cloud/models/ai_bcr_parse_ocr_data_rq'
|
89
166
|
require_relative './aspose-email-cloud/models/ai_bcr_storage_image_rq'
|
90
167
|
require_relative './aspose-email-cloud/models/ai_name_parsed_match_rq'
|
168
|
+
require_relative './aspose-email-cloud/models/alternate_view'
|
91
169
|
require_relative './aspose-email-cloud/models/append_email_account_base_request'
|
170
|
+
require_relative './aspose-email-cloud/models/attachment'
|
171
|
+
require_relative './aspose-email-cloud/models/calendar_dto_list'
|
172
|
+
require_relative './aspose-email-cloud/models/contact_dto_list'
|
92
173
|
require_relative './aspose-email-cloud/models/create_folder_base_request'
|
174
|
+
require_relative './aspose-email-cloud/models/daily_recurrence_pattern_dto'
|
175
|
+
require_relative './aspose-email-cloud/models/delete_email_thread_account_rq'
|
93
176
|
require_relative './aspose-email-cloud/models/delete_folder_base_request'
|
94
177
|
require_relative './aspose-email-cloud/models/delete_message_base_request'
|
178
|
+
require_relative './aspose-email-cloud/models/discover_email_config_oauth'
|
179
|
+
require_relative './aspose-email-cloud/models/discover_email_config_password'
|
180
|
+
require_relative './aspose-email-cloud/models/email_account_config_list'
|
181
|
+
require_relative './aspose-email-cloud/models/email_client_account_oauth_credentials'
|
182
|
+
require_relative './aspose-email-cloud/models/email_client_account_password_credentials'
|
183
|
+
require_relative './aspose-email-cloud/models/email_dto_list'
|
184
|
+
require_relative './aspose-email-cloud/models/email_thread_list'
|
185
|
+
require_relative './aspose-email-cloud/models/email_thread_read_flag_rq'
|
95
186
|
require_relative './aspose-email-cloud/models/file_version'
|
96
187
|
require_relative './aspose-email-cloud/models/hierarchical_object'
|
97
188
|
require_relative './aspose-email-cloud/models/indexed_hierarchical_object'
|
98
189
|
require_relative './aspose-email-cloud/models/indexed_primitive_object'
|
190
|
+
require_relative './aspose-email-cloud/models/linked_resource'
|
191
|
+
require_relative './aspose-email-cloud/models/mapi_binary_property_dto'
|
192
|
+
require_relative './aspose-email-cloud/models/mapi_boolean_property_dto'
|
193
|
+
require_relative './aspose-email-cloud/models/mapi_calendar_daily_recurrence_pattern_dto'
|
194
|
+
require_relative './aspose-email-cloud/models/mapi_calendar_dto'
|
195
|
+
require_relative './aspose-email-cloud/models/mapi_calendar_weekly_recurrence_pattern_dto'
|
196
|
+
require_relative './aspose-email-cloud/models/mapi_calendar_yearly_and_monthly_recurrence_pattern_dto'
|
197
|
+
require_relative './aspose-email-cloud/models/mapi_contact_dto'
|
198
|
+
require_relative './aspose-email-cloud/models/mapi_contact_photo_dto'
|
199
|
+
require_relative './aspose-email-cloud/models/mapi_date_time_property_dto'
|
200
|
+
require_relative './aspose-email-cloud/models/mapi_file_as_property_dto'
|
201
|
+
require_relative './aspose-email-cloud/models/mapi_importance_property_dto'
|
202
|
+
require_relative './aspose-email-cloud/models/mapi_int_property_dto'
|
203
|
+
require_relative './aspose-email-cloud/models/mapi_known_property_descriptor'
|
204
|
+
require_relative './aspose-email-cloud/models/mapi_legacy_free_busy_property_dto'
|
205
|
+
require_relative './aspose-email-cloud/models/mapi_message_dto'
|
206
|
+
require_relative './aspose-email-cloud/models/mapi_multi_int_property_dto'
|
207
|
+
require_relative './aspose-email-cloud/models/mapi_multi_string_property_dto'
|
208
|
+
require_relative './aspose-email-cloud/models/mapi_physical_address_index_property_dto'
|
209
|
+
require_relative './aspose-email-cloud/models/mapi_pid_property_descriptor'
|
210
|
+
require_relative './aspose-email-cloud/models/mapi_response_type_property_dto'
|
211
|
+
require_relative './aspose-email-cloud/models/mapi_string_property_dto'
|
212
|
+
require_relative './aspose-email-cloud/models/monthly_recurrence_pattern_dto'
|
213
|
+
require_relative './aspose-email-cloud/models/move_email_message_rq'
|
214
|
+
require_relative './aspose-email-cloud/models/move_email_thread_rq'
|
99
215
|
require_relative './aspose-email-cloud/models/primitive_object'
|
100
216
|
require_relative './aspose-email-cloud/models/save_email_account_request'
|
101
217
|
require_relative './aspose-email-cloud/models/save_o_auth_email_account_request'
|
102
218
|
require_relative './aspose-email-cloud/models/send_email_base_request'
|
103
219
|
require_relative './aspose-email-cloud/models/send_email_mime_base_request'
|
220
|
+
require_relative './aspose-email-cloud/models/send_email_model_rq'
|
104
221
|
require_relative './aspose-email-cloud/models/set_message_read_flag_account_base_request'
|
105
222
|
require_relative './aspose-email-cloud/models/storage_file_location'
|
223
|
+
require_relative './aspose-email-cloud/models/task_regenerating_pattern_dto'
|
224
|
+
require_relative './aspose-email-cloud/models/weekly_recurrence_pattern_dto'
|
225
|
+
require_relative './aspose-email-cloud/models/yearly_recurrence_pattern_dto'
|
106
226
|
require_relative './aspose-email-cloud/models/ai_bcr_parse_storage_rq'
|
107
227
|
require_relative './aspose-email-cloud/models/append_email_base_request'
|
108
228
|
require_relative './aspose-email-cloud/models/append_email_mime_base_request'
|
229
|
+
require_relative './aspose-email-cloud/models/append_email_model_rq'
|
230
|
+
require_relative './aspose-email-cloud/models/mapi_pid_lid_property_descriptor'
|
231
|
+
require_relative './aspose-email-cloud/models/mapi_pid_name_property_descriptor'
|
232
|
+
require_relative './aspose-email-cloud/models/mapi_pid_tag_property_descriptor'
|
109
233
|
|
110
234
|
# APIs
|
111
235
|
require_relative 'aspose-email-cloud/api/email_api'
|
@@ -118,6 +242,8 @@ require_relative './aspose-email-cloud/models/requests/add_email_attachment_requ
|
|
118
242
|
require_relative './aspose-email-cloud/models/requests/add_mapi_attachment_request_data.rb'
|
119
243
|
require_relative './aspose-email-cloud/models/requests/ai_bcr_ocr_request_data.rb'
|
120
244
|
require_relative './aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb'
|
245
|
+
require_relative './aspose-email-cloud/models/requests/ai_bcr_parse_model_request_data.rb'
|
246
|
+
require_relative './aspose-email-cloud/models/requests/ai_bcr_parse_ocr_data_model_request_data.rb'
|
121
247
|
require_relative './aspose-email-cloud/models/requests/ai_bcr_parse_request_data.rb'
|
122
248
|
require_relative './aspose-email-cloud/models/requests/ai_bcr_parse_storage_request_data.rb'
|
123
249
|
require_relative './aspose-email-cloud/models/requests/ai_name_complete_request_data.rb'
|
@@ -132,7 +258,24 @@ require_relative './aspose-email-cloud/models/requests/ai_name_match_request_dat
|
|
132
258
|
require_relative './aspose-email-cloud/models/requests/ai_name_parse_email_address_request_data.rb'
|
133
259
|
require_relative './aspose-email-cloud/models/requests/ai_name_parse_request_data.rb'
|
134
260
|
require_relative './aspose-email-cloud/models/requests/append_email_message_request_data.rb'
|
261
|
+
require_relative './aspose-email-cloud/models/requests/append_email_model_message_request_data.rb'
|
135
262
|
require_relative './aspose-email-cloud/models/requests/append_mime_message_request_data.rb'
|
263
|
+
require_relative './aspose-email-cloud/models/requests/convert_calendar_model_to_alternate_request_data.rb'
|
264
|
+
require_relative './aspose-email-cloud/models/requests/convert_calendar_model_to_file_request_data.rb'
|
265
|
+
require_relative './aspose-email-cloud/models/requests/convert_calendar_model_to_mapi_model_request_data.rb'
|
266
|
+
require_relative './aspose-email-cloud/models/requests/convert_calendar_request_data.rb'
|
267
|
+
require_relative './aspose-email-cloud/models/requests/convert_contact_model_to_file_request_data.rb'
|
268
|
+
require_relative './aspose-email-cloud/models/requests/convert_contact_model_to_mapi_model_request_data.rb'
|
269
|
+
require_relative './aspose-email-cloud/models/requests/convert_contact_request_data.rb'
|
270
|
+
require_relative './aspose-email-cloud/models/requests/convert_email_model_to_file_request_data.rb'
|
271
|
+
require_relative './aspose-email-cloud/models/requests/convert_email_model_to_mapi_model_request_data.rb'
|
272
|
+
require_relative './aspose-email-cloud/models/requests/convert_email_request_data.rb'
|
273
|
+
require_relative './aspose-email-cloud/models/requests/convert_mapi_calendar_model_to_calendar_model_request_data.rb'
|
274
|
+
require_relative './aspose-email-cloud/models/requests/convert_mapi_calendar_model_to_file_request_data.rb'
|
275
|
+
require_relative './aspose-email-cloud/models/requests/convert_mapi_contact_model_to_contact_model_request_data.rb'
|
276
|
+
require_relative './aspose-email-cloud/models/requests/convert_mapi_contact_model_to_file_request_data.rb'
|
277
|
+
require_relative './aspose-email-cloud/models/requests/convert_mapi_message_model_to_email_model_request_data.rb'
|
278
|
+
require_relative './aspose-email-cloud/models/requests/convert_mapi_message_model_to_file_request_data.rb'
|
136
279
|
require_relative './aspose-email-cloud/models/requests/copy_file_request_data.rb'
|
137
280
|
require_relative './aspose-email-cloud/models/requests/copy_folder_request_data.rb'
|
138
281
|
require_relative './aspose-email-cloud/models/requests/create_calendar_request_data.rb'
|
@@ -145,41 +288,83 @@ require_relative './aspose-email-cloud/models/requests/delete_calendar_property_
|
|
145
288
|
require_relative './aspose-email-cloud/models/requests/delete_contact_property_request_data.rb'
|
146
289
|
require_relative './aspose-email-cloud/models/requests/delete_email_folder_request_data.rb'
|
147
290
|
require_relative './aspose-email-cloud/models/requests/delete_email_message_request_data.rb'
|
291
|
+
require_relative './aspose-email-cloud/models/requests/delete_email_thread_request_data.rb'
|
148
292
|
require_relative './aspose-email-cloud/models/requests/delete_file_request_data.rb'
|
149
293
|
require_relative './aspose-email-cloud/models/requests/delete_folder_request_data.rb'
|
150
294
|
require_relative './aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb'
|
151
295
|
require_relative './aspose-email-cloud/models/requests/delete_mapi_properties_request_data.rb'
|
296
|
+
require_relative './aspose-email-cloud/models/requests/discover_email_config_oauth_request_data.rb'
|
297
|
+
require_relative './aspose-email-cloud/models/requests/discover_email_config_password_request_data.rb'
|
298
|
+
require_relative './aspose-email-cloud/models/requests/discover_email_config_request_data.rb'
|
152
299
|
require_relative './aspose-email-cloud/models/requests/download_file_request_data.rb'
|
153
300
|
require_relative './aspose-email-cloud/models/requests/email_request.rb'
|
154
301
|
require_relative './aspose-email-cloud/models/requests/fetch_email_message_request_data.rb'
|
302
|
+
require_relative './aspose-email-cloud/models/requests/fetch_email_model_request_data.rb'
|
303
|
+
require_relative './aspose-email-cloud/models/requests/fetch_email_thread_messages_request_data.rb'
|
304
|
+
require_relative './aspose-email-cloud/models/requests/get_calendar_as_file_request_data.rb'
|
155
305
|
require_relative './aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb'
|
306
|
+
require_relative './aspose-email-cloud/models/requests/get_calendar_file_as_mapi_model_request_data.rb'
|
307
|
+
require_relative './aspose-email-cloud/models/requests/get_calendar_file_as_model_request_data.rb'
|
156
308
|
require_relative './aspose-email-cloud/models/requests/get_calendar_list_request_data.rb'
|
309
|
+
require_relative './aspose-email-cloud/models/requests/get_calendar_model_as_alternate_request_data.rb'
|
310
|
+
require_relative './aspose-email-cloud/models/requests/get_calendar_model_list_request_data.rb'
|
311
|
+
require_relative './aspose-email-cloud/models/requests/get_calendar_model_request_data.rb'
|
157
312
|
require_relative './aspose-email-cloud/models/requests/get_calendar_request_data.rb'
|
313
|
+
require_relative './aspose-email-cloud/models/requests/get_contact_as_file_request_data.rb'
|
158
314
|
require_relative './aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb'
|
315
|
+
require_relative './aspose-email-cloud/models/requests/get_contact_file_as_mapi_model_request_data.rb'
|
316
|
+
require_relative './aspose-email-cloud/models/requests/get_contact_file_as_model_request_data.rb'
|
159
317
|
require_relative './aspose-email-cloud/models/requests/get_contact_list_request_data.rb'
|
318
|
+
require_relative './aspose-email-cloud/models/requests/get_contact_model_list_request_data.rb'
|
319
|
+
require_relative './aspose-email-cloud/models/requests/get_contact_model_request_data.rb'
|
160
320
|
require_relative './aspose-email-cloud/models/requests/get_contact_properties_request_data.rb'
|
161
321
|
require_relative './aspose-email-cloud/models/requests/get_disc_usage_request_data.rb'
|
322
|
+
require_relative './aspose-email-cloud/models/requests/get_email_as_file_request_data.rb'
|
162
323
|
require_relative './aspose-email-cloud/models/requests/get_email_attachment_request_data.rb'
|
324
|
+
require_relative './aspose-email-cloud/models/requests/get_email_client_account_request_data.rb'
|
325
|
+
require_relative './aspose-email-cloud/models/requests/get_email_client_multi_account_request_data.rb'
|
326
|
+
require_relative './aspose-email-cloud/models/requests/get_email_file_as_mapi_model_request_data.rb'
|
327
|
+
require_relative './aspose-email-cloud/models/requests/get_email_file_as_model_request_data.rb'
|
328
|
+
require_relative './aspose-email-cloud/models/requests/get_email_model_list_request_data.rb'
|
329
|
+
require_relative './aspose-email-cloud/models/requests/get_email_model_request_data.rb'
|
163
330
|
require_relative './aspose-email-cloud/models/requests/get_email_property_request_data.rb'
|
164
331
|
require_relative './aspose-email-cloud/models/requests/get_email_request_data.rb'
|
165
332
|
require_relative './aspose-email-cloud/models/requests/get_files_list_request_data.rb'
|
166
333
|
require_relative './aspose-email-cloud/models/requests/get_file_versions_request_data.rb'
|
167
334
|
require_relative './aspose-email-cloud/models/requests/get_mapi_attachments_request_data.rb'
|
168
335
|
require_relative './aspose-email-cloud/models/requests/get_mapi_attachment_request_data.rb'
|
336
|
+
require_relative './aspose-email-cloud/models/requests/get_mapi_calendar_model_request_data.rb'
|
337
|
+
require_relative './aspose-email-cloud/models/requests/get_mapi_contact_model_request_data.rb'
|
169
338
|
require_relative './aspose-email-cloud/models/requests/get_mapi_list_request_data.rb'
|
339
|
+
require_relative './aspose-email-cloud/models/requests/get_mapi_message_model_request_data.rb'
|
170
340
|
require_relative './aspose-email-cloud/models/requests/get_mapi_properties_request_data.rb'
|
171
341
|
require_relative './aspose-email-cloud/models/requests/http_request.rb'
|
342
|
+
require_relative './aspose-email-cloud/models/requests/is_email_address_disposable_request_data.rb'
|
172
343
|
require_relative './aspose-email-cloud/models/requests/list_email_folders_request_data.rb'
|
173
344
|
require_relative './aspose-email-cloud/models/requests/list_email_messages_request_data.rb'
|
345
|
+
require_relative './aspose-email-cloud/models/requests/list_email_models_request_data.rb'
|
346
|
+
require_relative './aspose-email-cloud/models/requests/list_email_threads_request_data.rb'
|
347
|
+
require_relative './aspose-email-cloud/models/requests/move_email_message_request_data.rb'
|
348
|
+
require_relative './aspose-email-cloud/models/requests/move_email_thread_request_data.rb'
|
174
349
|
require_relative './aspose-email-cloud/models/requests/move_file_request_data.rb'
|
175
350
|
require_relative './aspose-email-cloud/models/requests/move_folder_request_data.rb'
|
176
351
|
require_relative './aspose-email-cloud/models/requests/object_exists_request_data.rb'
|
352
|
+
require_relative './aspose-email-cloud/models/requests/save_calendar_model_request_data.rb'
|
353
|
+
require_relative './aspose-email-cloud/models/requests/save_contact_model_request_data.rb'
|
354
|
+
require_relative './aspose-email-cloud/models/requests/save_email_client_account_request_data.rb'
|
355
|
+
require_relative './aspose-email-cloud/models/requests/save_email_client_multi_account_request_data.rb'
|
356
|
+
require_relative './aspose-email-cloud/models/requests/save_email_model_request_data.rb'
|
177
357
|
require_relative './aspose-email-cloud/models/requests/save_mail_account_request_data.rb'
|
178
358
|
require_relative './aspose-email-cloud/models/requests/save_mail_o_auth_account_request_data.rb'
|
359
|
+
require_relative './aspose-email-cloud/models/requests/save_mapi_calendar_model_request_data.rb'
|
360
|
+
require_relative './aspose-email-cloud/models/requests/save_mapi_contact_model_request_data.rb'
|
361
|
+
require_relative './aspose-email-cloud/models/requests/save_mapi_message_model_request_data.rb'
|
179
362
|
require_relative './aspose-email-cloud/models/requests/send_email_mime_request_data.rb'
|
363
|
+
require_relative './aspose-email-cloud/models/requests/send_email_model_request_data.rb'
|
180
364
|
require_relative './aspose-email-cloud/models/requests/send_email_request_data.rb'
|
181
365
|
require_relative './aspose-email-cloud/models/requests/set_email_property_request_data.rb'
|
182
366
|
require_relative './aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb'
|
367
|
+
require_relative './aspose-email-cloud/models/requests/set_email_thread_read_flag_request_data.rb'
|
183
368
|
require_relative './aspose-email-cloud/models/requests/storage_exists_request_data.rb'
|
184
369
|
require_relative './aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb'
|
185
370
|
require_relative './aspose-email-cloud/models/requests/update_contact_properties_request_data.rb'
|
@@ -1,698 +1,1186 @@
|
|
1
|
-
|
2
|
-
# ----------------------------------------------------------------------------
|
3
|
-
# <copyright company="Aspose" file="email_api.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 'uri'
|
29
|
-
|
30
|
-
module AsposeEmailCloud
|
31
|
-
# Aspose.Email Cloud API
|
32
|
-
class EmailApi
|
33
|
-
attr_accessor :api_client
|
34
|
-
|
35
|
-
# Initializes a new instance of the EmailApi class.
|
36
|
-
# @param [String] app_key Key to access the server.
|
37
|
-
# @param [String] app_sid ID to access the server.
|
38
|
-
# @param [String] base_url Server URL.
|
39
|
-
# @param [String] api_version Api version.
|
40
|
-
# @param [Object] debug Debug switch [true, false].
|
41
|
-
def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v3.0', debug = false)
|
42
|
-
@api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
|
43
|
-
end
|
44
|
-
|
45
|
-
# Adds an attachment to iCalendar file
|
46
|
-
# @param [AddCalendarAttachmentRequestData] request Request object.
|
47
|
-
# @return [nil]
|
48
|
-
def add_calendar_attachment(request)
|
49
|
-
http_request = request.to_http_info(@api_client)
|
50
|
-
make_request(http_request, :PUT, nil)
|
51
|
-
nil
|
52
|
-
end
|
53
|
-
|
54
|
-
# Add attachment to contact document
|
55
|
-
# @param [AddContactAttachmentRequestData] request Request object.
|
56
|
-
# @return [nil]
|
57
|
-
def add_contact_attachment(request)
|
58
|
-
http_request = request.to_http_info(@api_client)
|
59
|
-
make_request(http_request, :PUT, nil)
|
60
|
-
nil
|
61
|
-
end
|
62
|
-
|
63
|
-
# Adds an attachment to Email document
|
64
|
-
# @param [AddEmailAttachmentRequestData] request Request object.
|
65
|
-
# @return [EmailDocumentResponse]
|
66
|
-
def add_email_attachment(request)
|
67
|
-
http_request = request.to_http_info(@api_client)
|
68
|
-
make_request(http_request, :POST, 'EmailDocumentResponse')
|
69
|
-
end
|
70
|
-
|
71
|
-
# Add attachment to document
|
72
|
-
# @param [AddMapiAttachmentRequestData] request Request object.
|
73
|
-
# @return [nil]
|
74
|
-
def add_mapi_attachment(request)
|
75
|
-
http_request = request.to_http_info(@api_client)
|
76
|
-
make_request(http_request, :PUT, nil)
|
77
|
-
nil
|
78
|
-
end
|
79
|
-
|
80
|
-
# Ocr images
|
81
|
-
# @param [AiBcrOcrRequestData] request Request object.
|
82
|
-
# @return [ListResponseOfAiBcrOcrData]
|
83
|
-
def ai_bcr_ocr(request)
|
84
|
-
http_request = request.to_http_info(@api_client)
|
85
|
-
make_request(http_request, :POST, 'ListResponseOfAiBcrOcrData')
|
86
|
-
end
|
87
|
-
|
88
|
-
# Ocr images from storage
|
89
|
-
# @param [AiBcrOcrStorageRequestData] request Request object.
|
90
|
-
# @return [ListResponseOfAiBcrOcrData]
|
91
|
-
def ai_bcr_ocr_storage(request)
|
92
|
-
http_request = request.to_http_info(@api_client)
|
93
|
-
make_request(http_request, :POST, 'ListResponseOfAiBcrOcrData')
|
94
|
-
end
|
95
|
-
|
96
|
-
# Parse images to vCard properties
|
97
|
-
# @param [AiBcrParseRequestData] request Request object.
|
98
|
-
# @return [ListResponseOfHierarchicalObject]
|
99
|
-
def ai_bcr_parse(request)
|
100
|
-
http_request = request.to_http_info(@api_client)
|
101
|
-
make_request(http_request, :POST, 'ListResponseOfHierarchicalObject')
|
102
|
-
end
|
103
|
-
|
104
|
-
# Parse images
|
105
|
-
# @param [
|
106
|
-
# @return [
|
107
|
-
def
|
108
|
-
http_request = request.to_http_info(@api_client)
|
109
|
-
make_request(http_request, :POST, '
|
110
|
-
end
|
111
|
-
|
112
|
-
#
|
113
|
-
# @param [
|
114
|
-
# @return [
|
115
|
-
def
|
116
|
-
http_request = request.to_http_info(@api_client)
|
117
|
-
make_request(http_request, :
|
118
|
-
end
|
119
|
-
|
120
|
-
#
|
121
|
-
# @param [
|
122
|
-
# @return [
|
123
|
-
def
|
124
|
-
http_request = request.to_http_info(@api_client)
|
125
|
-
make_request(http_request, :
|
126
|
-
end
|
127
|
-
|
128
|
-
#
|
129
|
-
# @param [
|
130
|
-
# @return [AiNameWeightedVariants]
|
131
|
-
def
|
132
|
-
http_request = request.to_http_info(@api_client)
|
133
|
-
make_request(http_request, :
|
134
|
-
end
|
135
|
-
|
136
|
-
#
|
137
|
-
# @param [
|
138
|
-
# @return [
|
139
|
-
def
|
140
|
-
http_request = request.to_http_info(@api_client)
|
141
|
-
make_request(http_request, :GET, '
|
142
|
-
end
|
143
|
-
|
144
|
-
#
|
145
|
-
# @param [
|
146
|
-
# @return [
|
147
|
-
def
|
148
|
-
http_request = request.to_http_info(@api_client)
|
149
|
-
make_request(http_request, :POST, '
|
150
|
-
end
|
151
|
-
|
152
|
-
#
|
153
|
-
# @param [
|
154
|
-
# @return [
|
155
|
-
def
|
156
|
-
http_request = request.to_http_info(@api_client)
|
157
|
-
make_request(http_request, :GET, '
|
158
|
-
end
|
159
|
-
|
160
|
-
#
|
161
|
-
# @param [
|
162
|
-
# @return [
|
163
|
-
def
|
164
|
-
http_request = request.to_http_info(@api_client)
|
165
|
-
make_request(http_request, :POST, '
|
166
|
-
end
|
167
|
-
|
168
|
-
#
|
169
|
-
# @param [
|
170
|
-
# @return [
|
171
|
-
def
|
172
|
-
http_request = request.to_http_info(@api_client)
|
173
|
-
make_request(http_request, :GET, '
|
174
|
-
end
|
175
|
-
|
176
|
-
#
|
177
|
-
# @param [
|
178
|
-
# @return [
|
179
|
-
def
|
180
|
-
http_request = request.to_http_info(@api_client)
|
181
|
-
make_request(http_request, :POST, '
|
182
|
-
end
|
183
|
-
|
184
|
-
#
|
185
|
-
# @param [
|
186
|
-
# @return [
|
187
|
-
def
|
188
|
-
http_request = request.to_http_info(@api_client)
|
189
|
-
make_request(http_request, :GET, '
|
190
|
-
end
|
191
|
-
|
192
|
-
#
|
193
|
-
# @param [
|
194
|
-
# @return [
|
195
|
-
def
|
196
|
-
http_request = request.to_http_info(@api_client)
|
197
|
-
make_request(http_request, :
|
198
|
-
end
|
199
|
-
|
200
|
-
#
|
201
|
-
# @param [
|
202
|
-
# @return [
|
203
|
-
def
|
204
|
-
http_request = request.to_http_info(@api_client)
|
205
|
-
make_request(http_request, :
|
206
|
-
end
|
207
|
-
|
208
|
-
#
|
209
|
-
# @param [
|
210
|
-
# @return [
|
211
|
-
def
|
212
|
-
http_request = request.to_http_info(@api_client)
|
213
|
-
make_request(http_request, :
|
214
|
-
end
|
215
|
-
|
216
|
-
#
|
217
|
-
# @param [
|
218
|
-
# @return [
|
219
|
-
def
|
220
|
-
http_request = request.to_http_info(@api_client)
|
221
|
-
make_request(http_request, :PUT,
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
#
|
226
|
-
# @
|
227
|
-
|
228
|
-
|
229
|
-
http_request
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
#
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
#
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
#
|
289
|
-
# @
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
end
|
295
|
-
|
296
|
-
#
|
297
|
-
# @param [
|
298
|
-
# @return [
|
299
|
-
def
|
300
|
-
http_request = request.to_http_info(@api_client)
|
301
|
-
make_request(http_request, :
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
#
|
306
|
-
# @
|
307
|
-
|
308
|
-
|
309
|
-
http_request
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
#
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
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
|
-
# @param [
|
369
|
-
# @return [
|
370
|
-
def
|
371
|
-
http_request = request.to_http_info(@api_client)
|
372
|
-
make_request(http_request, :
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
# @param [
|
377
|
-
# @return [
|
378
|
-
def
|
379
|
-
http_request = request.to_http_info(@api_client)
|
380
|
-
make_request(http_request, :
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
#
|
385
|
-
# @
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
#
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
#
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
#
|
456
|
-
# @
|
457
|
-
|
458
|
-
|
459
|
-
http_request
|
460
|
-
|
461
|
-
end
|
462
|
-
|
463
|
-
#
|
464
|
-
# @param [
|
465
|
-
# @return [
|
466
|
-
def
|
467
|
-
http_request = request.to_http_info(@api_client)
|
468
|
-
make_request(http_request, :
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
#
|
473
|
-
# @
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
# @
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
# @
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
#
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
#
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
# @param [
|
540
|
-
# @return [
|
541
|
-
def
|
542
|
-
http_request = request.to_http_info(@api_client)
|
543
|
-
make_request(http_request, :GET, '
|
544
|
-
end
|
545
|
-
|
546
|
-
#
|
547
|
-
# @param [
|
548
|
-
# @return [
|
549
|
-
def
|
550
|
-
http_request = request.to_http_info(@api_client)
|
551
|
-
make_request(http_request, :
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
#
|
556
|
-
# @
|
557
|
-
|
558
|
-
|
559
|
-
http_request
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
#
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
#
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
#
|
627
|
-
# @
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
end
|
633
|
-
|
634
|
-
#
|
635
|
-
# @param [
|
636
|
-
# @return [
|
637
|
-
def
|
638
|
-
http_request = request.to_http_info(@api_client)
|
639
|
-
make_request(http_request, :
|
640
|
-
end
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="email_api.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 'uri'
|
29
|
+
|
30
|
+
module AsposeEmailCloud
|
31
|
+
# Aspose.Email Cloud API
|
32
|
+
class EmailApi
|
33
|
+
attr_accessor :api_client
|
34
|
+
|
35
|
+
# Initializes a new instance of the EmailApi class.
|
36
|
+
# @param [String] app_key Key to access the server.
|
37
|
+
# @param [String] app_sid ID to access the server.
|
38
|
+
# @param [String] base_url Server URL.
|
39
|
+
# @param [String] api_version Api version.
|
40
|
+
# @param [Object] debug Debug switch [true, false].
|
41
|
+
def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v3.0', debug = false)
|
42
|
+
@api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
|
43
|
+
end
|
44
|
+
|
45
|
+
# Adds an attachment to iCalendar file
|
46
|
+
# @param [AddCalendarAttachmentRequestData] request Request object.
|
47
|
+
# @return [nil]
|
48
|
+
def add_calendar_attachment(request)
|
49
|
+
http_request = request.to_http_info(@api_client)
|
50
|
+
make_request(http_request, :PUT, nil)
|
51
|
+
nil
|
52
|
+
end
|
53
|
+
|
54
|
+
# Add attachment to contact document
|
55
|
+
# @param [AddContactAttachmentRequestData] request Request object.
|
56
|
+
# @return [nil]
|
57
|
+
def add_contact_attachment(request)
|
58
|
+
http_request = request.to_http_info(@api_client)
|
59
|
+
make_request(http_request, :PUT, nil)
|
60
|
+
nil
|
61
|
+
end
|
62
|
+
|
63
|
+
# Adds an attachment to Email document
|
64
|
+
# @param [AddEmailAttachmentRequestData] request Request object.
|
65
|
+
# @return [EmailDocumentResponse]
|
66
|
+
def add_email_attachment(request)
|
67
|
+
http_request = request.to_http_info(@api_client)
|
68
|
+
make_request(http_request, :POST, 'EmailDocumentResponse')
|
69
|
+
end
|
70
|
+
|
71
|
+
# Add attachment to document
|
72
|
+
# @param [AddMapiAttachmentRequestData] request Request object.
|
73
|
+
# @return [nil]
|
74
|
+
def add_mapi_attachment(request)
|
75
|
+
http_request = request.to_http_info(@api_client)
|
76
|
+
make_request(http_request, :PUT, nil)
|
77
|
+
nil
|
78
|
+
end
|
79
|
+
|
80
|
+
# Ocr images
|
81
|
+
# @param [AiBcrOcrRequestData] request Request object.
|
82
|
+
# @return [ListResponseOfAiBcrOcrData]
|
83
|
+
def ai_bcr_ocr(request)
|
84
|
+
http_request = request.to_http_info(@api_client)
|
85
|
+
make_request(http_request, :POST, 'ListResponseOfAiBcrOcrData')
|
86
|
+
end
|
87
|
+
|
88
|
+
# Ocr images from storage
|
89
|
+
# @param [AiBcrOcrStorageRequestData] request Request object.
|
90
|
+
# @return [ListResponseOfAiBcrOcrData]
|
91
|
+
def ai_bcr_ocr_storage(request)
|
92
|
+
http_request = request.to_http_info(@api_client)
|
93
|
+
make_request(http_request, :POST, 'ListResponseOfAiBcrOcrData')
|
94
|
+
end
|
95
|
+
|
96
|
+
# Parse images to vCard properties
|
97
|
+
# @param [AiBcrParseRequestData] request Request object.
|
98
|
+
# @return [ListResponseOfHierarchicalObject]
|
99
|
+
def ai_bcr_parse(request)
|
100
|
+
http_request = request.to_http_info(@api_client)
|
101
|
+
make_request(http_request, :POST, 'ListResponseOfHierarchicalObject')
|
102
|
+
end
|
103
|
+
|
104
|
+
# Parse images to vCard document models
|
105
|
+
# @param [AiBcrParseModelRequestData] request Request object.
|
106
|
+
# @return [ListResponseOfContactDto]
|
107
|
+
def ai_bcr_parse_model(request)
|
108
|
+
http_request = request.to_http_info(@api_client)
|
109
|
+
make_request(http_request, :POST, 'ListResponseOfContactDto')
|
110
|
+
end
|
111
|
+
|
112
|
+
# Parse OCR data to vCard document models
|
113
|
+
# @param [AiBcrParseOcrDataModelRequestData] request Request object.
|
114
|
+
# @return [ListResponseOfContactDto]
|
115
|
+
def ai_bcr_parse_ocr_data_model(request)
|
116
|
+
http_request = request.to_http_info(@api_client)
|
117
|
+
make_request(http_request, :POST, 'ListResponseOfContactDto')
|
118
|
+
end
|
119
|
+
|
120
|
+
# Parse images from storage to vCard files
|
121
|
+
# @param [AiBcrParseStorageRequestData] request Request object.
|
122
|
+
# @return [ListResponseOfStorageFileLocation]
|
123
|
+
def ai_bcr_parse_storage(request)
|
124
|
+
http_request = request.to_http_info(@api_client)
|
125
|
+
make_request(http_request, :POST, 'ListResponseOfStorageFileLocation')
|
126
|
+
end
|
127
|
+
|
128
|
+
# The call proposes k most probable names for given starting characters
|
129
|
+
# @param [AiNameCompleteRequestData] request Request object.
|
130
|
+
# @return [AiNameWeightedVariants]
|
131
|
+
def ai_name_complete(request)
|
132
|
+
http_request = request.to_http_info(@api_client)
|
133
|
+
make_request(http_request, :GET, 'AiNameWeightedVariants')
|
134
|
+
end
|
135
|
+
|
136
|
+
# Expands a person's name into a list of possible alternatives using options for expanding instructions
|
137
|
+
# @param [AiNameExpandRequestData] request Request object.
|
138
|
+
# @return [AiNameWeightedVariants]
|
139
|
+
def ai_name_expand(request)
|
140
|
+
http_request = request.to_http_info(@api_client)
|
141
|
+
make_request(http_request, :GET, 'AiNameWeightedVariants')
|
142
|
+
end
|
143
|
+
|
144
|
+
# Expands a person's parsed name into a list of possible alternatives using options for expanding instructions
|
145
|
+
# @param [AiNameExpandParsedRequestData] request Request object.
|
146
|
+
# @return [AiNameWeightedVariants]
|
147
|
+
def ai_name_expand_parsed(request)
|
148
|
+
http_request = request.to_http_info(@api_client)
|
149
|
+
make_request(http_request, :POST, 'AiNameWeightedVariants')
|
150
|
+
end
|
151
|
+
|
152
|
+
# Formats a person's name in correct case and name order using options for formatting instructions
|
153
|
+
# @param [AiNameFormatRequestData] request Request object.
|
154
|
+
# @return [AiNameFormatted]
|
155
|
+
def ai_name_format(request)
|
156
|
+
http_request = request.to_http_info(@api_client)
|
157
|
+
make_request(http_request, :GET, 'AiNameFormatted')
|
158
|
+
end
|
159
|
+
|
160
|
+
# Formats a person's parsed name in correct case and name order using options for formatting instructions
|
161
|
+
# @param [AiNameFormatParsedRequestData] request Request object.
|
162
|
+
# @return [AiNameFormatted]
|
163
|
+
def ai_name_format_parsed(request)
|
164
|
+
http_request = request.to_http_info(@api_client)
|
165
|
+
make_request(http_request, :POST, 'AiNameFormatted')
|
166
|
+
end
|
167
|
+
|
168
|
+
# Detect person's gender from name string
|
169
|
+
# @param [AiNameGenderizeRequestData] request Request object.
|
170
|
+
# @return [ListResponseOfAiNameGenderHypothesis]
|
171
|
+
def ai_name_genderize(request)
|
172
|
+
http_request = request.to_http_info(@api_client)
|
173
|
+
make_request(http_request, :GET, 'ListResponseOfAiNameGenderHypothesis')
|
174
|
+
end
|
175
|
+
|
176
|
+
# Detect person's gender from parsed name
|
177
|
+
# @param [AiNameGenderizeParsedRequestData] request Request object.
|
178
|
+
# @return [ListResponseOfAiNameGenderHypothesis]
|
179
|
+
def ai_name_genderize_parsed(request)
|
180
|
+
http_request = request.to_http_info(@api_client)
|
181
|
+
make_request(http_request, :POST, 'ListResponseOfAiNameGenderHypothesis')
|
182
|
+
end
|
183
|
+
|
184
|
+
# Compare people's names. Uses options for comparing instructions
|
185
|
+
# @param [AiNameMatchRequestData] request Request object.
|
186
|
+
# @return [AiNameMatchResult]
|
187
|
+
def ai_name_match(request)
|
188
|
+
http_request = request.to_http_info(@api_client)
|
189
|
+
make_request(http_request, :GET, 'AiNameMatchResult')
|
190
|
+
end
|
191
|
+
|
192
|
+
# Compare people's parsed names and attributes. Uses options for comparing instructions
|
193
|
+
# @param [AiNameMatchParsedRequestData] request Request object.
|
194
|
+
# @return [AiNameMatchResult]
|
195
|
+
def ai_name_match_parsed(request)
|
196
|
+
http_request = request.to_http_info(@api_client)
|
197
|
+
make_request(http_request, :POST, 'AiNameMatchResult')
|
198
|
+
end
|
199
|
+
|
200
|
+
# Parse name to components
|
201
|
+
# @param [AiNameParseRequestData] request Request object.
|
202
|
+
# @return [ListResponseOfAiNameComponent]
|
203
|
+
def ai_name_parse(request)
|
204
|
+
http_request = request.to_http_info(@api_client)
|
205
|
+
make_request(http_request, :GET, 'ListResponseOfAiNameComponent')
|
206
|
+
end
|
207
|
+
|
208
|
+
# Parse person's name out of an email address
|
209
|
+
# @param [AiNameParseEmailAddressRequestData] request Request object.
|
210
|
+
# @return [ListResponseOfAiNameExtracted]
|
211
|
+
def ai_name_parse_email_address(request)
|
212
|
+
http_request = request.to_http_info(@api_client)
|
213
|
+
make_request(http_request, :GET, 'ListResponseOfAiNameExtracted')
|
214
|
+
end
|
215
|
+
|
216
|
+
# Adds an email from *.eml file to specified folder in email account
|
217
|
+
# @param [AppendEmailMessageRequestData] request Request object.
|
218
|
+
# @return [EmailPropertyResponse]
|
219
|
+
def append_email_message(request)
|
220
|
+
http_request = request.to_http_info(@api_client)
|
221
|
+
make_request(http_request, :PUT, 'EmailPropertyResponse')
|
222
|
+
end
|
223
|
+
|
224
|
+
# Adds an email from model to specified folder in email account
|
225
|
+
# @param [AppendEmailModelMessageRequestData] request Request object.
|
226
|
+
# @return [ValueResponse]
|
227
|
+
def append_email_model_message(request)
|
228
|
+
http_request = request.to_http_info(@api_client)
|
229
|
+
make_request(http_request, :PUT, 'ValueResponse')
|
230
|
+
end
|
231
|
+
|
232
|
+
# Adds an email from MIME to specified folder in email account
|
233
|
+
# @param [AppendMimeMessageRequestData] request Request object.
|
234
|
+
# @return [ValueResponse]
|
235
|
+
def append_mime_message(request)
|
236
|
+
http_request = request.to_http_info(@api_client)
|
237
|
+
make_request(http_request, :PUT, 'ValueResponse')
|
238
|
+
end
|
239
|
+
|
240
|
+
# Converts calendar document to specified format and returns as file
|
241
|
+
# @param [ConvertCalendarRequestData] request Request object.
|
242
|
+
# @return [File]
|
243
|
+
def convert_calendar(request)
|
244
|
+
http_request = request.to_http_info(@api_client)
|
245
|
+
make_request(http_request, :PUT, 'File')
|
246
|
+
end
|
247
|
+
|
248
|
+
# Convert iCalendar to AlternateView
|
249
|
+
# @param [ConvertCalendarModelToAlternateRequestData] request Request object.
|
250
|
+
# @return [AlternateView]
|
251
|
+
def convert_calendar_model_to_alternate(request)
|
252
|
+
http_request = request.to_http_info(@api_client)
|
253
|
+
make_request(http_request, :PUT, 'AlternateView')
|
254
|
+
end
|
255
|
+
|
256
|
+
# Converts calendar model to specified format and returns as file
|
257
|
+
# @param [ConvertCalendarModelToFileRequestData] request Request object.
|
258
|
+
# @return [File]
|
259
|
+
def convert_calendar_model_to_file(request)
|
260
|
+
http_request = request.to_http_info(@api_client)
|
261
|
+
make_request(http_request, :PUT, 'File')
|
262
|
+
end
|
263
|
+
|
264
|
+
# Converts CalendarDto to MapiCalendarDto.
|
265
|
+
# @param [ConvertCalendarModelToMapiModelRequestData] request Request object.
|
266
|
+
# @return [MapiCalendarDto]
|
267
|
+
def convert_calendar_model_to_mapi_model(request)
|
268
|
+
http_request = request.to_http_info(@api_client)
|
269
|
+
make_request(http_request, :PUT, 'MapiCalendarDto')
|
270
|
+
end
|
271
|
+
|
272
|
+
# Converts contact document to specified format and returns as file
|
273
|
+
# @param [ConvertContactRequestData] request Request object.
|
274
|
+
# @return [File]
|
275
|
+
def convert_contact(request)
|
276
|
+
http_request = request.to_http_info(@api_client)
|
277
|
+
make_request(http_request, :PUT, 'File')
|
278
|
+
end
|
279
|
+
|
280
|
+
# Converts contact model to specified format and returns as file
|
281
|
+
# @param [ConvertContactModelToFileRequestData] request Request object.
|
282
|
+
# @return [File]
|
283
|
+
def convert_contact_model_to_file(request)
|
284
|
+
http_request = request.to_http_info(@api_client)
|
285
|
+
make_request(http_request, :PUT, 'File')
|
286
|
+
end
|
287
|
+
|
288
|
+
# Converts ContactDto to MapiContactDto.
|
289
|
+
# @param [ConvertContactModelToMapiModelRequestData] request Request object.
|
290
|
+
# @return [MapiContactDto]
|
291
|
+
def convert_contact_model_to_mapi_model(request)
|
292
|
+
http_request = request.to_http_info(@api_client)
|
293
|
+
make_request(http_request, :PUT, 'MapiContactDto')
|
294
|
+
end
|
295
|
+
|
296
|
+
# Converts email document to specified format and returns as file
|
297
|
+
# @param [ConvertEmailRequestData] request Request object.
|
298
|
+
# @return [File]
|
299
|
+
def convert_email(request)
|
300
|
+
http_request = request.to_http_info(@api_client)
|
301
|
+
make_request(http_request, :PUT, 'File')
|
302
|
+
end
|
303
|
+
|
304
|
+
# Converts Email model to specified format and returns as file
|
305
|
+
# @param [ConvertEmailModelToFileRequestData] request Request object.
|
306
|
+
# @return [File]
|
307
|
+
def convert_email_model_to_file(request)
|
308
|
+
http_request = request.to_http_info(@api_client)
|
309
|
+
make_request(http_request, :PUT, 'File')
|
310
|
+
end
|
311
|
+
|
312
|
+
# Converts EmailDto to MapiMessageDto.
|
313
|
+
# @param [ConvertEmailModelToMapiModelRequestData] request Request object.
|
314
|
+
# @return [MapiMessageDto]
|
315
|
+
def convert_email_model_to_mapi_model(request)
|
316
|
+
http_request = request.to_http_info(@api_client)
|
317
|
+
make_request(http_request, :PUT, 'MapiMessageDto')
|
318
|
+
end
|
319
|
+
|
320
|
+
# Converts MAPI calendar model to CalendarDto model
|
321
|
+
# @param [ConvertMapiCalendarModelToCalendarModelRequestData] request Request object.
|
322
|
+
# @return [CalendarDto]
|
323
|
+
def convert_mapi_calendar_model_to_calendar_model(request)
|
324
|
+
http_request = request.to_http_info(@api_client)
|
325
|
+
make_request(http_request, :PUT, 'CalendarDto')
|
326
|
+
end
|
327
|
+
|
328
|
+
# Converts MAPI calendar model to specified format and returns as file
|
329
|
+
# @param [ConvertMapiCalendarModelToFileRequestData] request Request object.
|
330
|
+
# @return [File]
|
331
|
+
def convert_mapi_calendar_model_to_file(request)
|
332
|
+
http_request = request.to_http_info(@api_client)
|
333
|
+
make_request(http_request, :PUT, 'File')
|
334
|
+
end
|
335
|
+
|
336
|
+
# Converts MAPI contact model to ContactDto model
|
337
|
+
# @param [ConvertMapiContactModelToContactModelRequestData] request Request object.
|
338
|
+
# @return [ContactDto]
|
339
|
+
def convert_mapi_contact_model_to_contact_model(request)
|
340
|
+
http_request = request.to_http_info(@api_client)
|
341
|
+
make_request(http_request, :PUT, 'ContactDto')
|
342
|
+
end
|
343
|
+
|
344
|
+
# Converts MAPI contact model to specified format and returns as file
|
345
|
+
# @param [ConvertMapiContactModelToFileRequestData] request Request object.
|
346
|
+
# @return [File]
|
347
|
+
def convert_mapi_contact_model_to_file(request)
|
348
|
+
http_request = request.to_http_info(@api_client)
|
349
|
+
make_request(http_request, :PUT, 'File')
|
350
|
+
end
|
351
|
+
|
352
|
+
# Converts MAPI message model to EmailDto model
|
353
|
+
# @param [ConvertMapiMessageModelToEmailModelRequestData] request Request object.
|
354
|
+
# @return [EmailDto]
|
355
|
+
def convert_mapi_message_model_to_email_model(request)
|
356
|
+
http_request = request.to_http_info(@api_client)
|
357
|
+
make_request(http_request, :PUT, 'EmailDto')
|
358
|
+
end
|
359
|
+
|
360
|
+
# Converts MAPI message model to specified format and returns as file
|
361
|
+
# @param [ConvertMapiMessageModelToFileRequestData] request Request object.
|
362
|
+
# @return [File]
|
363
|
+
def convert_mapi_message_model_to_file(request)
|
364
|
+
http_request = request.to_http_info(@api_client)
|
365
|
+
make_request(http_request, :PUT, 'File')
|
366
|
+
end
|
367
|
+
|
368
|
+
# @param [CopyFileRequestData] request Request object.
|
369
|
+
# @return [nil]
|
370
|
+
def copy_file(request)
|
371
|
+
http_request = request.to_http_info(@api_client)
|
372
|
+
make_request(http_request, :PUT, nil)
|
373
|
+
nil
|
374
|
+
end
|
375
|
+
|
376
|
+
# @param [CopyFolderRequestData] request Request object.
|
377
|
+
# @return [nil]
|
378
|
+
def copy_folder(request)
|
379
|
+
http_request = request.to_http_info(@api_client)
|
380
|
+
make_request(http_request, :PUT, nil)
|
381
|
+
nil
|
382
|
+
end
|
383
|
+
|
384
|
+
# Create calendar file
|
385
|
+
# @param [CreateCalendarRequestData] request Request object.
|
386
|
+
# @return [nil]
|
387
|
+
def create_calendar(request)
|
388
|
+
http_request = request.to_http_info(@api_client)
|
389
|
+
make_request(http_request, :PUT, nil)
|
390
|
+
nil
|
391
|
+
end
|
392
|
+
|
393
|
+
# Create contact document
|
394
|
+
# @param [CreateContactRequestData] request Request object.
|
395
|
+
# @return [nil]
|
396
|
+
def create_contact(request)
|
397
|
+
http_request = request.to_http_info(@api_client)
|
398
|
+
make_request(http_request, :PUT, nil)
|
399
|
+
nil
|
400
|
+
end
|
401
|
+
|
402
|
+
# Create an email document
|
403
|
+
# @param [CreateEmailRequestData] request Request object.
|
404
|
+
# @return [EmailDocumentResponse]
|
405
|
+
def create_email(request)
|
406
|
+
http_request = request.to_http_info(@api_client)
|
407
|
+
make_request(http_request, :PUT, 'EmailDocumentResponse')
|
408
|
+
end
|
409
|
+
|
410
|
+
# Create new folder in email account
|
411
|
+
# @param [CreateEmailFolderRequestData] request Request object.
|
412
|
+
# @return [nil]
|
413
|
+
def create_email_folder(request)
|
414
|
+
http_request = request.to_http_info(@api_client)
|
415
|
+
make_request(http_request, :PUT, nil)
|
416
|
+
nil
|
417
|
+
end
|
418
|
+
|
419
|
+
# @param [CreateFolderRequestData] request Request object.
|
420
|
+
# @return [nil]
|
421
|
+
def create_folder(request)
|
422
|
+
http_request = request.to_http_info(@api_client)
|
423
|
+
make_request(http_request, :PUT, nil)
|
424
|
+
nil
|
425
|
+
end
|
426
|
+
|
427
|
+
# Create new document
|
428
|
+
# @param [CreateMapiRequestData] request Request object.
|
429
|
+
# @return [nil]
|
430
|
+
def create_mapi(request)
|
431
|
+
http_request = request.to_http_info(@api_client)
|
432
|
+
make_request(http_request, :PUT, nil)
|
433
|
+
nil
|
434
|
+
end
|
435
|
+
|
436
|
+
# Deletes indexed property by index and name. To delete Reminder attachment, use path ReminderAttachment/{ReminderIndex}/{AttachmentIndex}
|
437
|
+
# @param [DeleteCalendarPropertyRequestData] request Request object.
|
438
|
+
# @return [nil]
|
439
|
+
def delete_calendar_property(request)
|
440
|
+
http_request = request.to_http_info(@api_client)
|
441
|
+
make_request(http_request, :DELETE, nil)
|
442
|
+
nil
|
443
|
+
end
|
444
|
+
|
445
|
+
# Delete property from indexed property list
|
446
|
+
# @param [DeleteContactPropertyRequestData] request Request object.
|
447
|
+
# @return [nil]
|
448
|
+
def delete_contact_property(request)
|
449
|
+
http_request = request.to_http_info(@api_client)
|
450
|
+
make_request(http_request, :DELETE, nil)
|
451
|
+
nil
|
452
|
+
end
|
453
|
+
|
454
|
+
# Delete a folder in email account
|
455
|
+
# @param [DeleteEmailFolderRequestData] request Request object.
|
456
|
+
# @return [nil]
|
457
|
+
def delete_email_folder(request)
|
458
|
+
http_request = request.to_http_info(@api_client)
|
459
|
+
make_request(http_request, :DELETE, nil)
|
460
|
+
nil
|
461
|
+
end
|
462
|
+
|
463
|
+
# Delete message from email account by id
|
464
|
+
# @param [DeleteEmailMessageRequestData] request Request object.
|
465
|
+
# @return [nil]
|
466
|
+
def delete_email_message(request)
|
467
|
+
http_request = request.to_http_info(@api_client)
|
468
|
+
make_request(http_request, :DELETE, nil)
|
469
|
+
nil
|
470
|
+
end
|
471
|
+
|
472
|
+
# Delete thread by id. All messages from thread will also be deleted
|
473
|
+
# @param [DeleteEmailThreadRequestData] request Request object.
|
474
|
+
# @return [nil]
|
475
|
+
def delete_email_thread(request)
|
476
|
+
http_request = request.to_http_info(@api_client)
|
477
|
+
make_request(http_request, :DELETE, nil)
|
478
|
+
nil
|
479
|
+
end
|
480
|
+
|
481
|
+
# @param [DeleteFileRequestData] request Request object.
|
482
|
+
# @return [nil]
|
483
|
+
def delete_file(request)
|
484
|
+
http_request = request.to_http_info(@api_client)
|
485
|
+
make_request(http_request, :DELETE, nil)
|
486
|
+
nil
|
487
|
+
end
|
488
|
+
|
489
|
+
# @param [DeleteFolderRequestData] request Request object.
|
490
|
+
# @return [nil]
|
491
|
+
def delete_folder(request)
|
492
|
+
http_request = request.to_http_info(@api_client)
|
493
|
+
make_request(http_request, :DELETE, nil)
|
494
|
+
nil
|
495
|
+
end
|
496
|
+
|
497
|
+
# Remove attachment from document
|
498
|
+
# @param [DeleteMapiAttachmentRequestData] request Request object.
|
499
|
+
# @return [nil]
|
500
|
+
def delete_mapi_attachment(request)
|
501
|
+
http_request = request.to_http_info(@api_client)
|
502
|
+
make_request(http_request, :DELETE, nil)
|
503
|
+
nil
|
504
|
+
end
|
505
|
+
|
506
|
+
# Delete document properties
|
507
|
+
# @param [DeleteMapiPropertiesRequestData] request Request object.
|
508
|
+
# @return [nil]
|
509
|
+
def delete_mapi_properties(request)
|
510
|
+
http_request = request.to_http_info(@api_client)
|
511
|
+
make_request(http_request, :DELETE, nil)
|
512
|
+
nil
|
513
|
+
end
|
514
|
+
|
515
|
+
# Discover email accounts by email address. Does not validate discovered accounts.
|
516
|
+
# @param [DiscoverEmailConfigRequestData] request Request object.
|
517
|
+
# @return [EmailAccountConfigList]
|
518
|
+
def discover_email_config(request)
|
519
|
+
http_request = request.to_http_info(@api_client)
|
520
|
+
make_request(http_request, :GET, 'EmailAccountConfigList')
|
521
|
+
end
|
522
|
+
|
523
|
+
# Discover email accounts by email address. Validates discovered accounts using OAuth 2.0.
|
524
|
+
# @param [DiscoverEmailConfigOauthRequestData] request Request object.
|
525
|
+
# @return [EmailAccountConfigList]
|
526
|
+
def discover_email_config_oauth(request)
|
527
|
+
http_request = request.to_http_info(@api_client)
|
528
|
+
make_request(http_request, :POST, 'EmailAccountConfigList')
|
529
|
+
end
|
530
|
+
|
531
|
+
# Discover email accounts by email address. Validates discovered accounts using login and password.
|
532
|
+
# @param [DiscoverEmailConfigPasswordRequestData] request Request object.
|
533
|
+
# @return [EmailAccountConfigList]
|
534
|
+
def discover_email_config_password(request)
|
535
|
+
http_request = request.to_http_info(@api_client)
|
536
|
+
make_request(http_request, :POST, 'EmailAccountConfigList')
|
537
|
+
end
|
538
|
+
|
539
|
+
# @param [DownloadFileRequestData] request Request object.
|
540
|
+
# @return [File]
|
541
|
+
def download_file(request)
|
542
|
+
http_request = request.to_http_info(@api_client)
|
543
|
+
make_request(http_request, :GET, 'File')
|
544
|
+
end
|
545
|
+
|
546
|
+
# Fetch message mime from email account
|
547
|
+
# @param [FetchEmailMessageRequestData] request Request object.
|
548
|
+
# @return [MimeResponse]
|
549
|
+
def fetch_email_message(request)
|
550
|
+
http_request = request.to_http_info(@api_client)
|
551
|
+
make_request(http_request, :GET, 'MimeResponse')
|
552
|
+
end
|
553
|
+
|
554
|
+
# Fetch message model from email account
|
555
|
+
# @param [FetchEmailModelRequestData] request Request object.
|
556
|
+
# @return [EmailDto]
|
557
|
+
def fetch_email_model(request)
|
558
|
+
http_request = request.to_http_info(@api_client)
|
559
|
+
make_request(http_request, :GET, 'EmailDto')
|
560
|
+
end
|
561
|
+
|
562
|
+
# Get messages from thread by id. All messages are fully fetched. For accounts with CacheFile only cached messages will be returned.
|
563
|
+
# @param [FetchEmailThreadMessagesRequestData] request Request object.
|
564
|
+
# @return [ListResponseOfEmailDto]
|
565
|
+
def fetch_email_thread_messages(request)
|
566
|
+
http_request = request.to_http_info(@api_client)
|
567
|
+
make_request(http_request, :GET, 'ListResponseOfEmailDto')
|
568
|
+
end
|
569
|
+
|
570
|
+
# Get calendar file properties
|
571
|
+
# @param [GetCalendarRequestData] request Request object.
|
572
|
+
# @return [HierarchicalObject]
|
573
|
+
def get_calendar(request)
|
574
|
+
http_request = request.to_http_info(@api_client)
|
575
|
+
make_request(http_request, :GET, 'HierarchicalObject')
|
576
|
+
end
|
577
|
+
|
578
|
+
# Converts calendar document from storage to specified format and returns as file
|
579
|
+
# @param [GetCalendarAsFileRequestData] request Request object.
|
580
|
+
# @return [File]
|
581
|
+
def get_calendar_as_file(request)
|
582
|
+
http_request = request.to_http_info(@api_client)
|
583
|
+
make_request(http_request, :GET, 'File')
|
584
|
+
end
|
585
|
+
|
586
|
+
# Get iCalendar document attachment by name
|
587
|
+
# @param [GetCalendarAttachmentRequestData] request Request object.
|
588
|
+
# @return [File]
|
589
|
+
def get_calendar_attachment(request)
|
590
|
+
http_request = request.to_http_info(@api_client)
|
591
|
+
make_request(http_request, :GET, 'File')
|
592
|
+
end
|
593
|
+
|
594
|
+
# Converts calendar file to a MAPI model representation
|
595
|
+
# @param [GetCalendarFileAsMapiModelRequestData] request Request object.
|
596
|
+
# @return [MapiCalendarDto]
|
597
|
+
def get_calendar_file_as_mapi_model(request)
|
598
|
+
http_request = request.to_http_info(@api_client)
|
599
|
+
make_request(http_request, :PUT, 'MapiCalendarDto')
|
600
|
+
end
|
601
|
+
|
602
|
+
# Converts calendar document to a model representation
|
603
|
+
# @param [GetCalendarFileAsModelRequestData] request Request object.
|
604
|
+
# @return [CalendarDto]
|
605
|
+
def get_calendar_file_as_model(request)
|
606
|
+
http_request = request.to_http_info(@api_client)
|
607
|
+
make_request(http_request, :PUT, 'CalendarDto')
|
608
|
+
end
|
609
|
+
|
610
|
+
# Get iCalendar files list in folder on storage
|
611
|
+
# @param [GetCalendarListRequestData] request Request object.
|
612
|
+
# @return [ListResponseOfHierarchicalObjectResponse]
|
613
|
+
def get_calendar_list(request)
|
614
|
+
http_request = request.to_http_info(@api_client)
|
615
|
+
make_request(http_request, :GET, 'ListResponseOfHierarchicalObjectResponse')
|
616
|
+
end
|
617
|
+
|
618
|
+
# Get calendar file
|
619
|
+
# @param [GetCalendarModelRequestData] request Request object.
|
620
|
+
# @return [CalendarDto]
|
621
|
+
def get_calendar_model(request)
|
622
|
+
http_request = request.to_http_info(@api_client)
|
623
|
+
make_request(http_request, :GET, 'CalendarDto')
|
624
|
+
end
|
625
|
+
|
626
|
+
# Get iCalendar from storage as AlternateView
|
627
|
+
# @param [GetCalendarModelAsAlternateRequestData] request Request object.
|
628
|
+
# @return [AlternateView]
|
629
|
+
def get_calendar_model_as_alternate(request)
|
630
|
+
http_request = request.to_http_info(@api_client)
|
631
|
+
make_request(http_request, :GET, 'AlternateView')
|
632
|
+
end
|
633
|
+
|
634
|
+
# Get iCalendar list from storage folder
|
635
|
+
# @param [GetCalendarModelListRequestData] request Request object.
|
636
|
+
# @return [CalendarDtoList]
|
637
|
+
def get_calendar_model_list(request)
|
638
|
+
http_request = request.to_http_info(@api_client)
|
639
|
+
make_request(http_request, :GET, 'CalendarDtoList')
|
640
|
+
end
|
641
|
+
|
642
|
+
# Converts calendar document from storage to specified format and returns as file
|
643
|
+
# @param [GetContactAsFileRequestData] request Request object.
|
644
|
+
# @return [File]
|
645
|
+
def get_contact_as_file(request)
|
646
|
+
http_request = request.to_http_info(@api_client)
|
647
|
+
make_request(http_request, :GET, 'File')
|
648
|
+
end
|
649
|
+
|
650
|
+
# Get attachment file by name
|
651
|
+
# @param [GetContactAttachmentRequestData] request Request object.
|
652
|
+
# @return [File]
|
653
|
+
def get_contact_attachment(request)
|
654
|
+
http_request = request.to_http_info(@api_client)
|
655
|
+
make_request(http_request, :GET, 'File')
|
656
|
+
end
|
657
|
+
|
658
|
+
# Converts contact file to a MAPI model representation
|
659
|
+
# @param [GetContactFileAsMapiModelRequestData] request Request object.
|
660
|
+
# @return [MapiContactDto]
|
661
|
+
def get_contact_file_as_mapi_model(request)
|
662
|
+
http_request = request.to_http_info(@api_client)
|
663
|
+
make_request(http_request, :PUT, 'MapiContactDto')
|
664
|
+
end
|
665
|
+
|
666
|
+
# Converts contact document to a model representation
|
667
|
+
# @param [GetContactFileAsModelRequestData] request Request object.
|
668
|
+
# @return [ContactDto]
|
669
|
+
def get_contact_file_as_model(request)
|
670
|
+
http_request = request.to_http_info(@api_client)
|
671
|
+
make_request(http_request, :PUT, 'ContactDto')
|
672
|
+
end
|
673
|
+
|
674
|
+
# Get contact list from storage folder
|
675
|
+
# @param [GetContactListRequestData] request Request object.
|
676
|
+
# @return [ListResponseOfHierarchicalObjectResponse]
|
677
|
+
def get_contact_list(request)
|
678
|
+
http_request = request.to_http_info(@api_client)
|
679
|
+
make_request(http_request, :GET, 'ListResponseOfHierarchicalObjectResponse')
|
680
|
+
end
|
681
|
+
|
682
|
+
# Get contact document.
|
683
|
+
# @param [GetContactModelRequestData] request Request object.
|
684
|
+
# @return [ContactDto]
|
685
|
+
def get_contact_model(request)
|
686
|
+
http_request = request.to_http_info(@api_client)
|
687
|
+
make_request(http_request, :GET, 'ContactDto')
|
688
|
+
end
|
689
|
+
|
690
|
+
# Get contact list from storage folder.
|
691
|
+
# @param [GetContactModelListRequestData] request Request object.
|
692
|
+
# @return [ContactDtoList]
|
693
|
+
def get_contact_model_list(request)
|
694
|
+
http_request = request.to_http_info(@api_client)
|
695
|
+
make_request(http_request, :GET, 'ContactDtoList')
|
696
|
+
end
|
697
|
+
|
698
|
+
# Get contact document properties
|
699
|
+
# @param [GetContactPropertiesRequestData] request Request object.
|
700
|
+
# @return [HierarchicalObject]
|
701
|
+
def get_contact_properties(request)
|
702
|
+
http_request = request.to_http_info(@api_client)
|
703
|
+
make_request(http_request, :GET, 'HierarchicalObject')
|
704
|
+
end
|
705
|
+
|
706
|
+
# @param [GetDiscUsageRequestData] request Request object.
|
707
|
+
# @return [DiscUsage]
|
708
|
+
def get_disc_usage(request)
|
709
|
+
http_request = request.to_http_info(@api_client)
|
710
|
+
make_request(http_request, :GET, 'DiscUsage')
|
711
|
+
end
|
712
|
+
|
713
|
+
# Get email document
|
714
|
+
# @param [GetEmailRequestData] request Request object.
|
715
|
+
# @return [EmailDocument]
|
716
|
+
def get_email(request)
|
717
|
+
http_request = request.to_http_info(@api_client)
|
718
|
+
make_request(http_request, :GET, 'EmailDocument')
|
719
|
+
end
|
720
|
+
|
721
|
+
# Converts email document from storage to specified format and returns as file
|
722
|
+
# @param [GetEmailAsFileRequestData] request Request object.
|
723
|
+
# @return [File]
|
724
|
+
def get_email_as_file(request)
|
725
|
+
http_request = request.to_http_info(@api_client)
|
726
|
+
make_request(http_request, :GET, 'File')
|
727
|
+
end
|
728
|
+
|
729
|
+
# Get email attachment by name
|
730
|
+
# @param [GetEmailAttachmentRequestData] request Request object.
|
731
|
+
# @return [File]
|
732
|
+
def get_email_attachment(request)
|
733
|
+
http_request = request.to_http_info(@api_client)
|
734
|
+
make_request(http_request, :GET, 'File')
|
735
|
+
end
|
736
|
+
|
737
|
+
# Get email client account from storage
|
738
|
+
# @param [GetEmailClientAccountRequestData] request Request object.
|
739
|
+
# @return [EmailClientAccount]
|
740
|
+
def get_email_client_account(request)
|
741
|
+
http_request = request.to_http_info(@api_client)
|
742
|
+
make_request(http_request, :GET, 'EmailClientAccount')
|
743
|
+
end
|
744
|
+
|
745
|
+
# Get email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\".
|
746
|
+
# @param [GetEmailClientMultiAccountRequestData] request Request object.
|
747
|
+
# @return [EmailClientMultiAccount]
|
748
|
+
def get_email_client_multi_account(request)
|
749
|
+
http_request = request.to_http_info(@api_client)
|
750
|
+
make_request(http_request, :GET, 'EmailClientMultiAccount')
|
751
|
+
end
|
752
|
+
|
753
|
+
# Converts email file to a MAPI model representation
|
754
|
+
# @param [GetEmailFileAsMapiModelRequestData] request Request object.
|
755
|
+
# @return [MapiMessageDto]
|
756
|
+
def get_email_file_as_mapi_model(request)
|
757
|
+
http_request = request.to_http_info(@api_client)
|
758
|
+
make_request(http_request, :PUT, 'MapiMessageDto')
|
759
|
+
end
|
760
|
+
|
761
|
+
# Converts email document to a model representation
|
762
|
+
# @param [GetEmailFileAsModelRequestData] request Request object.
|
763
|
+
# @return [EmailDto]
|
764
|
+
def get_email_file_as_model(request)
|
765
|
+
http_request = request.to_http_info(@api_client)
|
766
|
+
make_request(http_request, :PUT, 'EmailDto')
|
767
|
+
end
|
768
|
+
|
769
|
+
# Get email document.
|
770
|
+
# @param [GetEmailModelRequestData] request Request object.
|
771
|
+
# @return [EmailDto]
|
772
|
+
def get_email_model(request)
|
773
|
+
http_request = request.to_http_info(@api_client)
|
774
|
+
make_request(http_request, :GET, 'EmailDto')
|
775
|
+
end
|
776
|
+
|
777
|
+
# Get email list from storage folder.
|
778
|
+
# @param [GetEmailModelListRequestData] request Request object.
|
779
|
+
# @return [EmailDtoList]
|
780
|
+
def get_email_model_list(request)
|
781
|
+
http_request = request.to_http_info(@api_client)
|
782
|
+
make_request(http_request, :GET, 'EmailDtoList')
|
783
|
+
end
|
784
|
+
|
785
|
+
# Get an email document property by its name
|
786
|
+
# @param [GetEmailPropertyRequestData] request Request object.
|
787
|
+
# @return [EmailPropertyResponse]
|
788
|
+
def get_email_property(request)
|
789
|
+
http_request = request.to_http_info(@api_client)
|
790
|
+
make_request(http_request, :GET, 'EmailPropertyResponse')
|
791
|
+
end
|
792
|
+
|
793
|
+
# @param [GetFileVersionsRequestData] request Request object.
|
794
|
+
# @return [FileVersions]
|
795
|
+
def get_file_versions(request)
|
796
|
+
http_request = request.to_http_info(@api_client)
|
797
|
+
make_request(http_request, :GET, 'FileVersions')
|
798
|
+
end
|
799
|
+
|
800
|
+
# @param [GetFilesListRequestData] request Request object.
|
801
|
+
# @return [FilesList]
|
802
|
+
def get_files_list(request)
|
803
|
+
http_request = request.to_http_info(@api_client)
|
804
|
+
make_request(http_request, :GET, 'FilesList')
|
805
|
+
end
|
806
|
+
|
807
|
+
# Get document attachment as file stream
|
808
|
+
# @param [GetMapiAttachmentRequestData] request Request object.
|
809
|
+
# @return [File]
|
810
|
+
def get_mapi_attachment(request)
|
811
|
+
http_request = request.to_http_info(@api_client)
|
812
|
+
make_request(http_request, :GET, 'File')
|
813
|
+
end
|
814
|
+
|
815
|
+
# Get document attachment list
|
816
|
+
# @param [GetMapiAttachmentsRequestData] request Request object.
|
817
|
+
# @return [ListResponseOfString]
|
818
|
+
def get_mapi_attachments(request)
|
819
|
+
http_request = request.to_http_info(@api_client)
|
820
|
+
make_request(http_request, :GET, 'ListResponseOfString')
|
821
|
+
end
|
822
|
+
|
823
|
+
# Get MAPI calendar document.
|
824
|
+
# @param [GetMapiCalendarModelRequestData] request Request object.
|
825
|
+
# @return [MapiCalendarDto]
|
826
|
+
def get_mapi_calendar_model(request)
|
827
|
+
http_request = request.to_http_info(@api_client)
|
828
|
+
make_request(http_request, :GET, 'MapiCalendarDto')
|
829
|
+
end
|
830
|
+
|
831
|
+
# Get MAPI contact document.
|
832
|
+
# @param [GetMapiContactModelRequestData] request Request object.
|
833
|
+
# @return [MapiContactDto]
|
834
|
+
def get_mapi_contact_model(request)
|
835
|
+
http_request = request.to_http_info(@api_client)
|
836
|
+
make_request(http_request, :GET, 'MapiContactDto')
|
837
|
+
end
|
838
|
+
|
839
|
+
# Get document list from storage folder
|
840
|
+
# @param [GetMapiListRequestData] request Request object.
|
841
|
+
# @return [ListResponseOfHierarchicalObjectResponse]
|
842
|
+
def get_mapi_list(request)
|
843
|
+
http_request = request.to_http_info(@api_client)
|
844
|
+
make_request(http_request, :GET, 'ListResponseOfHierarchicalObjectResponse')
|
845
|
+
end
|
846
|
+
|
847
|
+
# Get MAPI message document.
|
848
|
+
# @param [GetMapiMessageModelRequestData] request Request object.
|
849
|
+
# @return [MapiMessageDto]
|
850
|
+
def get_mapi_message_model(request)
|
851
|
+
http_request = request.to_http_info(@api_client)
|
852
|
+
make_request(http_request, :GET, 'MapiMessageDto')
|
853
|
+
end
|
854
|
+
|
855
|
+
# Get document properties
|
856
|
+
# @param [GetMapiPropertiesRequestData] request Request object.
|
857
|
+
# @return [HierarchicalObjectResponse]
|
858
|
+
def get_mapi_properties(request)
|
859
|
+
http_request = request.to_http_info(@api_client)
|
860
|
+
make_request(http_request, :GET, 'HierarchicalObjectResponse')
|
861
|
+
end
|
862
|
+
|
863
|
+
# Check email address is disposable
|
864
|
+
# @param [IsEmailAddressDisposableRequestData] request Request object.
|
865
|
+
# @return [ValueTOfBoolean]
|
866
|
+
def is_email_address_disposable(request)
|
867
|
+
http_request = request.to_http_info(@api_client)
|
868
|
+
make_request(http_request, :GET, 'ValueTOfBoolean')
|
869
|
+
end
|
870
|
+
|
871
|
+
# Get folders list in email account
|
872
|
+
# @param [ListEmailFoldersRequestData] request Request object.
|
873
|
+
# @return [ListResponseOfMailServerFolder]
|
874
|
+
def list_email_folders(request)
|
875
|
+
http_request = request.to_http_info(@api_client)
|
876
|
+
make_request(http_request, :GET, 'ListResponseOfMailServerFolder')
|
877
|
+
end
|
878
|
+
|
879
|
+
# Get messages from folder, filtered by query
|
880
|
+
# 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\"
|
881
|
+
# @param [ListEmailMessagesRequestData] request Request object.
|
882
|
+
# @return [ListResponseOfString]
|
883
|
+
def list_email_messages(request)
|
884
|
+
http_request = request.to_http_info(@api_client)
|
885
|
+
make_request(http_request, :GET, 'ListResponseOfString')
|
886
|
+
end
|
887
|
+
|
888
|
+
# Get messages from folder, filtered by query
|
889
|
+
# 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\"
|
890
|
+
# @param [ListEmailModelsRequestData] request Request object.
|
891
|
+
# @return [ListResponseOfEmailDto]
|
892
|
+
def list_email_models(request)
|
893
|
+
http_request = request.to_http_info(@api_client)
|
894
|
+
make_request(http_request, :GET, 'ListResponseOfEmailDto')
|
895
|
+
end
|
896
|
+
|
897
|
+
# Get message threads from folder. All messages are partly fetched (without email body and other fields)
|
898
|
+
# @param [ListEmailThreadsRequestData] request Request object.
|
899
|
+
# @return [EmailThreadList]
|
900
|
+
def list_email_threads(request)
|
901
|
+
http_request = request.to_http_info(@api_client)
|
902
|
+
make_request(http_request, :GET, 'EmailThreadList')
|
903
|
+
end
|
904
|
+
|
905
|
+
# Move message to another folder
|
906
|
+
# @param [MoveEmailMessageRequestData] request Request object.
|
907
|
+
# @return [nil]
|
908
|
+
def move_email_message(request)
|
909
|
+
http_request = request.to_http_info(@api_client)
|
910
|
+
make_request(http_request, :PUT, nil)
|
911
|
+
nil
|
912
|
+
end
|
913
|
+
|
914
|
+
# Move thread to another folder
|
915
|
+
# @param [MoveEmailThreadRequestData] request Request object.
|
916
|
+
# @return [nil]
|
917
|
+
def move_email_thread(request)
|
918
|
+
http_request = request.to_http_info(@api_client)
|
919
|
+
make_request(http_request, :PUT, nil)
|
920
|
+
nil
|
921
|
+
end
|
922
|
+
|
923
|
+
# @param [MoveFileRequestData] request Request object.
|
924
|
+
# @return [nil]
|
925
|
+
def move_file(request)
|
926
|
+
http_request = request.to_http_info(@api_client)
|
927
|
+
make_request(http_request, :PUT, nil)
|
928
|
+
nil
|
929
|
+
end
|
930
|
+
|
931
|
+
# @param [MoveFolderRequestData] request Request object.
|
932
|
+
# @return [nil]
|
933
|
+
def move_folder(request)
|
934
|
+
http_request = request.to_http_info(@api_client)
|
935
|
+
make_request(http_request, :PUT, nil)
|
936
|
+
nil
|
937
|
+
end
|
938
|
+
|
939
|
+
# @param [ObjectExistsRequestData] request Request object.
|
940
|
+
# @return [ObjectExist]
|
941
|
+
def object_exists(request)
|
942
|
+
http_request = request.to_http_info(@api_client)
|
943
|
+
make_request(http_request, :GET, 'ObjectExist')
|
944
|
+
end
|
945
|
+
|
946
|
+
# Save iCalendar
|
947
|
+
# @param [SaveCalendarModelRequestData] request Request object.
|
948
|
+
# @return [nil]
|
949
|
+
def save_calendar_model(request)
|
950
|
+
http_request = request.to_http_info(@api_client)
|
951
|
+
make_request(http_request, :PUT, nil)
|
952
|
+
nil
|
953
|
+
end
|
954
|
+
|
955
|
+
# Save contact.
|
956
|
+
# @param [SaveContactModelRequestData] request Request object.
|
957
|
+
# @return [nil]
|
958
|
+
def save_contact_model(request)
|
959
|
+
http_request = request.to_http_info(@api_client)
|
960
|
+
make_request(http_request, :PUT, nil)
|
961
|
+
nil
|
962
|
+
end
|
963
|
+
|
964
|
+
# Create email client account file (*.account) with any of supported credentials
|
965
|
+
# @param [SaveEmailClientAccountRequestData] request Request object.
|
966
|
+
# @return [nil]
|
967
|
+
def save_email_client_account(request)
|
968
|
+
http_request = request.to_http_info(@api_client)
|
969
|
+
make_request(http_request, :PUT, nil)
|
970
|
+
nil
|
971
|
+
end
|
972
|
+
|
973
|
+
# Create email client multi account file (*.multi.account). Will respond error if file extension is not \".multi.account\".
|
974
|
+
# @param [SaveEmailClientMultiAccountRequestData] request Request object.
|
975
|
+
# @return [nil]
|
976
|
+
def save_email_client_multi_account(request)
|
977
|
+
http_request = request.to_http_info(@api_client)
|
978
|
+
make_request(http_request, :PUT, nil)
|
979
|
+
nil
|
980
|
+
end
|
981
|
+
|
982
|
+
# Save email document.
|
983
|
+
# @param [SaveEmailModelRequestData] request Request object.
|
984
|
+
# @return [nil]
|
985
|
+
def save_email_model(request)
|
986
|
+
http_request = request.to_http_info(@api_client)
|
987
|
+
make_request(http_request, :PUT, nil)
|
988
|
+
nil
|
989
|
+
end
|
990
|
+
|
991
|
+
# Create email account file (*.account) with login/password authentication
|
992
|
+
# @param [SaveMailAccountRequestData] request Request object.
|
993
|
+
# @return [nil]
|
994
|
+
def save_mail_account(request)
|
995
|
+
http_request = request.to_http_info(@api_client)
|
996
|
+
make_request(http_request, :POST, nil)
|
997
|
+
nil
|
998
|
+
end
|
999
|
+
|
1000
|
+
# Create email account file (*.account) with OAuth
|
1001
|
+
# @param [SaveMailOAuthAccountRequestData] request Request object.
|
1002
|
+
# @return [nil]
|
1003
|
+
def save_mail_o_auth_account(request)
|
1004
|
+
http_request = request.to_http_info(@api_client)
|
1005
|
+
make_request(http_request, :POST, nil)
|
1006
|
+
nil
|
1007
|
+
end
|
1008
|
+
|
1009
|
+
# Save MAPI Calendar to storage.
|
1010
|
+
# @param [SaveMapiCalendarModelRequestData] request Request object.
|
1011
|
+
# @return [nil]
|
1012
|
+
def save_mapi_calendar_model(request)
|
1013
|
+
http_request = request.to_http_info(@api_client)
|
1014
|
+
make_request(http_request, :PUT, nil)
|
1015
|
+
nil
|
1016
|
+
end
|
1017
|
+
|
1018
|
+
# Save MAPI Contact to storage.
|
1019
|
+
# @param [SaveMapiContactModelRequestData] request Request object.
|
1020
|
+
# @return [nil]
|
1021
|
+
def save_mapi_contact_model(request)
|
1022
|
+
http_request = request.to_http_info(@api_client)
|
1023
|
+
make_request(http_request, :PUT, nil)
|
1024
|
+
nil
|
1025
|
+
end
|
1026
|
+
|
1027
|
+
# Save MAPI message to storage.
|
1028
|
+
# @param [SaveMapiMessageModelRequestData] request Request object.
|
1029
|
+
# @return [nil]
|
1030
|
+
def save_mapi_message_model(request)
|
1031
|
+
http_request = request.to_http_info(@api_client)
|
1032
|
+
make_request(http_request, :PUT, nil)
|
1033
|
+
nil
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
# Send an email from *.eml file located on storage
|
1037
|
+
# @param [SendEmailRequestData] request Request object.
|
1038
|
+
# @return [nil]
|
1039
|
+
def send_email(request)
|
1040
|
+
http_request = request.to_http_info(@api_client)
|
1041
|
+
make_request(http_request, :POST, nil)
|
1042
|
+
nil
|
1043
|
+
end
|
1044
|
+
|
1045
|
+
# Send an email specified by MIME in request
|
1046
|
+
# @param [SendEmailMimeRequestData] request Request object.
|
1047
|
+
# @return [nil]
|
1048
|
+
def send_email_mime(request)
|
1049
|
+
http_request = request.to_http_info(@api_client)
|
1050
|
+
make_request(http_request, :POST, nil)
|
1051
|
+
nil
|
1052
|
+
end
|
1053
|
+
|
1054
|
+
# Send an email specified by model in request
|
1055
|
+
# @param [SendEmailModelRequestData] request Request object.
|
1056
|
+
# @return [nil]
|
1057
|
+
def send_email_model(request)
|
1058
|
+
http_request = request.to_http_info(@api_client)
|
1059
|
+
make_request(http_request, :POST, nil)
|
1060
|
+
nil
|
1061
|
+
end
|
1062
|
+
|
1063
|
+
# Set email document property value
|
1064
|
+
# @param [SetEmailPropertyRequestData] request Request object.
|
1065
|
+
# @return [EmailPropertyResponse]
|
1066
|
+
def set_email_property(request)
|
1067
|
+
http_request = request.to_http_info(@api_client)
|
1068
|
+
make_request(http_request, :PUT, 'EmailPropertyResponse')
|
1069
|
+
end
|
1070
|
+
|
1071
|
+
# Sets \"Message is read\" flag
|
1072
|
+
# @param [SetEmailReadFlagRequestData] request Request object.
|
1073
|
+
# @return [nil]
|
1074
|
+
def set_email_read_flag(request)
|
1075
|
+
http_request = request.to_http_info(@api_client)
|
1076
|
+
make_request(http_request, :POST, nil)
|
1077
|
+
nil
|
1078
|
+
end
|
1079
|
+
|
1080
|
+
# Mark all messages in thread as read or unread
|
1081
|
+
# @param [SetEmailThreadReadFlagRequestData] request Request object.
|
1082
|
+
# @return [nil]
|
1083
|
+
def set_email_thread_read_flag(request)
|
1084
|
+
http_request = request.to_http_info(@api_client)
|
1085
|
+
make_request(http_request, :PUT, nil)
|
1086
|
+
nil
|
1087
|
+
end
|
1088
|
+
|
1089
|
+
# @param [StorageExistsRequestData] request Request object.
|
1090
|
+
# @return [StorageExist]
|
1091
|
+
def storage_exists(request)
|
1092
|
+
http_request = request.to_http_info(@api_client)
|
1093
|
+
make_request(http_request, :GET, 'StorageExist')
|
1094
|
+
end
|
1095
|
+
|
1096
|
+
# Update calendar file properties
|
1097
|
+
# @param [UpdateCalendarPropertiesRequestData] request Request object.
|
1098
|
+
# @return [nil]
|
1099
|
+
def update_calendar_properties(request)
|
1100
|
+
http_request = request.to_http_info(@api_client)
|
1101
|
+
make_request(http_request, :PUT, nil)
|
1102
|
+
nil
|
1103
|
+
end
|
1104
|
+
|
1105
|
+
# Update contact document properties
|
1106
|
+
# @param [UpdateContactPropertiesRequestData] request Request object.
|
1107
|
+
# @return [nil]
|
1108
|
+
def update_contact_properties(request)
|
1109
|
+
http_request = request.to_http_info(@api_client)
|
1110
|
+
make_request(http_request, :PUT, nil)
|
1111
|
+
nil
|
1112
|
+
end
|
1113
|
+
|
1114
|
+
# Update document properties
|
1115
|
+
# @param [UpdateMapiPropertiesRequestData] request Request object.
|
1116
|
+
# @return [nil]
|
1117
|
+
def update_mapi_properties(request)
|
1118
|
+
http_request = request.to_http_info(@api_client)
|
1119
|
+
make_request(http_request, :PUT, nil)
|
1120
|
+
nil
|
1121
|
+
end
|
1122
|
+
|
1123
|
+
# @param [UploadFileRequestData] request Request object.
|
1124
|
+
# @return [FilesUploadResult]
|
1125
|
+
def upload_file(request)
|
1126
|
+
http_request = request.to_http_info(@api_client)
|
1127
|
+
make_request(http_request, :PUT, 'FilesUploadResult')
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
private
|
1131
|
+
|
1132
|
+
def make_request(http_request, method, return_type)
|
1133
|
+
call_api(http_request, method, return_type)
|
1134
|
+
rescue ApiError => e
|
1135
|
+
if e.code.equal? 401
|
1136
|
+
request_token
|
1137
|
+
return call_api(http_request, method, return_type)
|
1138
|
+
end
|
1139
|
+
raise
|
1140
|
+
|
1141
|
+
end
|
1142
|
+
|
1143
|
+
def call_api(http_request, method, return_type)
|
1144
|
+
response = @api_client.call_api(method,
|
1145
|
+
http_request.resource_path,
|
1146
|
+
header_params: http_request.header_params,
|
1147
|
+
query_params: http_request.query_params,
|
1148
|
+
form_params: http_request.form_params,
|
1149
|
+
body: http_request.body,
|
1150
|
+
auth_names: http_request.auth_names,
|
1151
|
+
return_type: return_type)
|
1152
|
+
response[0]
|
1153
|
+
end
|
1154
|
+
|
1155
|
+
def request_token
|
1156
|
+
config = @api_client.config
|
1157
|
+
request_url = '/connect/token'
|
1158
|
+
form_params =
|
1159
|
+
{
|
1160
|
+
'grant_type': 'client_credentials',
|
1161
|
+
'client_id': config.api_key[:app_sid],
|
1162
|
+
'client_secret': config.api_key[:api_key]
|
1163
|
+
}
|
1164
|
+
|
1165
|
+
header_params =
|
1166
|
+
{
|
1167
|
+
'Accept' => 'application/json',
|
1168
|
+
'Content-Type' =>'application/x-www-form-urlencoded'
|
1169
|
+
}
|
1170
|
+
|
1171
|
+
base_path = @api_client.config.base_path
|
1172
|
+
@api_client.config.base_path = ''
|
1173
|
+
|
1174
|
+
data = @api_client.call_api(:POST, request_url,
|
1175
|
+
header_params: header_params,
|
1176
|
+
form_params: form_params,
|
1177
|
+
return_type: 'Object',
|
1178
|
+
host: @api_client.config.auth_url)
|
1179
|
+
access_token = data[0]['access_token'.to_sym]
|
1180
|
+
|
1181
|
+
@api_client.config.base_path = base_path
|
1182
|
+
@api_client.config.access_token = access_token
|
1183
|
+
end
|
1184
|
+
end
|
1185
|
+
end
|
1186
|
+
|