aspose_email_cloud 20.1.0 → 20.9.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 +215 -174
- data/lib/aspose-email-cloud/api/ai_bcr_api.rb +84 -0
- data/lib/aspose-email-cloud/api/ai_group.rb +49 -0
- data/lib/aspose-email-cloud/api/ai_name_api.rb +213 -0
- data/lib/aspose-email-cloud/api/calendar_api.rb +206 -0
- data/lib/aspose-email-cloud/api/client_account_api.rb +121 -0
- data/lib/aspose-email-cloud/api/client_folder_api.rb +113 -0
- data/lib/aspose-email-cloud/api/client_group.rb +59 -0
- data/lib/aspose-email-cloud/api/client_message_api.rb +230 -0
- data/lib/aspose-email-cloud/api/client_thread_api.rb +149 -0
- data/lib/aspose-email-cloud/api/cloud_storage_group.rb +54 -0
- data/lib/aspose-email-cloud/api/contact_api.rb +171 -0
- data/lib/aspose-email-cloud/api/disposable_email_api.rb +57 -0
- data/lib/aspose-email-cloud/api/email_api.rb +171 -855
- data/lib/aspose-email-cloud/api/email_cloud.rb +96 -0
- data/lib/aspose-email-cloud/api/email_config_api.rb +111 -0
- data/lib/aspose-email-cloud/api/file_api.rb +92 -0
- data/lib/aspose-email-cloud/api/folder_api.rb +93 -0
- data/lib/aspose-email-cloud/api/mapi_calendar_api.rb +147 -0
- data/lib/aspose-email-cloud/api/mapi_contact_api.rb +147 -0
- data/lib/aspose-email-cloud/api/mapi_group.rb +54 -0
- data/lib/aspose-email-cloud/api/mapi_message_api.rb +147 -0
- data/lib/aspose-email-cloud/api/storage_api.rb +81 -0
- data/lib/aspose-email-cloud/api_client.rb +387 -382
- data/lib/aspose-email-cloud/api_error.rb +41 -41
- data/lib/aspose-email-cloud/api_invoker.rb +92 -0
- data/lib/aspose-email-cloud/configuration.rb +240 -240
- data/lib/aspose-email-cloud/models/ai_bcr_image.rb +204 -215
- data/lib/aspose-email-cloud/models/ai_bcr_image_storage_file.rb +218 -228
- data/lib/aspose-email-cloud/models/ai_bcr_options.rb +208 -223
- data/lib/aspose-email-cloud/models/ai_bcr_parse_request.rb +93 -0
- data/lib/aspose-email-cloud/models/{ai_bcr_parse_storage_rq.rb → ai_bcr_parse_storage_request.rb} +227 -248
- data/lib/aspose-email-cloud/models/{requests/ai_name_complete_request_data.rb → ai_name_complete_request.rb} +104 -91
- data/lib/aspose-email-cloud/models/ai_name_component.rb +241 -264
- data/lib/aspose-email-cloud/models/ai_name_component_list.rb +199 -0
- data/lib/aspose-email-cloud/models/ai_name_cultural_context.rb +240 -267
- data/lib/aspose-email-cloud/models/{requests/ai_name_expand_request_data.rb → ai_name_expand_request.rb} +104 -91
- data/lib/aspose-email-cloud/models/ai_name_extracted.rb +213 -230
- data/lib/aspose-email-cloud/models/ai_name_extracted_component.rb +213 -228
- data/lib/aspose-email-cloud/models/ai_name_extracted_list.rb +199 -0
- data/lib/aspose-email-cloud/models/ai_name_format_request.rb +110 -0
- data/lib/aspose-email-cloud/models/ai_name_formatted.rb +208 -223
- data/lib/aspose-email-cloud/models/ai_name_gender_hypothesis.rb +218 -233
- data/lib/aspose-email-cloud/models/{list_response_of_ai_bcr_ocr_data.rb → ai_name_gender_hypothesis_list.rb} +199 -211
- data/lib/aspose-email-cloud/models/ai_name_genderize_request.rb +104 -0
- data/lib/aspose-email-cloud/models/{ai_name_parsed_match_rq.rb → ai_name_match_parsed_request.rb} +236 -263
- data/lib/aspose-email-cloud/models/ai_name_match_request.rb +114 -0
- data/lib/aspose-email-cloud/models/ai_name_match_result.rb +213 -230
- data/lib/aspose-email-cloud/models/ai_name_mismatch.rb +227 -246
- data/lib/aspose-email-cloud/models/ai_name_parse_email_address_request.rb +105 -0
- data/lib/aspose-email-cloud/models/ai_name_parse_request.rb +104 -0
- data/lib/aspose-email-cloud/models/{ai_name_parsed_rq.rb → ai_name_parsed_request.rb} +222 -243
- data/lib/aspose-email-cloud/models/ai_name_weighted.rb +213 -228
- data/lib/aspose-email-cloud/models/ai_name_weighted_variants.rb +208 -225
- data/lib/aspose-email-cloud/models/alternate_view.rb +244 -279
- data/lib/aspose-email-cloud/models/associated_person.rb +222 -241
- data/lib/aspose-email-cloud/models/attachment.rb +276 -321
- data/lib/aspose-email-cloud/models/attachment_base.rb +226 -251
- data/lib/aspose-email-cloud/models/{calendar_dto_alternate_rq.rb → calendar_as_alternate_request.rb} +246 -265
- data/lib/aspose-email-cloud/models/calendar_as_file_request.rb +218 -0
- data/lib/aspose-email-cloud/models/{requests/save_email_model_request_data.rb → calendar_convert_request.rb} +84 -89
- data/lib/aspose-email-cloud/models/calendar_dto.rb +462 -554
- data/lib/aspose-email-cloud/models/{requests/ai_bcr_ocr_storage_request_data.rb → calendar_from_file_request.rb} +74 -75
- data/lib/aspose-email-cloud/models/calendar_get_as_alternate_request.rb +102 -0
- data/lib/aspose-email-cloud/models/calendar_get_as_file_request.rb +96 -0
- data/lib/aspose-email-cloud/models/{requests/get_email_model_list_request_data.rb → calendar_get_list_request.rb} +93 -87
- data/lib/aspose-email-cloud/models/{requests/get_email_request_data.rb → calendar_get_request.rb} +86 -81
- data/lib/aspose-email-cloud/models/calendar_reminder.rb +272 -315
- data/lib/aspose-email-cloud/models/{storage_model_rq_of_calendar_dto.rb → calendar_save_request.rb} +232 -222
- data/lib/aspose-email-cloud/models/{calendar_dto_list.rb → calendar_storage_list.rb} +199 -212
- data/lib/aspose-email-cloud/models/client_account_base_request.rb +204 -0
- data/lib/aspose-email-cloud/models/{requests/get_email_attachment_request_data.rb → client_account_get_multi_request.rb} +87 -88
- data/lib/aspose-email-cloud/models/{requests/create_email_request_data.rb → client_account_get_request.rb} +86 -82
- data/lib/aspose-email-cloud/models/client_account_save_multi_request.rb +218 -0
- data/lib/aspose-email-cloud/models/client_account_save_request.rb +218 -0
- data/lib/aspose-email-cloud/models/{email_property.rb → client_folder_create_request.rb} +246 -265
- data/lib/aspose-email-cloud/models/{ai_bcr_base64_image.rb → client_folder_delete_request.rb} +237 -228
- data/lib/aspose-email-cloud/models/client_folder_get_list_request.rb +93 -0
- 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/{ai_bcr_ocr_data.rb → client_message_delete_request.rb} +246 -253
- data/lib/aspose-email-cloud/models/client_message_fetch_file_request.rb +108 -0
- data/lib/aspose-email-cloud/models/client_message_fetch_request.rb +114 -0
- data/lib/aspose-email-cloud/models/{requests/list_email_messages_request_data.rb → client_message_list_request.rb} +121 -105
- data/lib/aspose-email-cloud/models/{set_message_read_flag_account_base_request.rb → client_message_move_request.rb} +279 -315
- data/lib/aspose-email-cloud/models/client_message_send_file_request.rb +103 -0
- data/lib/aspose-email-cloud/models/client_message_send_request.rb +218 -0
- 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} +237 -223
- data/lib/aspose-email-cloud/models/{hierarchical_object.rb → client_thread_delete_request.rb} +246 -244
- data/lib/aspose-email-cloud/models/client_thread_get_list_request.rb +108 -0
- data/lib/aspose-email-cloud/models/client_thread_get_messages_request.rb +103 -0
- data/lib/aspose-email-cloud/models/{account_base_request.rb → client_thread_move_request.rb} +270 -260
- data/lib/aspose-email-cloud/models/client_thread_set_is_read_request.rb +260 -0
- data/lib/aspose-email-cloud/models/contact_as_file_request.rb +218 -0
- data/lib/aspose-email-cloud/models/contact_convert_request.rb +94 -0
- data/lib/aspose-email-cloud/models/contact_dto.rb +529 -696
- data/lib/aspose-email-cloud/models/{requests/convert_email_request_data.rb → contact_from_file_request.rb} +84 -83
- data/lib/aspose-email-cloud/models/contact_get_as_file_request.rb +106 -0
- data/lib/aspose-email-cloud/models/{requests/get_contact_model_list_request_data.rb → contact_get_list_request.rb} +99 -87
- data/lib/aspose-email-cloud/models/{requests/get_contact_model_request_data.rb → contact_get_request.rb} +96 -88
- data/lib/aspose-email-cloud/models/contact_list.rb +199 -0
- data/lib/aspose-email-cloud/models/contact_photo.rb +252 -228
- data/lib/aspose-email-cloud/models/{storage_model_rq_of_contact_dto.rb → contact_save_request.rb} +232 -222
- data/lib/aspose-email-cloud/models/{contact_dto_list.rb → contact_storage_list.rb} +199 -212
- data/lib/aspose-email-cloud/models/content_type.rb +235 -264
- data/lib/aspose-email-cloud/models/content_type_parameter.rb +208 -223
- data/lib/aspose-email-cloud/models/{requests/copy_file_request_data.rb → copy_file_request.rb} +101 -92
- data/lib/aspose-email-cloud/models/{requests/copy_folder_request_data.rb → copy_folder_request.rb} +95 -89
- data/lib/aspose-email-cloud/models/{requests/create_folder_request_data.rb → create_folder_request.rb} +79 -78
- data/lib/aspose-email-cloud/models/customer_event.rb +213 -228
- data/lib/aspose-email-cloud/models/daily_recurrence_pattern_dto.rb +261 -0
- data/lib/aspose-email-cloud/models/{requests/delete_file_request_data.rb → delete_file_request.rb} +85 -81
- data/lib/aspose-email-cloud/models/{requests/delete_folder_request_data.rb → delete_folder_request.rb} +85 -81
- data/lib/aspose-email-cloud/models/disc_usage.rb +218 -233
- data/lib/aspose-email-cloud/models/discover_email_config_request.rb +246 -0
- data/lib/aspose-email-cloud/models/{requests/ai_bcr_parse_model_request_data.rb → disposable_email_is_disposable_request.rb} +75 -75
- data/lib/aspose-email-cloud/models/{requests/download_file_request_data.rb → download_file_request.rb} +85 -81
- data/lib/aspose-email-cloud/models/{link.rb → email_account_config.rb} +277 -249
- data/lib/aspose-email-cloud/models/{list_response_of_hierarchical_object.rb → email_account_config_list.rb} +199 -211
- data/lib/aspose-email-cloud/models/email_address.rb +273 -267
- data/lib/aspose-email-cloud/models/email_as_file_request.rb +218 -0
- data/lib/aspose-email-cloud/models/{email_account_request.rb → email_client_account.rb} +316 -394
- data/lib/aspose-email-cloud/models/{ai_bcr_parse_ocr_data_rq.rb → email_client_account_credentials.rb} +238 -230
- data/lib/aspose-email-cloud/models/{save_o_auth_email_account_request.rb → email_client_account_oauth_credentials.rb} +346 -505
- data/lib/aspose-email-cloud/models/{indexed_hierarchical_object.rb → email_client_account_password_credentials.rb} +271 -262
- data/lib/aspose-email-cloud/models/email_client_multi_account.rb +213 -0
- data/lib/aspose-email-cloud/models/email_config_discover_oauth_request.rb +353 -0
- data/lib/aspose-email-cloud/models/email_config_discover_password_request.rb +278 -0
- data/lib/aspose-email-cloud/models/email_config_discover_request.rb +81 -0
- data/lib/aspose-email-cloud/models/email_convert_request.rb +94 -0
- data/lib/aspose-email-cloud/models/email_dto.rb +523 -678
- 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} +96 -88
- data/lib/aspose-email-cloud/models/email_get_list_request.rb +99 -0
- data/lib/aspose-email-cloud/models/email_get_request.rb +96 -0
- data/lib/aspose-email-cloud/models/email_list.rb +199 -0
- data/lib/aspose-email-cloud/models/{requests/email_request.rb → email_request.rb} +72 -75
- data/lib/aspose-email-cloud/models/{storage_model_rq_of_email_dto.rb → email_save_request.rb} +232 -222
- data/lib/aspose-email-cloud/models/{email_dto_list.rb → email_storage_list.rb} +199 -212
- data/lib/aspose-email-cloud/models/email_thread.rb +226 -0
- data/lib/aspose-email-cloud/models/email_thread_list.rb +199 -0
- data/lib/aspose-email-cloud/models/enum_with_custom_of_associated_person_category.rb +231 -227
- data/lib/aspose-email-cloud/models/enum_with_custom_of_email_address_category.rb +231 -227
- data/lib/aspose-email-cloud/models/enum_with_custom_of_event_category.rb +231 -227
- data/lib/aspose-email-cloud/models/enum_with_custom_of_instant_messenger_category.rb +231 -227
- data/lib/aspose-email-cloud/models/enum_with_custom_of_phone_number_category.rb +231 -227
- data/lib/aspose-email-cloud/models/enum_with_custom_of_postal_address_category.rb +231 -227
- data/lib/aspose-email-cloud/models/enum_with_custom_of_url_category.rb +231 -227
- data/lib/aspose-email-cloud/models/error.rb +226 -249
- data/lib/aspose-email-cloud/models/error_details.rb +213 -228
- data/lib/aspose-email-cloud/models/file_version.rb +268 -303
- data/lib/aspose-email-cloud/models/file_versions.rb +199 -212
- data/lib/aspose-email-cloud/models/files_list.rb +199 -212
- data/lib/aspose-email-cloud/models/files_upload_result.rb +208 -227
- data/lib/aspose-email-cloud/models/{requests/get_disc_usage_request_data.rb → get_disc_usage_request.rb} +70 -71
- data/lib/aspose-email-cloud/models/{requests/get_file_versions_request_data.rb → get_file_versions_request.rb} +79 -78
- data/lib/aspose-email-cloud/models/{requests/get_files_list_request_data.rb → get_files_list_request.rb} +79 -78
- data/lib/aspose-email-cloud/models/{requests/http_request.rb → http_request.rb} +47 -51
- data/lib/aspose-email-cloud/models/instant_messenger_address.rb +222 -241
- data/lib/aspose-email-cloud/models/linked_resource.rb +235 -264
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_component.rb +198 -211
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_extracted.rb +198 -211
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_gender_hypothesis.rb +198 -211
- data/lib/aspose-email-cloud/models/list_response_of_contact_dto.rb +198 -211
- data/lib/aspose-email-cloud/models/list_response_of_email_account_config.rb +198 -0
- data/lib/aspose-email-cloud/models/list_response_of_email_dto.rb +198 -211
- data/lib/aspose-email-cloud/models/list_response_of_email_thread.rb +198 -0
- data/lib/aspose-email-cloud/models/list_response_of_mail_message_base.rb +198 -0
- data/lib/aspose-email-cloud/models/list_response_of_mail_server_folder.rb +198 -211
- data/lib/aspose-email-cloud/models/list_response_of_storage_file_location.rb +198 -211
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_calendar_dto.rb +198 -211
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_contact_dto.rb +198 -211
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_email_dto.rb +198 -211
- data/lib/aspose-email-cloud/models/mail_address.rb +231 -241
- data/lib/aspose-email-cloud/models/mail_message_base.rb +205 -0
- data/lib/aspose-email-cloud/models/{indexed_primitive_object.rb → mail_message_base64.rb} +252 -260
- 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 +208 -223
- 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} +208 -210
- data/lib/aspose-email-cloud/models/{base_object.rb → mapi_binary_property_dto.rb} +223 -229
- 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/{ai_bcr_base64_rq.rb → mapi_calendar_attendees_dto.rb} +236 -225
- 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} +259 -297
- data/lib/aspose-email-cloud/models/mapi_calendar_exception_info_dto.rb +361 -0
- data/lib/aspose-email-cloud/models/{requests/ai_bcr_ocr_request_data.rb → mapi_calendar_from_file_request.rb} +74 -75
- data/lib/aspose-email-cloud/models/mapi_calendar_get_request.rb +87 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_recurrence_pattern_dto.rb +372 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_save_request.rb +232 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_time_zone_dto.rb +208 -0
- data/lib/aspose-email-cloud/models/{send_email_base_request.rb → mapi_calendar_time_zone_info_dto.rb} +273 -278
- data/lib/aspose-email-cloud/models/{delete_folder_base_request.rb → mapi_calendar_time_zone_rule_dto.rb} +344 -315
- 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/mapi_contact_electronic_address_property_set_dto.rb +281 -0
- 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 +97 -0
- data/lib/aspose-email-cloud/models/mapi_contact_name_property_set_dto.rb +285 -0
- data/lib/aspose-email-cloud/models/mapi_contact_other_property_set_dto.rb +277 -0
- data/lib/aspose-email-cloud/models/mapi_contact_personal_info_property_set_dto.rb +366 -0
- data/lib/aspose-email-cloud/models/mapi_contact_photo_dto.rb +252 -0
- data/lib/aspose-email-cloud/models/mapi_contact_physical_address_dto.rb +276 -0
- data/lib/aspose-email-cloud/models/{ai_bcr_storage_image_rq.rb → mapi_contact_physical_address_property_set_dto.rb} +217 -230
- 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/mapi_electronic_address_dto.rb +235 -0
- data/lib/aspose-email-cloud/models/mapi_file_as_property_dto.rb +228 -0
- 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/get_email_model_request_data.rb → mapi_message_from_file_request.rb} +84 -88
- data/lib/aspose-email-cloud/models/mapi_message_get_request.rb +97 -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/mapi_property_dto.rb +214 -0
- data/lib/aspose-email-cloud/models/mapi_recipient_dto.rb +231 -0
- data/lib/aspose-email-cloud/models/{primitive_object.rb → mapi_response_type_property_dto.rb} +228 -242
- data/lib/aspose-email-cloud/models/mapi_string_property_dto.rb +223 -0
- data/lib/aspose-email-cloud/models/{create_folder_base_request.rb → monthly_recurrence_pattern_dto.rb} +303 -310
- data/lib/aspose-email-cloud/models/{requests/move_file_request_data.rb → move_file_request.rb} +101 -92
- data/lib/aspose-email-cloud/models/{requests/move_folder_request_data.rb → move_folder_request.rb} +96 -89
- data/lib/aspose-email-cloud/models/{value_response.rb → name_value_pair.rb} +208 -210
- data/lib/aspose-email-cloud/models/object_exist.rb +218 -233
- data/lib/aspose-email-cloud/models/{requests/object_exists_request_data.rb → object_exists_request.rb} +85 -81
- data/lib/aspose-email-cloud/models/phone_number.rb +222 -241
- data/lib/aspose-email-cloud/models/postal_address.rb +299 -350
- data/lib/aspose-email-cloud/models/recurrence_pattern_dto.rb +261 -0
- data/lib/aspose-email-cloud/models/reminder_attendee.rb +223 -210
- data/lib/aspose-email-cloud/models/reminder_trigger.rb +227 -246
- data/lib/aspose-email-cloud/models/storage_exist.rb +204 -215
- data/lib/aspose-email-cloud/models/{requests/storage_exists_request_data.rb → storage_exists_request.rb} +74 -75
- data/lib/aspose-email-cloud/models/storage_file.rb +245 -272
- data/lib/aspose-email-cloud/models/storage_file_location.rb +241 -260
- data/lib/aspose-email-cloud/models/storage_file_location_list.rb +199 -0
- data/lib/aspose-email-cloud/models/storage_folder_location.rb +208 -223
- data/lib/aspose-email-cloud/models/storage_model_of_calendar_dto.rb +217 -222
- data/lib/aspose-email-cloud/models/storage_model_of_contact_dto.rb +217 -222
- 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 +217 -222
- 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} +90 -87
- data/lib/aspose-email-cloud/models/url.rb +222 -241
- data/lib/aspose-email-cloud/models/{list_response_of_string.rb → value_t_of_boolean.rb} +203 -211
- 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/yearly_recurrence_pattern_dto.rb +317 -0
- data/lib/aspose-email-cloud/version.rb +15 -15
- metadata +254 -198
- data/lib/aspose-email-cloud/models/add_attachment_request.rb +0 -223
- data/lib/aspose-email-cloud/models/ai_bcr_rq.rb +0 -210
- data/lib/aspose-email-cloud/models/append_email_account_base_request.rb +0 -315
- data/lib/aspose-email-cloud/models/append_email_base_request.rb +0 -333
- data/lib/aspose-email-cloud/models/append_email_mime_base_request.rb +0 -352
- data/lib/aspose-email-cloud/models/append_email_model_rq.rb +0 -333
- data/lib/aspose-email-cloud/models/create_email_request.rb +0 -228
- data/lib/aspose-email-cloud/models/delete_message_base_request.rb +0 -315
- data/lib/aspose-email-cloud/models/email_document.rb +0 -230
- data/lib/aspose-email-cloud/models/email_document_response.rb +0 -210
- data/lib/aspose-email-cloud/models/email_properties.rb +0 -230
- data/lib/aspose-email-cloud/models/email_property_response.rb +0 -210
- data/lib/aspose-email-cloud/models/hierarchical_object_request.rb +0 -228
- data/lib/aspose-email-cloud/models/list_response_of_hierarchical_object_response.rb +0 -211
- data/lib/aspose-email-cloud/models/requests/add_calendar_attachment_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/add_contact_attachment_request_data.rb +0 -96
- data/lib/aspose-email-cloud/models/requests/add_email_attachment_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/add_mapi_attachment_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_ocr_data_model_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_storage_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_parsed_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/ai_name_format_parsed_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/ai_name_format_request_data.rb +0 -94
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_parsed_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_request_data.rb +0 -91
- data/lib/aspose-email-cloud/models/requests/ai_name_match_parsed_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/ai_name_match_request_data.rb +0 -99
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_email_address_request_data.rb +0 -91
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_request_data.rb +0 -91
- data/lib/aspose-email-cloud/models/requests/append_email_message_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/append_email_model_message_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/append_mime_message_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_alternate_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/create_calendar_request_data.rb +0 -82
- data/lib/aspose-email-cloud/models/requests/create_contact_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/create_email_folder_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/create_mapi_request_data.rb +0 -82
- data/lib/aspose-email-cloud/models/requests/delete_calendar_property_request_data.rb +0 -96
- data/lib/aspose-email-cloud/models/requests/delete_contact_property_request_data.rb +0 -103
- data/lib/aspose-email-cloud/models/requests/delete_email_folder_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/delete_email_message_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/delete_mapi_properties_request_data.rb +0 -82
- data/lib/aspose-email-cloud/models/requests/fetch_email_message_request_data.rb +0 -93
- data/lib/aspose-email-cloud/models/requests/fetch_email_model_request_data.rb +0 -93
- data/lib/aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb +0 -88
- data/lib/aspose-email-cloud/models/requests/get_calendar_list_request_data.rb +0 -95
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_as_alternate_request_data.rb +0 -91
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_list_request_data.rb +0 -85
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_request_data.rb +0 -81
- data/lib/aspose-email-cloud/models/requests/get_calendar_request_data.rb +0 -81
- data/lib/aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb +0 -95
- data/lib/aspose-email-cloud/models/requests/get_contact_list_request_data.rb +0 -87
- data/lib/aspose-email-cloud/models/requests/get_contact_properties_request_data.rb +0 -88
- data/lib/aspose-email-cloud/models/requests/get_email_property_request_data.rb +0 -88
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachment_request_data.rb +0 -88
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachments_request_data.rb +0 -81
- data/lib/aspose-email-cloud/models/requests/get_mapi_list_request_data.rb +0 -80
- data/lib/aspose-email-cloud/models/requests/get_mapi_properties_request_data.rb +0 -81
- data/lib/aspose-email-cloud/models/requests/list_email_folders_request_data.rb +0 -88
- data/lib/aspose-email-cloud/models/requests/list_email_models_request_data.rb +0 -105
- data/lib/aspose-email-cloud/models/requests/save_calendar_model_request_data.rb +0 -82
- data/lib/aspose-email-cloud/models/requests/save_contact_model_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/save_mail_account_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/save_mail_o_auth_account_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/send_email_mime_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/send_email_model_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/send_email_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/set_email_property_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb +0 -75
- data/lib/aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb +0 -82
- data/lib/aspose-email-cloud/models/requests/update_contact_properties_request_data.rb +0 -89
- data/lib/aspose-email-cloud/models/requests/update_mapi_properties_request_data.rb +0 -82
- data/lib/aspose-email-cloud/models/save_email_account_request.rb +0 -431
- data/lib/aspose-email-cloud/models/send_email_mime_base_request.rb +0 -297
- data/lib/aspose-email-cloud/models/send_email_model_rq.rb +0 -273
- data/lib/aspose-email-cloud/models/set_email_property_request.rb +0 -228
@@ -0,0 +1,277 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="MapiContactOtherPropertySetDto.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
|
+
# The properties are used to specify additional properties of contact.
|
30
|
+
class MapiContactOtherPropertySetDto
|
31
|
+
# Indicates whether the end-user wants this message object hidden from other users who have access to the message object.
|
32
|
+
# @return [BOOLEAN]
|
33
|
+
attr_accessor :private
|
34
|
+
# Specifies whether to create a journal for each action associated with this contact.
|
35
|
+
# @return [BOOLEAN]
|
36
|
+
attr_accessor :journal
|
37
|
+
# Specifies the initial signal time for a reminder.
|
38
|
+
# @return [DateTime]
|
39
|
+
attr_accessor :reminder_time
|
40
|
+
# Represents the status of a meeting request.
|
41
|
+
# @return [String]
|
42
|
+
attr_accessor :reminder_topic
|
43
|
+
# Specifies the first field on the contact that is intended for miscellaneous use for the contact.
|
44
|
+
# @return [String]
|
45
|
+
attr_accessor :user_field1
|
46
|
+
# Specifies the second field on the contact that is intended for miscellaneous use for the contact.
|
47
|
+
# @return [String]
|
48
|
+
attr_accessor :user_field2
|
49
|
+
# Specifies the third field on the contact that is intended for miscellaneous use for the contact.
|
50
|
+
# @return [String]
|
51
|
+
attr_accessor :user_field3
|
52
|
+
# Specifies the forth field on the contact that is intended for miscellaneous use for the contact.
|
53
|
+
# @return [String]
|
54
|
+
attr_accessor :user_field4
|
55
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
56
|
+
def self.attribute_map
|
57
|
+
{
|
58
|
+
:'private' => :'private',
|
59
|
+
:'journal' => :'journal',
|
60
|
+
:'reminder_time' => :'reminderTime',
|
61
|
+
:'reminder_topic' => :'reminderTopic',
|
62
|
+
:'user_field1' => :'userField1',
|
63
|
+
:'user_field2' => :'userField2',
|
64
|
+
:'user_field3' => :'userField3',
|
65
|
+
:'user_field4' => :'userField4'
|
66
|
+
}
|
67
|
+
end
|
68
|
+
|
69
|
+
# Attribute type mapping.
|
70
|
+
def self.swagger_types
|
71
|
+
{
|
72
|
+
:'private' => :'BOOLEAN',
|
73
|
+
:'journal' => :'BOOLEAN',
|
74
|
+
:'reminder_time' => :'DateTime',
|
75
|
+
:'reminder_topic' => :'String',
|
76
|
+
:'user_field1' => :'String',
|
77
|
+
:'user_field2' => :'String',
|
78
|
+
:'user_field3' => :'String',
|
79
|
+
:'user_field4' => :'String'
|
80
|
+
}
|
81
|
+
end
|
82
|
+
|
83
|
+
# Initializes the object
|
84
|
+
# @param [BOOLEAN] private Indicates whether the end-user wants this message object hidden from other users who have access to the message object.
|
85
|
+
# @param [BOOLEAN] journal Specifies whether to create a journal for each action associated with this contact.
|
86
|
+
# @param [DateTime] reminder_time Specifies the initial signal time for a reminder.
|
87
|
+
# @param [String] reminder_topic Represents the status of a meeting request.
|
88
|
+
# @param [String] user_field1 Specifies the first field on the contact that is intended for miscellaneous use for the contact.
|
89
|
+
# @param [String] user_field2 Specifies the second field on the contact that is intended for miscellaneous use for the contact.
|
90
|
+
# @param [String] user_field3 Specifies the third field on the contact that is intended for miscellaneous use for the contact.
|
91
|
+
# @param [String] user_field4 Specifies the forth field on the contact that is intended for miscellaneous use for the contact.
|
92
|
+
def initialize(
|
93
|
+
private: nil,
|
94
|
+
journal: nil,
|
95
|
+
reminder_time: nil,
|
96
|
+
reminder_topic: nil,
|
97
|
+
user_field1: nil,
|
98
|
+
user_field2: nil,
|
99
|
+
user_field3: nil,
|
100
|
+
user_field4: nil)
|
101
|
+
self.private = private if private
|
102
|
+
self.journal = journal if journal
|
103
|
+
self.reminder_time = reminder_time if reminder_time
|
104
|
+
self.reminder_topic = reminder_topic if reminder_topic
|
105
|
+
self.user_field1 = user_field1 if user_field1
|
106
|
+
self.user_field2 = user_field2 if user_field2
|
107
|
+
self.user_field3 = user_field3 if user_field3
|
108
|
+
self.user_field4 = user_field4 if user_field4
|
109
|
+
end
|
110
|
+
|
111
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
112
|
+
# @return Array for valid properties with the reasons
|
113
|
+
def list_invalid_properties
|
114
|
+
invalid_properties = Array.new
|
115
|
+
if @private.nil?
|
116
|
+
invalid_properties.push('invalid value for "private", private cannot be nil.')
|
117
|
+
end
|
118
|
+
|
119
|
+
if @journal.nil?
|
120
|
+
invalid_properties.push('invalid value for "journal", journal cannot be nil.')
|
121
|
+
end
|
122
|
+
|
123
|
+
if @reminder_time.nil?
|
124
|
+
invalid_properties.push('invalid value for "reminder_time", reminder_time cannot be nil.')
|
125
|
+
end
|
126
|
+
|
127
|
+
invalid_properties
|
128
|
+
end
|
129
|
+
|
130
|
+
# Check to see if the all the properties in the model are valid
|
131
|
+
# @return true if the model is valid
|
132
|
+
def valid?
|
133
|
+
return false if @private.nil?
|
134
|
+
return false if @journal.nil?
|
135
|
+
return false if @reminder_time.nil?
|
136
|
+
true
|
137
|
+
end
|
138
|
+
|
139
|
+
# Checks equality by comparing each attribute.
|
140
|
+
# @param [Object] Object to be compared
|
141
|
+
def ==(o)
|
142
|
+
return true if self.equal?(o)
|
143
|
+
self.class == o.class &&
|
144
|
+
private == o.private &&
|
145
|
+
journal == o.journal &&
|
146
|
+
reminder_time == o.reminder_time &&
|
147
|
+
reminder_topic == o.reminder_topic &&
|
148
|
+
user_field1 == o.user_field1 &&
|
149
|
+
user_field2 == o.user_field2 &&
|
150
|
+
user_field3 == o.user_field3 &&
|
151
|
+
user_field4 == o.user_field4
|
152
|
+
end
|
153
|
+
|
154
|
+
# @see the `==` method
|
155
|
+
# @param [Object] Object to be compared
|
156
|
+
def eql?(o)
|
157
|
+
self == o
|
158
|
+
end
|
159
|
+
|
160
|
+
# Calculates hash code according to all attributes.
|
161
|
+
# @return [Fixnum] Hash code
|
162
|
+
def hash
|
163
|
+
[private, journal, reminder_time, reminder_topic, user_field1, user_field2, user_field3, user_field4].hash
|
164
|
+
end
|
165
|
+
|
166
|
+
# Builds the object from hash
|
167
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
168
|
+
# @return [Object] Returns the model itself
|
169
|
+
def build_from_hash(attributes)
|
170
|
+
return nil unless attributes.is_a?(Hash)
|
171
|
+
self.class.swagger_types.each_pair do |key, type|
|
172
|
+
attribute_key = self.class.attribute_map[key]
|
173
|
+
attribute_key = (attribute_key[0, 1].downcase + attribute_key[1..-1]).to_sym
|
174
|
+
if type =~ /\AArray<(.*)>/i
|
175
|
+
# check to ensure the input is an array given that the the attribute
|
176
|
+
# is documented as an array but the input is not
|
177
|
+
if attributes[attribute_key].is_a?(Array)
|
178
|
+
self.send("#{key}=", attributes[attribute_key].map { |v| _deserialize($1, v) })
|
179
|
+
end
|
180
|
+
elsif !attributes[attribute_key].nil?
|
181
|
+
self.send("#{key}=", _deserialize(type, attributes[attribute_key]))
|
182
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
183
|
+
end
|
184
|
+
|
185
|
+
self
|
186
|
+
end
|
187
|
+
|
188
|
+
# Deserializes the data based on type
|
189
|
+
# @param string type Data type
|
190
|
+
# @param string value Value to be deserialized
|
191
|
+
# @return [Object] Deserialized data
|
192
|
+
def _deserialize(type, value)
|
193
|
+
case type.to_sym
|
194
|
+
when :DateTime
|
195
|
+
DateTime.parse(value)
|
196
|
+
when :Date
|
197
|
+
Date.parse(value)
|
198
|
+
when :String
|
199
|
+
value.to_s
|
200
|
+
when :Integer
|
201
|
+
value.to_i
|
202
|
+
when :Float
|
203
|
+
value.to_f
|
204
|
+
when :BOOLEAN
|
205
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
206
|
+
true
|
207
|
+
else
|
208
|
+
false
|
209
|
+
end
|
210
|
+
when :Object
|
211
|
+
# generic object (usually a Hash), return directly
|
212
|
+
value
|
213
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
214
|
+
inner_type = Regexp.last_match[:inner_type]
|
215
|
+
value.map { |v| _deserialize(inner_type, v) }
|
216
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
217
|
+
k_type = Regexp.last_match[:k_type]
|
218
|
+
v_type = Regexp.last_match[:v_type]
|
219
|
+
{}.tap do |hash|
|
220
|
+
value.each do |k, v|
|
221
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
222
|
+
end
|
223
|
+
end
|
224
|
+
else # model
|
225
|
+
sub_type = value[:type] || value[:discriminator] || type
|
226
|
+
if AsposeEmailCloud.const_defined?(sub_type)
|
227
|
+
type = sub_type
|
228
|
+
end
|
229
|
+
temp_model = AsposeEmailCloud.const_get(type).new
|
230
|
+
temp_model.build_from_hash(value)
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
# Returns the string representation of the object
|
235
|
+
# @return [String] String presentation of the object
|
236
|
+
def to_s
|
237
|
+
to_hash.to_s
|
238
|
+
end
|
239
|
+
|
240
|
+
# to_body is an alias to to_hash (backward compatibility)
|
241
|
+
# @return [Hash] Returns the object in the form of hash
|
242
|
+
def to_body
|
243
|
+
to_hash
|
244
|
+
end
|
245
|
+
|
246
|
+
# Returns the object in the form of hash
|
247
|
+
# @return [Hash] Returns the object in the form of hash
|
248
|
+
def to_hash
|
249
|
+
hash = {}
|
250
|
+
self.class.attribute_map.each_pair do |attr, param|
|
251
|
+
value = self.send(attr)
|
252
|
+
next if value.nil?
|
253
|
+
hash[param] = _to_hash(value)
|
254
|
+
end
|
255
|
+
hash
|
256
|
+
end
|
257
|
+
|
258
|
+
# Outputs non-array value in the form of hash
|
259
|
+
# For object, use to_hash. Otherwise, just return the value
|
260
|
+
# @param [Object] value Any valid value
|
261
|
+
# @return [Hash] Returns the value in the form of hash
|
262
|
+
def _to_hash(value)
|
263
|
+
if value.is_a?(Array)
|
264
|
+
value.compact.map { |v| _to_hash(v) }
|
265
|
+
elsif value.is_a?(Hash)
|
266
|
+
{}.tap do |hash|
|
267
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
268
|
+
end
|
269
|
+
elsif value.respond_to? :to_hash
|
270
|
+
value.to_hash
|
271
|
+
else
|
272
|
+
value
|
273
|
+
end
|
274
|
+
end
|
275
|
+
|
276
|
+
end
|
277
|
+
end
|
@@ -0,0 +1,366 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="MapiContactPersonalInfoPropertySetDto.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
|
+
# Specify other additional contact information.
|
30
|
+
class MapiContactPersonalInfoPropertySetDto
|
31
|
+
# Specifies the name of the contact's spouse/partner
|
32
|
+
# @return [String]
|
33
|
+
attr_accessor :spouse_name
|
34
|
+
# Specifies the contact's personal web page URL
|
35
|
+
# @return [String]
|
36
|
+
attr_accessor :personal_home_page
|
37
|
+
# Specifies the language that the contact uses
|
38
|
+
# @return [String]
|
39
|
+
attr_accessor :language
|
40
|
+
# Specifies the additional notes
|
41
|
+
# @return [String]
|
42
|
+
attr_accessor :notes
|
43
|
+
# Specifies the hobbies of the contact
|
44
|
+
# @return [String]
|
45
|
+
attr_accessor :hobbies
|
46
|
+
# Specifies the location of the contact
|
47
|
+
# @return [String]
|
48
|
+
attr_accessor :location
|
49
|
+
# Specifies the contact's instant messaging address
|
50
|
+
# @return [String]
|
51
|
+
attr_accessor :instant_messaging_address
|
52
|
+
# Specifies an organizational ID number for the contact
|
53
|
+
# @return [String]
|
54
|
+
attr_accessor :organizational_id_number
|
55
|
+
# Specifies the contact's customer ID number
|
56
|
+
# @return [String]
|
57
|
+
attr_accessor :customer_id
|
58
|
+
# Specifies the contact's government ID number
|
59
|
+
# @return [String]
|
60
|
+
attr_accessor :government_id_number
|
61
|
+
# Specifies a URL path from which a client can retrieve free/busy information for the contact as an iCal file
|
62
|
+
# @return [String]
|
63
|
+
attr_accessor :free_busy_location
|
64
|
+
# Specifies the account name of the contact
|
65
|
+
# @return [String]
|
66
|
+
attr_accessor :account
|
67
|
+
# Specifies the contact's business web page URL
|
68
|
+
# @return [String]
|
69
|
+
attr_accessor :html
|
70
|
+
# Specifies the contact's business web page URL
|
71
|
+
# @return [String]
|
72
|
+
attr_accessor :business_home_page
|
73
|
+
# Specifies the contact's File Transfer Protocol (FTP) URL
|
74
|
+
# @return [String]
|
75
|
+
attr_accessor :ftp_site
|
76
|
+
# Specifies the name of the network to which the contact's computer is connected
|
77
|
+
# @return [String]
|
78
|
+
attr_accessor :computer_network_name
|
79
|
+
# Gender of the contact Enum, available values: Unspecified, Female, Male
|
80
|
+
# @return [String]
|
81
|
+
attr_accessor :gender
|
82
|
+
# Specifies the name of the person who referred this contact to the user
|
83
|
+
# @return [String]
|
84
|
+
attr_accessor :referred_by_name
|
85
|
+
# Contains a list of names of children.
|
86
|
+
# @return [Array<String>]
|
87
|
+
attr_accessor :children
|
88
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
89
|
+
def self.attribute_map
|
90
|
+
{
|
91
|
+
:'spouse_name' => :'spouseName',
|
92
|
+
:'personal_home_page' => :'personalHomePage',
|
93
|
+
:'language' => :'language',
|
94
|
+
:'notes' => :'notes',
|
95
|
+
:'hobbies' => :'hobbies',
|
96
|
+
:'location' => :'location',
|
97
|
+
:'instant_messaging_address' => :'instantMessagingAddress',
|
98
|
+
:'organizational_id_number' => :'organizationalIdNumber',
|
99
|
+
:'customer_id' => :'customerId',
|
100
|
+
:'government_id_number' => :'governmentIdNumber',
|
101
|
+
:'free_busy_location' => :'freeBusyLocation',
|
102
|
+
:'account' => :'account',
|
103
|
+
:'html' => :'html',
|
104
|
+
:'business_home_page' => :'businessHomePage',
|
105
|
+
:'ftp_site' => :'ftpSite',
|
106
|
+
:'computer_network_name' => :'computerNetworkName',
|
107
|
+
:'gender' => :'gender',
|
108
|
+
:'referred_by_name' => :'referredByName',
|
109
|
+
:'children' => :'children'
|
110
|
+
}
|
111
|
+
end
|
112
|
+
|
113
|
+
# Attribute type mapping.
|
114
|
+
def self.swagger_types
|
115
|
+
{
|
116
|
+
:'spouse_name' => :'String',
|
117
|
+
:'personal_home_page' => :'String',
|
118
|
+
:'language' => :'String',
|
119
|
+
:'notes' => :'String',
|
120
|
+
:'hobbies' => :'String',
|
121
|
+
:'location' => :'String',
|
122
|
+
:'instant_messaging_address' => :'String',
|
123
|
+
:'organizational_id_number' => :'String',
|
124
|
+
:'customer_id' => :'String',
|
125
|
+
:'government_id_number' => :'String',
|
126
|
+
:'free_busy_location' => :'String',
|
127
|
+
:'account' => :'String',
|
128
|
+
:'html' => :'String',
|
129
|
+
:'business_home_page' => :'String',
|
130
|
+
:'ftp_site' => :'String',
|
131
|
+
:'computer_network_name' => :'String',
|
132
|
+
:'gender' => :'String',
|
133
|
+
:'referred_by_name' => :'String',
|
134
|
+
:'children' => :'Array<String>'
|
135
|
+
}
|
136
|
+
end
|
137
|
+
|
138
|
+
# Initializes the object
|
139
|
+
# @param [String] spouse_name Specifies the name of the contact's spouse/partner
|
140
|
+
# @param [String] personal_home_page Specifies the contact's personal web page URL
|
141
|
+
# @param [String] language Specifies the language that the contact uses
|
142
|
+
# @param [String] notes Specifies the additional notes
|
143
|
+
# @param [String] hobbies Specifies the hobbies of the contact
|
144
|
+
# @param [String] location Specifies the location of the contact
|
145
|
+
# @param [String] instant_messaging_address Specifies the contact's instant messaging address
|
146
|
+
# @param [String] organizational_id_number Specifies an organizational ID number for the contact
|
147
|
+
# @param [String] customer_id Specifies the contact's customer ID number
|
148
|
+
# @param [String] government_id_number Specifies the contact's government ID number
|
149
|
+
# @param [String] free_busy_location Specifies a URL path from which a client can retrieve free/busy information for the contact as an iCal file
|
150
|
+
# @param [String] account Specifies the account name of the contact
|
151
|
+
# @param [String] html Specifies the contact's business web page URL
|
152
|
+
# @param [String] business_home_page Specifies the contact's business web page URL
|
153
|
+
# @param [String] ftp_site Specifies the contact's File Transfer Protocol (FTP) URL
|
154
|
+
# @param [String] computer_network_name Specifies the name of the network to which the contact's computer is connected
|
155
|
+
# @param [String] gender Gender of the contact Enum, available values: Unspecified, Female, Male
|
156
|
+
# @param [String] referred_by_name Specifies the name of the person who referred this contact to the user
|
157
|
+
# @param [Array<String>] children Contains a list of names of children.
|
158
|
+
def initialize(
|
159
|
+
spouse_name: nil,
|
160
|
+
personal_home_page: nil,
|
161
|
+
language: nil,
|
162
|
+
notes: nil,
|
163
|
+
hobbies: nil,
|
164
|
+
location: nil,
|
165
|
+
instant_messaging_address: nil,
|
166
|
+
organizational_id_number: nil,
|
167
|
+
customer_id: nil,
|
168
|
+
government_id_number: nil,
|
169
|
+
free_busy_location: nil,
|
170
|
+
account: nil,
|
171
|
+
html: nil,
|
172
|
+
business_home_page: nil,
|
173
|
+
ftp_site: nil,
|
174
|
+
computer_network_name: nil,
|
175
|
+
gender: nil,
|
176
|
+
referred_by_name: nil,
|
177
|
+
children: nil)
|
178
|
+
self.spouse_name = spouse_name if spouse_name
|
179
|
+
self.personal_home_page = personal_home_page if personal_home_page
|
180
|
+
self.language = language if language
|
181
|
+
self.notes = notes if notes
|
182
|
+
self.hobbies = hobbies if hobbies
|
183
|
+
self.location = location if location
|
184
|
+
self.instant_messaging_address = instant_messaging_address if instant_messaging_address
|
185
|
+
self.organizational_id_number = organizational_id_number if organizational_id_number
|
186
|
+
self.customer_id = customer_id if customer_id
|
187
|
+
self.government_id_number = government_id_number if government_id_number
|
188
|
+
self.free_busy_location = free_busy_location if free_busy_location
|
189
|
+
self.account = account if account
|
190
|
+
self.html = html if html
|
191
|
+
self.business_home_page = business_home_page if business_home_page
|
192
|
+
self.ftp_site = ftp_site if ftp_site
|
193
|
+
self.computer_network_name = computer_network_name if computer_network_name
|
194
|
+
self.gender = gender if gender
|
195
|
+
self.referred_by_name = referred_by_name if referred_by_name
|
196
|
+
self.children = children if children
|
197
|
+
end
|
198
|
+
|
199
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
200
|
+
# @return Array for valid properties with the reasons
|
201
|
+
def list_invalid_properties
|
202
|
+
invalid_properties = Array.new
|
203
|
+
if @gender.nil?
|
204
|
+
invalid_properties.push('invalid value for "gender", gender cannot be nil.')
|
205
|
+
end
|
206
|
+
|
207
|
+
invalid_properties
|
208
|
+
end
|
209
|
+
|
210
|
+
# Check to see if the all the properties in the model are valid
|
211
|
+
# @return true if the model is valid
|
212
|
+
def valid?
|
213
|
+
return false if @gender.nil?
|
214
|
+
true
|
215
|
+
end
|
216
|
+
|
217
|
+
# Checks equality by comparing each attribute.
|
218
|
+
# @param [Object] Object to be compared
|
219
|
+
def ==(o)
|
220
|
+
return true if self.equal?(o)
|
221
|
+
self.class == o.class &&
|
222
|
+
spouse_name == o.spouse_name &&
|
223
|
+
personal_home_page == o.personal_home_page &&
|
224
|
+
language == o.language &&
|
225
|
+
notes == o.notes &&
|
226
|
+
hobbies == o.hobbies &&
|
227
|
+
location == o.location &&
|
228
|
+
instant_messaging_address == o.instant_messaging_address &&
|
229
|
+
organizational_id_number == o.organizational_id_number &&
|
230
|
+
customer_id == o.customer_id &&
|
231
|
+
government_id_number == o.government_id_number &&
|
232
|
+
free_busy_location == o.free_busy_location &&
|
233
|
+
account == o.account &&
|
234
|
+
html == o.html &&
|
235
|
+
business_home_page == o.business_home_page &&
|
236
|
+
ftp_site == o.ftp_site &&
|
237
|
+
computer_network_name == o.computer_network_name &&
|
238
|
+
gender == o.gender &&
|
239
|
+
referred_by_name == o.referred_by_name &&
|
240
|
+
children == o.children
|
241
|
+
end
|
242
|
+
|
243
|
+
# @see the `==` method
|
244
|
+
# @param [Object] Object to be compared
|
245
|
+
def eql?(o)
|
246
|
+
self == o
|
247
|
+
end
|
248
|
+
|
249
|
+
# Calculates hash code according to all attributes.
|
250
|
+
# @return [Fixnum] Hash code
|
251
|
+
def hash
|
252
|
+
[spouse_name, personal_home_page, language, notes, hobbies, location, instant_messaging_address, organizational_id_number, customer_id, government_id_number, free_busy_location, account, html, business_home_page, ftp_site, computer_network_name, gender, referred_by_name, children].hash
|
253
|
+
end
|
254
|
+
|
255
|
+
# Builds the object from hash
|
256
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
257
|
+
# @return [Object] Returns the model itself
|
258
|
+
def build_from_hash(attributes)
|
259
|
+
return nil unless attributes.is_a?(Hash)
|
260
|
+
self.class.swagger_types.each_pair do |key, type|
|
261
|
+
attribute_key = self.class.attribute_map[key]
|
262
|
+
attribute_key = (attribute_key[0, 1].downcase + attribute_key[1..-1]).to_sym
|
263
|
+
if type =~ /\AArray<(.*)>/i
|
264
|
+
# check to ensure the input is an array given that the the attribute
|
265
|
+
# is documented as an array but the input is not
|
266
|
+
if attributes[attribute_key].is_a?(Array)
|
267
|
+
self.send("#{key}=", attributes[attribute_key].map { |v| _deserialize($1, v) })
|
268
|
+
end
|
269
|
+
elsif !attributes[attribute_key].nil?
|
270
|
+
self.send("#{key}=", _deserialize(type, attributes[attribute_key]))
|
271
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
272
|
+
end
|
273
|
+
|
274
|
+
self
|
275
|
+
end
|
276
|
+
|
277
|
+
# Deserializes the data based on type
|
278
|
+
# @param string type Data type
|
279
|
+
# @param string value Value to be deserialized
|
280
|
+
# @return [Object] Deserialized data
|
281
|
+
def _deserialize(type, value)
|
282
|
+
case type.to_sym
|
283
|
+
when :DateTime
|
284
|
+
DateTime.parse(value)
|
285
|
+
when :Date
|
286
|
+
Date.parse(value)
|
287
|
+
when :String
|
288
|
+
value.to_s
|
289
|
+
when :Integer
|
290
|
+
value.to_i
|
291
|
+
when :Float
|
292
|
+
value.to_f
|
293
|
+
when :BOOLEAN
|
294
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
295
|
+
true
|
296
|
+
else
|
297
|
+
false
|
298
|
+
end
|
299
|
+
when :Object
|
300
|
+
# generic object (usually a Hash), return directly
|
301
|
+
value
|
302
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
303
|
+
inner_type = Regexp.last_match[:inner_type]
|
304
|
+
value.map { |v| _deserialize(inner_type, v) }
|
305
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
306
|
+
k_type = Regexp.last_match[:k_type]
|
307
|
+
v_type = Regexp.last_match[:v_type]
|
308
|
+
{}.tap do |hash|
|
309
|
+
value.each do |k, v|
|
310
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
311
|
+
end
|
312
|
+
end
|
313
|
+
else # model
|
314
|
+
sub_type = value[:type] || value[:discriminator] || type
|
315
|
+
if AsposeEmailCloud.const_defined?(sub_type)
|
316
|
+
type = sub_type
|
317
|
+
end
|
318
|
+
temp_model = AsposeEmailCloud.const_get(type).new
|
319
|
+
temp_model.build_from_hash(value)
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
323
|
+
# Returns the string representation of the object
|
324
|
+
# @return [String] String presentation of the object
|
325
|
+
def to_s
|
326
|
+
to_hash.to_s
|
327
|
+
end
|
328
|
+
|
329
|
+
# to_body is an alias to to_hash (backward compatibility)
|
330
|
+
# @return [Hash] Returns the object in the form of hash
|
331
|
+
def to_body
|
332
|
+
to_hash
|
333
|
+
end
|
334
|
+
|
335
|
+
# Returns the object in the form of hash
|
336
|
+
# @return [Hash] Returns the object in the form of hash
|
337
|
+
def to_hash
|
338
|
+
hash = {}
|
339
|
+
self.class.attribute_map.each_pair do |attr, param|
|
340
|
+
value = self.send(attr)
|
341
|
+
next if value.nil?
|
342
|
+
hash[param] = _to_hash(value)
|
343
|
+
end
|
344
|
+
hash
|
345
|
+
end
|
346
|
+
|
347
|
+
# Outputs non-array value in the form of hash
|
348
|
+
# For object, use to_hash. Otherwise, just return the value
|
349
|
+
# @param [Object] value Any valid value
|
350
|
+
# @return [Hash] Returns the value in the form of hash
|
351
|
+
def _to_hash(value)
|
352
|
+
if value.is_a?(Array)
|
353
|
+
value.compact.map { |v| _to_hash(v) }
|
354
|
+
elsif value.is_a?(Hash)
|
355
|
+
{}.tap do |hash|
|
356
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
357
|
+
end
|
358
|
+
elsif value.respond_to? :to_hash
|
359
|
+
value.to_hash
|
360
|
+
else
|
361
|
+
value
|
362
|
+
end
|
363
|
+
end
|
364
|
+
|
365
|
+
end
|
366
|
+
end
|