aspose_email_cloud 20.5.0 → 21.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aspose-email-cloud.rb +202 -207
- data/lib/aspose-email-cloud/api/ai_bcr_api.rb +87 -0
- data/lib/aspose-email-cloud/api/ai_group.rb +49 -0
- data/lib/aspose-email-cloud/api/ai_name_api.rb +216 -0
- data/lib/aspose-email-cloud/api/calendar_api.rb +209 -0
- data/lib/aspose-email-cloud/api/client_account_api.rb +124 -0
- data/lib/aspose-email-cloud/api/client_folder_api.rb +116 -0
- data/lib/aspose-email-cloud/api/client_group.rb +59 -0
- data/lib/aspose-email-cloud/api/client_message_api.rb +233 -0
- data/lib/aspose-email-cloud/api/client_thread_api.rb +152 -0
- data/lib/aspose-email-cloud/api/cloud_storage_group.rb +54 -0
- data/lib/aspose-email-cloud/api/contact_api.rb +174 -0
- data/lib/aspose-email-cloud/api/disposable_email_api.rb +60 -0
- data/lib/aspose-email-cloud/api/email_api.rb +105 -970
- data/lib/aspose-email-cloud/api/email_cloud.rb +96 -0
- data/lib/aspose-email-cloud/api/email_config_api.rb +114 -0
- data/lib/aspose-email-cloud/api/file_api.rb +95 -0
- data/lib/aspose-email-cloud/api/folder_api.rb +96 -0
- data/lib/aspose-email-cloud/api/mapi_calendar_api.rb +150 -0
- data/lib/aspose-email-cloud/api/mapi_contact_api.rb +150 -0
- data/lib/aspose-email-cloud/api/mapi_group.rb +54 -0
- data/lib/aspose-email-cloud/api/mapi_message_api.rb +150 -0
- data/lib/aspose-email-cloud/api/storage_api.rb +84 -0
- data/lib/aspose-email-cloud/api_client.rb +8 -6
- data/lib/aspose-email-cloud/api_invoker.rb +92 -0
- data/lib/aspose-email-cloud/configuration.rb +11 -11
- data/lib/aspose-email-cloud/models/ai_bcr_image.rb +4 -18
- data/lib/aspose-email-cloud/models/ai_bcr_image_storage_file.rb +14 -27
- data/lib/aspose-email-cloud/models/ai_bcr_options.rb +8 -26
- data/lib/aspose-email-cloud/models/ai_bcr_parse_request.rb +95 -0
- data/lib/aspose-email-cloud/models/{ai_bcr_storage_image_rq.rb → ai_bcr_parse_storage_request.rb} +34 -40
- data/lib/aspose-email-cloud/models/{requests/ai_name_complete_request_data.rb → ai_name_complete_request.rb} +22 -28
- data/lib/aspose-email-cloud/models/ai_name_component.rb +5 -31
- data/lib/aspose-email-cloud/models/{list_response_of_string.rb → ai_name_component_list.rb} +8 -23
- data/lib/aspose-email-cloud/models/ai_name_cultural_context.rb +6 -36
- data/lib/aspose-email-cloud/models/{requests/ai_name_expand_request_data.rb → ai_name_expand_request.rb} +22 -28
- data/lib/aspose-email-cloud/models/ai_name_extracted.rb +3 -23
- data/lib/aspose-email-cloud/models/ai_name_extracted_component.rb +3 -21
- data/lib/aspose-email-cloud/models/{value_response.rb → ai_name_extracted_list.rb} +9 -23
- data/lib/aspose-email-cloud/models/{requests/ai_name_format_request_data.rb → ai_name_format_request.rb} +22 -28
- data/lib/aspose-email-cloud/models/ai_name_formatted.rb +3 -21
- data/lib/aspose-email-cloud/models/ai_name_gender_hypothesis.rb +3 -21
- data/lib/aspose-email-cloud/models/{list_response_of_ai_bcr_ocr_data.rb → ai_name_gender_hypothesis_list.rb} +8 -23
- data/lib/aspose-email-cloud/models/{requests/ai_name_genderize_request_data.rb → ai_name_genderize_request.rb} +22 -28
- data/lib/aspose-email-cloud/models/{ai_name_parsed_match_rq.rb → ai_name_match_parsed_request.rb} +7 -37
- data/lib/aspose-email-cloud/models/{requests/ai_name_match_request_data.rb → ai_name_match_request.rb} +25 -32
- data/lib/aspose-email-cloud/models/ai_name_match_result.rb +3 -23
- data/lib/aspose-email-cloud/models/ai_name_mismatch.rb +4 -26
- data/lib/aspose-email-cloud/models/{requests/ai_name_parse_email_address_request_data.rb → ai_name_parse_email_address_request.rb} +25 -28
- data/lib/aspose-email-cloud/models/{requests/ai_name_parse_request_data.rb → ai_name_parse_request.rb} +24 -30
- data/lib/aspose-email-cloud/models/{ai_name_parsed_rq.rb → ai_name_parsed_request.rb} +6 -30
- data/lib/aspose-email-cloud/models/ai_name_weighted.rb +3 -21
- data/lib/aspose-email-cloud/models/ai_name_weighted_variants.rb +3 -23
- data/lib/aspose-email-cloud/models/alternate_view.rb +8 -46
- data/lib/aspose-email-cloud/models/associated_person.rb +4 -26
- data/lib/aspose-email-cloud/models/attachment.rb +11 -59
- data/lib/aspose-email-cloud/models/attachment_base.rb +5 -33
- data/lib/aspose-email-cloud/models/{calendar_dto_alternate_rq.rb → calendar_as_alternate_request.rb} +7 -29
- data/lib/aspose-email-cloud/models/calendar_as_file_request.rb +218 -0
- data/lib/aspose-email-cloud/models/{requests/convert_calendar_request_data.rb → calendar_convert_request.rb} +18 -24
- data/lib/aspose-email-cloud/models/calendar_dto.rb +34 -129
- data/lib/aspose-email-cloud/models/{requests/get_email_file_as_model_request_data.rb → calendar_from_file_request.rb} +14 -20
- data/lib/aspose-email-cloud/models/{requests/get_calendar_model_as_alternate_request_data.rb → calendar_get_as_alternate_request.rb} +21 -26
- data/lib/aspose-email-cloud/models/{requests/get_calendar_as_file_request_data.rb → calendar_get_as_file_request.rb} +25 -30
- data/lib/aspose-email-cloud/models/{requests/get_calendar_model_list_request_data.rb → calendar_get_list_request.rb} +25 -28
- data/lib/aspose-email-cloud/models/{requests/get_calendar_model_request_data.rb → calendar_get_request.rb} +25 -30
- data/lib/aspose-email-cloud/models/calendar_reminder.rb +9 -55
- data/lib/aspose-email-cloud/models/{storage_model_rq_of_calendar_dto.rb → calendar_save_request.rb} +39 -32
- data/lib/aspose-email-cloud/models/{calendar_dto_list.rb → calendar_storage_list.rb} +5 -21
- data/lib/aspose-email-cloud/models/{ai_bcr_rq.rb → client_account_base_request.rb} +19 -28
- data/lib/aspose-email-cloud/models/{requests/get_email_attachment_request_data.rb → client_account_get_multi_request.rb} +26 -38
- data/lib/aspose-email-cloud/models/{requests/get_email_request_data.rb → client_account_get_request.rb} +25 -30
- data/lib/aspose-email-cloud/models/{storage_file_rq_of_email_client_multi_account.rb → client_account_save_multi_request.rb} +28 -35
- data/lib/aspose-email-cloud/models/{storage_file_rq_of_email_client_account.rb → client_account_save_request.rb} +28 -35
- data/lib/aspose-email-cloud/models/client_folder_create_request.rb +246 -0
- data/lib/aspose-email-cloud/models/{ai_bcr_base64_image.rb → client_folder_delete_request.rb} +49 -43
- data/lib/aspose-email-cloud/models/{requests/list_email_folders_request_data.rb → client_folder_get_list_request.rb} +29 -38
- data/lib/aspose-email-cloud/models/client_message_append_file_request.rb +114 -0
- data/lib/aspose-email-cloud/models/client_message_append_request.rb +241 -0
- data/lib/aspose-email-cloud/models/client_message_base_request.rb +237 -0
- data/lib/aspose-email-cloud/models/{email_property.rb → client_message_delete_request.rb} +47 -69
- data/lib/aspose-email-cloud/models/{requests/fetch_email_model_request_data.rb → client_message_fetch_file_request.rb} +34 -41
- data/lib/aspose-email-cloud/models/{requests/fetch_email_message_request_data.rb → client_message_fetch_request.rb} +40 -41
- data/lib/aspose-email-cloud/models/{requests/list_email_models_request_data.rb → client_message_list_request.rb} +40 -41
- data/lib/aspose-email-cloud/models/{move_email_thread_rq.rb → client_message_move_request.rb} +75 -72
- data/lib/aspose-email-cloud/models/client_message_send_file_request.rb +105 -0
- data/lib/aspose-email-cloud/models/{ai_bcr_base64_rq.rb → client_message_send_request.rb} +33 -43
- data/lib/aspose-email-cloud/models/client_message_set_is_read_request.rb +251 -0
- data/lib/aspose-email-cloud/models/{hierarchical_object_response.rb → client_thread_base_request.rb} +51 -40
- data/lib/aspose-email-cloud/models/{ai_bcr_ocr_data.rb → client_thread_delete_request.rb} +58 -68
- data/lib/aspose-email-cloud/models/{requests/list_email_threads_request_data.rb → client_thread_get_list_request.rb} +28 -41
- data/lib/aspose-email-cloud/models/{requests/fetch_email_thread_messages_request_data.rb → client_thread_get_messages_request.rb} +31 -40
- data/lib/aspose-email-cloud/models/{delete_email_thread_account_rq.rb → client_thread_move_request.rb} +79 -76
- data/lib/aspose-email-cloud/models/client_thread_set_is_read_request.rb +260 -0
- data/lib/aspose-email-cloud/models/contact_as_file_request.rb +218 -0
- data/lib/aspose-email-cloud/models/{requests/convert_contact_request_data.rb → contact_convert_request.rb} +27 -33
- data/lib/aspose-email-cloud/models/contact_dto.rb +37 -207
- data/lib/aspose-email-cloud/models/{requests/get_contact_file_as_model_request_data.rb → contact_from_file_request.rb} +15 -21
- data/lib/aspose-email-cloud/models/{requests/get_contact_as_file_request_data.rb → contact_get_as_file_request.rb} +29 -34
- data/lib/aspose-email-cloud/models/{requests/get_contact_model_list_request_data.rb → contact_get_list_request.rb} +17 -19
- data/lib/aspose-email-cloud/models/{requests/get_contact_model_request_data.rb → contact_get_request.rb} +22 -27
- data/lib/aspose-email-cloud/models/{list_response_of_hierarchical_object.rb → contact_list.rb} +8 -23
- data/lib/aspose-email-cloud/models/contact_photo.rb +45 -24
- data/lib/aspose-email-cloud/models/{storage_model_rq_of_contact_dto.rb → contact_save_request.rb} +39 -32
- data/lib/aspose-email-cloud/models/{contact_dto_list.rb → contact_storage_list.rb} +5 -21
- data/lib/aspose-email-cloud/models/content_type.rb +6 -38
- data/lib/aspose-email-cloud/models/content_type_parameter.rb +3 -21
- data/lib/aspose-email-cloud/models/{requests/copy_file_request_data.rb → copy_file_request.rb} +23 -29
- data/lib/aspose-email-cloud/models/{requests/copy_folder_request_data.rb → copy_folder_request.rb} +21 -27
- data/lib/aspose-email-cloud/models/{requests/create_folder_request_data.rb → create_folder_request.rb} +16 -21
- data/lib/aspose-email-cloud/models/customer_event.rb +3 -21
- data/lib/aspose-email-cloud/models/{indexed_hierarchical_object.rb → daily_recurrence_pattern_dto.rb} +261 -265
- data/lib/aspose-email-cloud/models/{requests/delete_file_request_data.rb → delete_file_request.rb} +18 -23
- data/lib/aspose-email-cloud/models/{requests/delete_folder_request_data.rb → delete_folder_request.rb} +18 -23
- data/lib/aspose-email-cloud/models/disc_usage.rb +8 -25
- data/lib/aspose-email-cloud/models/{discover_email_config_rq.rb → discover_email_config_request.rb} +6 -28
- data/lib/aspose-email-cloud/models/{requests/is_email_address_disposable_request_data.rb → disposable_email_is_disposable_request.rb} +17 -19
- data/lib/aspose-email-cloud/models/{requests/download_file_request_data.rb → download_file_request.rb} +18 -23
- data/lib/aspose-email-cloud/models/email_account_config.rb +9 -55
- data/lib/aspose-email-cloud/models/email_account_config_list.rb +3 -19
- data/lib/aspose-email-cloud/models/email_address.rb +31 -41
- data/lib/aspose-email-cloud/models/email_as_file_request.rb +218 -0
- data/lib/aspose-email-cloud/models/email_client_account.rb +7 -41
- data/lib/aspose-email-cloud/models/email_client_account_credentials.rb +2 -25
- data/lib/aspose-email-cloud/models/email_client_account_oauth_credentials.rb +7 -46
- data/lib/aspose-email-cloud/models/email_client_account_password_credentials.rb +4 -31
- data/lib/aspose-email-cloud/models/email_client_multi_account.rb +3 -23
- data/lib/aspose-email-cloud/models/{discover_email_config_oauth.rb → email_config_discover_oauth_request.rb} +10 -48
- data/lib/aspose-email-cloud/models/{discover_email_config_password.rb → email_config_discover_password_request.rb} +7 -33
- data/lib/aspose-email-cloud/models/{requests/discover_email_config_request_data.rb → email_config_discover_request.rb} +19 -22
- data/lib/aspose-email-cloud/models/email_convert_request.rb +94 -0
- data/lib/aspose-email-cloud/models/email_dto.rb +33 -191
- data/lib/aspose-email-cloud/models/email_from_file_request.rb +84 -0
- data/lib/aspose-email-cloud/models/{requests/get_email_as_file_request_data.rb → email_get_as_file_request.rb} +18 -23
- data/lib/aspose-email-cloud/models/{requests/get_email_model_list_request_data.rb → email_get_list_request.rb} +19 -21
- data/lib/aspose-email-cloud/models/{requests/get_email_model_request_data.rb → email_get_request.rb} +24 -29
- data/lib/aspose-email-cloud/models/email_list.rb +199 -0
- data/lib/aspose-email-cloud/models/{requests/email_request.rb → email_request.rb} +6 -11
- data/lib/aspose-email-cloud/models/{storage_model_rq_of_email_dto.rb → email_save_request.rb} +39 -32
- data/lib/aspose-email-cloud/models/{email_dto_list.rb → email_storage_list.rb} +5 -21
- data/lib/aspose-email-cloud/models/email_thread.rb +5 -33
- data/lib/aspose-email-cloud/models/email_thread_list.rb +3 -19
- data/lib/aspose-email-cloud/models/enum_with_custom_of_associated_person_category.rb +22 -21
- data/lib/aspose-email-cloud/models/enum_with_custom_of_email_address_category.rb +22 -21
- data/lib/aspose-email-cloud/models/enum_with_custom_of_event_category.rb +22 -21
- data/lib/aspose-email-cloud/models/enum_with_custom_of_instant_messenger_category.rb +22 -21
- data/lib/aspose-email-cloud/models/enum_with_custom_of_phone_number_category.rb +22 -21
- data/lib/aspose-email-cloud/models/enum_with_custom_of_postal_address_category.rb +22 -21
- data/lib/aspose-email-cloud/models/enum_with_custom_of_url_category.rb +22 -21
- data/lib/aspose-email-cloud/models/error.rb +14 -39
- data/lib/aspose-email-cloud/models/error_details.rb +8 -25
- data/lib/aspose-email-cloud/models/file_version.rb +24 -61
- data/lib/aspose-email-cloud/models/file_versions.rb +5 -20
- data/lib/aspose-email-cloud/models/files_list.rb +5 -20
- data/lib/aspose-email-cloud/models/files_upload_result.rb +8 -29
- data/lib/aspose-email-cloud/models/{requests/get_disc_usage_request_data.rb → get_disc_usage_request.rb} +13 -17
- data/lib/aspose-email-cloud/models/{requests/get_file_versions_request_data.rb → get_file_versions_request.rb} +16 -21
- data/lib/aspose-email-cloud/models/{requests/get_files_list_request_data.rb → get_files_list_request.rb} +16 -21
- data/lib/aspose-email-cloud/models/{requests/http_request.rb → http_request.rb} +1 -5
- data/lib/aspose-email-cloud/models/instant_messenger_address.rb +4 -26
- data/lib/aspose-email-cloud/models/linked_resource.rb +7 -39
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_component.rb +2 -18
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_extracted.rb +2 -18
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_gender_hypothesis.rb +2 -18
- data/lib/aspose-email-cloud/models/list_response_of_contact_dto.rb +2 -18
- data/lib/aspose-email-cloud/models/list_response_of_email_account_config.rb +2 -18
- data/lib/aspose-email-cloud/models/list_response_of_email_dto.rb +2 -18
- data/lib/aspose-email-cloud/models/list_response_of_email_thread.rb +2 -18
- data/lib/aspose-email-cloud/models/list_response_of_mail_message_base.rb +198 -0
- data/lib/aspose-email-cloud/models/list_response_of_mail_server_folder.rb +2 -18
- data/lib/aspose-email-cloud/models/list_response_of_storage_file_location.rb +2 -18
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_calendar_dto.rb +2 -18
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_contact_dto.rb +2 -18
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_email_dto.rb +2 -18
- data/lib/aspose-email-cloud/models/mail_address.rb +5 -31
- data/lib/aspose-email-cloud/models/mail_message_base.rb +205 -0
- data/lib/aspose-email-cloud/models/mail_message_base64.rb +252 -0
- data/lib/aspose-email-cloud/models/mail_message_base_list.rb +199 -0
- data/lib/aspose-email-cloud/models/mail_message_dto.rb +219 -0
- data/lib/aspose-email-cloud/models/mail_message_mapi.rb +219 -0
- data/lib/aspose-email-cloud/models/mail_server_folder.rb +3 -21
- data/lib/aspose-email-cloud/models/mail_server_folder_list.rb +199 -0
- data/lib/aspose-email-cloud/models/{mime_response.rb → mapi_attachment_dto.rb} +22 -27
- data/lib/aspose-email-cloud/models/mapi_binary_property_dto.rb +223 -0
- data/lib/aspose-email-cloud/models/mapi_boolean_property_dto.rb +228 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_as_file_request.rb +218 -0
- data/lib/aspose-email-cloud/models/{add_attachment_request.rb → mapi_calendar_attendees_dto.rb} +51 -41
- data/lib/aspose-email-cloud/models/mapi_calendar_daily_recurrence_pattern_dto.rb +381 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_dto.rb +561 -0
- data/lib/aspose-email-cloud/models/{ai_bcr_ocr_data_part.rb → mapi_calendar_event_recurrence_dto.rb} +68 -109
- data/lib/aspose-email-cloud/models/mapi_calendar_exception_info_dto.rb +361 -0
- data/lib/aspose-email-cloud/models/{requests/get_calendar_file_as_model_request_data.rb → mapi_calendar_from_file_request.rb} +14 -20
- data/lib/aspose-email-cloud/models/{requests/get_calendar_request_data.rb → mapi_calendar_get_request.rb} +28 -30
- data/lib/aspose-email-cloud/models/mapi_calendar_recurrence_pattern_dto.rb +372 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_save_request.rb +232 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_time_zone_dto.rb +208 -0
- data/lib/aspose-email-cloud/models/{account_base_request.rb → mapi_calendar_time_zone_info_dto.rb} +84 -74
- data/lib/aspose-email-cloud/models/{set_message_read_flag_account_base_request.rb → mapi_calendar_time_zone_rule_dto.rb} +132 -106
- data/lib/aspose-email-cloud/models/mapi_calendar_weekly_recurrence_pattern_dto.rb +381 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_yearly_and_monthly_recurrence_pattern_dto.rb +409 -0
- data/lib/aspose-email-cloud/models/mapi_contact_as_file_request.rb +218 -0
- data/lib/aspose-email-cloud/models/mapi_contact_dto.rb +440 -0
- data/lib/aspose-email-cloud/models/mapi_contact_electronic_address_dto.rb +249 -0
- data/lib/aspose-email-cloud/models/{append_email_base_request.rb → mapi_contact_electronic_address_property_set_dto.rb} +91 -146
- data/lib/aspose-email-cloud/models/mapi_contact_event_property_set_dto.rb +218 -0
- data/lib/aspose-email-cloud/models/mapi_contact_from_file_request.rb +84 -0
- data/lib/aspose-email-cloud/models/mapi_contact_get_request.rb +99 -0
- data/lib/aspose-email-cloud/models/{link.rb → mapi_contact_name_property_set_dto.rb} +96 -63
- data/lib/aspose-email-cloud/models/mapi_contact_other_property_set_dto.rb +277 -0
- data/lib/aspose-email-cloud/models/mapi_contact_personal_info_property_set_dto.rb +366 -0
- data/lib/aspose-email-cloud/models/{indexed_primitive_object.rb → mapi_contact_photo_dto.rb} +252 -263
- data/lib/aspose-email-cloud/models/{email_thread_read_flag_rq.rb → mapi_contact_physical_address_dto.rb} +86 -104
- data/lib/aspose-email-cloud/models/{ai_bcr_parse_ocr_data_rq.rb → mapi_contact_physical_address_property_set_dto.rb} +32 -48
- data/lib/aspose-email-cloud/models/mapi_contact_professional_property_set_dto.rb +253 -0
- data/lib/aspose-email-cloud/models/mapi_contact_save_request.rb +232 -0
- data/lib/aspose-email-cloud/models/mapi_contact_telephone_property_set_dto.rb +371 -0
- data/lib/aspose-email-cloud/models/mapi_date_time_property_dto.rb +228 -0
- data/lib/aspose-email-cloud/models/{base_object.rb → mapi_electronic_address_dto.rb} +235 -232
- data/lib/aspose-email-cloud/models/{primitive_object.rb → mapi_file_as_property_dto.rb} +228 -245
- data/lib/aspose-email-cloud/models/mapi_importance_property_dto.rb +228 -0
- data/lib/aspose-email-cloud/models/mapi_int_property_dto.rb +228 -0
- data/lib/aspose-email-cloud/models/mapi_known_property_descriptor.rb +238 -0
- data/lib/aspose-email-cloud/models/mapi_legacy_free_busy_property_dto.rb +228 -0
- data/lib/aspose-email-cloud/models/mapi_message_as_file_request.rb +218 -0
- data/lib/aspose-email-cloud/models/mapi_message_dto.rb +604 -0
- data/lib/aspose-email-cloud/models/{requests/convert_email_request_data.rb → mapi_message_from_file_request.rb} +18 -24
- data/lib/aspose-email-cloud/models/mapi_message_get_request.rb +99 -0
- data/lib/aspose-email-cloud/models/mapi_message_item_base_dto.rb +359 -0
- data/lib/aspose-email-cloud/models/mapi_message_save_request.rb +232 -0
- data/lib/aspose-email-cloud/models/mapi_multi_int_property_dto.rb +223 -0
- data/lib/aspose-email-cloud/models/mapi_multi_string_property_dto.rb +223 -0
- data/lib/aspose-email-cloud/models/mapi_physical_address_index_property_dto.rb +228 -0
- data/lib/aspose-email-cloud/models/mapi_pid_lid_property_descriptor.rb +279 -0
- data/lib/aspose-email-cloud/models/mapi_pid_name_property_descriptor.rb +265 -0
- data/lib/aspose-email-cloud/models/mapi_pid_property_descriptor.rb +251 -0
- data/lib/aspose-email-cloud/models/mapi_pid_tag_property_descriptor.rb +279 -0
- data/lib/aspose-email-cloud/models/mapi_property_descriptor.rb +205 -0
- data/lib/aspose-email-cloud/models/{email_document_response.rb → mapi_property_dto.rb} +28 -27
- data/lib/aspose-email-cloud/models/{hierarchical_object.rb → mapi_recipient_dto.rb} +231 -247
- data/lib/aspose-email-cloud/models/mapi_response_type_property_dto.rb +228 -0
- data/lib/aspose-email-cloud/models/mapi_string_property_dto.rb +223 -0
- data/lib/aspose-email-cloud/models/monthly_recurrence_pattern_dto.rb +303 -0
- data/lib/aspose-email-cloud/models/{requests/move_file_request_data.rb → move_file_request.rb} +23 -29
- data/lib/aspose-email-cloud/models/{requests/move_folder_request_data.rb → move_folder_request.rb} +24 -27
- data/lib/aspose-email-cloud/models/name_value_pair.rb +3 -21
- data/lib/aspose-email-cloud/models/object_exist.rb +8 -25
- data/lib/aspose-email-cloud/models/{requests/object_exists_request_data.rb → object_exists_request.rb} +18 -23
- data/lib/aspose-email-cloud/models/phone_number.rb +4 -26
- data/lib/aspose-email-cloud/models/postal_address.rb +12 -66
- data/lib/aspose-email-cloud/models/recurrence_pattern_dto.rb +261 -0
- data/lib/aspose-email-cloud/models/reminder_attendee.rb +26 -16
- data/lib/aspose-email-cloud/models/reminder_trigger.rb +4 -26
- data/lib/aspose-email-cloud/models/storage_exist.rb +5 -18
- data/lib/aspose-email-cloud/models/{requests/storage_exists_request_data.rb → storage_exists_request.rb} +17 -19
- data/lib/aspose-email-cloud/models/storage_file.rb +17 -46
- data/lib/aspose-email-cloud/models/storage_file_location.rb +5 -27
- data/lib/aspose-email-cloud/models/storage_file_location_list.rb +199 -0
- data/lib/aspose-email-cloud/models/storage_folder_location.rb +3 -21
- data/lib/aspose-email-cloud/models/storage_model_of_calendar_dto.rb +13 -21
- data/lib/aspose-email-cloud/models/storage_model_of_contact_dto.rb +13 -21
- data/lib/aspose-email-cloud/models/storage_model_of_email_client_account.rb +217 -0
- data/lib/aspose-email-cloud/models/storage_model_of_email_client_multi_account.rb +217 -0
- data/lib/aspose-email-cloud/models/storage_model_of_email_dto.rb +13 -21
- data/lib/aspose-email-cloud/models/storage_model_of_mapi_calendar_dto.rb +217 -0
- data/lib/aspose-email-cloud/models/storage_model_of_mapi_contact_dto.rb +217 -0
- data/lib/aspose-email-cloud/models/storage_model_of_mapi_message_dto.rb +217 -0
- data/lib/aspose-email-cloud/models/task_regenerating_pattern_dto.rb +275 -0
- data/lib/aspose-email-cloud/models/{requests/upload_file_request_data.rb → upload_file_request.rb} +19 -23
- data/lib/aspose-email-cloud/models/url.rb +4 -26
- data/lib/aspose-email-cloud/models/value_t_of_boolean.rb +2 -16
- data/lib/aspose-email-cloud/models/value_t_of_string.rb +222 -0
- data/lib/aspose-email-cloud/models/weekly_recurrence_pattern_dto.rb +270 -0
- data/lib/aspose-email-cloud/models/{move_email_message_rq.rb → yearly_recurrence_pattern_dto.rb} +115 -100
- data/lib/aspose-email-cloud/version.rb +2 -2
- metadata +191 -181
- data/lib/aspose-email-cloud/models/ai_bcr_parse_storage_rq.rb +0 -251
- data/lib/aspose-email-cloud/models/append_email_account_base_request.rb +0 -318
- data/lib/aspose-email-cloud/models/append_email_mime_base_request.rb +0 -355
- data/lib/aspose-email-cloud/models/append_email_model_rq.rb +0 -336
- data/lib/aspose-email-cloud/models/create_email_request.rb +0 -231
- data/lib/aspose-email-cloud/models/create_folder_base_request.rb +0 -313
- data/lib/aspose-email-cloud/models/delete_folder_base_request.rb +0 -318
- data/lib/aspose-email-cloud/models/delete_message_base_request.rb +0 -331
- data/lib/aspose-email-cloud/models/email_account_request.rb +0 -397
- data/lib/aspose-email-cloud/models/email_document.rb +0 -233
- data/lib/aspose-email-cloud/models/email_properties.rb +0 -233
- data/lib/aspose-email-cloud/models/email_property_response.rb +0 -213
- data/lib/aspose-email-cloud/models/hierarchical_object_request.rb +0 -231
- data/lib/aspose-email-cloud/models/list_response_of_hierarchical_object_response.rb +0 -214
- data/lib/aspose-email-cloud/models/requests/add_calendar_attachment_request_data.rb +0 -99
- data/lib/aspose-email-cloud/models/requests/add_contact_attachment_request_data.rb +0 -109
- data/lib/aspose-email-cloud/models/requests/add_email_attachment_request_data.rb +0 -99
- data/lib/aspose-email-cloud/models/requests/add_mapi_attachment_request_data.rb +0 -99
- data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_model_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_ocr_data_model_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_storage_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_parsed_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/ai_name_format_parsed_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_parsed_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/ai_name_match_parsed_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/append_email_message_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/append_email_model_message_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/append_mime_message_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_alternate_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_file_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/convert_contact_model_to_file_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/convert_email_model_to_file_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/create_calendar_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/create_contact_request_data.rb +0 -99
- data/lib/aspose-email-cloud/models/requests/create_email_folder_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/create_email_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/create_mapi_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/delete_calendar_property_request_data.rb +0 -109
- data/lib/aspose-email-cloud/models/requests/delete_contact_property_request_data.rb +0 -119
- data/lib/aspose-email-cloud/models/requests/delete_email_folder_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/delete_email_message_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/delete_email_thread_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb +0 -99
- data/lib/aspose-email-cloud/models/requests/delete_mapi_properties_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/discover_email_config_oauth_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/discover_email_config_password_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb +0 -101
- data/lib/aspose-email-cloud/models/requests/get_calendar_list_request_data.rb +0 -108
- data/lib/aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb +0 -111
- data/lib/aspose-email-cloud/models/requests/get_contact_list_request_data.rb +0 -103
- data/lib/aspose-email-cloud/models/requests/get_contact_properties_request_data.rb +0 -101
- data/lib/aspose-email-cloud/models/requests/get_email_client_account_request_data.rb +0 -102
- data/lib/aspose-email-cloud/models/requests/get_email_client_multi_account_request_data.rb +0 -102
- data/lib/aspose-email-cloud/models/requests/get_email_property_request_data.rb +0 -101
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachment_request_data.rb +0 -101
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachments_request_data.rb +0 -91
- data/lib/aspose-email-cloud/models/requests/get_mapi_list_request_data.rb +0 -93
- data/lib/aspose-email-cloud/models/requests/get_mapi_properties_request_data.rb +0 -91
- data/lib/aspose-email-cloud/models/requests/list_email_messages_request_data.rb +0 -127
- data/lib/aspose-email-cloud/models/requests/move_email_message_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/move_email_thread_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/save_calendar_model_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/save_contact_model_request_data.rb +0 -99
- data/lib/aspose-email-cloud/models/requests/save_email_client_account_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/save_email_client_multi_account_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/save_email_model_request_data.rb +0 -99
- data/lib/aspose-email-cloud/models/requests/save_mail_account_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/save_mail_o_auth_account_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/send_email_mime_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/send_email_model_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/send_email_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/set_email_property_request_data.rb +0 -99
- data/lib/aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb +0 -79
- data/lib/aspose-email-cloud/models/requests/set_email_thread_read_flag_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/update_contact_properties_request_data.rb +0 -99
- data/lib/aspose-email-cloud/models/requests/update_mapi_properties_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/save_email_account_request.rb +0 -434
- data/lib/aspose-email-cloud/models/save_o_auth_email_account_request.rb +0 -521
- data/lib/aspose-email-cloud/models/send_email_base_request.rb +0 -281
- data/lib/aspose-email-cloud/models/send_email_mime_base_request.rb +0 -300
- data/lib/aspose-email-cloud/models/send_email_model_rq.rb +0 -276
- data/lib/aspose-email-cloud/models/set_email_property_request.rb +0 -231
@@ -0,0 +1,409 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="MapiCalendarYearlyAndMonthlyRecurrencePatternDto.rb">
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
|
+
# </copyright>
|
5
|
+
# <summary>
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
7
|
+
# copy of this software and associated documentation files (the "Software"),
|
8
|
+
# to deal in the Software without restriction, including without limitation
|
9
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
10
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
11
|
+
# Software is furnished to do so, subject to the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be included in
|
14
|
+
# all copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22
|
+
# DEALINGS IN THE SOFTWARE.
|
23
|
+
# </summary>
|
24
|
+
# ----------------------------------------------------------------------------
|
25
|
+
|
26
|
+
require 'date'
|
27
|
+
|
28
|
+
module AsposeEmailCloud
|
29
|
+
# Represents the yearly and monthly recurrence pattern of the mapi calendar
|
30
|
+
class MapiCalendarYearlyAndMonthlyRecurrencePatternDto < MapiCalendarRecurrencePatternDto
|
31
|
+
# Enumerated the calendar type of the mapi recurrence Enum, available values: Default, CalGregorian, CalGregorianUs, CalJapan, CalTaiwan, CalKorea, CalHijri, CalThai, CalHebrew, CalGregorianMeFrench, CalGregorianArabic, CalGregorianXLitEnglish, CalGregorianXLitFrench, CalLunarJapanese, CalChineseLunar, CalSaka, CalLunarEtoChn, CalLunarEtoKor, CalLunarRokuyou, CalLunarKorean, CalUmAlQura
|
32
|
+
# @return [String]
|
33
|
+
attr_accessor :calendar_type
|
34
|
+
# An array of dates, each of which is the original instance date of either a deleted instance or a modified instance for this recurrence.
|
35
|
+
# @return [Array<DateTime>]
|
36
|
+
attr_accessor :deleted_instance_dates
|
37
|
+
# End date of an item recurrence pattern.
|
38
|
+
# @return [DateTime]
|
39
|
+
attr_accessor :end_date
|
40
|
+
# Enumerates the ending type for the recurrence. Enum, available values: None, EndAfterDate, EndAfterNOccurrences, NeverEnd
|
41
|
+
# @return [String]
|
42
|
+
attr_accessor :end_type
|
43
|
+
# An exception specifies changes to an instance of a recurring series.
|
44
|
+
# @return [Array<MapiCalendarExceptionInfoDto>]
|
45
|
+
attr_accessor :exceptions
|
46
|
+
# Enumerates mapi calendar recurrence frequency Enum, available values: None, Daily, Weekly, Monthly, Yearly
|
47
|
+
# @return [String]
|
48
|
+
attr_accessor :frequency
|
49
|
+
# An array of dates, each of which is the date of a modified instance.
|
50
|
+
# @return [Array<DateTime>]
|
51
|
+
attr_accessor :modified_instance_dates
|
52
|
+
# Number of occurrences in a recurrence.
|
53
|
+
# @return [Integer]
|
54
|
+
attr_accessor :occurrence_count
|
55
|
+
# Enumerates the mapi calendar recurrence pattern types Enum, available values: Day, Week, Month, MonthEnd, MonthNth, HjMonth, HjMonthNth, HjMonthEnd
|
56
|
+
# @return [String]
|
57
|
+
attr_accessor :pattern_type
|
58
|
+
# Interval at which the meeting pattern repeats.
|
59
|
+
# @return [Integer]
|
60
|
+
attr_accessor :period
|
61
|
+
# Defines whether pattern is sliding or not.
|
62
|
+
# @return [BOOLEAN]
|
63
|
+
attr_accessor :sliding_flag
|
64
|
+
# Start date of an item recurrence pattern.
|
65
|
+
# @return [DateTime]
|
66
|
+
attr_accessor :start_date
|
67
|
+
# Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
|
68
|
+
# @return [String]
|
69
|
+
attr_accessor :week_start_day
|
70
|
+
def discriminator #getter method
|
71
|
+
self.class.name.split('::').last
|
72
|
+
end
|
73
|
+
|
74
|
+
def discriminator=(discriminator) #setter method, parameter ignored
|
75
|
+
@discriminator = self.class.name.split('::').last
|
76
|
+
end
|
77
|
+
# Day of the month on which the recurrence falls.
|
78
|
+
# @return [Integer]
|
79
|
+
attr_accessor :day
|
80
|
+
# Days of week at which the event occurs. Items: Enumerates the days of week of the mapi calendar recurrence pattern Enum, available values: Saturday, Friday, Thursday, Wednesday, Tuesday, Monday, Sunday
|
81
|
+
# @return [Array<String>]
|
82
|
+
attr_accessor :day_of_week
|
83
|
+
# Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last
|
84
|
+
# @return [String]
|
85
|
+
attr_accessor :position
|
86
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
87
|
+
def self.attribute_map
|
88
|
+
{
|
89
|
+
:'calendar_type' => :'calendarType',
|
90
|
+
:'deleted_instance_dates' => :'deletedInstanceDates',
|
91
|
+
:'end_date' => :'endDate',
|
92
|
+
:'end_type' => :'endType',
|
93
|
+
:'exceptions' => :'exceptions',
|
94
|
+
:'frequency' => :'frequency',
|
95
|
+
:'modified_instance_dates' => :'modifiedInstanceDates',
|
96
|
+
:'occurrence_count' => :'occurrenceCount',
|
97
|
+
:'pattern_type' => :'patternType',
|
98
|
+
:'period' => :'period',
|
99
|
+
:'sliding_flag' => :'slidingFlag',
|
100
|
+
:'start_date' => :'startDate',
|
101
|
+
:'week_start_day' => :'weekStartDay',
|
102
|
+
:'discriminator' => :'discriminator',
|
103
|
+
:'day' => :'day',
|
104
|
+
:'day_of_week' => :'dayOfWeek',
|
105
|
+
:'position' => :'position'
|
106
|
+
}
|
107
|
+
end
|
108
|
+
|
109
|
+
# Attribute type mapping.
|
110
|
+
def self.swagger_types
|
111
|
+
{
|
112
|
+
:'calendar_type' => :'String',
|
113
|
+
:'deleted_instance_dates' => :'Array<DateTime>',
|
114
|
+
:'end_date' => :'DateTime',
|
115
|
+
:'end_type' => :'String',
|
116
|
+
:'exceptions' => :'Array<MapiCalendarExceptionInfoDto>',
|
117
|
+
:'frequency' => :'String',
|
118
|
+
:'modified_instance_dates' => :'Array<DateTime>',
|
119
|
+
:'occurrence_count' => :'Integer',
|
120
|
+
:'pattern_type' => :'String',
|
121
|
+
:'period' => :'Integer',
|
122
|
+
:'sliding_flag' => :'BOOLEAN',
|
123
|
+
:'start_date' => :'DateTime',
|
124
|
+
:'week_start_day' => :'String',
|
125
|
+
:'discriminator' => :'String',
|
126
|
+
:'day' => :'Integer',
|
127
|
+
:'day_of_week' => :'Array<String>',
|
128
|
+
:'position' => :'String'
|
129
|
+
}
|
130
|
+
end
|
131
|
+
|
132
|
+
# Initializes the object
|
133
|
+
# @param [String] calendar_type Enumerated the calendar type of the mapi recurrence Enum, available values: Default, CalGregorian, CalGregorianUs, CalJapan, CalTaiwan, CalKorea, CalHijri, CalThai, CalHebrew, CalGregorianMeFrench, CalGregorianArabic, CalGregorianXLitEnglish, CalGregorianXLitFrench, CalLunarJapanese, CalChineseLunar, CalSaka, CalLunarEtoChn, CalLunarEtoKor, CalLunarRokuyou, CalLunarKorean, CalUmAlQura
|
134
|
+
# @param [Array<DateTime>] deleted_instance_dates An array of dates, each of which is the original instance date of either a deleted instance or a modified instance for this recurrence.
|
135
|
+
# @param [DateTime] end_date End date of an item recurrence pattern.
|
136
|
+
# @param [String] end_type Enumerates the ending type for the recurrence. Enum, available values: None, EndAfterDate, EndAfterNOccurrences, NeverEnd
|
137
|
+
# @param [Array<MapiCalendarExceptionInfoDto>] exceptions An exception specifies changes to an instance of a recurring series.
|
138
|
+
# @param [String] frequency Enumerates mapi calendar recurrence frequency Enum, available values: None, Daily, Weekly, Monthly, Yearly
|
139
|
+
# @param [Array<DateTime>] modified_instance_dates An array of dates, each of which is the date of a modified instance.
|
140
|
+
# @param [Integer] occurrence_count Number of occurrences in a recurrence.
|
141
|
+
# @param [String] pattern_type Enumerates the mapi calendar recurrence pattern types Enum, available values: Day, Week, Month, MonthEnd, MonthNth, HjMonth, HjMonthNth, HjMonthEnd
|
142
|
+
# @param [Integer] period Interval at which the meeting pattern repeats.
|
143
|
+
# @param [BOOLEAN] sliding_flag Defines whether pattern is sliding or not.
|
144
|
+
# @param [DateTime] start_date Start date of an item recurrence pattern.
|
145
|
+
# @param [String] week_start_day Day of week. Enum, available values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
|
146
|
+
# @param [Integer] day Day of the month on which the recurrence falls.
|
147
|
+
# @param [Array<String>] day_of_week Days of week at which the event occurs. Items: Enumerates the days of week of the mapi calendar recurrence pattern Enum, available values: Saturday, Friday, Thursday, Wednesday, Tuesday, Monday, Sunday
|
148
|
+
# @param [String] position Day positions, typically found in a month. Enum, available values: None, First, Second, Third, Fourth, Last
|
149
|
+
def initialize(
|
150
|
+
calendar_type: nil,
|
151
|
+
deleted_instance_dates: nil,
|
152
|
+
end_date: nil,
|
153
|
+
end_type: nil,
|
154
|
+
exceptions: nil,
|
155
|
+
frequency: nil,
|
156
|
+
modified_instance_dates: nil,
|
157
|
+
occurrence_count: nil,
|
158
|
+
pattern_type: nil,
|
159
|
+
period: nil,
|
160
|
+
sliding_flag: nil,
|
161
|
+
start_date: nil,
|
162
|
+
week_start_day: nil,
|
163
|
+
day: nil,
|
164
|
+
day_of_week: nil,
|
165
|
+
position: nil)
|
166
|
+
self.calendar_type = calendar_type if calendar_type
|
167
|
+
self.deleted_instance_dates = deleted_instance_dates if deleted_instance_dates
|
168
|
+
self.end_date = end_date if end_date
|
169
|
+
self.end_type = end_type if end_type
|
170
|
+
self.exceptions = exceptions if exceptions
|
171
|
+
self.frequency = frequency if frequency
|
172
|
+
self.modified_instance_dates = modified_instance_dates if modified_instance_dates
|
173
|
+
self.occurrence_count = occurrence_count if occurrence_count
|
174
|
+
self.pattern_type = pattern_type if pattern_type
|
175
|
+
self.period = period if period
|
176
|
+
self.sliding_flag = sliding_flag if sliding_flag
|
177
|
+
self.start_date = start_date if start_date
|
178
|
+
self.week_start_day = week_start_day if week_start_day
|
179
|
+
self.day = day if day
|
180
|
+
self.day_of_week = day_of_week if day_of_week
|
181
|
+
self.position = position if position
|
182
|
+
end
|
183
|
+
|
184
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
185
|
+
# @return Array for valid properties with the reasons
|
186
|
+
def list_invalid_properties
|
187
|
+
invalid_properties = Array.new
|
188
|
+
if @calendar_type.nil?
|
189
|
+
invalid_properties.push('invalid value for "calendar_type", calendar_type cannot be nil.')
|
190
|
+
end
|
191
|
+
|
192
|
+
if @end_date.nil?
|
193
|
+
invalid_properties.push('invalid value for "end_date", end_date cannot be nil.')
|
194
|
+
end
|
195
|
+
|
196
|
+
if @end_type.nil?
|
197
|
+
invalid_properties.push('invalid value for "end_type", end_type cannot be nil.')
|
198
|
+
end
|
199
|
+
|
200
|
+
if @frequency.nil?
|
201
|
+
invalid_properties.push('invalid value for "frequency", frequency cannot be nil.')
|
202
|
+
end
|
203
|
+
|
204
|
+
if @occurrence_count.nil?
|
205
|
+
invalid_properties.push('invalid value for "occurrence_count", occurrence_count cannot be nil.')
|
206
|
+
end
|
207
|
+
|
208
|
+
if @pattern_type.nil?
|
209
|
+
invalid_properties.push('invalid value for "pattern_type", pattern_type cannot be nil.')
|
210
|
+
end
|
211
|
+
|
212
|
+
if @period.nil?
|
213
|
+
invalid_properties.push('invalid value for "period", period cannot be nil.')
|
214
|
+
end
|
215
|
+
|
216
|
+
if @sliding_flag.nil?
|
217
|
+
invalid_properties.push('invalid value for "sliding_flag", sliding_flag cannot be nil.')
|
218
|
+
end
|
219
|
+
|
220
|
+
if @start_date.nil?
|
221
|
+
invalid_properties.push('invalid value for "start_date", start_date cannot be nil.')
|
222
|
+
end
|
223
|
+
|
224
|
+
if @week_start_day.nil?
|
225
|
+
invalid_properties.push('invalid value for "week_start_day", week_start_day cannot be nil.')
|
226
|
+
end
|
227
|
+
|
228
|
+
if @discriminator.nil?
|
229
|
+
invalid_properties.push('invalid value for "discriminator", discriminator cannot be nil.')
|
230
|
+
end
|
231
|
+
|
232
|
+
if @day.nil?
|
233
|
+
invalid_properties.push('invalid value for "day", day cannot be nil.')
|
234
|
+
end
|
235
|
+
|
236
|
+
if @position.nil?
|
237
|
+
invalid_properties.push('invalid value for "position", position cannot be nil.')
|
238
|
+
end
|
239
|
+
|
240
|
+
invalid_properties
|
241
|
+
end
|
242
|
+
|
243
|
+
# Check to see if the all the properties in the model are valid
|
244
|
+
# @return true if the model is valid
|
245
|
+
def valid?
|
246
|
+
return false if @calendar_type.nil?
|
247
|
+
return false if @end_date.nil?
|
248
|
+
return false if @end_type.nil?
|
249
|
+
return false if @frequency.nil?
|
250
|
+
return false if @occurrence_count.nil?
|
251
|
+
return false if @pattern_type.nil?
|
252
|
+
return false if @period.nil?
|
253
|
+
return false if @sliding_flag.nil?
|
254
|
+
return false if @start_date.nil?
|
255
|
+
return false if @week_start_day.nil?
|
256
|
+
return false if @discriminator.nil?
|
257
|
+
return false if @day.nil?
|
258
|
+
return false if @position.nil?
|
259
|
+
true
|
260
|
+
end
|
261
|
+
|
262
|
+
# Checks equality by comparing each attribute.
|
263
|
+
# @param [Object] Object to be compared
|
264
|
+
def ==(o)
|
265
|
+
return true if self.equal?(o)
|
266
|
+
self.class == o.class &&
|
267
|
+
calendar_type == o.calendar_type &&
|
268
|
+
deleted_instance_dates == o.deleted_instance_dates &&
|
269
|
+
end_date == o.end_date &&
|
270
|
+
end_type == o.end_type &&
|
271
|
+
exceptions == o.exceptions &&
|
272
|
+
frequency == o.frequency &&
|
273
|
+
modified_instance_dates == o.modified_instance_dates &&
|
274
|
+
occurrence_count == o.occurrence_count &&
|
275
|
+
pattern_type == o.pattern_type &&
|
276
|
+
period == o.period &&
|
277
|
+
sliding_flag == o.sliding_flag &&
|
278
|
+
start_date == o.start_date &&
|
279
|
+
week_start_day == o.week_start_day &&
|
280
|
+
discriminator == o.discriminator &&
|
281
|
+
day == o.day &&
|
282
|
+
day_of_week == o.day_of_week &&
|
283
|
+
position == o.position
|
284
|
+
end
|
285
|
+
|
286
|
+
# @see the `==` method
|
287
|
+
# @param [Object] Object to be compared
|
288
|
+
def eql?(o)
|
289
|
+
self == o
|
290
|
+
end
|
291
|
+
|
292
|
+
# Calculates hash code according to all attributes.
|
293
|
+
# @return [Fixnum] Hash code
|
294
|
+
def hash
|
295
|
+
[calendar_type, deleted_instance_dates, end_date, end_type, exceptions, frequency, modified_instance_dates, occurrence_count, pattern_type, period, sliding_flag, start_date, week_start_day, discriminator, day, day_of_week, position].hash
|
296
|
+
end
|
297
|
+
|
298
|
+
# Builds the object from hash
|
299
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
300
|
+
# @return [Object] Returns the model itself
|
301
|
+
def build_from_hash(attributes)
|
302
|
+
return nil unless attributes.is_a?(Hash)
|
303
|
+
self.class.swagger_types.each_pair do |key, type|
|
304
|
+
attribute_key = self.class.attribute_map[key]
|
305
|
+
attribute_key = (attribute_key[0, 1].downcase + attribute_key[1..-1]).to_sym
|
306
|
+
if type =~ /\AArray<(.*)>/i
|
307
|
+
# check to ensure the input is an array given that the the attribute
|
308
|
+
# is documented as an array but the input is not
|
309
|
+
if attributes[attribute_key].is_a?(Array)
|
310
|
+
self.send("#{key}=", attributes[attribute_key].map { |v| _deserialize($1, v) })
|
311
|
+
end
|
312
|
+
elsif !attributes[attribute_key].nil?
|
313
|
+
self.send("#{key}=", _deserialize(type, attributes[attribute_key]))
|
314
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
315
|
+
end
|
316
|
+
|
317
|
+
self
|
318
|
+
end
|
319
|
+
|
320
|
+
# Deserializes the data based on type
|
321
|
+
# @param string type Data type
|
322
|
+
# @param string value Value to be deserialized
|
323
|
+
# @return [Object] Deserialized data
|
324
|
+
def _deserialize(type, value)
|
325
|
+
case type.to_sym
|
326
|
+
when :DateTime
|
327
|
+
DateTime.parse(value)
|
328
|
+
when :Date
|
329
|
+
Date.parse(value)
|
330
|
+
when :String
|
331
|
+
value.to_s
|
332
|
+
when :Integer
|
333
|
+
value.to_i
|
334
|
+
when :Float
|
335
|
+
value.to_f
|
336
|
+
when :BOOLEAN
|
337
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
338
|
+
true
|
339
|
+
else
|
340
|
+
false
|
341
|
+
end
|
342
|
+
when :Object
|
343
|
+
# generic object (usually a Hash), return directly
|
344
|
+
value
|
345
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
346
|
+
inner_type = Regexp.last_match[:inner_type]
|
347
|
+
value.map { |v| _deserialize(inner_type, v) }
|
348
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
349
|
+
k_type = Regexp.last_match[:k_type]
|
350
|
+
v_type = Regexp.last_match[:v_type]
|
351
|
+
{}.tap do |hash|
|
352
|
+
value.each do |k, v|
|
353
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
354
|
+
end
|
355
|
+
end
|
356
|
+
else # model
|
357
|
+
sub_type = value[:type] || value[:discriminator] || type
|
358
|
+
if AsposeEmailCloud.const_defined?(sub_type)
|
359
|
+
type = sub_type
|
360
|
+
end
|
361
|
+
temp_model = AsposeEmailCloud.const_get(type).new
|
362
|
+
temp_model.build_from_hash(value)
|
363
|
+
end
|
364
|
+
end
|
365
|
+
|
366
|
+
# Returns the string representation of the object
|
367
|
+
# @return [String] String presentation of the object
|
368
|
+
def to_s
|
369
|
+
to_hash.to_s
|
370
|
+
end
|
371
|
+
|
372
|
+
# to_body is an alias to to_hash (backward compatibility)
|
373
|
+
# @return [Hash] Returns the object in the form of hash
|
374
|
+
def to_body
|
375
|
+
to_hash
|
376
|
+
end
|
377
|
+
|
378
|
+
# Returns the object in the form of hash
|
379
|
+
# @return [Hash] Returns the object in the form of hash
|
380
|
+
def to_hash
|
381
|
+
hash = {}
|
382
|
+
self.class.attribute_map.each_pair do |attr, param|
|
383
|
+
value = self.send(attr)
|
384
|
+
next if value.nil?
|
385
|
+
hash[param] = _to_hash(value)
|
386
|
+
end
|
387
|
+
hash
|
388
|
+
end
|
389
|
+
|
390
|
+
# Outputs non-array value in the form of hash
|
391
|
+
# For object, use to_hash. Otherwise, just return the value
|
392
|
+
# @param [Object] value Any valid value
|
393
|
+
# @return [Hash] Returns the value in the form of hash
|
394
|
+
def _to_hash(value)
|
395
|
+
if value.is_a?(Array)
|
396
|
+
value.compact.map { |v| _to_hash(v) }
|
397
|
+
elsif value.is_a?(Hash)
|
398
|
+
{}.tap do |hash|
|
399
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
400
|
+
end
|
401
|
+
elsif value.respond_to? :to_hash
|
402
|
+
value.to_hash
|
403
|
+
else
|
404
|
+
value
|
405
|
+
end
|
406
|
+
end
|
407
|
+
|
408
|
+
end
|
409
|
+
end
|
@@ -0,0 +1,218 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="MapiContactAsFileRequest.rb">
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
|
+
# </copyright>
|
5
|
+
# <summary>
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
7
|
+
# copy of this software and associated documentation files (the "Software"),
|
8
|
+
# to deal in the Software without restriction, including without limitation
|
9
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
10
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
11
|
+
# Software is furnished to do so, subject to the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be included in
|
14
|
+
# all copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22
|
+
# DEALINGS IN THE SOFTWARE.
|
23
|
+
# </summary>
|
24
|
+
# ----------------------------------------------------------------------------
|
25
|
+
|
26
|
+
require 'date'
|
27
|
+
|
28
|
+
module AsposeEmailCloud
|
29
|
+
# Convert MapiContact to file request.
|
30
|
+
class MapiContactAsFileRequest
|
31
|
+
# Enumerates contact formats. Enum, available values: VCard, WebDav, Msg
|
32
|
+
# @return [String]
|
33
|
+
attr_accessor :format
|
34
|
+
# MAPI contact model.
|
35
|
+
# @return [MapiContactDto]
|
36
|
+
attr_accessor :value
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
38
|
+
def self.attribute_map
|
39
|
+
{
|
40
|
+
:'format' => :'format',
|
41
|
+
:'value' => :'value'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
def self.swagger_types
|
47
|
+
{
|
48
|
+
:'format' => :'String',
|
49
|
+
:'value' => :'MapiContactDto'
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param [String] format Enumerates contact formats. Enum, available values: VCard, WebDav, Msg
|
55
|
+
# @param [MapiContactDto] value MAPI contact model.
|
56
|
+
def initialize(
|
57
|
+
format: nil,
|
58
|
+
value: nil)
|
59
|
+
self.format = format if format
|
60
|
+
self.value = value if value
|
61
|
+
end
|
62
|
+
|
63
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
64
|
+
# @return Array for valid properties with the reasons
|
65
|
+
def list_invalid_properties
|
66
|
+
invalid_properties = Array.new
|
67
|
+
if @format.nil?
|
68
|
+
invalid_properties.push('invalid value for "format", format cannot be nil.')
|
69
|
+
end
|
70
|
+
|
71
|
+
if @value.nil?
|
72
|
+
invalid_properties.push('invalid value for "value", value cannot be nil.')
|
73
|
+
end
|
74
|
+
|
75
|
+
invalid_properties
|
76
|
+
end
|
77
|
+
|
78
|
+
# Check to see if the all the properties in the model are valid
|
79
|
+
# @return true if the model is valid
|
80
|
+
def valid?
|
81
|
+
return false if @format.nil?
|
82
|
+
return false if @value.nil?
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Checks equality by comparing each attribute.
|
87
|
+
# @param [Object] Object to be compared
|
88
|
+
def ==(o)
|
89
|
+
return true if self.equal?(o)
|
90
|
+
self.class == o.class &&
|
91
|
+
format == o.format &&
|
92
|
+
value == o.value
|
93
|
+
end
|
94
|
+
|
95
|
+
# @see the `==` method
|
96
|
+
# @param [Object] Object to be compared
|
97
|
+
def eql?(o)
|
98
|
+
self == o
|
99
|
+
end
|
100
|
+
|
101
|
+
# Calculates hash code according to all attributes.
|
102
|
+
# @return [Fixnum] Hash code
|
103
|
+
def hash
|
104
|
+
[format, value].hash
|
105
|
+
end
|
106
|
+
|
107
|
+
# Builds the object from hash
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
109
|
+
# @return [Object] Returns the model itself
|
110
|
+
def build_from_hash(attributes)
|
111
|
+
return nil unless attributes.is_a?(Hash)
|
112
|
+
self.class.swagger_types.each_pair do |key, type|
|
113
|
+
attribute_key = self.class.attribute_map[key]
|
114
|
+
attribute_key = (attribute_key[0, 1].downcase + attribute_key[1..-1]).to_sym
|
115
|
+
if type =~ /\AArray<(.*)>/i
|
116
|
+
# check to ensure the input is an array given that the the attribute
|
117
|
+
# is documented as an array but the input is not
|
118
|
+
if attributes[attribute_key].is_a?(Array)
|
119
|
+
self.send("#{key}=", attributes[attribute_key].map { |v| _deserialize($1, v) })
|
120
|
+
end
|
121
|
+
elsif !attributes[attribute_key].nil?
|
122
|
+
self.send("#{key}=", _deserialize(type, attributes[attribute_key]))
|
123
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
124
|
+
end
|
125
|
+
|
126
|
+
self
|
127
|
+
end
|
128
|
+
|
129
|
+
# Deserializes the data based on type
|
130
|
+
# @param string type Data type
|
131
|
+
# @param string value Value to be deserialized
|
132
|
+
# @return [Object] Deserialized data
|
133
|
+
def _deserialize(type, value)
|
134
|
+
case type.to_sym
|
135
|
+
when :DateTime
|
136
|
+
DateTime.parse(value)
|
137
|
+
when :Date
|
138
|
+
Date.parse(value)
|
139
|
+
when :String
|
140
|
+
value.to_s
|
141
|
+
when :Integer
|
142
|
+
value.to_i
|
143
|
+
when :Float
|
144
|
+
value.to_f
|
145
|
+
when :BOOLEAN
|
146
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
147
|
+
true
|
148
|
+
else
|
149
|
+
false
|
150
|
+
end
|
151
|
+
when :Object
|
152
|
+
# generic object (usually a Hash), return directly
|
153
|
+
value
|
154
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
155
|
+
inner_type = Regexp.last_match[:inner_type]
|
156
|
+
value.map { |v| _deserialize(inner_type, v) }
|
157
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
158
|
+
k_type = Regexp.last_match[:k_type]
|
159
|
+
v_type = Regexp.last_match[:v_type]
|
160
|
+
{}.tap do |hash|
|
161
|
+
value.each do |k, v|
|
162
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
163
|
+
end
|
164
|
+
end
|
165
|
+
else # model
|
166
|
+
sub_type = value[:type] || value[:discriminator] || type
|
167
|
+
if AsposeEmailCloud.const_defined?(sub_type)
|
168
|
+
type = sub_type
|
169
|
+
end
|
170
|
+
temp_model = AsposeEmailCloud.const_get(type).new
|
171
|
+
temp_model.build_from_hash(value)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
# Returns the string representation of the object
|
176
|
+
# @return [String] String presentation of the object
|
177
|
+
def to_s
|
178
|
+
to_hash.to_s
|
179
|
+
end
|
180
|
+
|
181
|
+
# to_body is an alias to to_hash (backward compatibility)
|
182
|
+
# @return [Hash] Returns the object in the form of hash
|
183
|
+
def to_body
|
184
|
+
to_hash
|
185
|
+
end
|
186
|
+
|
187
|
+
# Returns the object in the form of hash
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
189
|
+
def to_hash
|
190
|
+
hash = {}
|
191
|
+
self.class.attribute_map.each_pair do |attr, param|
|
192
|
+
value = self.send(attr)
|
193
|
+
next if value.nil?
|
194
|
+
hash[param] = _to_hash(value)
|
195
|
+
end
|
196
|
+
hash
|
197
|
+
end
|
198
|
+
|
199
|
+
# Outputs non-array value in the form of hash
|
200
|
+
# For object, use to_hash. Otherwise, just return the value
|
201
|
+
# @param [Object] value Any valid value
|
202
|
+
# @return [Hash] Returns the value in the form of hash
|
203
|
+
def _to_hash(value)
|
204
|
+
if value.is_a?(Array)
|
205
|
+
value.compact.map { |v| _to_hash(v) }
|
206
|
+
elsif value.is_a?(Hash)
|
207
|
+
{}.tap do |hash|
|
208
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
209
|
+
end
|
210
|
+
elsif value.respond_to? :to_hash
|
211
|
+
value.to_hash
|
212
|
+
else
|
213
|
+
value
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
end
|
218
|
+
end
|