aspose_email_cloud 19.11.0 → 19.12.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 +43 -1
- data/lib/aspose-email-cloud/api/email_api.rb +221 -100
- data/lib/aspose-email-cloud/api_client.rb +4 -3
- data/lib/aspose-email-cloud/configuration.rb +4 -0
- data/lib/aspose-email-cloud/models/account_base_request.rb +123 -113
- data/lib/aspose-email-cloud/models/add_attachment_request.rb +86 -82
- data/lib/aspose-email-cloud/models/ai_bcr_base64_image.rb +228 -0
- data/lib/aspose-email-cloud/models/ai_bcr_base64_rq.rb +225 -0
- data/lib/aspose-email-cloud/models/ai_bcr_image.rb +215 -0
- data/lib/aspose-email-cloud/models/ai_bcr_image_storage_file.rb +228 -0
- data/lib/aspose-email-cloud/models/ai_bcr_ocr_data.rb +253 -0
- data/lib/aspose-email-cloud/models/ai_bcr_ocr_data_part.rb +297 -0
- data/lib/aspose-email-cloud/models/ai_bcr_options.rb +223 -0
- data/lib/aspose-email-cloud/models/ai_bcr_parse_storage_rq.rb +248 -0
- data/lib/aspose-email-cloud/models/ai_bcr_rq.rb +210 -0
- data/lib/aspose-email-cloud/models/ai_bcr_storage_image_rq.rb +230 -0
- data/lib/aspose-email-cloud/models/ai_name_component.rb +264 -0
- data/lib/aspose-email-cloud/models/ai_name_cultural_context.rb +267 -0
- data/lib/aspose-email-cloud/models/ai_name_extracted.rb +230 -0
- data/lib/aspose-email-cloud/models/ai_name_extracted_component.rb +228 -0
- data/lib/aspose-email-cloud/models/ai_name_formatted.rb +223 -0
- data/lib/aspose-email-cloud/models/ai_name_gender_hypothesis.rb +233 -0
- data/lib/aspose-email-cloud/models/ai_name_match_result.rb +230 -0
- data/lib/aspose-email-cloud/models/ai_name_mismatch.rb +246 -0
- data/lib/aspose-email-cloud/models/ai_name_parsed_match_rq.rb +263 -0
- data/lib/aspose-email-cloud/models/ai_name_parsed_rq.rb +243 -0
- data/lib/aspose-email-cloud/models/ai_name_weighted.rb +228 -0
- data/lib/aspose-email-cloud/models/ai_name_weighted_variants.rb +225 -0
- data/lib/aspose-email-cloud/models/append_email_account_base_request.rb +178 -163
- data/lib/aspose-email-cloud/models/append_email_base_request.rb +196 -179
- data/lib/aspose-email-cloud/models/append_email_mime_base_request.rb +215 -198
- data/lib/aspose-email-cloud/models/base_object.rb +9 -5
- data/lib/aspose-email-cloud/models/create_email_request.rb +91 -87
- data/lib/aspose-email-cloud/models/create_folder_base_request.rb +173 -160
- data/lib/aspose-email-cloud/models/delete_folder_base_request.rb +178 -165
- data/lib/aspose-email-cloud/models/delete_message_base_request.rb +178 -165
- data/lib/aspose-email-cloud/models/disc_usage.rb +96 -92
- data/lib/aspose-email-cloud/models/email_account_request.rb +257 -205
- data/lib/aspose-email-cloud/models/email_document.rb +93 -89
- data/lib/aspose-email-cloud/models/email_document_response.rb +73 -71
- data/lib/aspose-email-cloud/models/email_properties.rb +93 -88
- data/lib/aspose-email-cloud/models/email_property.rb +128 -119
- data/lib/aspose-email-cloud/models/email_property_response.rb +73 -71
- data/lib/aspose-email-cloud/models/error.rb +112 -104
- data/lib/aspose-email-cloud/models/error_details.rb +91 -87
- data/lib/aspose-email-cloud/models/file_version.rb +166 -152
- data/lib/aspose-email-cloud/models/file_versions.rb +75 -73
- data/lib/aspose-email-cloud/models/files_list.rb +75 -73
- data/lib/aspose-email-cloud/models/files_upload_result.rb +90 -86
- data/lib/aspose-email-cloud/models/hierarchical_object.rb +13 -7
- data/lib/aspose-email-cloud/models/hierarchical_object_request.rb +91 -87
- data/lib/aspose-email-cloud/models/hierarchical_object_response.rb +86 -82
- data/lib/aspose-email-cloud/models/indexed_hierarchical_object.rb +17 -9
- data/lib/aspose-email-cloud/models/indexed_primitive_object.rb +17 -9
- data/lib/aspose-email-cloud/models/link.rb +112 -104
- data/lib/aspose-email-cloud/models/list_response_of_ai_bcr_ocr_data.rb +211 -0
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_component.rb +211 -0
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_extracted.rb +211 -0
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_gender_hypothesis.rb +211 -0
- data/lib/aspose-email-cloud/models/list_response_of_hierarchical_object.rb +211 -0
- data/lib/aspose-email-cloud/models/list_response_of_hierarchical_object_response.rb +74 -71
- data/lib/aspose-email-cloud/models/list_response_of_mail_server_folder.rb +74 -71
- data/lib/aspose-email-cloud/models/list_response_of_storage_file_location.rb +211 -0
- data/lib/aspose-email-cloud/models/list_response_of_string.rb +74 -71
- data/lib/aspose-email-cloud/models/mail_server_folder.rb +86 -82
- data/lib/aspose-email-cloud/models/mime_response.rb +73 -71
- data/lib/aspose-email-cloud/models/object_exist.rb +96 -92
- data/lib/aspose-email-cloud/models/primitive_object.rb +13 -7
- data/lib/aspose-email-cloud/models/requests/add_calendar_attachment_request_data.rb +4 -4
- data/lib/aspose-email-cloud/models/requests/add_contact_attachment_request_data.rb +6 -11
- data/lib/aspose-email-cloud/models/requests/add_email_attachment_request_data.rb +4 -4
- data/lib/aspose-email-cloud/models/requests/add_mapi_attachment_request_data.rb +4 -4
- data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_storage_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_complete_request_data.rb +91 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_parsed_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_request_data.rb +91 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_format_parsed_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_format_request_data.rb +94 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_parsed_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_request_data.rb +91 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_match_parsed_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_match_request_data.rb +99 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_email_address_request_data.rb +91 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_request_data.rb +91 -0
- data/lib/aspose-email-cloud/models/requests/append_email_message_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/append_mime_message_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/copy_file_request_data.rb +5 -5
- data/lib/aspose-email-cloud/models/requests/copy_folder_request_data.rb +4 -4
- data/lib/aspose-email-cloud/models/requests/create_calendar_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/requests/create_contact_request_data.rb +5 -10
- data/lib/aspose-email-cloud/models/requests/create_email_folder_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/create_email_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/requests/create_folder_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/create_mapi_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/requests/delete_calendar_property_request_data.rb +5 -5
- data/lib/aspose-email-cloud/models/requests/delete_contact_property_request_data.rb +7 -12
- data/lib/aspose-email-cloud/models/requests/delete_email_folder_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/delete_email_message_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/delete_file_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/requests/delete_folder_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb +4 -4
- data/lib/aspose-email-cloud/models/requests/delete_mapi_properties_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/requests/download_file_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/requests/fetch_email_message_request_data.rb +7 -7
- data/lib/aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb +5 -5
- data/lib/aspose-email-cloud/models/requests/get_calendar_list_request_data.rb +5 -5
- data/lib/aspose-email-cloud/models/requests/get_calendar_request_data.rb +4 -4
- data/lib/aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb +7 -12
- data/lib/aspose-email-cloud/models/requests/get_contact_list_request_data.rb +7 -12
- data/lib/aspose-email-cloud/models/requests/get_contact_properties_request_data.rb +6 -11
- data/lib/aspose-email-cloud/models/requests/get_disc_usage_request_data.rb +1 -1
- data/lib/aspose-email-cloud/models/requests/get_email_attachment_request_data.rb +5 -5
- data/lib/aspose-email-cloud/models/requests/get_email_property_request_data.rb +5 -5
- data/lib/aspose-email-cloud/models/requests/get_email_request_data.rb +4 -4
- data/lib/aspose-email-cloud/models/requests/get_file_versions_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/get_files_list_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachment_request_data.rb +5 -5
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachments_request_data.rb +4 -4
- data/lib/aspose-email-cloud/models/requests/get_mapi_list_request_data.rb +5 -5
- data/lib/aspose-email-cloud/models/requests/get_mapi_properties_request_data.rb +4 -4
- data/lib/aspose-email-cloud/models/requests/list_email_folders_request_data.rb +7 -7
- data/lib/aspose-email-cloud/models/requests/list_email_messages_request_data.rb +10 -10
- data/lib/aspose-email-cloud/models/requests/move_file_request_data.rb +5 -5
- data/lib/aspose-email-cloud/models/requests/move_folder_request_data.rb +4 -4
- data/lib/aspose-email-cloud/models/requests/object_exists_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/requests/save_mail_account_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/save_mail_o_auth_account_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/send_email_mime_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/send_email_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/set_email_property_request_data.rb +5 -5
- data/lib/aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/storage_exists_request_data.rb +1 -1
- data/lib/aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/requests/update_contact_properties_request_data.rb +5 -10
- data/lib/aspose-email-cloud/models/requests/update_mapi_properties_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/requests/upload_file_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/save_email_account_request.rb +294 -240
- data/lib/aspose-email-cloud/models/save_o_auth_email_account_request.rb +368 -310
- data/lib/aspose-email-cloud/models/send_email_base_request.rb +141 -130
- data/lib/aspose-email-cloud/models/send_email_mime_base_request.rb +160 -149
- data/lib/aspose-email-cloud/models/set_email_property_request.rb +91 -87
- data/lib/aspose-email-cloud/models/set_message_read_flag_account_base_request.rb +178 -165
- data/lib/aspose-email-cloud/models/storage_exist.rb +78 -76
- data/lib/aspose-email-cloud/models/storage_file.rb +135 -125
- data/lib/aspose-email-cloud/models/storage_file_location.rb +123 -117
- data/lib/aspose-email-cloud/models/storage_folder_location.rb +86 -82
- data/lib/aspose-email-cloud/models/value_response.rb +73 -71
- data/lib/aspose-email-cloud/version.rb +1 -1
- metadata +45 -3
- data/lib/aspose-email-cloud/models/contact_format.rb +0 -45
@@ -32,16 +32,16 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for delete_calendar_property operation.
|
33
33
|
class DeleteCalendarPropertyRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Deletes indexed property by index and name. To delete Reminder attachment, use path ReminderAttachment/{ReminderIndex}/{AttachmentIndex}
|
35
|
+
# Deletes indexed property by index and name. To delete Reminder attachment, use path ReminderAttachment/{ReminderIndex}/{AttachmentIndex}
|
36
36
|
# @param [String] name iCalendar file name in storage
|
37
37
|
# @param [String] member_name Indexed property name
|
38
38
|
# @param [String] index Property index path
|
39
39
|
# @param [StorageFolderLocation] request Storage detail to specify iCalendar file location
|
40
40
|
def initialize(name, member_name, index, request)
|
41
|
-
@name = name
|
42
|
-
@member_name = member_name
|
43
|
-
@index = index
|
44
|
-
@request = request
|
41
|
+
@name = name if name
|
42
|
+
@member_name = member_name if member_name
|
43
|
+
@index = index if index
|
44
|
+
@request = request if request
|
45
45
|
end
|
46
46
|
|
47
47
|
def to_http_info(api_client)
|
@@ -32,18 +32,18 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for delete_contact_property operation.
|
33
33
|
class DeleteContactPropertyRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Delete property from indexed property list
|
36
|
-
# @param [String] format Contact document format
|
35
|
+
# Delete property from indexed property list
|
36
|
+
# @param [String] format Contact document format Enum, available values: VCard, WebDav, Msg
|
37
37
|
# @param [String] name Contact document file name
|
38
38
|
# @param [String] member_name Indexed property name
|
39
39
|
# @param [Integer] index Property index
|
40
40
|
# @param [StorageFolderLocation] folder Calendar document location in storage information
|
41
41
|
def initialize(format, name, member_name, index, folder)
|
42
|
-
@format = format
|
43
|
-
@name = name
|
44
|
-
@member_name = member_name
|
45
|
-
@index = index
|
46
|
-
@folder = folder
|
42
|
+
@format = format if format
|
43
|
+
@name = name if name
|
44
|
+
@member_name = member_name if member_name
|
45
|
+
@index = index if index
|
46
|
+
@folder = folder if folder
|
47
47
|
end
|
48
48
|
|
49
49
|
def to_http_info(api_client)
|
@@ -52,11 +52,6 @@ module AsposeEmailCloud
|
|
52
52
|
raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.delete_contact_property"
|
53
53
|
end
|
54
54
|
|
55
|
-
# verify enum value
|
56
|
-
if api_client.config.client_side_validation && !['VCard', 'WebDav', 'Msg'].include?(@format)
|
57
|
-
raise ArgumentError, "invalid value for 'format', must be one of VCard, WebDav, Msg"
|
58
|
-
end
|
59
|
-
|
60
55
|
# verify the required parameter 'name' is set
|
61
56
|
if api_client.config.client_side_validation && @name.nil?
|
62
57
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.delete_contact_property"
|
@@ -32,10 +32,10 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for delete_email_folder operation.
|
33
33
|
class DeleteEmailFolderRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Delete a folder in email account
|
35
|
+
# Delete a folder in email account
|
36
36
|
# @param [DeleteFolderBaseRequest] request Delete folder request
|
37
37
|
def initialize(request)
|
38
|
-
@request = request
|
38
|
+
@request = request if request
|
39
39
|
end
|
40
40
|
|
41
41
|
def to_http_info(api_client)
|
@@ -32,10 +32,10 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for delete_email_message operation.
|
33
33
|
class DeleteEmailMessageRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Delete message from email account by id
|
35
|
+
# Delete message from email account by id
|
36
36
|
# @param [DeleteMessageBaseRequest] request Delete message request
|
37
37
|
def initialize(request)
|
38
|
-
@request = request
|
38
|
+
@request = request if request
|
39
39
|
end
|
40
40
|
|
41
41
|
def to_http_info(api_client)
|
@@ -37,9 +37,9 @@ module AsposeEmailCloud
|
|
37
37
|
# @param [String] storage_name Storage name
|
38
38
|
# @param [String] version_id File version ID to delete
|
39
39
|
def initialize(path, storage_name = nil, version_id = nil)
|
40
|
-
@path = path
|
41
|
-
@storage_name = storage_name
|
42
|
-
@version_id = version_id
|
40
|
+
@path = path if path
|
41
|
+
@storage_name = storage_name if storage_name
|
42
|
+
@version_id = version_id if version_id
|
43
43
|
end
|
44
44
|
|
45
45
|
def to_http_info(api_client)
|
@@ -37,9 +37,9 @@ module AsposeEmailCloud
|
|
37
37
|
# @param [String] storage_name Storage name
|
38
38
|
# @param [BOOLEAN] recursive Enable to delete folders, subfolders and files
|
39
39
|
def initialize(path, storage_name = nil, recursive = nil)
|
40
|
-
@path = path
|
41
|
-
@storage_name = storage_name
|
42
|
-
@recursive = recursive
|
40
|
+
@path = path if path
|
41
|
+
@storage_name = storage_name if storage_name
|
42
|
+
@recursive = recursive if recursive
|
43
43
|
end
|
44
44
|
|
45
45
|
def to_http_info(api_client)
|
@@ -32,14 +32,14 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for delete_mapi_attachment operation.
|
33
33
|
class DeleteMapiAttachmentRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Remove attachment from document
|
35
|
+
# Remove attachment from document
|
36
36
|
# @param [String] name Document file name
|
37
37
|
# @param [String] attachment Attachment name or index
|
38
38
|
# @param [StorageFolderLocation] storage Document file storage location info
|
39
39
|
def initialize(name, attachment, storage)
|
40
|
-
@name = name
|
41
|
-
@attachment = attachment
|
42
|
-
@storage = storage
|
40
|
+
@name = name if name
|
41
|
+
@attachment = attachment if attachment
|
42
|
+
@storage = storage if storage
|
43
43
|
end
|
44
44
|
|
45
45
|
def to_http_info(api_client)
|
@@ -32,12 +32,12 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for delete_mapi_properties operation.
|
33
33
|
class DeleteMapiPropertiesRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Delete document properties
|
35
|
+
# Delete document properties
|
36
36
|
# @param [String] name Document file name
|
37
37
|
# @param [HierarchicalObjectRequest] request Properties that should be deleted
|
38
38
|
def initialize(name, request)
|
39
|
-
@name = name
|
40
|
-
@request = request
|
39
|
+
@name = name if name
|
40
|
+
@request = request if request
|
41
41
|
end
|
42
42
|
|
43
43
|
def to_http_info(api_client)
|
@@ -37,9 +37,9 @@ module AsposeEmailCloud
|
|
37
37
|
# @param [String] storage_name Storage name
|
38
38
|
# @param [String] version_id File version ID to download
|
39
39
|
def initialize(path, storage_name = nil, version_id = nil)
|
40
|
-
@path = path
|
41
|
-
@storage_name = storage_name
|
42
|
-
@version_id = version_id
|
40
|
+
@path = path if path
|
41
|
+
@storage_name = storage_name if storage_name
|
42
|
+
@version_id = version_id if version_id
|
43
43
|
end
|
44
44
|
|
45
45
|
def to_http_info(api_client)
|
@@ -32,18 +32,18 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for fetch_email_message operation.
|
33
33
|
class FetchEmailMessageRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Fetch message mime from email account
|
35
|
+
# Fetch message mime from email account
|
36
36
|
# @param [String] message_id Message identifier
|
37
37
|
# @param [String] first_account Email account
|
38
|
-
# @param [String] second_account Additional email account (should be specified for POP/IMAP accounts and should be SMTP account)
|
38
|
+
# @param [String] second_account Additional email account (should be specified for POP/IMAP accounts and should be SMTP account)
|
39
39
|
# @param [String] storage Storage name where account file(s) located
|
40
40
|
# @param [String] storage_folder Folder in storage where account file(s) located
|
41
41
|
def initialize(message_id, first_account, second_account = nil, storage = nil, storage_folder = nil)
|
42
|
-
@message_id = message_id
|
43
|
-
@first_account = first_account
|
44
|
-
@second_account = second_account
|
45
|
-
@storage = storage
|
46
|
-
@storage_folder = storage_folder
|
42
|
+
@message_id = message_id if message_id
|
43
|
+
@first_account = first_account if first_account
|
44
|
+
@second_account = second_account if second_account
|
45
|
+
@storage = storage if storage
|
46
|
+
@storage_folder = storage_folder if storage_folder
|
47
47
|
end
|
48
48
|
|
49
49
|
def to_http_info(api_client)
|
@@ -32,16 +32,16 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_calendar_attachment operation.
|
33
33
|
class GetCalendarAttachmentRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Get iCalendar document attachment by name
|
35
|
+
# Get iCalendar document attachment by name
|
36
36
|
# @param [String] name iCalendar document file name
|
37
37
|
# @param [String] attachment Attachment name or index
|
38
38
|
# @param [String] folder Path to folder in storage
|
39
39
|
# @param [String] storage Storage name
|
40
40
|
def initialize(name, attachment, folder = nil, storage = nil)
|
41
|
-
@name = name
|
42
|
-
@attachment = attachment
|
43
|
-
@folder = folder
|
44
|
-
@storage = storage
|
41
|
+
@name = name if name
|
42
|
+
@attachment = attachment if attachment
|
43
|
+
@folder = folder if folder
|
44
|
+
@storage = storage if storage
|
45
45
|
end
|
46
46
|
|
47
47
|
def to_http_info(api_client)
|
@@ -32,16 +32,16 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_calendar_list operation.
|
33
33
|
class GetCalendarListRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Get iCalendar files list in folder on storage
|
35
|
+
# Get iCalendar files list in folder on storage
|
36
36
|
# @param [String] folder Path to folder in storage
|
37
37
|
# @param [Integer] items_per_page Count of items on page
|
38
38
|
# @param [Integer] page_number Page number
|
39
39
|
# @param [String] storage Storage name
|
40
40
|
def initialize(folder, items_per_page, page_number, storage = nil)
|
41
|
-
@folder = folder
|
42
|
-
@items_per_page = items_per_page
|
43
|
-
@page_number = page_number
|
44
|
-
@storage = storage
|
41
|
+
@folder = folder if folder
|
42
|
+
@items_per_page = items_per_page if items_per_page
|
43
|
+
@page_number = page_number if page_number
|
44
|
+
@storage = storage if storage
|
45
45
|
end
|
46
46
|
|
47
47
|
def to_http_info(api_client)
|
@@ -32,14 +32,14 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_calendar operation.
|
33
33
|
class GetCalendarRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Get calendar file properties
|
35
|
+
# Get calendar file properties
|
36
36
|
# @param [String] name iCalendar file name in storage
|
37
37
|
# @param [String] folder Path to folder in storage
|
38
38
|
# @param [String] storage Storage name
|
39
39
|
def initialize(name, folder = nil, storage = nil)
|
40
|
-
@name = name
|
41
|
-
@folder = folder
|
42
|
-
@storage = storage
|
40
|
+
@name = name if name
|
41
|
+
@folder = folder if folder
|
42
|
+
@storage = storage if storage
|
43
43
|
end
|
44
44
|
|
45
45
|
def to_http_info(api_client)
|
@@ -32,18 +32,18 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_contact_attachment operation.
|
33
33
|
class GetContactAttachmentRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Get attachment file by name
|
36
|
-
# @param [String] format Contact document format
|
35
|
+
# Get attachment file by name
|
36
|
+
# @param [String] format Contact document format. Enum, available values: VCard, WebDav, Msg
|
37
37
|
# @param [String] name Contact document file name
|
38
38
|
# @param [String] attachment Attachment name or index
|
39
39
|
# @param [String] folder Path to folder in storage
|
40
40
|
# @param [String] storage Storage name
|
41
41
|
def initialize(format, name, attachment, folder = nil, storage = nil)
|
42
|
-
@format = format
|
43
|
-
@name = name
|
44
|
-
@attachment = attachment
|
45
|
-
@folder = folder
|
46
|
-
@storage = storage
|
42
|
+
@format = format if format
|
43
|
+
@name = name if name
|
44
|
+
@attachment = attachment if attachment
|
45
|
+
@folder = folder if folder
|
46
|
+
@storage = storage if storage
|
47
47
|
end
|
48
48
|
|
49
49
|
def to_http_info(api_client)
|
@@ -52,11 +52,6 @@ module AsposeEmailCloud
|
|
52
52
|
raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.get_contact_attachment"
|
53
53
|
end
|
54
54
|
|
55
|
-
# verify enum value
|
56
|
-
if api_client.config.client_side_validation && !['VCard', 'WebDav', 'Msg'].include?(@format)
|
57
|
-
raise ArgumentError, "invalid value for 'format', must be one of VCard, WebDav, Msg"
|
58
|
-
end
|
59
|
-
|
60
55
|
# verify the required parameter 'name' is set
|
61
56
|
if api_client.config.client_side_validation && @name.nil?
|
62
57
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.get_contact_attachment"
|
@@ -32,18 +32,18 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_contact_list operation.
|
33
33
|
class GetContactListRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Get contact list from storage folder
|
36
|
-
# @param [String] format Contact document format
|
35
|
+
# Get contact list from storage folder
|
36
|
+
# @param [String] format Contact document format. Enum, available values: VCard, WebDav, Msg
|
37
37
|
# @param [String] folder Path to folder in storage
|
38
38
|
# @param [String] storage Storage name
|
39
39
|
# @param [Integer] items_per_page Count of items on page
|
40
40
|
# @param [Integer] page_number Page number
|
41
41
|
def initialize(format, folder = nil, storage = nil, items_per_page = nil, page_number = nil)
|
42
|
-
@format = format
|
43
|
-
@folder = folder
|
44
|
-
@storage = storage
|
45
|
-
@items_per_page = items_per_page
|
46
|
-
@page_number = page_number
|
42
|
+
@format = format if format
|
43
|
+
@folder = folder if folder
|
44
|
+
@storage = storage if storage
|
45
|
+
@items_per_page = items_per_page if items_per_page
|
46
|
+
@page_number = page_number if page_number
|
47
47
|
end
|
48
48
|
|
49
49
|
def to_http_info(api_client)
|
@@ -52,11 +52,6 @@ module AsposeEmailCloud
|
|
52
52
|
raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.get_contact_list"
|
53
53
|
end
|
54
54
|
|
55
|
-
# verify enum value
|
56
|
-
if api_client.config.client_side_validation && !['VCard', 'WebDav', 'Msg'].include?(@format)
|
57
|
-
raise ArgumentError, "invalid value for 'format', must be one of VCard, WebDav, Msg"
|
58
|
-
end
|
59
|
-
|
60
55
|
# resource path
|
61
56
|
local_var_path = '/email/Contact/{format}'.sub('{' + 'format' + '}', @format.to_s)
|
62
57
|
|
@@ -32,16 +32,16 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_contact_properties operation.
|
33
33
|
class GetContactPropertiesRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Get contact document properties
|
36
|
-
# @param [String] format Contact document format
|
35
|
+
# Get contact document properties
|
36
|
+
# @param [String] format Contact document format. Enum, available values: VCard, WebDav, Msg
|
37
37
|
# @param [String] name Contact document file name
|
38
38
|
# @param [String] folder Path to folder in storage
|
39
39
|
# @param [String] storage Storage name
|
40
40
|
def initialize(format, name, folder = nil, storage = nil)
|
41
|
-
@format = format
|
42
|
-
@name = name
|
43
|
-
@folder = folder
|
44
|
-
@storage = storage
|
41
|
+
@format = format if format
|
42
|
+
@name = name if name
|
43
|
+
@folder = folder if folder
|
44
|
+
@storage = storage if storage
|
45
45
|
end
|
46
46
|
|
47
47
|
def to_http_info(api_client)
|
@@ -50,11 +50,6 @@ module AsposeEmailCloud
|
|
50
50
|
raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.get_contact_properties"
|
51
51
|
end
|
52
52
|
|
53
|
-
# verify enum value
|
54
|
-
if api_client.config.client_side_validation && !['VCard', 'WebDav', 'Msg'].include?(@format)
|
55
|
-
raise ArgumentError, "invalid value for 'format', must be one of VCard, WebDav, Msg"
|
56
|
-
end
|
57
|
-
|
58
53
|
# verify the required parameter 'name' is set
|
59
54
|
if api_client.config.client_side_validation && @name.nil?
|
60
55
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.get_contact_properties"
|
@@ -32,16 +32,16 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_email_attachment operation.
|
33
33
|
class GetEmailAttachmentRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Get email attachment by name
|
35
|
+
# Get email attachment by name
|
36
36
|
# @param [String] attachment Attachment name
|
37
37
|
# @param [String] file_name Email document file name
|
38
38
|
# @param [String] storage Storage name
|
39
39
|
# @param [String] folder Path to folder in storage
|
40
40
|
def initialize(attachment, file_name, storage = nil, folder = nil)
|
41
|
-
@attachment = attachment
|
42
|
-
@file_name = file_name
|
43
|
-
@storage = storage
|
44
|
-
@folder = folder
|
41
|
+
@attachment = attachment if attachment
|
42
|
+
@file_name = file_name if file_name
|
43
|
+
@storage = storage if storage
|
44
|
+
@folder = folder if folder
|
45
45
|
end
|
46
46
|
|
47
47
|
def to_http_info(api_client)
|
@@ -32,16 +32,16 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_email_property operation.
|
33
33
|
class GetEmailPropertyRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Get an email document property by its name
|
35
|
+
# Get an email document property by its name
|
36
36
|
# @param [String] property_name A property name
|
37
37
|
# @param [String] file_name Email document file name
|
38
38
|
# @param [String] storage Storage name
|
39
39
|
# @param [String] folder Path to folder in storage
|
40
40
|
def initialize(property_name, file_name, storage = nil, folder = nil)
|
41
|
-
@property_name = property_name
|
42
|
-
@file_name = file_name
|
43
|
-
@storage = storage
|
44
|
-
@folder = folder
|
41
|
+
@property_name = property_name if property_name
|
42
|
+
@file_name = file_name if file_name
|
43
|
+
@storage = storage if storage
|
44
|
+
@folder = folder if folder
|
45
45
|
end
|
46
46
|
|
47
47
|
def to_http_info(api_client)
|
@@ -32,14 +32,14 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_email operation.
|
33
33
|
class GetEmailRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Get email document
|
35
|
+
# Get email document
|
36
36
|
# @param [String] file_name Email document file name in storage
|
37
37
|
# @param [String] storage Storage name
|
38
38
|
# @param [String] folder Path to folder in storage
|
39
39
|
def initialize(file_name, storage = nil, folder = nil)
|
40
|
-
@file_name = file_name
|
41
|
-
@storage = storage
|
42
|
-
@folder = folder
|
40
|
+
@file_name = file_name if file_name
|
41
|
+
@storage = storage if storage
|
42
|
+
@folder = folder if folder
|
43
43
|
end
|
44
44
|
|
45
45
|
def to_http_info(api_client)
|