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,232 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="MapiContactSaveRequest.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
|
+
# MapiContact save to storage request.
|
30
|
+
class MapiContactSaveRequest < StorageModelOfMapiContactDto
|
31
|
+
|
32
|
+
# @return [StorageFileLocation]
|
33
|
+
attr_accessor :storage_file
|
34
|
+
|
35
|
+
# @return [MapiContactDto]
|
36
|
+
attr_accessor :value
|
37
|
+
# Enumerates contact formats. Enum, available values: VCard, WebDav, Msg
|
38
|
+
# @return [String]
|
39
|
+
attr_accessor :format
|
40
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
41
|
+
def self.attribute_map
|
42
|
+
{
|
43
|
+
:'storage_file' => :'storageFile',
|
44
|
+
:'value' => :'value',
|
45
|
+
:'format' => :'format'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Attribute type mapping.
|
50
|
+
def self.swagger_types
|
51
|
+
{
|
52
|
+
:'storage_file' => :'StorageFileLocation',
|
53
|
+
:'value' => :'MapiContactDto',
|
54
|
+
:'format' => :'String'
|
55
|
+
}
|
56
|
+
end
|
57
|
+
|
58
|
+
# Initializes the object
|
59
|
+
# @param [StorageFileLocation] storage_file
|
60
|
+
# @param [MapiContactDto] value
|
61
|
+
# @param [String] format Enumerates contact formats. Enum, available values: VCard, WebDav, Msg
|
62
|
+
def initialize(
|
63
|
+
storage_file: nil,
|
64
|
+
value: nil,
|
65
|
+
format: nil)
|
66
|
+
self.storage_file = storage_file if storage_file
|
67
|
+
self.value = value if value
|
68
|
+
self.format = format if format
|
69
|
+
end
|
70
|
+
|
71
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
72
|
+
# @return Array for valid properties with the reasons
|
73
|
+
def list_invalid_properties
|
74
|
+
invalid_properties = Array.new
|
75
|
+
if @storage_file.nil?
|
76
|
+
invalid_properties.push('invalid value for "storage_file", storage_file cannot be nil.')
|
77
|
+
end
|
78
|
+
|
79
|
+
if @value.nil?
|
80
|
+
invalid_properties.push('invalid value for "value", value cannot be nil.')
|
81
|
+
end
|
82
|
+
|
83
|
+
if @format.nil?
|
84
|
+
invalid_properties.push('invalid value for "format", format cannot be nil.')
|
85
|
+
end
|
86
|
+
|
87
|
+
invalid_properties
|
88
|
+
end
|
89
|
+
|
90
|
+
# Check to see if the all the properties in the model are valid
|
91
|
+
# @return true if the model is valid
|
92
|
+
def valid?
|
93
|
+
return false if @storage_file.nil?
|
94
|
+
return false if @value.nil?
|
95
|
+
return false if @format.nil?
|
96
|
+
true
|
97
|
+
end
|
98
|
+
|
99
|
+
# Checks equality by comparing each attribute.
|
100
|
+
# @param [Object] Object to be compared
|
101
|
+
def ==(o)
|
102
|
+
return true if self.equal?(o)
|
103
|
+
self.class == o.class &&
|
104
|
+
storage_file == o.storage_file &&
|
105
|
+
value == o.value &&
|
106
|
+
format == o.format
|
107
|
+
end
|
108
|
+
|
109
|
+
# @see the `==` method
|
110
|
+
# @param [Object] Object to be compared
|
111
|
+
def eql?(o)
|
112
|
+
self == o
|
113
|
+
end
|
114
|
+
|
115
|
+
# Calculates hash code according to all attributes.
|
116
|
+
# @return [Fixnum] Hash code
|
117
|
+
def hash
|
118
|
+
[storage_file, value, format].hash
|
119
|
+
end
|
120
|
+
|
121
|
+
# Builds the object from hash
|
122
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
123
|
+
# @return [Object] Returns the model itself
|
124
|
+
def build_from_hash(attributes)
|
125
|
+
return nil unless attributes.is_a?(Hash)
|
126
|
+
self.class.swagger_types.each_pair do |key, type|
|
127
|
+
attribute_key = self.class.attribute_map[key]
|
128
|
+
attribute_key = (attribute_key[0, 1].downcase + attribute_key[1..-1]).to_sym
|
129
|
+
if type =~ /\AArray<(.*)>/i
|
130
|
+
# check to ensure the input is an array given that the the attribute
|
131
|
+
# is documented as an array but the input is not
|
132
|
+
if attributes[attribute_key].is_a?(Array)
|
133
|
+
self.send("#{key}=", attributes[attribute_key].map { |v| _deserialize($1, v) })
|
134
|
+
end
|
135
|
+
elsif !attributes[attribute_key].nil?
|
136
|
+
self.send("#{key}=", _deserialize(type, attributes[attribute_key]))
|
137
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
138
|
+
end
|
139
|
+
|
140
|
+
self
|
141
|
+
end
|
142
|
+
|
143
|
+
# Deserializes the data based on type
|
144
|
+
# @param string type Data type
|
145
|
+
# @param string value Value to be deserialized
|
146
|
+
# @return [Object] Deserialized data
|
147
|
+
def _deserialize(type, value)
|
148
|
+
case type.to_sym
|
149
|
+
when :DateTime
|
150
|
+
DateTime.parse(value)
|
151
|
+
when :Date
|
152
|
+
Date.parse(value)
|
153
|
+
when :String
|
154
|
+
value.to_s
|
155
|
+
when :Integer
|
156
|
+
value.to_i
|
157
|
+
when :Float
|
158
|
+
value.to_f
|
159
|
+
when :BOOLEAN
|
160
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
161
|
+
true
|
162
|
+
else
|
163
|
+
false
|
164
|
+
end
|
165
|
+
when :Object
|
166
|
+
# generic object (usually a Hash), return directly
|
167
|
+
value
|
168
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
169
|
+
inner_type = Regexp.last_match[:inner_type]
|
170
|
+
value.map { |v| _deserialize(inner_type, v) }
|
171
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
172
|
+
k_type = Regexp.last_match[:k_type]
|
173
|
+
v_type = Regexp.last_match[:v_type]
|
174
|
+
{}.tap do |hash|
|
175
|
+
value.each do |k, v|
|
176
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
177
|
+
end
|
178
|
+
end
|
179
|
+
else # model
|
180
|
+
sub_type = value[:type] || value[:discriminator] || type
|
181
|
+
if AsposeEmailCloud.const_defined?(sub_type)
|
182
|
+
type = sub_type
|
183
|
+
end
|
184
|
+
temp_model = AsposeEmailCloud.const_get(type).new
|
185
|
+
temp_model.build_from_hash(value)
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
# Returns the string representation of the object
|
190
|
+
# @return [String] String presentation of the object
|
191
|
+
def to_s
|
192
|
+
to_hash.to_s
|
193
|
+
end
|
194
|
+
|
195
|
+
# to_body is an alias to to_hash (backward compatibility)
|
196
|
+
# @return [Hash] Returns the object in the form of hash
|
197
|
+
def to_body
|
198
|
+
to_hash
|
199
|
+
end
|
200
|
+
|
201
|
+
# Returns the object in the form of hash
|
202
|
+
# @return [Hash] Returns the object in the form of hash
|
203
|
+
def to_hash
|
204
|
+
hash = {}
|
205
|
+
self.class.attribute_map.each_pair do |attr, param|
|
206
|
+
value = self.send(attr)
|
207
|
+
next if value.nil?
|
208
|
+
hash[param] = _to_hash(value)
|
209
|
+
end
|
210
|
+
hash
|
211
|
+
end
|
212
|
+
|
213
|
+
# Outputs non-array value in the form of hash
|
214
|
+
# For object, use to_hash. Otherwise, just return the value
|
215
|
+
# @param [Object] value Any valid value
|
216
|
+
# @return [Hash] Returns the value in the form of hash
|
217
|
+
def _to_hash(value)
|
218
|
+
if value.is_a?(Array)
|
219
|
+
value.compact.map { |v| _to_hash(v) }
|
220
|
+
elsif value.is_a?(Hash)
|
221
|
+
{}.tap do |hash|
|
222
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
223
|
+
end
|
224
|
+
elsif value.respond_to? :to_hash
|
225
|
+
value.to_hash
|
226
|
+
else
|
227
|
+
value
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
231
|
+
end
|
232
|
+
end
|
@@ -0,0 +1,371 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="MapiContactTelephonePropertySetDto.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 optional telephone numbers for the contact.
|
30
|
+
class MapiContactTelephonePropertySetDto
|
31
|
+
# Shows if MapiContactTelephonePropertySet is empty
|
32
|
+
# @return [BOOLEAN]
|
33
|
+
attr_accessor :is_empty
|
34
|
+
# Default value of electronic address Uses when user does not set any electronic address if UseAutocomplete property is set 'true'
|
35
|
+
# @return [String]
|
36
|
+
attr_accessor :default_telephone_number
|
37
|
+
# Indicates that one electronic address is completed automatically in case if user does not set any electronic address
|
38
|
+
# @return [BOOLEAN]
|
39
|
+
attr_accessor :use_autocomplete
|
40
|
+
# Gets or sets the callback telephone number
|
41
|
+
# @return [String]
|
42
|
+
attr_accessor :callback_telephone_number
|
43
|
+
# Gets or sets the business telephone number
|
44
|
+
# @return [String]
|
45
|
+
attr_accessor :business_telephone_number
|
46
|
+
# Gets or sets the home telephone number
|
47
|
+
# @return [String]
|
48
|
+
attr_accessor :home_telephone_number
|
49
|
+
# Gets or sets the primary telephone number
|
50
|
+
# @return [String]
|
51
|
+
attr_accessor :primary_telephone_number
|
52
|
+
# Gets or sets the second business telephone number
|
53
|
+
# @return [String]
|
54
|
+
attr_accessor :business2_telephone_number
|
55
|
+
# Gets or sets the mobile telephone number
|
56
|
+
# @return [String]
|
57
|
+
attr_accessor :mobile_telephone_number
|
58
|
+
# Gets or sets the radio telephone number
|
59
|
+
# @return [String]
|
60
|
+
attr_accessor :radio_telephone_number
|
61
|
+
# Gets or sets the car telephone number
|
62
|
+
# @return [String]
|
63
|
+
attr_accessor :car_telephone_number
|
64
|
+
# Gets or sets an alternate telephone number
|
65
|
+
# @return [String]
|
66
|
+
attr_accessor :other_telephone_number
|
67
|
+
# Gets or sets the telephone number of the contact's assistant
|
68
|
+
# @return [String]
|
69
|
+
attr_accessor :assistant_telephone_number
|
70
|
+
# Gets or sets a second home telephone number
|
71
|
+
# @return [String]
|
72
|
+
attr_accessor :home2_telephone_number
|
73
|
+
# Gets or sets the telephone number for the contact's text telephone (TTY) or telecommunication device for the deaf (TDD)
|
74
|
+
# @return [String]
|
75
|
+
attr_accessor :tty_tdd_phone_number
|
76
|
+
# Gets or sets the company phone number
|
77
|
+
# @return [String]
|
78
|
+
attr_accessor :company_main_telephone_number
|
79
|
+
# Gets or sets the telex number
|
80
|
+
# @return [String]
|
81
|
+
attr_accessor :telex_number
|
82
|
+
# Gets or sets the integrated services digital network (ISDN) number
|
83
|
+
# @return [String]
|
84
|
+
attr_accessor :isdn_number
|
85
|
+
# Gets or sets a pager telephone number
|
86
|
+
# @return [String]
|
87
|
+
attr_accessor :pager_telephone_number
|
88
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
89
|
+
def self.attribute_map
|
90
|
+
{
|
91
|
+
:'is_empty' => :'isEmpty',
|
92
|
+
:'default_telephone_number' => :'defaultTelephoneNumber',
|
93
|
+
:'use_autocomplete' => :'useAutocomplete',
|
94
|
+
:'callback_telephone_number' => :'callbackTelephoneNumber',
|
95
|
+
:'business_telephone_number' => :'businessTelephoneNumber',
|
96
|
+
:'home_telephone_number' => :'homeTelephoneNumber',
|
97
|
+
:'primary_telephone_number' => :'primaryTelephoneNumber',
|
98
|
+
:'business2_telephone_number' => :'business2TelephoneNumber',
|
99
|
+
:'mobile_telephone_number' => :'mobileTelephoneNumber',
|
100
|
+
:'radio_telephone_number' => :'radioTelephoneNumber',
|
101
|
+
:'car_telephone_number' => :'carTelephoneNumber',
|
102
|
+
:'other_telephone_number' => :'otherTelephoneNumber',
|
103
|
+
:'assistant_telephone_number' => :'assistantTelephoneNumber',
|
104
|
+
:'home2_telephone_number' => :'home2TelephoneNumber',
|
105
|
+
:'tty_tdd_phone_number' => :'ttyTddPhoneNumber',
|
106
|
+
:'company_main_telephone_number' => :'companyMainTelephoneNumber',
|
107
|
+
:'telex_number' => :'telexNumber',
|
108
|
+
:'isdn_number' => :'isdnNumber',
|
109
|
+
:'pager_telephone_number' => :'pagerTelephoneNumber'
|
110
|
+
}
|
111
|
+
end
|
112
|
+
|
113
|
+
# Attribute type mapping.
|
114
|
+
def self.swagger_types
|
115
|
+
{
|
116
|
+
:'is_empty' => :'BOOLEAN',
|
117
|
+
:'default_telephone_number' => :'String',
|
118
|
+
:'use_autocomplete' => :'BOOLEAN',
|
119
|
+
:'callback_telephone_number' => :'String',
|
120
|
+
:'business_telephone_number' => :'String',
|
121
|
+
:'home_telephone_number' => :'String',
|
122
|
+
:'primary_telephone_number' => :'String',
|
123
|
+
:'business2_telephone_number' => :'String',
|
124
|
+
:'mobile_telephone_number' => :'String',
|
125
|
+
:'radio_telephone_number' => :'String',
|
126
|
+
:'car_telephone_number' => :'String',
|
127
|
+
:'other_telephone_number' => :'String',
|
128
|
+
:'assistant_telephone_number' => :'String',
|
129
|
+
:'home2_telephone_number' => :'String',
|
130
|
+
:'tty_tdd_phone_number' => :'String',
|
131
|
+
:'company_main_telephone_number' => :'String',
|
132
|
+
:'telex_number' => :'String',
|
133
|
+
:'isdn_number' => :'String',
|
134
|
+
:'pager_telephone_number' => :'String'
|
135
|
+
}
|
136
|
+
end
|
137
|
+
|
138
|
+
# Initializes the object
|
139
|
+
# @param [BOOLEAN] is_empty Shows if MapiContactTelephonePropertySet is empty
|
140
|
+
# @param [String] default_telephone_number Default value of electronic address Uses when user does not set any electronic address if UseAutocomplete property is set 'true'
|
141
|
+
# @param [BOOLEAN] use_autocomplete Indicates that one electronic address is completed automatically in case if user does not set any electronic address
|
142
|
+
# @param [String] callback_telephone_number Gets or sets the callback telephone number
|
143
|
+
# @param [String] business_telephone_number Gets or sets the business telephone number
|
144
|
+
# @param [String] home_telephone_number Gets or sets the home telephone number
|
145
|
+
# @param [String] primary_telephone_number Gets or sets the primary telephone number
|
146
|
+
# @param [String] business2_telephone_number Gets or sets the second business telephone number
|
147
|
+
# @param [String] mobile_telephone_number Gets or sets the mobile telephone number
|
148
|
+
# @param [String] radio_telephone_number Gets or sets the radio telephone number
|
149
|
+
# @param [String] car_telephone_number Gets or sets the car telephone number
|
150
|
+
# @param [String] other_telephone_number Gets or sets an alternate telephone number
|
151
|
+
# @param [String] assistant_telephone_number Gets or sets the telephone number of the contact's assistant
|
152
|
+
# @param [String] home2_telephone_number Gets or sets a second home telephone number
|
153
|
+
# @param [String] tty_tdd_phone_number Gets or sets the telephone number for the contact's text telephone (TTY) or telecommunication device for the deaf (TDD)
|
154
|
+
# @param [String] company_main_telephone_number Gets or sets the company phone number
|
155
|
+
# @param [String] telex_number Gets or sets the telex number
|
156
|
+
# @param [String] isdn_number Gets or sets the integrated services digital network (ISDN) number
|
157
|
+
# @param [String] pager_telephone_number Gets or sets a pager telephone number
|
158
|
+
def initialize(
|
159
|
+
is_empty: nil,
|
160
|
+
default_telephone_number: nil,
|
161
|
+
use_autocomplete: nil,
|
162
|
+
callback_telephone_number: nil,
|
163
|
+
business_telephone_number: nil,
|
164
|
+
home_telephone_number: nil,
|
165
|
+
primary_telephone_number: nil,
|
166
|
+
business2_telephone_number: nil,
|
167
|
+
mobile_telephone_number: nil,
|
168
|
+
radio_telephone_number: nil,
|
169
|
+
car_telephone_number: nil,
|
170
|
+
other_telephone_number: nil,
|
171
|
+
assistant_telephone_number: nil,
|
172
|
+
home2_telephone_number: nil,
|
173
|
+
tty_tdd_phone_number: nil,
|
174
|
+
company_main_telephone_number: nil,
|
175
|
+
telex_number: nil,
|
176
|
+
isdn_number: nil,
|
177
|
+
pager_telephone_number: nil)
|
178
|
+
self.is_empty = is_empty if is_empty
|
179
|
+
self.default_telephone_number = default_telephone_number if default_telephone_number
|
180
|
+
self.use_autocomplete = use_autocomplete if use_autocomplete
|
181
|
+
self.callback_telephone_number = callback_telephone_number if callback_telephone_number
|
182
|
+
self.business_telephone_number = business_telephone_number if business_telephone_number
|
183
|
+
self.home_telephone_number = home_telephone_number if home_telephone_number
|
184
|
+
self.primary_telephone_number = primary_telephone_number if primary_telephone_number
|
185
|
+
self.business2_telephone_number = business2_telephone_number if business2_telephone_number
|
186
|
+
self.mobile_telephone_number = mobile_telephone_number if mobile_telephone_number
|
187
|
+
self.radio_telephone_number = radio_telephone_number if radio_telephone_number
|
188
|
+
self.car_telephone_number = car_telephone_number if car_telephone_number
|
189
|
+
self.other_telephone_number = other_telephone_number if other_telephone_number
|
190
|
+
self.assistant_telephone_number = assistant_telephone_number if assistant_telephone_number
|
191
|
+
self.home2_telephone_number = home2_telephone_number if home2_telephone_number
|
192
|
+
self.tty_tdd_phone_number = tty_tdd_phone_number if tty_tdd_phone_number
|
193
|
+
self.company_main_telephone_number = company_main_telephone_number if company_main_telephone_number
|
194
|
+
self.telex_number = telex_number if telex_number
|
195
|
+
self.isdn_number = isdn_number if isdn_number
|
196
|
+
self.pager_telephone_number = pager_telephone_number if pager_telephone_number
|
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 @is_empty.nil?
|
204
|
+
invalid_properties.push('invalid value for "is_empty", is_empty cannot be nil.')
|
205
|
+
end
|
206
|
+
|
207
|
+
if @use_autocomplete.nil?
|
208
|
+
invalid_properties.push('invalid value for "use_autocomplete", use_autocomplete cannot be nil.')
|
209
|
+
end
|
210
|
+
|
211
|
+
invalid_properties
|
212
|
+
end
|
213
|
+
|
214
|
+
# Check to see if the all the properties in the model are valid
|
215
|
+
# @return true if the model is valid
|
216
|
+
def valid?
|
217
|
+
return false if @is_empty.nil?
|
218
|
+
return false if @use_autocomplete.nil?
|
219
|
+
true
|
220
|
+
end
|
221
|
+
|
222
|
+
# Checks equality by comparing each attribute.
|
223
|
+
# @param [Object] Object to be compared
|
224
|
+
def ==(o)
|
225
|
+
return true if self.equal?(o)
|
226
|
+
self.class == o.class &&
|
227
|
+
is_empty == o.is_empty &&
|
228
|
+
default_telephone_number == o.default_telephone_number &&
|
229
|
+
use_autocomplete == o.use_autocomplete &&
|
230
|
+
callback_telephone_number == o.callback_telephone_number &&
|
231
|
+
business_telephone_number == o.business_telephone_number &&
|
232
|
+
home_telephone_number == o.home_telephone_number &&
|
233
|
+
primary_telephone_number == o.primary_telephone_number &&
|
234
|
+
business2_telephone_number == o.business2_telephone_number &&
|
235
|
+
mobile_telephone_number == o.mobile_telephone_number &&
|
236
|
+
radio_telephone_number == o.radio_telephone_number &&
|
237
|
+
car_telephone_number == o.car_telephone_number &&
|
238
|
+
other_telephone_number == o.other_telephone_number &&
|
239
|
+
assistant_telephone_number == o.assistant_telephone_number &&
|
240
|
+
home2_telephone_number == o.home2_telephone_number &&
|
241
|
+
tty_tdd_phone_number == o.tty_tdd_phone_number &&
|
242
|
+
company_main_telephone_number == o.company_main_telephone_number &&
|
243
|
+
telex_number == o.telex_number &&
|
244
|
+
isdn_number == o.isdn_number &&
|
245
|
+
pager_telephone_number == o.pager_telephone_number
|
246
|
+
end
|
247
|
+
|
248
|
+
# @see the `==` method
|
249
|
+
# @param [Object] Object to be compared
|
250
|
+
def eql?(o)
|
251
|
+
self == o
|
252
|
+
end
|
253
|
+
|
254
|
+
# Calculates hash code according to all attributes.
|
255
|
+
# @return [Fixnum] Hash code
|
256
|
+
def hash
|
257
|
+
[is_empty, default_telephone_number, use_autocomplete, callback_telephone_number, business_telephone_number, home_telephone_number, primary_telephone_number, business2_telephone_number, mobile_telephone_number, radio_telephone_number, car_telephone_number, other_telephone_number, assistant_telephone_number, home2_telephone_number, tty_tdd_phone_number, company_main_telephone_number, telex_number, isdn_number, pager_telephone_number].hash
|
258
|
+
end
|
259
|
+
|
260
|
+
# Builds the object from hash
|
261
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
262
|
+
# @return [Object] Returns the model itself
|
263
|
+
def build_from_hash(attributes)
|
264
|
+
return nil unless attributes.is_a?(Hash)
|
265
|
+
self.class.swagger_types.each_pair do |key, type|
|
266
|
+
attribute_key = self.class.attribute_map[key]
|
267
|
+
attribute_key = (attribute_key[0, 1].downcase + attribute_key[1..-1]).to_sym
|
268
|
+
if type =~ /\AArray<(.*)>/i
|
269
|
+
# check to ensure the input is an array given that the the attribute
|
270
|
+
# is documented as an array but the input is not
|
271
|
+
if attributes[attribute_key].is_a?(Array)
|
272
|
+
self.send("#{key}=", attributes[attribute_key].map { |v| _deserialize($1, v) })
|
273
|
+
end
|
274
|
+
elsif !attributes[attribute_key].nil?
|
275
|
+
self.send("#{key}=", _deserialize(type, attributes[attribute_key]))
|
276
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
277
|
+
end
|
278
|
+
|
279
|
+
self
|
280
|
+
end
|
281
|
+
|
282
|
+
# Deserializes the data based on type
|
283
|
+
# @param string type Data type
|
284
|
+
# @param string value Value to be deserialized
|
285
|
+
# @return [Object] Deserialized data
|
286
|
+
def _deserialize(type, value)
|
287
|
+
case type.to_sym
|
288
|
+
when :DateTime
|
289
|
+
DateTime.parse(value)
|
290
|
+
when :Date
|
291
|
+
Date.parse(value)
|
292
|
+
when :String
|
293
|
+
value.to_s
|
294
|
+
when :Integer
|
295
|
+
value.to_i
|
296
|
+
when :Float
|
297
|
+
value.to_f
|
298
|
+
when :BOOLEAN
|
299
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
300
|
+
true
|
301
|
+
else
|
302
|
+
false
|
303
|
+
end
|
304
|
+
when :Object
|
305
|
+
# generic object (usually a Hash), return directly
|
306
|
+
value
|
307
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
308
|
+
inner_type = Regexp.last_match[:inner_type]
|
309
|
+
value.map { |v| _deserialize(inner_type, v) }
|
310
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
311
|
+
k_type = Regexp.last_match[:k_type]
|
312
|
+
v_type = Regexp.last_match[:v_type]
|
313
|
+
{}.tap do |hash|
|
314
|
+
value.each do |k, v|
|
315
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
316
|
+
end
|
317
|
+
end
|
318
|
+
else # model
|
319
|
+
sub_type = value[:type] || value[:discriminator] || type
|
320
|
+
if AsposeEmailCloud.const_defined?(sub_type)
|
321
|
+
type = sub_type
|
322
|
+
end
|
323
|
+
temp_model = AsposeEmailCloud.const_get(type).new
|
324
|
+
temp_model.build_from_hash(value)
|
325
|
+
end
|
326
|
+
end
|
327
|
+
|
328
|
+
# Returns the string representation of the object
|
329
|
+
# @return [String] String presentation of the object
|
330
|
+
def to_s
|
331
|
+
to_hash.to_s
|
332
|
+
end
|
333
|
+
|
334
|
+
# to_body is an alias to to_hash (backward compatibility)
|
335
|
+
# @return [Hash] Returns the object in the form of hash
|
336
|
+
def to_body
|
337
|
+
to_hash
|
338
|
+
end
|
339
|
+
|
340
|
+
# Returns the object in the form of hash
|
341
|
+
# @return [Hash] Returns the object in the form of hash
|
342
|
+
def to_hash
|
343
|
+
hash = {}
|
344
|
+
self.class.attribute_map.each_pair do |attr, param|
|
345
|
+
value = self.send(attr)
|
346
|
+
next if value.nil?
|
347
|
+
hash[param] = _to_hash(value)
|
348
|
+
end
|
349
|
+
hash
|
350
|
+
end
|
351
|
+
|
352
|
+
# Outputs non-array value in the form of hash
|
353
|
+
# For object, use to_hash. Otherwise, just return the value
|
354
|
+
# @param [Object] value Any valid value
|
355
|
+
# @return [Hash] Returns the value in the form of hash
|
356
|
+
def _to_hash(value)
|
357
|
+
if value.is_a?(Array)
|
358
|
+
value.compact.map { |v| _to_hash(v) }
|
359
|
+
elsif value.is_a?(Hash)
|
360
|
+
{}.tap do |hash|
|
361
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
362
|
+
end
|
363
|
+
elsif value.respond_to? :to_hash
|
364
|
+
value.to_hash
|
365
|
+
else
|
366
|
+
value
|
367
|
+
end
|
368
|
+
end
|
369
|
+
|
370
|
+
end
|
371
|
+
end
|