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