aspose_email_cloud 20.2.0 → 20.3.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 +13 -0
- data/lib/aspose-email-cloud/api/email_api.rb +921 -879
- data/lib/aspose-email-cloud/api_client.rb +386 -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 -230
- 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 -279
- 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 -333
- data/lib/aspose-email-cloud/models/associated_person.rb +244 -241
- data/lib/aspose-email-cloud/models/attachment.rb +324 -321
- data/lib/aspose-email-cloud/models/attachment_base.rb +254 -251
- data/lib/aspose-email-cloud/models/base_object.rb +5 -2
- data/lib/aspose-email-cloud/models/calendar_dto.rb +557 -554
- data/lib/aspose-email-cloud/models/calendar_dto_alternate_rq.rb +268 -265
- data/lib/aspose-email-cloud/models/calendar_dto_list.rb +215 -212
- data/lib/aspose-email-cloud/models/calendar_reminder.rb +318 -315
- data/lib/aspose-email-cloud/models/contact_dto.rb +699 -696
- data/lib/aspose-email-cloud/models/contact_dto_list.rb +215 -212
- data/lib/aspose-email-cloud/models/contact_photo.rb +231 -228
- data/lib/aspose-email-cloud/models/content_type.rb +267 -264
- data/lib/aspose-email-cloud/models/content_type_parameter.rb +226 -223
- 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 -228
- data/lib/aspose-email-cloud/models/delete_folder_base_request.rb +318 -315
- data/lib/aspose-email-cloud/models/delete_message_base_request.rb +318 -315
- data/lib/aspose-email-cloud/models/disc_usage.rb +236 -233
- data/lib/aspose-email-cloud/models/discover_email_config_oauth.rb +391 -388
- data/lib/aspose-email-cloud/models/discover_email_config_password.rb +304 -301
- data/lib/aspose-email-cloud/models/discover_email_config_rq.rb +268 -265
- data/lib/aspose-email-cloud/models/email_account_config.rb +323 -320
- data/lib/aspose-email-cloud/models/email_account_config_list.rb +215 -212
- data/lib/aspose-email-cloud/models/email_account_request.rb +397 -394
- data/lib/aspose-email-cloud/models/email_address.rb +270 -267
- data/lib/aspose-email-cloud/models/email_client_account.rb +337 -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 -678
- data/lib/aspose-email-cloud/models/email_dto_list.rb +215 -212
- 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/enum_with_custom_of_associated_person_category.rb +230 -227
- data/lib/aspose-email-cloud/models/enum_with_custom_of_email_address_category.rb +230 -227
- data/lib/aspose-email-cloud/models/enum_with_custom_of_event_category.rb +230 -227
- data/lib/aspose-email-cloud/models/enum_with_custom_of_instant_messenger_category.rb +230 -227
- data/lib/aspose-email-cloud/models/enum_with_custom_of_phone_number_category.rb +230 -227
- data/lib/aspose-email-cloud/models/enum_with_custom_of_postal_address_category.rb +230 -227
- data/lib/aspose-email-cloud/models/enum_with_custom_of_url_category.rb +230 -227
- data/lib/aspose-email-cloud/models/error.rb +252 -249
- data/lib/aspose-email-cloud/models/error_details.rb +231 -228
- data/lib/aspose-email-cloud/models/file_version.rb +306 -303
- data/lib/aspose-email-cloud/models/file_versions.rb +215 -212
- data/lib/aspose-email-cloud/models/files_list.rb +215 -212
- data/lib/aspose-email-cloud/models/files_upload_result.rb +230 -227
- data/lib/aspose-email-cloud/models/hierarchical_object.rb +5 -2
- 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 +5 -2
- data/lib/aspose-email-cloud/models/indexed_primitive_object.rb +5 -2
- data/lib/aspose-email-cloud/models/instant_messenger_address.rb +244 -241
- data/lib/aspose-email-cloud/models/link.rb +252 -249
- data/lib/aspose-email-cloud/models/linked_resource.rb +267 -264
- 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 -211
- data/lib/aspose-email-cloud/models/list_response_of_email_account_config.rb +214 -211
- data/lib/aspose-email-cloud/models/list_response_of_email_dto.rb +214 -211
- 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 -211
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_contact_dto.rb +214 -211
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_email_dto.rb +214 -211
- data/lib/aspose-email-cloud/models/list_response_of_string.rb +214 -211
- data/lib/aspose-email-cloud/models/mail_address.rb +244 -241
- data/lib/aspose-email-cloud/models/mail_server_folder.rb +226 -223
- data/lib/aspose-email-cloud/models/mime_response.rb +213 -210
- data/lib/aspose-email-cloud/models/name_value_pair.rb +226 -222
- data/lib/aspose-email-cloud/models/object_exist.rb +236 -233
- data/lib/aspose-email-cloud/models/phone_number.rb +244 -241
- data/lib/aspose-email-cloud/models/postal_address.rb +353 -350
- data/lib/aspose-email-cloud/models/primitive_object.rb +5 -2
- data/lib/aspose-email-cloud/models/reminder_attendee.rb +213 -210
- data/lib/aspose-email-cloud/models/reminder_trigger.rb +249 -246
- data/lib/aspose-email-cloud/models/requests/add_calendar_attachment_request_data.rb +99 -99
- data/lib/aspose-email-cloud/models/requests/add_contact_attachment_request_data.rb +109 -109
- data/lib/aspose-email-cloud/models/requests/add_email_attachment_request_data.rb +99 -99
- data/lib/aspose-email-cloud/models/requests/add_mapi_attachment_request_data.rb +99 -99
- data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_model_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_ocr_data_model_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_storage_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/ai_name_complete_request_data.rb +110 -110
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_parsed_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_request_data.rb +110 -110
- data/lib/aspose-email-cloud/models/requests/ai_name_format_parsed_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/ai_name_format_request_data.rb +116 -116
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_parsed_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_request_data.rb +110 -110
- data/lib/aspose-email-cloud/models/requests/ai_name_match_parsed_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/ai_name_match_request_data.rb +121 -121
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_email_address_request_data.rb +110 -110
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_request_data.rb +110 -110
- data/lib/aspose-email-cloud/models/requests/append_email_message_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/append_email_model_message_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/append_mime_message_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_alternate_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/convert_email_request_data.rb +90 -90
- data/lib/aspose-email-cloud/models/requests/copy_file_request_data.rb +108 -108
- data/lib/aspose-email-cloud/models/requests/copy_folder_request_data.rb +102 -102
- data/lib/aspose-email-cloud/models/requests/create_calendar_request_data.rb +89 -89
- data/lib/aspose-email-cloud/models/requests/create_contact_request_data.rb +99 -99
- data/lib/aspose-email-cloud/models/requests/create_email_folder_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/create_email_request_data.rb +89 -89
- data/lib/aspose-email-cloud/models/requests/create_folder_request_data.rb +85 -85
- data/lib/aspose-email-cloud/models/requests/create_mapi_request_data.rb +89 -89
- data/lib/aspose-email-cloud/models/requests/delete_calendar_property_request_data.rb +109 -109
- data/lib/aspose-email-cloud/models/requests/delete_contact_property_request_data.rb +119 -119
- data/lib/aspose-email-cloud/models/requests/delete_email_folder_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/delete_email_message_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/delete_file_request_data.rb +91 -91
- data/lib/aspose-email-cloud/models/requests/delete_folder_request_data.rb +91 -91
- data/lib/aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb +99 -99
- data/lib/aspose-email-cloud/models/requests/delete_mapi_properties_request_data.rb +89 -89
- data/lib/aspose-email-cloud/models/requests/discover_email_config_oauth_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/discover_email_config_password_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/discover_email_config_request_data.rb +86 -86
- data/lib/aspose-email-cloud/models/requests/download_file_request_data.rb +91 -91
- 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 +109 -109
- data/lib/aspose-email-cloud/models/requests/fetch_email_model_request_data.rb +109 -109
- data/lib/aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb +101 -101
- data/lib/aspose-email-cloud/models/requests/get_calendar_list_request_data.rb +108 -108
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_as_alternate_request_data.rb +107 -107
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_list_request_data.rb +98 -98
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_request_data.rb +91 -91
- data/lib/aspose-email-cloud/models/requests/get_calendar_request_data.rb +91 -91
- data/lib/aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb +111 -111
- data/lib/aspose-email-cloud/models/requests/get_contact_list_request_data.rb +103 -103
- data/lib/aspose-email-cloud/models/requests/get_contact_model_list_request_data.rb +103 -103
- data/lib/aspose-email-cloud/models/requests/get_contact_model_request_data.rb +101 -101
- data/lib/aspose-email-cloud/models/requests/get_contact_properties_request_data.rb +101 -101
- data/lib/aspose-email-cloud/models/requests/get_disc_usage_request_data.rb +75 -75
- data/lib/aspose-email-cloud/models/requests/get_email_as_file_request_data.rb +101 -101
- data/lib/aspose-email-cloud/models/requests/get_email_attachment_request_data.rb +101 -101
- 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_model_list_request_data.rb +103 -103
- data/lib/aspose-email-cloud/models/requests/get_email_model_request_data.rb +101 -101
- data/lib/aspose-email-cloud/models/requests/get_email_property_request_data.rb +101 -101
- data/lib/aspose-email-cloud/models/requests/get_email_request_data.rb +91 -91
- data/lib/aspose-email-cloud/models/requests/get_file_versions_request_data.rb +85 -85
- data/lib/aspose-email-cloud/models/requests/get_files_list_request_data.rb +85 -85
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachment_request_data.rb +101 -101
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachments_request_data.rb +91 -91
- data/lib/aspose-email-cloud/models/requests/get_mapi_list_request_data.rb +93 -93
- data/lib/aspose-email-cloud/models/requests/get_mapi_properties_request_data.rb +91 -91
- 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 -104
- data/lib/aspose-email-cloud/models/requests/list_email_messages_request_data.rb +127 -127
- data/lib/aspose-email-cloud/models/requests/list_email_models_request_data.rb +127 -127
- data/lib/aspose-email-cloud/models/requests/move_file_request_data.rb +108 -108
- data/lib/aspose-email-cloud/models/requests/move_folder_request_data.rb +102 -102
- data/lib/aspose-email-cloud/models/requests/object_exists_request_data.rb +91 -91
- data/lib/aspose-email-cloud/models/requests/save_calendar_model_request_data.rb +89 -89
- data/lib/aspose-email-cloud/models/requests/save_contact_model_request_data.rb +99 -99
- 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 -99
- data/lib/aspose-email-cloud/models/requests/save_mail_account_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/save_mail_o_auth_account_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/send_email_mime_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/send_email_model_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/send_email_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/set_email_property_request_data.rb +99 -99
- data/lib/aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/storage_exists_request_data.rb +79 -79
- data/lib/aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb +89 -89
- data/lib/aspose-email-cloud/models/requests/update_contact_properties_request_data.rb +99 -99
- data/lib/aspose-email-cloud/models/requests/update_mapi_properties_request_data.rb +89 -89
- data/lib/aspose-email-cloud/models/requests/upload_file_request_data.rb +97 -97
- 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 -273
- 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 +218 -215
- data/lib/aspose-email-cloud/models/storage_file.rb +275 -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 -222
- data/lib/aspose-email-cloud/models/storage_model_of_contact_dto.rb +225 -222
- data/lib/aspose-email-cloud/models/storage_model_of_email_dto.rb +225 -222
- data/lib/aspose-email-cloud/models/storage_model_rq_of_calendar_dto.rb +225 -222
- data/lib/aspose-email-cloud/models/storage_model_rq_of_contact_dto.rb +225 -222
- data/lib/aspose-email-cloud/models/storage_model_rq_of_email_dto.rb +225 -222
- data/lib/aspose-email-cloud/models/url.rb +244 -241
- 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/version.rb +1 -1
- metadata +15 -2
@@ -1,273 +1,276 @@
|
|
1
|
-
# ----------------------------------------------------------------------------
|
2
|
-
# <copyright company="Aspose" file="SendEmailModelRq.rb">
|
3
|
-
# Copyright (c) 2018-2019 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
|
-
# Send email model request
|
31
|
-
class SendEmailModelRq
|
32
|
-
# First account storage file name for receiving emails (or universal one)
|
33
|
-
# @return [String]
|
34
|
-
attr_accessor :first_account
|
35
|
-
|
36
|
-
# Second account storage file name for sending emails (ignored if first is universal)
|
37
|
-
# @return [String]
|
38
|
-
attr_accessor :second_account
|
39
|
-
|
40
|
-
# Storage folder location of account files
|
41
|
-
# @return [StorageFolderLocation]
|
42
|
-
attr_accessor :storage_folder
|
43
|
-
|
44
|
-
# Message to send
|
45
|
-
# @return [EmailDto]
|
46
|
-
attr_accessor :message
|
47
|
-
|
48
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
49
|
-
def self.attribute_map
|
50
|
-
{
|
51
|
-
:'first_account' => :'firstAccount',
|
52
|
-
:'second_account' => :'secondAccount',
|
53
|
-
:'storage_folder' => :'storageFolder',
|
54
|
-
:'message' => :'message'
|
55
|
-
}
|
56
|
-
end
|
57
|
-
|
58
|
-
# Attribute type mapping.
|
59
|
-
def self.swagger_types
|
60
|
-
{
|
61
|
-
:'first_account' => :'String',
|
62
|
-
:'second_account' => :'String',
|
63
|
-
:'storage_folder' => :'StorageFolderLocation',
|
64
|
-
:'message' => :'EmailDto'
|
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?(:'firstAccount')
|
77
|
-
self.first_account = attributes[:'firstAccount']
|
78
|
-
end
|
79
|
-
|
80
|
-
if attributes.has_key?(:'secondAccount')
|
81
|
-
self.second_account = attributes[:'secondAccount']
|
82
|
-
end
|
83
|
-
|
84
|
-
if attributes.has_key?(:'storageFolder')
|
85
|
-
self.storage_folder = attributes[:'storageFolder']
|
86
|
-
end
|
87
|
-
|
88
|
-
if attributes.has_key?(:'message')
|
89
|
-
self.message = attributes[:'message']
|
90
|
-
end
|
91
|
-
end
|
92
|
-
|
93
|
-
# Initializes the object
|
94
|
-
# @param [String] first_account First account storage file name for receiving emails (or universal one)
|
95
|
-
# @param [String] second_account Second account storage file name for sending emails (ignored if first is universal)
|
96
|
-
# @param [StorageFolderLocation] storage_folder Storage folder location of account files
|
97
|
-
# @param [EmailDto] message Message to send
|
98
|
-
def initialize(first_account=nil, second_account=nil, storage_folder=nil, message=nil)
|
99
|
-
self.first_account = first_account if first_account
|
100
|
-
self.second_account = second_account if second_account
|
101
|
-
self.storage_folder = storage_folder if storage_folder
|
102
|
-
self.message = message if message
|
103
|
-
end
|
104
|
-
|
105
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
106
|
-
# @return Array for valid properties with the reasons
|
107
|
-
def list_invalid_properties
|
108
|
-
invalid_properties = Array.new
|
109
|
-
if @first_account.nil?
|
110
|
-
invalid_properties.push('invalid value for "first_account", first_account cannot be nil.')
|
111
|
-
end
|
112
|
-
|
113
|
-
if @first_account.to_s.length < 1
|
114
|
-
invalid_properties.push('invalid value for "first_account", the character length must be great than or equal to 1.')
|
115
|
-
end
|
116
|
-
|
117
|
-
invalid_properties
|
118
|
-
end
|
119
|
-
|
120
|
-
# Check to see if the all the properties in the model are valid
|
121
|
-
# @return true if the model is valid
|
122
|
-
def valid?
|
123
|
-
return false if @first_account.nil?
|
124
|
-
return false if @first_account.to_s.length < 1
|
125
|
-
true
|
126
|
-
end
|
127
|
-
|
128
|
-
# Custom attribute writer method with validation
|
129
|
-
# @param [Object] first_account Value to be assigned
|
130
|
-
def first_account=(first_account)
|
131
|
-
if first_account.nil?
|
132
|
-
fail ArgumentError, 'first_account cannot be nil'
|
133
|
-
end
|
134
|
-
|
135
|
-
if first_account.to_s.length < 1
|
136
|
-
fail ArgumentError, 'invalid value for "first_account", the character length must be great than or equal to 1.'
|
137
|
-
end
|
138
|
-
|
139
|
-
@first_account = first_account
|
140
|
-
end
|
141
|
-
|
142
|
-
# Checks equality by comparing each attribute.
|
143
|
-
# @param [Object] Object to be compared
|
144
|
-
def ==(o)
|
145
|
-
return true if self.equal?(o)
|
146
|
-
self.class == o.class &&
|
147
|
-
first_account == o.first_account &&
|
148
|
-
second_account == o.second_account &&
|
149
|
-
storage_folder == o.storage_folder &&
|
150
|
-
message == o.message
|
151
|
-
end
|
152
|
-
|
153
|
-
# @see the `==` method
|
154
|
-
# @param [Object] Object to be compared
|
155
|
-
def eql?(o)
|
156
|
-
self == o
|
157
|
-
end
|
158
|
-
|
159
|
-
# Calculates hash code according to all attributes.
|
160
|
-
# @return [Fixnum] Hash code
|
161
|
-
def hash
|
162
|
-
[first_account, second_account, storage_folder, message].hash
|
163
|
-
end
|
164
|
-
|
165
|
-
# Builds the object from hash
|
166
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
167
|
-
# @return [Object] Returns the model itself
|
168
|
-
def build_from_hash(attributes)
|
169
|
-
return nil unless attributes.is_a?(Hash)
|
170
|
-
self.class.swagger_types.each_pair do |key, type|
|
171
|
-
attribute_key = self.class.attribute_map[key]
|
172
|
-
attribute_key = (attribute_key[0, 1].downcase + attribute_key[1..-1]).to_sym
|
173
|
-
if type =~ /\AArray<(.*)>/i
|
174
|
-
# check to ensure the input is an array given that the the attribute
|
175
|
-
# is documented as an array but the input is not
|
176
|
-
if attributes[attribute_key].is_a?(Array)
|
177
|
-
self.send("#{key}=", attributes[attribute_key].map { |v| _deserialize($1, v) })
|
178
|
-
end
|
179
|
-
elsif !attributes[attribute_key].nil?
|
180
|
-
self.send("#{key}=", _deserialize(type, attributes[attribute_key]))
|
181
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
182
|
-
end
|
183
|
-
|
184
|
-
self
|
185
|
-
end
|
186
|
-
|
187
|
-
# Deserializes the data based on type
|
188
|
-
# @param string type Data type
|
189
|
-
# @param string value Value to be deserialized
|
190
|
-
# @return [Object] Deserialized data
|
191
|
-
def _deserialize(type, value)
|
192
|
-
case type.to_sym
|
193
|
-
when :DateTime
|
194
|
-
DateTime.parse(value)
|
195
|
-
when :Date
|
196
|
-
Date.parse(value)
|
197
|
-
when :String
|
198
|
-
value.to_s
|
199
|
-
when :Integer
|
200
|
-
value.to_i
|
201
|
-
when :Float
|
202
|
-
value.to_f
|
203
|
-
when :BOOLEAN
|
204
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
205
|
-
true
|
206
|
-
else
|
207
|
-
false
|
208
|
-
end
|
209
|
-
when :Object
|
210
|
-
# generic object (usually a Hash), return directly
|
211
|
-
value
|
212
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
213
|
-
inner_type = Regexp.last_match[:inner_type]
|
214
|
-
value.map { |v| _deserialize(inner_type, v) }
|
215
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
216
|
-
k_type = Regexp.last_match[:k_type]
|
217
|
-
v_type = Regexp.last_match[:v_type]
|
218
|
-
{}.tap do |hash|
|
219
|
-
value.each do |k, v|
|
220
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
221
|
-
end
|
222
|
-
end
|
223
|
-
else # model
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
#
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
end
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="SendEmailModelRq.rb">
|
3
|
+
# Copyright (c) 2018-2019 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
|
+
# Send email model request
|
31
|
+
class SendEmailModelRq
|
32
|
+
# First account storage file name for receiving emails (or universal one)
|
33
|
+
# @return [String]
|
34
|
+
attr_accessor :first_account
|
35
|
+
|
36
|
+
# Second account storage file name for sending emails (ignored if first is universal)
|
37
|
+
# @return [String]
|
38
|
+
attr_accessor :second_account
|
39
|
+
|
40
|
+
# Storage folder location of account files
|
41
|
+
# @return [StorageFolderLocation]
|
42
|
+
attr_accessor :storage_folder
|
43
|
+
|
44
|
+
# Message to send
|
45
|
+
# @return [EmailDto]
|
46
|
+
attr_accessor :message
|
47
|
+
|
48
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
49
|
+
def self.attribute_map
|
50
|
+
{
|
51
|
+
:'first_account' => :'firstAccount',
|
52
|
+
:'second_account' => :'secondAccount',
|
53
|
+
:'storage_folder' => :'storageFolder',
|
54
|
+
:'message' => :'message'
|
55
|
+
}
|
56
|
+
end
|
57
|
+
|
58
|
+
# Attribute type mapping.
|
59
|
+
def self.swagger_types
|
60
|
+
{
|
61
|
+
:'first_account' => :'String',
|
62
|
+
:'second_account' => :'String',
|
63
|
+
:'storage_folder' => :'StorageFolderLocation',
|
64
|
+
:'message' => :'EmailDto'
|
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?(:'firstAccount')
|
77
|
+
self.first_account = attributes[:'firstAccount']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.has_key?(:'secondAccount')
|
81
|
+
self.second_account = attributes[:'secondAccount']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.has_key?(:'storageFolder')
|
85
|
+
self.storage_folder = attributes[:'storageFolder']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.has_key?(:'message')
|
89
|
+
self.message = attributes[:'message']
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
# Initializes the object
|
94
|
+
# @param [String] first_account First account storage file name for receiving emails (or universal one)
|
95
|
+
# @param [String] second_account Second account storage file name for sending emails (ignored if first is universal)
|
96
|
+
# @param [StorageFolderLocation] storage_folder Storage folder location of account files
|
97
|
+
# @param [EmailDto] message Message to send
|
98
|
+
def initialize(first_account=nil, second_account=nil, storage_folder=nil, message=nil)
|
99
|
+
self.first_account = first_account if first_account
|
100
|
+
self.second_account = second_account if second_account
|
101
|
+
self.storage_folder = storage_folder if storage_folder
|
102
|
+
self.message = message if message
|
103
|
+
end
|
104
|
+
|
105
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
106
|
+
# @return Array for valid properties with the reasons
|
107
|
+
def list_invalid_properties
|
108
|
+
invalid_properties = Array.new
|
109
|
+
if @first_account.nil?
|
110
|
+
invalid_properties.push('invalid value for "first_account", first_account cannot be nil.')
|
111
|
+
end
|
112
|
+
|
113
|
+
if @first_account.to_s.length < 1
|
114
|
+
invalid_properties.push('invalid value for "first_account", the character length must be great than or equal to 1.')
|
115
|
+
end
|
116
|
+
|
117
|
+
invalid_properties
|
118
|
+
end
|
119
|
+
|
120
|
+
# Check to see if the all the properties in the model are valid
|
121
|
+
# @return true if the model is valid
|
122
|
+
def valid?
|
123
|
+
return false if @first_account.nil?
|
124
|
+
return false if @first_account.to_s.length < 1
|
125
|
+
true
|
126
|
+
end
|
127
|
+
|
128
|
+
# Custom attribute writer method with validation
|
129
|
+
# @param [Object] first_account Value to be assigned
|
130
|
+
def first_account=(first_account)
|
131
|
+
if first_account.nil?
|
132
|
+
fail ArgumentError, 'first_account cannot be nil'
|
133
|
+
end
|
134
|
+
|
135
|
+
if first_account.to_s.length < 1
|
136
|
+
fail ArgumentError, 'invalid value for "first_account", the character length must be great than or equal to 1.'
|
137
|
+
end
|
138
|
+
|
139
|
+
@first_account = first_account
|
140
|
+
end
|
141
|
+
|
142
|
+
# Checks equality by comparing each attribute.
|
143
|
+
# @param [Object] Object to be compared
|
144
|
+
def ==(o)
|
145
|
+
return true if self.equal?(o)
|
146
|
+
self.class == o.class &&
|
147
|
+
first_account == o.first_account &&
|
148
|
+
second_account == o.second_account &&
|
149
|
+
storage_folder == o.storage_folder &&
|
150
|
+
message == o.message
|
151
|
+
end
|
152
|
+
|
153
|
+
# @see the `==` method
|
154
|
+
# @param [Object] Object to be compared
|
155
|
+
def eql?(o)
|
156
|
+
self == o
|
157
|
+
end
|
158
|
+
|
159
|
+
# Calculates hash code according to all attributes.
|
160
|
+
# @return [Fixnum] Hash code
|
161
|
+
def hash
|
162
|
+
[first_account, second_account, storage_folder, message].hash
|
163
|
+
end
|
164
|
+
|
165
|
+
# Builds the object from hash
|
166
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
167
|
+
# @return [Object] Returns the model itself
|
168
|
+
def build_from_hash(attributes)
|
169
|
+
return nil unless attributes.is_a?(Hash)
|
170
|
+
self.class.swagger_types.each_pair do |key, type|
|
171
|
+
attribute_key = self.class.attribute_map[key]
|
172
|
+
attribute_key = (attribute_key[0, 1].downcase + attribute_key[1..-1]).to_sym
|
173
|
+
if type =~ /\AArray<(.*)>/i
|
174
|
+
# check to ensure the input is an array given that the the attribute
|
175
|
+
# is documented as an array but the input is not
|
176
|
+
if attributes[attribute_key].is_a?(Array)
|
177
|
+
self.send("#{key}=", attributes[attribute_key].map { |v| _deserialize($1, v) })
|
178
|
+
end
|
179
|
+
elsif !attributes[attribute_key].nil?
|
180
|
+
self.send("#{key}=", _deserialize(type, attributes[attribute_key]))
|
181
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
182
|
+
end
|
183
|
+
|
184
|
+
self
|
185
|
+
end
|
186
|
+
|
187
|
+
# Deserializes the data based on type
|
188
|
+
# @param string type Data type
|
189
|
+
# @param string value Value to be deserialized
|
190
|
+
# @return [Object] Deserialized data
|
191
|
+
def _deserialize(type, value)
|
192
|
+
case type.to_sym
|
193
|
+
when :DateTime
|
194
|
+
DateTime.parse(value)
|
195
|
+
when :Date
|
196
|
+
Date.parse(value)
|
197
|
+
when :String
|
198
|
+
value.to_s
|
199
|
+
when :Integer
|
200
|
+
value.to_i
|
201
|
+
when :Float
|
202
|
+
value.to_f
|
203
|
+
when :BOOLEAN
|
204
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
205
|
+
true
|
206
|
+
else
|
207
|
+
false
|
208
|
+
end
|
209
|
+
when :Object
|
210
|
+
# generic object (usually a Hash), return directly
|
211
|
+
value
|
212
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
213
|
+
inner_type = Regexp.last_match[:inner_type]
|
214
|
+
value.map { |v| _deserialize(inner_type, v) }
|
215
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
216
|
+
k_type = Regexp.last_match[:k_type]
|
217
|
+
v_type = Regexp.last_match[:v_type]
|
218
|
+
{}.tap do |hash|
|
219
|
+
value.each do |k, v|
|
220
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
221
|
+
end
|
222
|
+
end
|
223
|
+
else # model
|
224
|
+
sub_type = value[:type] || value[:discriminator] || type
|
225
|
+
if AsposeEmailCloud.const_defined?(sub_type)
|
226
|
+
type = sub_type
|
227
|
+
end
|
228
|
+
temp_model = AsposeEmailCloud.const_get(type).new
|
229
|
+
temp_model.build_from_hash(value)
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
# Returns the string representation of the object
|
234
|
+
# @return [String] String presentation of the object
|
235
|
+
def to_s
|
236
|
+
to_hash.to_s
|
237
|
+
end
|
238
|
+
|
239
|
+
# to_body is an alias to to_hash (backward compatibility)
|
240
|
+
# @return [Hash] Returns the object in the form of hash
|
241
|
+
def to_body
|
242
|
+
to_hash
|
243
|
+
end
|
244
|
+
|
245
|
+
# Returns the object in the form of hash
|
246
|
+
# @return [Hash] Returns the object in the form of hash
|
247
|
+
def to_hash
|
248
|
+
hash = {}
|
249
|
+
self.class.attribute_map.each_pair do |attr, param|
|
250
|
+
value = self.send(attr)
|
251
|
+
next if value.nil?
|
252
|
+
hash[param] = _to_hash(value)
|
253
|
+
end
|
254
|
+
hash
|
255
|
+
end
|
256
|
+
|
257
|
+
# Outputs non-array value in the form of hash
|
258
|
+
# For object, use to_hash. Otherwise, just return the value
|
259
|
+
# @param [Object] value Any valid value
|
260
|
+
# @return [Hash] Returns the value in the form of hash
|
261
|
+
def _to_hash(value)
|
262
|
+
if value.is_a?(Array)
|
263
|
+
value.compact.map { |v| _to_hash(v) }
|
264
|
+
elsif value.is_a?(Hash)
|
265
|
+
{}.tap do |hash|
|
266
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
267
|
+
end
|
268
|
+
elsif value.respond_to? :to_hash
|
269
|
+
value.to_hash
|
270
|
+
else
|
271
|
+
value
|
272
|
+
end
|
273
|
+
end
|
274
|
+
|
275
|
+
end
|
276
|
+
end
|