aspose_email_cloud 20.1.0 → 20.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aspose-email-cloud.rb +10 -0
- data/lib/aspose-email-cloud/api/email_api.rb +24 -0
- data/lib/aspose-email-cloud/models/discover_email_config_oauth.rb +388 -0
- data/lib/aspose-email-cloud/models/discover_email_config_password.rb +301 -0
- data/lib/aspose-email-cloud/models/discover_email_config_rq.rb +265 -0
- data/lib/aspose-email-cloud/models/email_account_config.rb +320 -0
- data/lib/aspose-email-cloud/models/email_account_config_list.rb +212 -0
- data/lib/aspose-email-cloud/models/list_response_of_email_account_config.rb +211 -0
- data/lib/aspose-email-cloud/models/name_value_pair.rb +222 -0
- data/lib/aspose-email-cloud/models/requests/add_calendar_attachment_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/add_contact_attachment_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/add_email_attachment_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/add_mapi_attachment_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_model_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_ocr_data_model_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_storage_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_name_complete_request_data.rb +32 -13
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_parsed_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_request_data.rb +32 -13
- data/lib/aspose-email-cloud/models/requests/ai_name_format_parsed_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_name_format_request_data.rb +37 -15
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_parsed_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_request_data.rb +32 -13
- data/lib/aspose-email-cloud/models/requests/ai_name_match_parsed_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_name_match_request_data.rb +38 -16
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_email_address_request_data.rb +32 -13
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_request_data.rb +32 -13
- data/lib/aspose-email-cloud/models/requests/append_email_message_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/append_email_model_message_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/append_mime_message_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_alternate_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/convert_email_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/copy_file_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/copy_folder_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/create_calendar_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/create_contact_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/create_email_folder_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/create_email_request_data.rb +14 -7
- data/lib/aspose-email-cloud/models/requests/create_folder_request_data.rb +12 -5
- data/lib/aspose-email-cloud/models/requests/create_mapi_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/delete_calendar_property_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/delete_contact_property_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/delete_email_folder_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/delete_email_message_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/delete_file_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/delete_folder_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/delete_mapi_properties_request_data.rb +13 -6
- 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 +17 -7
- data/lib/aspose-email-cloud/models/requests/fetch_email_message_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/fetch_email_model_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/get_calendar_list_request_data.rb +24 -11
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_as_alternate_request_data.rb +27 -11
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_list_request_data.rb +22 -9
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/get_calendar_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/get_contact_list_request_data.rb +27 -11
- data/lib/aspose-email-cloud/models/requests/get_contact_model_list_request_data.rb +27 -11
- data/lib/aspose-email-cloud/models/requests/get_contact_model_request_data.rb +22 -9
- data/lib/aspose-email-cloud/models/requests/get_contact_properties_request_data.rb +22 -9
- data/lib/aspose-email-cloud/models/requests/get_disc_usage_request_data.rb +6 -2
- data/lib/aspose-email-cloud/models/requests/get_email_as_file_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/get_email_attachment_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/get_email_model_list_request_data.rb +27 -11
- data/lib/aspose-email-cloud/models/requests/get_email_model_request_data.rb +22 -9
- data/lib/aspose-email-cloud/models/requests/get_email_property_request_data.rb +22 -9
- data/lib/aspose-email-cloud/models/requests/get_email_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/get_file_versions_request_data.rb +12 -5
- data/lib/aspose-email-cloud/models/requests/get_files_list_request_data.rb +12 -5
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachment_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachments_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/get_mapi_list_request_data.rb +21 -8
- data/lib/aspose-email-cloud/models/requests/get_mapi_properties_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/list_email_folders_request_data.rb +27 -11
- data/lib/aspose-email-cloud/models/requests/list_email_messages_request_data.rb +39 -17
- data/lib/aspose-email-cloud/models/requests/list_email_models_request_data.rb +39 -17
- data/lib/aspose-email-cloud/models/requests/move_file_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/move_folder_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/object_exists_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/save_calendar_model_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/save_contact_model_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/save_email_model_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/save_mail_account_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/save_mail_o_auth_account_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/send_email_mime_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/send_email_model_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/send_email_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/set_email_property_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/storage_exists_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/update_contact_properties_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/update_mapi_properties_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/upload_file_request_data.rb +18 -8
- data/lib/aspose-email-cloud/version.rb +1 -1
- metadata +12 -2
|
@@ -32,6 +32,22 @@ module AsposeEmailCloud
|
|
|
32
32
|
# Request model for list_email_folders operation.
|
|
33
33
|
class ListEmailFoldersRequestData < EmailRequest
|
|
34
34
|
|
|
35
|
+
# Email account
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :first_account
|
|
38
|
+
# Additional email account (should be specified for POP/IMAP accounts and should be SMTP account)
|
|
39
|
+
# @return [String]
|
|
40
|
+
attr_accessor :second_account
|
|
41
|
+
# Storage name where account file(s) located
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :storage
|
|
44
|
+
# Folder in storage where account file(s) located
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :storage_folder
|
|
47
|
+
# Folder in which subfolders should be listed
|
|
48
|
+
# @return [String]
|
|
49
|
+
attr_accessor :parent_folder
|
|
50
|
+
|
|
35
51
|
# Get folders list in email account
|
|
36
52
|
# @param [String] first_account Email account
|
|
37
53
|
# @param [String] second_account Additional email account (should be specified for POP/IMAP accounts and should be SMTP account)
|
|
@@ -39,16 +55,16 @@ module AsposeEmailCloud
|
|
|
39
55
|
# @param [String] storage_folder Folder in storage where account file(s) located
|
|
40
56
|
# @param [String] parent_folder Folder in which subfolders should be listed
|
|
41
57
|
def initialize(first_account, second_account = nil, storage = nil, storage_folder = nil, parent_folder = nil)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
58
|
+
self.first_account = first_account if first_account
|
|
59
|
+
self.second_account = second_account if second_account
|
|
60
|
+
self.storage = storage if storage
|
|
61
|
+
self.storage_folder = storage_folder if storage_folder
|
|
62
|
+
self.parent_folder = parent_folder if parent_folder
|
|
47
63
|
end
|
|
48
64
|
|
|
49
65
|
def to_http_info(api_client)
|
|
50
66
|
# verify the required parameter 'first_account' is set
|
|
51
|
-
if api_client.config.client_side_validation &&
|
|
67
|
+
if api_client.config.client_side_validation && self.first_account.nil?
|
|
52
68
|
raise ArgumentError, "Missing the required parameter 'first_account' when calling EmailApi.list_email_folders"
|
|
53
69
|
end
|
|
54
70
|
|
|
@@ -57,11 +73,11 @@ module AsposeEmailCloud
|
|
|
57
73
|
|
|
58
74
|
# query parameters
|
|
59
75
|
query_params = {}
|
|
60
|
-
query_params[:firstAccount] =
|
|
61
|
-
query_params[:secondAccount] =
|
|
62
|
-
query_params[:storage] =
|
|
63
|
-
query_params[:storageFolder] =
|
|
64
|
-
query_params[:parentFolder] =
|
|
76
|
+
query_params[:firstAccount] = self.first_account
|
|
77
|
+
query_params[:secondAccount] = self.second_account unless self.second_account.nil?
|
|
78
|
+
query_params[:storage] = self.storage unless self.storage.nil?
|
|
79
|
+
query_params[:storageFolder] = self.storage_folder unless self.storage_folder.nil?
|
|
80
|
+
query_params[:parentFolder] = self.parent_folder unless self.parent_folder.nil?
|
|
65
81
|
|
|
66
82
|
# form parameters
|
|
67
83
|
form_params = {}
|
|
@@ -32,6 +32,28 @@ module AsposeEmailCloud
|
|
|
32
32
|
# Request model for list_email_messages operation.
|
|
33
33
|
class ListEmailMessagesRequestData < EmailRequest
|
|
34
34
|
|
|
35
|
+
# A folder in email account
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :folder
|
|
38
|
+
# A MailQuery search string
|
|
39
|
+
# @return [String]
|
|
40
|
+
attr_accessor :query_string
|
|
41
|
+
# Email account
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :first_account
|
|
44
|
+
# Additional email account (should be specified for POP/IMAP accounts and should be SMTP account)
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :second_account
|
|
47
|
+
# Storage name where account file(s) located
|
|
48
|
+
# @return [String]
|
|
49
|
+
attr_accessor :storage
|
|
50
|
+
# Folder in storage where account file(s) located
|
|
51
|
+
# @return [String]
|
|
52
|
+
attr_accessor :storage_folder
|
|
53
|
+
# Specifies that should message be searched in subfolders recursively
|
|
54
|
+
# @return [BOOLEAN]
|
|
55
|
+
attr_accessor :recursive
|
|
56
|
+
|
|
35
57
|
# Get messages from folder, filtered by query
|
|
36
58
|
# The query string should have the following view. The example of a simple expression: '<Field name>' <Comparison operator> '<Field value>', where &lt;Field Name&gt; - the name of a message field through which filtering is made, &lt;Comparison operator&gt; - comparison operators, as their name implies, allow to compare message field and specified value, &lt;Field value&gt; - value to be compared with a message field. The number of simple expressions can make a compound one, ex.: (<Simple expression 1> & <Simple expression 2>) | <Simple expression 3 >, where \"&amp;\" - logical-AND operator, \"|\" - logical-OR operator At present the following values are allowed as a field name (<Field name>): \"To\" - represents a TO field of message, \"Text\" - represents string in the header or body of the message, \"Bcc\" - represents a BCC field of message, \"Body\" - represents a string in the body of message, \"Cc\" - represents a CC field of message, \"From\" - represents a From field of message, \"Subject\" - represents a string in the subject of message, \"InternalDate\" - represents an internal date of message, \"SentDate\" - represents a sent date of message Additionally, the following field names are allowed for IMAP-protocol: \"Answered\" - represents an /Answered flag of message \"Seen\" - represents a /Seen flag of message \"Flagged\" - represents a /Flagged flag of message \"Draft\" - represents a /Draft flag of message \"Deleted\" - represents a Deleted/ flag of message \"Recent\" - represents a Deleted/ flag of message \"MessageSize\" - represents a size (in bytes) of message Additionally, the following field names are allowed for Exchange: \"IsRead\" - Indicates whether the message has been read \"HasAttachment\" - Indicates whether or not the message has attachments \"IsSubmitted\" - Indicates whether the message has been submitted to the Outbox \"ContentClass\" - represents a content class of item Additionally, the following field names are allowed for pst/ost files: \"MessageClass\" - Represents a message class \"ContainerClass\" - Represents a folder container class \"Importance\" - Represents a message importance \"MessageSize\" - represents a size (in bytes) of message \"FolderName\" - represents a folder name \"ContentsCount\" - represents a total number of items in the folder \"UnreadContentsCount\" - represents the number of unread items in the folder. \"Subfolders\" - Indicates whether or not the folder has subfolders \"Read\" - the message is marked as having been read \"HasAttachment\" - the message has at least one attachment \"Unsent\" - the message is still being composed \"Unmodified\" - the message has not been modified since it was first saved (if unsent) or it was delivered (if sent) \"FromMe\" - the user receiving the message was also the user who sent the message \"Resend\" - the message includes a request for a resend operation with a non-delivery report \"NotifyRead\" - the user who sent the message has requested notification when a recipient first reads it \"NotifyUnread\" - the user who sent the message has requested notification when a recipient deletes it before reading or the Message object expires \"EverRead\" - the message has been read at least once The field value (<Field value>) can take the following values: For text fields - any string, For date type fields - the string of \"d-MMM-yyy\" format, ex. \"10-Feb-2009\", For flags (fields of boolean type) - either \"True\", or \"False\"
|
|
37
59
|
# @param [String] folder A folder in email account
|
|
@@ -42,28 +64,28 @@ module AsposeEmailCloud
|
|
|
42
64
|
# @param [String] storage_folder Folder in storage where account file(s) located
|
|
43
65
|
# @param [BOOLEAN] recursive Specifies that should message be searched in subfolders recursively
|
|
44
66
|
def initialize(folder, query_string, first_account, second_account = nil, storage = nil, storage_folder = nil, recursive = nil)
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
67
|
+
self.folder = folder if folder
|
|
68
|
+
self.query_string = query_string if query_string
|
|
69
|
+
self.first_account = first_account if first_account
|
|
70
|
+
self.second_account = second_account if second_account
|
|
71
|
+
self.storage = storage if storage
|
|
72
|
+
self.storage_folder = storage_folder if storage_folder
|
|
73
|
+
self.recursive = recursive if recursive
|
|
52
74
|
end
|
|
53
75
|
|
|
54
76
|
def to_http_info(api_client)
|
|
55
77
|
# verify the required parameter 'folder' is set
|
|
56
|
-
if api_client.config.client_side_validation &&
|
|
78
|
+
if api_client.config.client_side_validation && self.folder.nil?
|
|
57
79
|
raise ArgumentError, "Missing the required parameter 'folder' when calling EmailApi.list_email_messages"
|
|
58
80
|
end
|
|
59
81
|
|
|
60
82
|
# verify the required parameter 'query_string' is set
|
|
61
|
-
if api_client.config.client_side_validation &&
|
|
83
|
+
if api_client.config.client_side_validation && self.query_string.nil?
|
|
62
84
|
raise ArgumentError, "Missing the required parameter 'query_string' when calling EmailApi.list_email_messages"
|
|
63
85
|
end
|
|
64
86
|
|
|
65
87
|
# verify the required parameter 'first_account' is set
|
|
66
|
-
if api_client.config.client_side_validation &&
|
|
88
|
+
if api_client.config.client_side_validation && self.first_account.nil?
|
|
67
89
|
raise ArgumentError, "Missing the required parameter 'first_account' when calling EmailApi.list_email_messages"
|
|
68
90
|
end
|
|
69
91
|
|
|
@@ -72,13 +94,13 @@ module AsposeEmailCloud
|
|
|
72
94
|
|
|
73
95
|
# query parameters
|
|
74
96
|
query_params = {}
|
|
75
|
-
query_params[:folder] =
|
|
76
|
-
query_params[:queryString] =
|
|
77
|
-
query_params[:firstAccount] =
|
|
78
|
-
query_params[:secondAccount] =
|
|
79
|
-
query_params[:storage] =
|
|
80
|
-
query_params[:storageFolder] =
|
|
81
|
-
query_params[:recursive] =
|
|
97
|
+
query_params[:folder] = self.folder
|
|
98
|
+
query_params[:queryString] = self.query_string
|
|
99
|
+
query_params[:firstAccount] = self.first_account
|
|
100
|
+
query_params[:secondAccount] = self.second_account unless self.second_account.nil?
|
|
101
|
+
query_params[:storage] = self.storage unless self.storage.nil?
|
|
102
|
+
query_params[:storageFolder] = self.storage_folder unless self.storage_folder.nil?
|
|
103
|
+
query_params[:recursive] = self.recursive unless self.recursive.nil?
|
|
82
104
|
|
|
83
105
|
# form parameters
|
|
84
106
|
form_params = {}
|
|
@@ -32,6 +32,28 @@ module AsposeEmailCloud
|
|
|
32
32
|
# Request model for list_email_models operation.
|
|
33
33
|
class ListEmailModelsRequestData < EmailRequest
|
|
34
34
|
|
|
35
|
+
# A folder in email account
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :folder
|
|
38
|
+
# A MailQuery search string
|
|
39
|
+
# @return [String]
|
|
40
|
+
attr_accessor :query_string
|
|
41
|
+
# Email account
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :first_account
|
|
44
|
+
# Additional email account (should be specified for POP/IMAP accounts and should be SMTP account)
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :second_account
|
|
47
|
+
# Storage name where account file(s) located
|
|
48
|
+
# @return [String]
|
|
49
|
+
attr_accessor :storage
|
|
50
|
+
# Folder in storage where account file(s) located
|
|
51
|
+
# @return [String]
|
|
52
|
+
attr_accessor :storage_folder
|
|
53
|
+
# Specifies that should message be searched in subfolders recursively
|
|
54
|
+
# @return [BOOLEAN]
|
|
55
|
+
attr_accessor :recursive
|
|
56
|
+
|
|
35
57
|
# Get messages from folder, filtered by query
|
|
36
58
|
# The query string should have the following view. The example of a simple expression: '<Field name>' <Comparison operator> '<Field value>', where &lt;Field Name&gt; - the name of a message field through which filtering is made, &lt;Comparison operator&gt; - comparison operators, as their name implies, allow to compare message field and specified value, &lt;Field value&gt; - value to be compared with a message field. The number of simple expressions can make a compound one, ex.: (<Simple expression 1> & <Simple expression 2>) | <Simple expression 3 >, where \"&amp;\" - logical-AND operator, \"|\" - logical-OR operator At present the following values are allowed as a field name (<Field name>): \"To\" - represents a TO field of message, \"Text\" - represents string in the header or body of the message, \"Bcc\" - represents a BCC field of message, \"Body\" - represents a string in the body of message, \"Cc\" - represents a CC field of message, \"From\" - represents a From field of message, \"Subject\" - represents a string in the subject of message, \"InternalDate\" - represents an internal date of message, \"SentDate\" - represents a sent date of message Additionally, the following field names are allowed for IMAP-protocol: \"Answered\" - represents an /Answered flag of message \"Seen\" - represents a /Seen flag of message \"Flagged\" - represents a /Flagged flag of message \"Draft\" - represents a /Draft flag of message \"Deleted\" - represents a Deleted/ flag of message \"Recent\" - represents a Deleted/ flag of message \"MessageSize\" - represents a size (in bytes) of message Additionally, the following field names are allowed for Exchange: \"IsRead\" - Indicates whether the message has been read \"HasAttachment\" - Indicates whether or not the message has attachments \"IsSubmitted\" - Indicates whether the message has been submitted to the Outbox \"ContentClass\" - represents a content class of item Additionally, the following field names are allowed for pst/ost files: \"MessageClass\" - Represents a message class \"ContainerClass\" - Represents a folder container class \"Importance\" - Represents a message importance \"MessageSize\" - represents a size (in bytes) of message \"FolderName\" - represents a folder name \"ContentsCount\" - represents a total number of items in the folder \"UnreadContentsCount\" - represents the number of unread items in the folder. \"Subfolders\" - Indicates whether or not the folder has subfolders \"Read\" - the message is marked as having been read \"HasAttachment\" - the message has at least one attachment \"Unsent\" - the message is still being composed \"Unmodified\" - the message has not been modified since it was first saved (if unsent) or it was delivered (if sent) \"FromMe\" - the user receiving the message was also the user who sent the message \"Resend\" - the message includes a request for a resend operation with a non-delivery report \"NotifyRead\" - the user who sent the message has requested notification when a recipient first reads it \"NotifyUnread\" - the user who sent the message has requested notification when a recipient deletes it before reading or the Message object expires \"EverRead\" - the message has been read at least once The field value (<Field value>) can take the following values: For text fields - any string, For date type fields - the string of \"d-MMM-yyy\" format, ex. \"10-Feb-2009\", For flags (fields of boolean type) - either \"True\", or \"False\"
|
|
37
59
|
# @param [String] folder A folder in email account
|
|
@@ -42,28 +64,28 @@ module AsposeEmailCloud
|
|
|
42
64
|
# @param [String] storage_folder Folder in storage where account file(s) located
|
|
43
65
|
# @param [BOOLEAN] recursive Specifies that should message be searched in subfolders recursively
|
|
44
66
|
def initialize(folder, query_string, first_account, second_account = nil, storage = nil, storage_folder = nil, recursive = nil)
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
67
|
+
self.folder = folder if folder
|
|
68
|
+
self.query_string = query_string if query_string
|
|
69
|
+
self.first_account = first_account if first_account
|
|
70
|
+
self.second_account = second_account if second_account
|
|
71
|
+
self.storage = storage if storage
|
|
72
|
+
self.storage_folder = storage_folder if storage_folder
|
|
73
|
+
self.recursive = recursive if recursive
|
|
52
74
|
end
|
|
53
75
|
|
|
54
76
|
def to_http_info(api_client)
|
|
55
77
|
# verify the required parameter 'folder' is set
|
|
56
|
-
if api_client.config.client_side_validation &&
|
|
78
|
+
if api_client.config.client_side_validation && self.folder.nil?
|
|
57
79
|
raise ArgumentError, "Missing the required parameter 'folder' when calling EmailApi.list_email_models"
|
|
58
80
|
end
|
|
59
81
|
|
|
60
82
|
# verify the required parameter 'query_string' is set
|
|
61
|
-
if api_client.config.client_side_validation &&
|
|
83
|
+
if api_client.config.client_side_validation && self.query_string.nil?
|
|
62
84
|
raise ArgumentError, "Missing the required parameter 'query_string' when calling EmailApi.list_email_models"
|
|
63
85
|
end
|
|
64
86
|
|
|
65
87
|
# verify the required parameter 'first_account' is set
|
|
66
|
-
if api_client.config.client_side_validation &&
|
|
88
|
+
if api_client.config.client_side_validation && self.first_account.nil?
|
|
67
89
|
raise ArgumentError, "Missing the required parameter 'first_account' when calling EmailApi.list_email_models"
|
|
68
90
|
end
|
|
69
91
|
|
|
@@ -72,13 +94,13 @@ module AsposeEmailCloud
|
|
|
72
94
|
|
|
73
95
|
# query parameters
|
|
74
96
|
query_params = {}
|
|
75
|
-
query_params[:folder] =
|
|
76
|
-
query_params[:queryString] =
|
|
77
|
-
query_params[:firstAccount] =
|
|
78
|
-
query_params[:secondAccount] =
|
|
79
|
-
query_params[:storage] =
|
|
80
|
-
query_params[:storageFolder] =
|
|
81
|
-
query_params[:recursive] =
|
|
97
|
+
query_params[:folder] = self.folder
|
|
98
|
+
query_params[:queryString] = self.query_string
|
|
99
|
+
query_params[:firstAccount] = self.first_account
|
|
100
|
+
query_params[:secondAccount] = self.second_account unless self.second_account.nil?
|
|
101
|
+
query_params[:storage] = self.storage unless self.storage.nil?
|
|
102
|
+
query_params[:storageFolder] = self.storage_folder unless self.storage_folder.nil?
|
|
103
|
+
query_params[:recursive] = self.recursive unless self.recursive.nil?
|
|
82
104
|
|
|
83
105
|
# form parameters
|
|
84
106
|
form_params = {}
|
|
@@ -32,6 +32,22 @@ module AsposeEmailCloud
|
|
|
32
32
|
# Request model for move_file operation.
|
|
33
33
|
class MoveFileRequestData < EmailRequest
|
|
34
34
|
|
|
35
|
+
# Source file path e.g. '/src.ext'
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :src_path
|
|
38
|
+
# Destination file path e.g. '/dest.ext'
|
|
39
|
+
# @return [String]
|
|
40
|
+
attr_accessor :dest_path
|
|
41
|
+
# Source storage name
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :src_storage_name
|
|
44
|
+
# Destination storage name
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :dest_storage_name
|
|
47
|
+
# File version ID to move
|
|
48
|
+
# @return [String]
|
|
49
|
+
attr_accessor :version_id
|
|
50
|
+
|
|
35
51
|
# Move file
|
|
36
52
|
# @param [String] src_path Source file path e.g. '/src.ext'
|
|
37
53
|
# @param [String] dest_path Destination file path e.g. '/dest.ext'
|
|
@@ -39,33 +55,33 @@ module AsposeEmailCloud
|
|
|
39
55
|
# @param [String] dest_storage_name Destination storage name
|
|
40
56
|
# @param [String] version_id File version ID to move
|
|
41
57
|
def initialize(src_path, dest_path, src_storage_name = nil, dest_storage_name = nil, version_id = nil)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
58
|
+
self.src_path = src_path if src_path
|
|
59
|
+
self.dest_path = dest_path if dest_path
|
|
60
|
+
self.src_storage_name = src_storage_name if src_storage_name
|
|
61
|
+
self.dest_storage_name = dest_storage_name if dest_storage_name
|
|
62
|
+
self.version_id = version_id if version_id
|
|
47
63
|
end
|
|
48
64
|
|
|
49
65
|
def to_http_info(api_client)
|
|
50
66
|
# verify the required parameter 'src_path' is set
|
|
51
|
-
if api_client.config.client_side_validation &&
|
|
67
|
+
if api_client.config.client_side_validation && self.src_path.nil?
|
|
52
68
|
raise ArgumentError, "Missing the required parameter 'src_path' when calling EmailApi.move_file"
|
|
53
69
|
end
|
|
54
70
|
|
|
55
71
|
# verify the required parameter 'dest_path' is set
|
|
56
|
-
if api_client.config.client_side_validation &&
|
|
72
|
+
if api_client.config.client_side_validation && self.dest_path.nil?
|
|
57
73
|
raise ArgumentError, "Missing the required parameter 'dest_path' when calling EmailApi.move_file"
|
|
58
74
|
end
|
|
59
75
|
|
|
60
76
|
# resource path
|
|
61
|
-
local_var_path = '/email/storage/file/move/{srcPath}'.sub('{' + 'srcPath' + '}',
|
|
77
|
+
local_var_path = '/email/storage/file/move/{srcPath}'.sub('{' + 'srcPath' + '}', self.src_path.to_s)
|
|
62
78
|
|
|
63
79
|
# query parameters
|
|
64
80
|
query_params = {}
|
|
65
|
-
query_params[:destPath] =
|
|
66
|
-
query_params[:srcStorageName] =
|
|
67
|
-
query_params[:destStorageName] =
|
|
68
|
-
query_params[:versionId] =
|
|
81
|
+
query_params[:destPath] = self.dest_path
|
|
82
|
+
query_params[:srcStorageName] = self.src_storage_name unless self.src_storage_name.nil?
|
|
83
|
+
query_params[:destStorageName] = self.dest_storage_name unless self.dest_storage_name.nil?
|
|
84
|
+
query_params[:versionId] = self.version_id unless self.version_id.nil?
|
|
69
85
|
|
|
70
86
|
# form parameters
|
|
71
87
|
form_params = {}
|
|
@@ -32,37 +32,50 @@ module AsposeEmailCloud
|
|
|
32
32
|
# Request model for move_folder operation.
|
|
33
33
|
class MoveFolderRequestData < EmailRequest
|
|
34
34
|
|
|
35
|
+
# Folder path to move e.g. '/folder'
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :src_path
|
|
38
|
+
# Destination folder path to move to e.g '/dst'
|
|
39
|
+
# @return [String]
|
|
40
|
+
attr_accessor :dest_path
|
|
41
|
+
# Source storage name
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :src_storage_name
|
|
44
|
+
# Destination storage name
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :dest_storage_name
|
|
47
|
+
|
|
35
48
|
# Move folder
|
|
36
49
|
# @param [String] src_path Folder path to move e.g. '/folder'
|
|
37
50
|
# @param [String] dest_path Destination folder path to move to e.g '/dst'
|
|
38
51
|
# @param [String] src_storage_name Source storage name
|
|
39
52
|
# @param [String] dest_storage_name Destination storage name
|
|
40
53
|
def initialize(src_path, dest_path, src_storage_name = nil, dest_storage_name = nil)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
54
|
+
self.src_path = src_path if src_path
|
|
55
|
+
self.dest_path = dest_path if dest_path
|
|
56
|
+
self.src_storage_name = src_storage_name if src_storage_name
|
|
57
|
+
self.dest_storage_name = dest_storage_name if dest_storage_name
|
|
45
58
|
end
|
|
46
59
|
|
|
47
60
|
def to_http_info(api_client)
|
|
48
61
|
# verify the required parameter 'src_path' is set
|
|
49
|
-
if api_client.config.client_side_validation &&
|
|
62
|
+
if api_client.config.client_side_validation && self.src_path.nil?
|
|
50
63
|
raise ArgumentError, "Missing the required parameter 'src_path' when calling EmailApi.move_folder"
|
|
51
64
|
end
|
|
52
65
|
|
|
53
66
|
# verify the required parameter 'dest_path' is set
|
|
54
|
-
if api_client.config.client_side_validation &&
|
|
67
|
+
if api_client.config.client_side_validation && self.dest_path.nil?
|
|
55
68
|
raise ArgumentError, "Missing the required parameter 'dest_path' when calling EmailApi.move_folder"
|
|
56
69
|
end
|
|
57
70
|
|
|
58
71
|
# resource path
|
|
59
|
-
local_var_path = '/email/storage/folder/move/{srcPath}'.sub('{' + 'srcPath' + '}',
|
|
72
|
+
local_var_path = '/email/storage/folder/move/{srcPath}'.sub('{' + 'srcPath' + '}', self.src_path.to_s)
|
|
60
73
|
|
|
61
74
|
# query parameters
|
|
62
75
|
query_params = {}
|
|
63
|
-
query_params[:destPath] =
|
|
64
|
-
query_params[:srcStorageName] =
|
|
65
|
-
query_params[:destStorageName] =
|
|
76
|
+
query_params[:destPath] = self.dest_path
|
|
77
|
+
query_params[:srcStorageName] = self.src_storage_name unless self.src_storage_name.nil?
|
|
78
|
+
query_params[:destStorageName] = self.dest_storage_name unless self.dest_storage_name.nil?
|
|
66
79
|
|
|
67
80
|
# form parameters
|
|
68
81
|
form_params = {}
|
|
@@ -32,29 +32,39 @@ module AsposeEmailCloud
|
|
|
32
32
|
# Request model for object_exists operation.
|
|
33
33
|
class ObjectExistsRequestData < EmailRequest
|
|
34
34
|
|
|
35
|
+
# File or folder path e.g. '/file.ext' or '/folder'
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :path
|
|
38
|
+
# Storage name
|
|
39
|
+
# @return [String]
|
|
40
|
+
attr_accessor :storage_name
|
|
41
|
+
# File version ID
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :version_id
|
|
44
|
+
|
|
35
45
|
# Check if file or folder exists
|
|
36
46
|
# @param [String] path File or folder path e.g. '/file.ext' or '/folder'
|
|
37
47
|
# @param [String] storage_name Storage name
|
|
38
48
|
# @param [String] version_id File version ID
|
|
39
49
|
def initialize(path, storage_name = nil, version_id = nil)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
50
|
+
self.path = path if path
|
|
51
|
+
self.storage_name = storage_name if storage_name
|
|
52
|
+
self.version_id = version_id if version_id
|
|
43
53
|
end
|
|
44
54
|
|
|
45
55
|
def to_http_info(api_client)
|
|
46
56
|
# verify the required parameter 'path' is set
|
|
47
|
-
if api_client.config.client_side_validation &&
|
|
57
|
+
if api_client.config.client_side_validation && self.path.nil?
|
|
48
58
|
raise ArgumentError, "Missing the required parameter 'path' when calling EmailApi.object_exists"
|
|
49
59
|
end
|
|
50
60
|
|
|
51
61
|
# resource path
|
|
52
|
-
local_var_path = '/email/storage/exist/{path}'.sub('{' + 'path' + '}',
|
|
62
|
+
local_var_path = '/email/storage/exist/{path}'.sub('{' + 'path' + '}', self.path.to_s)
|
|
53
63
|
|
|
54
64
|
# query parameters
|
|
55
65
|
query_params = {}
|
|
56
|
-
query_params[:storageName] =
|
|
57
|
-
query_params[:versionId] =
|
|
66
|
+
query_params[:storageName] = self.storage_name unless self.storage_name.nil?
|
|
67
|
+
query_params[:versionId] = self.version_id unless self.version_id.nil?
|
|
58
68
|
|
|
59
69
|
# form parameters
|
|
60
70
|
form_params = {}
|
|
@@ -32,27 +32,34 @@ module AsposeEmailCloud
|
|
|
32
32
|
# Request model for save_calendar_model operation.
|
|
33
33
|
class SaveCalendarModelRequestData < EmailRequest
|
|
34
34
|
|
|
35
|
+
# iCalendar file name in storage
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :name
|
|
38
|
+
# Calendar properties update request
|
|
39
|
+
# @return [StorageModelRqOfCalendarDto]
|
|
40
|
+
attr_accessor :rq
|
|
41
|
+
|
|
35
42
|
# Save iCalendar
|
|
36
43
|
# @param [String] name iCalendar file name in storage
|
|
37
44
|
# @param [StorageModelRqOfCalendarDto] rq Calendar properties update request
|
|
38
45
|
def initialize(name, rq)
|
|
39
|
-
|
|
40
|
-
|
|
46
|
+
self.name = name if name
|
|
47
|
+
self.rq = rq if rq
|
|
41
48
|
end
|
|
42
49
|
|
|
43
50
|
def to_http_info(api_client)
|
|
44
51
|
# verify the required parameter 'name' is set
|
|
45
|
-
if api_client.config.client_side_validation &&
|
|
52
|
+
if api_client.config.client_side_validation && self.name.nil?
|
|
46
53
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.save_calendar_model"
|
|
47
54
|
end
|
|
48
55
|
|
|
49
56
|
# verify the required parameter 'rq' is set
|
|
50
|
-
if api_client.config.client_side_validation &&
|
|
57
|
+
if api_client.config.client_side_validation && self.rq.nil?
|
|
51
58
|
raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.save_calendar_model"
|
|
52
59
|
end
|
|
53
60
|
|
|
54
61
|
# resource path
|
|
55
|
-
local_var_path = '/email/CalendarModel/{name}'.sub('{' + 'name' + '}',
|
|
62
|
+
local_var_path = '/email/CalendarModel/{name}'.sub('{' + 'name' + '}', self.name.to_s)
|
|
56
63
|
|
|
57
64
|
# query parameters
|
|
58
65
|
query_params = {}
|
|
@@ -61,7 +68,7 @@ module AsposeEmailCloud
|
|
|
61
68
|
form_params = {}
|
|
62
69
|
|
|
63
70
|
# http body (model)
|
|
64
|
-
post_body = api_client.object_to_http_body(
|
|
71
|
+
post_body = api_client.object_to_http_body(self.rq)
|
|
65
72
|
auth_names = ['JWT']
|
|
66
73
|
|
|
67
74
|
# header parameters
|