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
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="BaseObject.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -27,97 +27,97 @@
|
|
27
27
|
require 'date'
|
28
28
|
|
29
29
|
module AsposeEmailCloud
|
30
|
-
# Base property object
|
31
|
-
class BaseObject
|
32
|
-
# Gets or sets the name of an object.
|
33
|
-
# @return [String]
|
34
|
-
attr_accessor :name
|
35
|
-
|
36
|
-
# Property type. Used for deserialization purposes
|
37
|
-
# @return [String]
|
30
|
+
# Base property object
|
31
|
+
class BaseObject
|
32
|
+
# Gets or sets the name of an object.
|
33
|
+
# @return [String]
|
34
|
+
attr_accessor :name
|
35
|
+
|
36
|
+
# Property type. Used for deserialization purposes
|
37
|
+
# @return [String]
|
38
38
|
def type #getter method
|
39
39
|
self.class.name.split('::').last
|
40
40
|
end
|
41
41
|
|
42
42
|
def type=(type) #setter method, parameter ignored
|
43
43
|
@type = self.class.name.split('::').last
|
44
|
-
end
|
45
|
-
|
46
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
47
|
-
def self.attribute_map
|
48
|
-
{
|
49
|
-
:'name' => :'name',
|
50
|
-
:'type' => :'type'
|
51
|
-
}
|
52
|
-
end
|
53
|
-
|
54
|
-
# Attribute type mapping.
|
55
|
-
def self.swagger_types
|
56
|
-
{
|
57
|
-
:'name' => :'String',
|
58
|
-
:'type' => :'String'
|
59
|
-
}
|
60
|
-
end
|
61
|
-
|
62
|
-
# Initializes the object
|
63
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
64
|
-
def initialize(attributes = {})
|
65
|
-
return unless attributes.is_a?(Hash)
|
66
|
-
|
67
|
-
# convert string to symbol for hash key
|
68
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
69
|
-
|
70
|
-
if attributes.has_key?(:'name')
|
71
|
-
self.name = attributes[:'name']
|
72
|
-
end
|
73
|
-
|
74
|
-
if attributes.has_key?(:'type')
|
75
|
-
@type = self.class.name.split('::').last
|
76
|
-
end
|
77
|
-
end
|
78
|
-
|
79
|
-
# Initializes the object
|
80
|
-
# @param [String] name Gets or sets the name of an object.
|
81
|
-
# @param [String] type Property type. Used for deserialization purposes
|
82
|
-
def initialize(name=nil, type=nil)
|
83
|
-
self.name = name if name
|
84
|
-
@type = self.class.name.split('::').last
|
85
|
-
end
|
86
|
-
|
87
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
88
|
-
# @return Array for valid properties with the reasons
|
89
|
-
def list_invalid_properties
|
90
|
-
invalid_properties = Array.new
|
91
|
-
invalid_properties
|
92
|
-
end
|
93
|
-
|
94
|
-
# Check to see if the all the properties in the model are valid
|
95
|
-
# @return true if the model is valid
|
96
|
-
def valid?
|
97
|
-
true
|
98
|
-
end
|
99
|
-
|
100
|
-
# Checks equality by comparing each attribute.
|
101
|
-
# @param [Object] Object to be compared
|
102
|
-
def ==(o)
|
103
|
-
return true if self.equal?(o)
|
104
|
-
self.class == o.class &&
|
105
|
-
name == o.name &&
|
106
|
-
type == o.type
|
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
|
-
[name, type].hash
|
119
|
-
end
|
120
|
-
|
44
|
+
end
|
45
|
+
|
46
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
47
|
+
def self.attribute_map
|
48
|
+
{
|
49
|
+
:'name' => :'name',
|
50
|
+
:'type' => :'type'
|
51
|
+
}
|
52
|
+
end
|
53
|
+
|
54
|
+
# Attribute type mapping.
|
55
|
+
def self.swagger_types
|
56
|
+
{
|
57
|
+
:'name' => :'String',
|
58
|
+
:'type' => :'String'
|
59
|
+
}
|
60
|
+
end
|
61
|
+
|
62
|
+
# Initializes the object
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
64
|
+
def initialize(attributes = {})
|
65
|
+
return unless attributes.is_a?(Hash)
|
66
|
+
|
67
|
+
# convert string to symbol for hash key
|
68
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
69
|
+
|
70
|
+
if attributes.has_key?(:'name')
|
71
|
+
self.name = attributes[:'name']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes.has_key?(:'type')
|
75
|
+
@type = self.class.name.split('::').last
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# Initializes the object
|
80
|
+
# @param [String] name Gets or sets the name of an object.
|
81
|
+
# @param [String] type Property type. Used for deserialization purposes
|
82
|
+
def initialize(name=nil, type=nil)
|
83
|
+
self.name = name if name
|
84
|
+
@type = self.class.name.split('::').last
|
85
|
+
end
|
86
|
+
|
87
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
88
|
+
# @return Array for valid properties with the reasons
|
89
|
+
def list_invalid_properties
|
90
|
+
invalid_properties = Array.new
|
91
|
+
invalid_properties
|
92
|
+
end
|
93
|
+
|
94
|
+
# Check to see if the all the properties in the model are valid
|
95
|
+
# @return true if the model is valid
|
96
|
+
def valid?
|
97
|
+
true
|
98
|
+
end
|
99
|
+
|
100
|
+
# Checks equality by comparing each attribute.
|
101
|
+
# @param [Object] Object to be compared
|
102
|
+
def ==(o)
|
103
|
+
return true if self.equal?(o)
|
104
|
+
self.class == o.class &&
|
105
|
+
name == o.name &&
|
106
|
+
type == o.type
|
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
|
+
[name, type].hash
|
119
|
+
end
|
120
|
+
|
121
121
|
# Builds the object from hash
|
122
122
|
# @param [Hash] attributes Model attributes in the form of hash
|
123
123
|
# @return [Object] Returns the model itself
|
@@ -177,7 +177,10 @@ module AsposeEmailCloud
|
|
177
177
|
end
|
178
178
|
end
|
179
179
|
else # model
|
180
|
-
|
180
|
+
sub_type = value[:type] || value[:discriminator] || type
|
181
|
+
if AsposeEmailCloud.const_defined?(sub_type)
|
182
|
+
type = sub_type
|
183
|
+
end
|
181
184
|
temp_model = AsposeEmailCloud.const_get(type).new
|
182
185
|
temp_model.build_from_hash(value)
|
183
186
|
end
|
@@ -224,6 +227,6 @@ module AsposeEmailCloud
|
|
224
227
|
value
|
225
228
|
end
|
226
229
|
end
|
227
|
-
|
230
|
+
|
228
231
|
end
|
229
232
|
end
|
@@ -0,0 +1,570 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="CalendarDto.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
|
+
# iCalendar document representation.
|
31
|
+
class CalendarDto
|
32
|
+
# Document attachments.
|
33
|
+
# @return [Array<Attachment>]
|
34
|
+
attr_accessor :attachments
|
35
|
+
|
36
|
+
# Event attendees.
|
37
|
+
# @return [Array<MailAddress>]
|
38
|
+
attr_accessor :attendees
|
39
|
+
|
40
|
+
# Description.
|
41
|
+
# @return [String]
|
42
|
+
attr_accessor :description
|
43
|
+
|
44
|
+
# End date.
|
45
|
+
# @return [DateTime]
|
46
|
+
attr_accessor :end_date
|
47
|
+
|
48
|
+
# End time zone.
|
49
|
+
# @return [String]
|
50
|
+
attr_accessor :end_time_zone
|
51
|
+
|
52
|
+
# Appointment flags. Items: Enumerates iCalendar flags. Enum, available values: None, AllDayEvent
|
53
|
+
# @return [Array<String>]
|
54
|
+
attr_accessor :flags
|
55
|
+
|
56
|
+
# Indicates if description is in HTML format.
|
57
|
+
# @return [BOOLEAN]
|
58
|
+
attr_accessor :is_description_html
|
59
|
+
|
60
|
+
# Location.
|
61
|
+
# @return [String]
|
62
|
+
attr_accessor :location
|
63
|
+
|
64
|
+
# Defines the iCalendar object method type associated with the calendar document. Enum, available values: None, Publish, Request, Reply, Add, Cancel, Refresh, Counter, DeclineCounter
|
65
|
+
# @return [String]
|
66
|
+
attr_accessor :method
|
67
|
+
|
68
|
+
# Specifies the BUSY status. Enum, available values: NotDefined, Free, Tentative, Busy, Oof
|
69
|
+
# @return [String]
|
70
|
+
attr_accessor :microsoft_busy_status
|
71
|
+
|
72
|
+
# Specifies the INTENDED status. Enum, available values: NotDefined, Free, Tentative, Busy, Oof
|
73
|
+
# @return [String]
|
74
|
+
attr_accessor :microsoft_intended_status
|
75
|
+
|
76
|
+
# Optional attendees.
|
77
|
+
# @return [Array<MailAddress>]
|
78
|
+
attr_accessor :optional_attendees
|
79
|
+
|
80
|
+
# Event organizer.
|
81
|
+
# @return [MailAddress]
|
82
|
+
attr_accessor :organizer
|
83
|
+
|
84
|
+
# Deprecated, use 'Recurrence' property. String representation of recurrence pattern (See iCalendar RFC, \"Recurrence rule\" section). For example: For daily recurrence: \"FREQ=DAILY;COUNT=10;WKST=MO\" For monthly recurrence: \"BYSETPOS=1;BYDAY=MO,TU,WE,TH,FR;FREQ=MONTHLY;INTERVAL=10;WKST=MO\" For yearly recurrence: \"BYMONTHDAY=30;BYMONTH=1;FREQ=YEARLY;WKST=MO\"
|
85
|
+
# @return [String]
|
86
|
+
attr_accessor :recurrence_string
|
87
|
+
|
88
|
+
# Recurrence pattern
|
89
|
+
# @return [RecurrencePatternDto]
|
90
|
+
attr_accessor :recurrence
|
91
|
+
|
92
|
+
# Reminders.
|
93
|
+
# @return [Array<CalendarReminder>]
|
94
|
+
attr_accessor :reminders
|
95
|
+
|
96
|
+
# The sequence id. Read only.
|
97
|
+
# @return [String]
|
98
|
+
attr_accessor :sequence_id
|
99
|
+
|
100
|
+
# Start date.
|
101
|
+
# @return [DateTime]
|
102
|
+
attr_accessor :start_date
|
103
|
+
|
104
|
+
# Start time zone.
|
105
|
+
# @return [String]
|
106
|
+
attr_accessor :start_time_zone
|
107
|
+
|
108
|
+
# Defines the overall status or confirmation for the calendar document. Enum, available values: NotDefined, Cancelled, Tentative, Confirmed
|
109
|
+
# @return [String]
|
110
|
+
attr_accessor :status
|
111
|
+
|
112
|
+
# Summary.
|
113
|
+
# @return [String]
|
114
|
+
attr_accessor :summary
|
115
|
+
|
116
|
+
# Specifies whether or not this appointment is intended to be visible in availability searches. Enum, available values: NotDefined, Transparent, Opaque
|
117
|
+
# @return [String]
|
118
|
+
attr_accessor :transparency
|
119
|
+
|
120
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
121
|
+
def self.attribute_map
|
122
|
+
{
|
123
|
+
:'attachments' => :'attachments',
|
124
|
+
:'attendees' => :'attendees',
|
125
|
+
:'description' => :'description',
|
126
|
+
:'end_date' => :'endDate',
|
127
|
+
:'end_time_zone' => :'endTimeZone',
|
128
|
+
:'flags' => :'flags',
|
129
|
+
:'is_description_html' => :'isDescriptionHtml',
|
130
|
+
:'location' => :'location',
|
131
|
+
:'method' => :'method',
|
132
|
+
:'microsoft_busy_status' => :'microsoftBusyStatus',
|
133
|
+
:'microsoft_intended_status' => :'microsoftIntendedStatus',
|
134
|
+
:'optional_attendees' => :'optionalAttendees',
|
135
|
+
:'organizer' => :'organizer',
|
136
|
+
:'recurrence_string' => :'recurrenceString',
|
137
|
+
:'recurrence' => :'recurrence',
|
138
|
+
:'reminders' => :'reminders',
|
139
|
+
:'sequence_id' => :'sequenceId',
|
140
|
+
:'start_date' => :'startDate',
|
141
|
+
:'start_time_zone' => :'startTimeZone',
|
142
|
+
:'status' => :'status',
|
143
|
+
:'summary' => :'summary',
|
144
|
+
:'transparency' => :'transparency'
|
145
|
+
}
|
146
|
+
end
|
147
|
+
|
148
|
+
# Attribute type mapping.
|
149
|
+
def self.swagger_types
|
150
|
+
{
|
151
|
+
:'attachments' => :'Array<Attachment>',
|
152
|
+
:'attendees' => :'Array<MailAddress>',
|
153
|
+
:'description' => :'String',
|
154
|
+
:'end_date' => :'DateTime',
|
155
|
+
:'end_time_zone' => :'String',
|
156
|
+
:'flags' => :'Array<String>',
|
157
|
+
:'is_description_html' => :'BOOLEAN',
|
158
|
+
:'location' => :'String',
|
159
|
+
:'method' => :'String',
|
160
|
+
:'microsoft_busy_status' => :'String',
|
161
|
+
:'microsoft_intended_status' => :'String',
|
162
|
+
:'optional_attendees' => :'Array<MailAddress>',
|
163
|
+
:'organizer' => :'MailAddress',
|
164
|
+
:'recurrence_string' => :'String',
|
165
|
+
:'recurrence' => :'RecurrencePatternDto',
|
166
|
+
:'reminders' => :'Array<CalendarReminder>',
|
167
|
+
:'sequence_id' => :'String',
|
168
|
+
:'start_date' => :'DateTime',
|
169
|
+
:'start_time_zone' => :'String',
|
170
|
+
:'status' => :'String',
|
171
|
+
:'summary' => :'String',
|
172
|
+
:'transparency' => :'String'
|
173
|
+
}
|
174
|
+
end
|
175
|
+
|
176
|
+
# Initializes the object
|
177
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
178
|
+
def initialize(attributes = {})
|
179
|
+
return unless attributes.is_a?(Hash)
|
180
|
+
|
181
|
+
# convert string to symbol for hash key
|
182
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
183
|
+
|
184
|
+
if attributes.has_key?(:'attachments')
|
185
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
186
|
+
self.attachments = value
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
if attributes.has_key?(:'attendees')
|
191
|
+
if (value = attributes[:'attendees']).is_a?(Array)
|
192
|
+
self.attendees = value
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
if attributes.has_key?(:'description')
|
197
|
+
self.description = attributes[:'description']
|
198
|
+
end
|
199
|
+
|
200
|
+
if attributes.has_key?(:'endDate')
|
201
|
+
self.end_date = attributes[:'endDate']
|
202
|
+
end
|
203
|
+
|
204
|
+
if attributes.has_key?(:'endTimeZone')
|
205
|
+
self.end_time_zone = attributes[:'endTimeZone']
|
206
|
+
end
|
207
|
+
|
208
|
+
if attributes.has_key?(:'flags')
|
209
|
+
if (value = attributes[:'flags']).is_a?(Array)
|
210
|
+
self.flags = value
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
if attributes.has_key?(:'isDescriptionHtml')
|
215
|
+
self.is_description_html = attributes[:'isDescriptionHtml']
|
216
|
+
end
|
217
|
+
|
218
|
+
if attributes.has_key?(:'location')
|
219
|
+
self.location = attributes[:'location']
|
220
|
+
end
|
221
|
+
|
222
|
+
if attributes.has_key?(:'method')
|
223
|
+
self.method = attributes[:'method']
|
224
|
+
end
|
225
|
+
|
226
|
+
if attributes.has_key?(:'microsoftBusyStatus')
|
227
|
+
self.microsoft_busy_status = attributes[:'microsoftBusyStatus']
|
228
|
+
end
|
229
|
+
|
230
|
+
if attributes.has_key?(:'microsoftIntendedStatus')
|
231
|
+
self.microsoft_intended_status = attributes[:'microsoftIntendedStatus']
|
232
|
+
end
|
233
|
+
|
234
|
+
if attributes.has_key?(:'optionalAttendees')
|
235
|
+
if (value = attributes[:'optionalAttendees']).is_a?(Array)
|
236
|
+
self.optional_attendees = value
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
if attributes.has_key?(:'organizer')
|
241
|
+
self.organizer = attributes[:'organizer']
|
242
|
+
end
|
243
|
+
|
244
|
+
if attributes.has_key?(:'recurrenceString')
|
245
|
+
self.recurrence_string = attributes[:'recurrenceString']
|
246
|
+
end
|
247
|
+
|
248
|
+
if attributes.has_key?(:'recurrence')
|
249
|
+
self.recurrence = attributes[:'recurrence']
|
250
|
+
end
|
251
|
+
|
252
|
+
if attributes.has_key?(:'reminders')
|
253
|
+
if (value = attributes[:'reminders']).is_a?(Array)
|
254
|
+
self.reminders = value
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
if attributes.has_key?(:'sequenceId')
|
259
|
+
self.sequence_id = attributes[:'sequenceId']
|
260
|
+
end
|
261
|
+
|
262
|
+
if attributes.has_key?(:'startDate')
|
263
|
+
self.start_date = attributes[:'startDate']
|
264
|
+
end
|
265
|
+
|
266
|
+
if attributes.has_key?(:'startTimeZone')
|
267
|
+
self.start_time_zone = attributes[:'startTimeZone']
|
268
|
+
end
|
269
|
+
|
270
|
+
if attributes.has_key?(:'status')
|
271
|
+
self.status = attributes[:'status']
|
272
|
+
end
|
273
|
+
|
274
|
+
if attributes.has_key?(:'summary')
|
275
|
+
self.summary = attributes[:'summary']
|
276
|
+
end
|
277
|
+
|
278
|
+
if attributes.has_key?(:'transparency')
|
279
|
+
self.transparency = attributes[:'transparency']
|
280
|
+
end
|
281
|
+
end
|
282
|
+
|
283
|
+
# Initializes the object
|
284
|
+
# @param [Array<Attachment>] attachments Document attachments.
|
285
|
+
# @param [Array<MailAddress>] attendees Event attendees.
|
286
|
+
# @param [String] description Description.
|
287
|
+
# @param [DateTime] end_date End date.
|
288
|
+
# @param [String] end_time_zone End time zone.
|
289
|
+
# @param [Array<String>] flags Appointment flags. Items: Enumerates iCalendar flags. Enum, available values: None, AllDayEvent
|
290
|
+
# @param [BOOLEAN] is_description_html Indicates if description is in HTML format.
|
291
|
+
# @param [String] location Location.
|
292
|
+
# @param [String] method Defines the iCalendar object method type associated with the calendar document. Enum, available values: None, Publish, Request, Reply, Add, Cancel, Refresh, Counter, DeclineCounter
|
293
|
+
# @param [String] microsoft_busy_status Specifies the BUSY status. Enum, available values: NotDefined, Free, Tentative, Busy, Oof
|
294
|
+
# @param [String] microsoft_intended_status Specifies the INTENDED status. Enum, available values: NotDefined, Free, Tentative, Busy, Oof
|
295
|
+
# @param [Array<MailAddress>] optional_attendees Optional attendees.
|
296
|
+
# @param [MailAddress] organizer Event organizer.
|
297
|
+
# @param [String] recurrence_string Deprecated, use 'Recurrence' property. String representation of recurrence pattern (See iCalendar RFC, \"Recurrence rule\" section). For example: For daily recurrence: \"FREQ=DAILY;COUNT=10;WKST=MO\" For monthly recurrence: \"BYSETPOS=1;BYDAY=MO,TU,WE,TH,FR;FREQ=MONTHLY;INTERVAL=10;WKST=MO\" For yearly recurrence: \"BYMONTHDAY=30;BYMONTH=1;FREQ=YEARLY;WKST=MO\"
|
298
|
+
# @param [RecurrencePatternDto] recurrence Recurrence pattern
|
299
|
+
# @param [Array<CalendarReminder>] reminders Reminders.
|
300
|
+
# @param [String] sequence_id The sequence id. Read only.
|
301
|
+
# @param [DateTime] start_date Start date.
|
302
|
+
# @param [String] start_time_zone Start time zone.
|
303
|
+
# @param [String] status Defines the overall status or confirmation for the calendar document. Enum, available values: NotDefined, Cancelled, Tentative, Confirmed
|
304
|
+
# @param [String] summary Summary.
|
305
|
+
# @param [String] transparency Specifies whether or not this appointment is intended to be visible in availability searches. Enum, available values: NotDefined, Transparent, Opaque
|
306
|
+
def initialize(attachments=nil, attendees=nil, description=nil, end_date=nil, end_time_zone=nil, flags=nil, is_description_html=nil, location=nil, method=nil, microsoft_busy_status=nil, microsoft_intended_status=nil, optional_attendees=nil, organizer=nil, recurrence_string=nil, recurrence=nil, reminders=nil, sequence_id=nil, start_date=nil, start_time_zone=nil, status=nil, summary=nil, transparency=nil)
|
307
|
+
self.attachments = attachments if attachments
|
308
|
+
self.attendees = attendees if attendees
|
309
|
+
self.description = description if description
|
310
|
+
self.end_date = end_date if end_date
|
311
|
+
self.end_time_zone = end_time_zone if end_time_zone
|
312
|
+
self.flags = flags if flags
|
313
|
+
self.is_description_html = is_description_html if is_description_html
|
314
|
+
self.location = location if location
|
315
|
+
self.method = method if method
|
316
|
+
self.microsoft_busy_status = microsoft_busy_status if microsoft_busy_status
|
317
|
+
self.microsoft_intended_status = microsoft_intended_status if microsoft_intended_status
|
318
|
+
self.optional_attendees = optional_attendees if optional_attendees
|
319
|
+
self.organizer = organizer if organizer
|
320
|
+
self.recurrence_string = recurrence_string if recurrence_string
|
321
|
+
self.recurrence = recurrence if recurrence
|
322
|
+
self.reminders = reminders if reminders
|
323
|
+
self.sequence_id = sequence_id if sequence_id
|
324
|
+
self.start_date = start_date if start_date
|
325
|
+
self.start_time_zone = start_time_zone if start_time_zone
|
326
|
+
self.status = status if status
|
327
|
+
self.summary = summary if summary
|
328
|
+
self.transparency = transparency if transparency
|
329
|
+
end
|
330
|
+
|
331
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
332
|
+
# @return Array for valid properties with the reasons
|
333
|
+
def list_invalid_properties
|
334
|
+
invalid_properties = Array.new
|
335
|
+
if @attendees.nil?
|
336
|
+
invalid_properties.push('invalid value for "attendees", attendees cannot be nil.')
|
337
|
+
end
|
338
|
+
|
339
|
+
if @end_date.nil?
|
340
|
+
invalid_properties.push('invalid value for "end_date", end_date cannot be nil.')
|
341
|
+
end
|
342
|
+
|
343
|
+
if @is_description_html.nil?
|
344
|
+
invalid_properties.push('invalid value for "is_description_html", is_description_html cannot be nil.')
|
345
|
+
end
|
346
|
+
|
347
|
+
if @location.nil?
|
348
|
+
invalid_properties.push('invalid value for "location", location cannot be nil.')
|
349
|
+
end
|
350
|
+
|
351
|
+
if @location.to_s.length < 1
|
352
|
+
invalid_properties.push('invalid value for "location", the character length must be great than or equal to 1.')
|
353
|
+
end
|
354
|
+
|
355
|
+
if @method.nil?
|
356
|
+
invalid_properties.push('invalid value for "method", method cannot be nil.')
|
357
|
+
end
|
358
|
+
|
359
|
+
if @microsoft_busy_status.nil?
|
360
|
+
invalid_properties.push('invalid value for "microsoft_busy_status", microsoft_busy_status cannot be nil.')
|
361
|
+
end
|
362
|
+
|
363
|
+
if @microsoft_intended_status.nil?
|
364
|
+
invalid_properties.push('invalid value for "microsoft_intended_status", microsoft_intended_status cannot be nil.')
|
365
|
+
end
|
366
|
+
|
367
|
+
if @organizer.nil?
|
368
|
+
invalid_properties.push('invalid value for "organizer", organizer cannot be nil.')
|
369
|
+
end
|
370
|
+
|
371
|
+
if @start_date.nil?
|
372
|
+
invalid_properties.push('invalid value for "start_date", start_date cannot be nil.')
|
373
|
+
end
|
374
|
+
|
375
|
+
if @status.nil?
|
376
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
377
|
+
end
|
378
|
+
|
379
|
+
if @transparency.nil?
|
380
|
+
invalid_properties.push('invalid value for "transparency", transparency cannot be nil.')
|
381
|
+
end
|
382
|
+
|
383
|
+
invalid_properties
|
384
|
+
end
|
385
|
+
|
386
|
+
# Check to see if the all the properties in the model are valid
|
387
|
+
# @return true if the model is valid
|
388
|
+
def valid?
|
389
|
+
return false if @attendees.nil?
|
390
|
+
return false if @end_date.nil?
|
391
|
+
return false if @is_description_html.nil?
|
392
|
+
return false if @location.nil?
|
393
|
+
return false if @location.to_s.length < 1
|
394
|
+
return false if @method.nil?
|
395
|
+
return false if @microsoft_busy_status.nil?
|
396
|
+
return false if @microsoft_intended_status.nil?
|
397
|
+
return false if @organizer.nil?
|
398
|
+
return false if @start_date.nil?
|
399
|
+
return false if @status.nil?
|
400
|
+
return false if @transparency.nil?
|
401
|
+
true
|
402
|
+
end
|
403
|
+
|
404
|
+
# Custom attribute writer method with validation
|
405
|
+
# @param [Object] location Value to be assigned
|
406
|
+
def location=(location)
|
407
|
+
if location.nil?
|
408
|
+
fail ArgumentError, 'location cannot be nil'
|
409
|
+
end
|
410
|
+
|
411
|
+
if location.to_s.length < 1
|
412
|
+
fail ArgumentError, 'invalid value for "location", the character length must be great than or equal to 1.'
|
413
|
+
end
|
414
|
+
|
415
|
+
@location = location
|
416
|
+
end
|
417
|
+
|
418
|
+
# Checks equality by comparing each attribute.
|
419
|
+
# @param [Object] Object to be compared
|
420
|
+
def ==(o)
|
421
|
+
return true if self.equal?(o)
|
422
|
+
self.class == o.class &&
|
423
|
+
attachments == o.attachments &&
|
424
|
+
attendees == o.attendees &&
|
425
|
+
description == o.description &&
|
426
|
+
end_date == o.end_date &&
|
427
|
+
end_time_zone == o.end_time_zone &&
|
428
|
+
flags == o.flags &&
|
429
|
+
is_description_html == o.is_description_html &&
|
430
|
+
location == o.location &&
|
431
|
+
method == o.method &&
|
432
|
+
microsoft_busy_status == o.microsoft_busy_status &&
|
433
|
+
microsoft_intended_status == o.microsoft_intended_status &&
|
434
|
+
optional_attendees == o.optional_attendees &&
|
435
|
+
organizer == o.organizer &&
|
436
|
+
recurrence_string == o.recurrence_string &&
|
437
|
+
recurrence == o.recurrence &&
|
438
|
+
reminders == o.reminders &&
|
439
|
+
sequence_id == o.sequence_id &&
|
440
|
+
start_date == o.start_date &&
|
441
|
+
start_time_zone == o.start_time_zone &&
|
442
|
+
status == o.status &&
|
443
|
+
summary == o.summary &&
|
444
|
+
transparency == o.transparency
|
445
|
+
end
|
446
|
+
|
447
|
+
# @see the `==` method
|
448
|
+
# @param [Object] Object to be compared
|
449
|
+
def eql?(o)
|
450
|
+
self == o
|
451
|
+
end
|
452
|
+
|
453
|
+
# Calculates hash code according to all attributes.
|
454
|
+
# @return [Fixnum] Hash code
|
455
|
+
def hash
|
456
|
+
[attachments, attendees, description, end_date, end_time_zone, flags, is_description_html, location, method, microsoft_busy_status, microsoft_intended_status, optional_attendees, organizer, recurrence_string, recurrence, reminders, sequence_id, start_date, start_time_zone, status, summary, transparency].hash
|
457
|
+
end
|
458
|
+
|
459
|
+
# Builds the object from hash
|
460
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
461
|
+
# @return [Object] Returns the model itself
|
462
|
+
def build_from_hash(attributes)
|
463
|
+
return nil unless attributes.is_a?(Hash)
|
464
|
+
self.class.swagger_types.each_pair do |key, type|
|
465
|
+
attribute_key = self.class.attribute_map[key]
|
466
|
+
attribute_key = (attribute_key[0, 1].downcase + attribute_key[1..-1]).to_sym
|
467
|
+
if type =~ /\AArray<(.*)>/i
|
468
|
+
# check to ensure the input is an array given that the the attribute
|
469
|
+
# is documented as an array but the input is not
|
470
|
+
if attributes[attribute_key].is_a?(Array)
|
471
|
+
self.send("#{key}=", attributes[attribute_key].map { |v| _deserialize($1, v) })
|
472
|
+
end
|
473
|
+
elsif !attributes[attribute_key].nil?
|
474
|
+
self.send("#{key}=", _deserialize(type, attributes[attribute_key]))
|
475
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
476
|
+
end
|
477
|
+
|
478
|
+
self
|
479
|
+
end
|
480
|
+
|
481
|
+
# Deserializes the data based on type
|
482
|
+
# @param string type Data type
|
483
|
+
# @param string value Value to be deserialized
|
484
|
+
# @return [Object] Deserialized data
|
485
|
+
def _deserialize(type, value)
|
486
|
+
case type.to_sym
|
487
|
+
when :DateTime
|
488
|
+
DateTime.parse(value)
|
489
|
+
when :Date
|
490
|
+
Date.parse(value)
|
491
|
+
when :String
|
492
|
+
value.to_s
|
493
|
+
when :Integer
|
494
|
+
value.to_i
|
495
|
+
when :Float
|
496
|
+
value.to_f
|
497
|
+
when :BOOLEAN
|
498
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
499
|
+
true
|
500
|
+
else
|
501
|
+
false
|
502
|
+
end
|
503
|
+
when :Object
|
504
|
+
# generic object (usually a Hash), return directly
|
505
|
+
value
|
506
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
507
|
+
inner_type = Regexp.last_match[:inner_type]
|
508
|
+
value.map { |v| _deserialize(inner_type, v) }
|
509
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
510
|
+
k_type = Regexp.last_match[:k_type]
|
511
|
+
v_type = Regexp.last_match[:v_type]
|
512
|
+
{}.tap do |hash|
|
513
|
+
value.each do |k, v|
|
514
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
515
|
+
end
|
516
|
+
end
|
517
|
+
else # model
|
518
|
+
sub_type = value[:type] || value[:discriminator] || type
|
519
|
+
if AsposeEmailCloud.const_defined?(sub_type)
|
520
|
+
type = sub_type
|
521
|
+
end
|
522
|
+
temp_model = AsposeEmailCloud.const_get(type).new
|
523
|
+
temp_model.build_from_hash(value)
|
524
|
+
end
|
525
|
+
end
|
526
|
+
|
527
|
+
# Returns the string representation of the object
|
528
|
+
# @return [String] String presentation of the object
|
529
|
+
def to_s
|
530
|
+
to_hash.to_s
|
531
|
+
end
|
532
|
+
|
533
|
+
# to_body is an alias to to_hash (backward compatibility)
|
534
|
+
# @return [Hash] Returns the object in the form of hash
|
535
|
+
def to_body
|
536
|
+
to_hash
|
537
|
+
end
|
538
|
+
|
539
|
+
# Returns the object in the form of hash
|
540
|
+
# @return [Hash] Returns the object in the form of hash
|
541
|
+
def to_hash
|
542
|
+
hash = {}
|
543
|
+
self.class.attribute_map.each_pair do |attr, param|
|
544
|
+
value = self.send(attr)
|
545
|
+
next if value.nil?
|
546
|
+
hash[param] = _to_hash(value)
|
547
|
+
end
|
548
|
+
hash
|
549
|
+
end
|
550
|
+
|
551
|
+
# Outputs non-array value in the form of hash
|
552
|
+
# For object, use to_hash. Otherwise, just return the value
|
553
|
+
# @param [Object] value Any valid value
|
554
|
+
# @return [Hash] Returns the value in the form of hash
|
555
|
+
def _to_hash(value)
|
556
|
+
if value.is_a?(Array)
|
557
|
+
value.compact.map { |v| _to_hash(v) }
|
558
|
+
elsif value.is_a?(Hash)
|
559
|
+
{}.tap do |hash|
|
560
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
561
|
+
end
|
562
|
+
elsif value.respond_to? :to_hash
|
563
|
+
value.to_hash
|
564
|
+
else
|
565
|
+
value
|
566
|
+
end
|
567
|
+
end
|
568
|
+
|
569
|
+
end
|
570
|
+
end
|