aspose_email_cloud 20.9.0 → 21.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose-email-cloud/api/ai_bcr_api.rb +7 -4
  3. data/lib/aspose-email-cloud/api/ai_name_api.rb +7 -4
  4. data/lib/aspose-email-cloud/api/calendar_api.rb +7 -4
  5. data/lib/aspose-email-cloud/api/client_account_api.rb +7 -4
  6. data/lib/aspose-email-cloud/api/client_folder_api.rb +7 -4
  7. data/lib/aspose-email-cloud/api/client_message_api.rb +8 -5
  8. data/lib/aspose-email-cloud/api/client_thread_api.rb +7 -4
  9. data/lib/aspose-email-cloud/api/contact_api.rb +7 -4
  10. data/lib/aspose-email-cloud/api/disposable_email_api.rb +7 -4
  11. data/lib/aspose-email-cloud/api/email_api.rb +8 -5
  12. data/lib/aspose-email-cloud/api/email_cloud.rb +5 -5
  13. data/lib/aspose-email-cloud/api/email_config_api.rb +7 -4
  14. data/lib/aspose-email-cloud/api/file_api.rb +7 -4
  15. data/lib/aspose-email-cloud/api/folder_api.rb +7 -4
  16. data/lib/aspose-email-cloud/api/mapi_calendar_api.rb +7 -4
  17. data/lib/aspose-email-cloud/api/mapi_contact_api.rb +7 -4
  18. data/lib/aspose-email-cloud/api/mapi_message_api.rb +7 -4
  19. data/lib/aspose-email-cloud/api/storage_api.rb +7 -4
  20. data/lib/aspose-email-cloud/api_client.rb +4 -4
  21. data/lib/aspose-email-cloud/api_invoker.rb +2 -2
  22. data/lib/aspose-email-cloud/configuration.rb +11 -11
  23. data/lib/aspose-email-cloud/models/ai_bcr_parse_request.rb +2 -0
  24. data/lib/aspose-email-cloud/models/ai_name_component.rb +56 -0
  25. data/lib/aspose-email-cloud/models/ai_name_parse_email_address_request.rb +2 -0
  26. data/lib/aspose-email-cloud/models/calendar_as_file_request.rb +2 -2
  27. data/lib/aspose-email-cloud/models/calendar_dto.rb +33 -5
  28. data/lib/aspose-email-cloud/models/calendar_get_as_alternate_request.rb +2 -2
  29. data/lib/aspose-email-cloud/models/calendar_get_list_request.rb +2 -0
  30. data/lib/aspose-email-cloud/models/calendar_save_request.rb +2 -2
  31. data/lib/aspose-email-cloud/models/client_account_get_multi_request.rb +2 -0
  32. data/lib/aspose-email-cloud/models/client_folder_get_list_request.rb +2 -0
  33. data/lib/aspose-email-cloud/models/client_message_fetch_request.rb +2 -2
  34. data/lib/aspose-email-cloud/models/client_message_list_request.rb +3 -3
  35. data/lib/aspose-email-cloud/models/client_message_send_file_request.rb +4 -2
  36. data/lib/aspose-email-cloud/models/client_thread_get_messages_request.rb +2 -0
  37. data/lib/aspose-email-cloud/models/client_thread_move_request.rb +14 -5
  38. data/lib/aspose-email-cloud/models/contact_convert_request.rb +4 -4
  39. data/lib/aspose-email-cloud/models/contact_from_file_request.rb +2 -2
  40. data/lib/aspose-email-cloud/models/contact_get_as_file_request.rb +4 -4
  41. data/lib/aspose-email-cloud/models/contact_get_list_request.rb +2 -0
  42. data/lib/aspose-email-cloud/models/disposable_email_is_disposable_request.rb +2 -0
  43. data/lib/aspose-email-cloud/models/email_account_config.rb +2 -2
  44. data/lib/aspose-email-cloud/models/email_client_account.rb +2 -2
  45. data/lib/aspose-email-cloud/models/email_config_discover_request.rb +2 -0
  46. data/lib/aspose-email-cloud/models/email_convert_request.rb +4 -4
  47. data/lib/aspose-email-cloud/models/email_dto.rb +23 -5
  48. data/lib/aspose-email-cloud/models/email_from_file_request.rb +2 -2
  49. data/lib/aspose-email-cloud/models/email_get_as_file_request.rb +2 -2
  50. data/lib/aspose-email-cloud/models/email_get_list_request.rb +2 -0
  51. data/lib/aspose-email-cloud/models/email_request.rb +1 -3
  52. data/lib/aspose-email-cloud/models/mapi_calendar_as_file_request.rb +2 -2
  53. data/lib/aspose-email-cloud/models/mapi_calendar_daily_recurrence_pattern_dto.rb +8 -8
  54. data/lib/aspose-email-cloud/models/mapi_calendar_dto.rb +4 -4
  55. data/lib/aspose-email-cloud/models/mapi_calendar_exception_info_dto.rb +4 -4
  56. data/lib/aspose-email-cloud/models/mapi_calendar_get_request.rb +2 -0
  57. data/lib/aspose-email-cloud/models/mapi_calendar_recurrence_pattern_dto.rb +6 -6
  58. data/lib/aspose-email-cloud/models/mapi_calendar_save_request.rb +2 -2
  59. data/lib/aspose-email-cloud/models/mapi_calendar_time_zone_info_dto.rb +2 -2
  60. data/lib/aspose-email-cloud/models/mapi_calendar_weekly_recurrence_pattern_dto.rb +8 -8
  61. data/lib/aspose-email-cloud/models/mapi_calendar_yearly_and_monthly_recurrence_pattern_dto.rb +8 -8
  62. data/lib/aspose-email-cloud/models/mapi_contact_from_file_request.rb +2 -2
  63. data/lib/aspose-email-cloud/models/mapi_contact_get_request.rb +2 -0
  64. data/lib/aspose-email-cloud/models/mapi_contact_personal_info_property_set_dto.rb +2 -2
  65. data/lib/aspose-email-cloud/models/mapi_message_from_file_request.rb +2 -2
  66. data/lib/aspose-email-cloud/models/mapi_message_get_request.rb +2 -0
  67. data/lib/aspose-email-cloud/models/mapi_pid_lid_property_descriptor.rb +2 -2
  68. data/lib/aspose-email-cloud/models/mapi_pid_name_property_descriptor.rb +2 -2
  69. data/lib/aspose-email-cloud/models/mapi_pid_property_descriptor.rb +2 -2
  70. data/lib/aspose-email-cloud/models/mapi_pid_tag_property_descriptor.rb +2 -2
  71. data/lib/aspose-email-cloud/models/move_folder_request.rb +2 -0
  72. data/lib/aspose-email-cloud/models/storage_exists_request.rb +2 -0
  73. data/lib/aspose-email-cloud/models/upload_file_request.rb +2 -0
  74. data/lib/aspose-email-cloud/version.rb +1 -1
  75. metadata +3 -3
@@ -88,10 +88,26 @@ module AsposeEmailCloud
88
88
  invalid_properties.push('invalid value for "score", score cannot be nil.')
89
89
  end
90
90
 
91
+ if @score > 1.0
92
+ invalid_properties.push('invalid value for "score", must be smaller than or equal to 1.0.')
93
+ end
94
+
95
+ if @score < 0.0
96
+ invalid_properties.push('invalid value for "score", must be greater than or equal to 0.0.')
97
+ end
98
+
91
99
  if @position.nil?
92
100
  invalid_properties.push('invalid value for "position", position cannot be nil.')
93
101
  end
94
102
 
103
+ if @position > 2147483647
104
+ invalid_properties.push('invalid value for "position", must be smaller than or equal to 2147483647.')
105
+ end
106
+
107
+ if @position < 0
108
+ invalid_properties.push('invalid value for "position", must be greater than or equal to 0.')
109
+ end
110
+
95
111
  invalid_properties
96
112
  end
97
113
 
@@ -100,10 +116,50 @@ module AsposeEmailCloud
100
116
  def valid?
101
117
  return false if @category.nil?
102
118
  return false if @score.nil?
119
+ return false if @score > 1.0
120
+ return false if @score < 0.0
103
121
  return false if @position.nil?
122
+ return false if @position > 2147483647
123
+ return false if @position < 0
104
124
  true
105
125
  end
106
126
 
127
+ # Custom attribute writer method with validation
128
+ # @param [Object] score Value to be assigned
129
+ def score=(score)
130
+ if score.nil?
131
+ fail ArgumentError, 'score cannot be nil'
132
+ end
133
+
134
+ if score > 1.0
135
+ fail ArgumentError, 'invalid value for "score", must be smaller than or equal to 1.0.'
136
+ end
137
+
138
+ if score < 0.0
139
+ fail ArgumentError, 'invalid value for "score", must be greater than or equal to 0.0.'
140
+ end
141
+
142
+ @score = score
143
+ end
144
+
145
+ # Custom attribute writer method with validation
146
+ # @param [Object] position Value to be assigned
147
+ def position=(position)
148
+ if position.nil?
149
+ fail ArgumentError, 'position cannot be nil'
150
+ end
151
+
152
+ if position > 2147483647
153
+ fail ArgumentError, 'invalid value for "position", must be smaller than or equal to 2147483647.'
154
+ end
155
+
156
+ if position < 0
157
+ fail ArgumentError, 'invalid value for "position", must be greater than or equal to 0.'
158
+ end
159
+
160
+ @position = position
161
+ end
162
+
107
163
  # Checks equality by comparing each attribute.
108
164
  # @param [Object] Object to be compared
109
165
  def ==(o)
@@ -103,3 +103,5 @@ module AsposeEmailCloud
103
103
  end
104
104
  end
105
105
 
106
+
107
+
@@ -28,7 +28,7 @@ require 'date'
28
28
  module AsposeEmailCloud
29
29
  # iCalendar model to file request.
30
30
  class CalendarAsFileRequest
31
- # Calendar file format Enum, available values: Ics, Msg
31
+ # Calendar file format. Enum, available values: Ics, Msg
32
32
  # @return [String]
33
33
  attr_accessor :format
34
34
  # iCalendar model
@@ -51,7 +51,7 @@ module AsposeEmailCloud
51
51
  end
52
52
 
53
53
  # Initializes the object
54
- # @param [String] format Calendar file format Enum, available values: Ics, Msg
54
+ # @param [String] format Calendar file format. Enum, available values: Ics, Msg
55
55
  # @param [CalendarDto] value iCalendar model
56
56
  def initialize(
57
57
  format: nil,
@@ -94,6 +94,12 @@ module AsposeEmailCloud
94
94
  # Specifies whether or not this appointment is intended to be visible in availability searches. Enum, available values: NotDefined, Transparent, Opaque
95
95
  # @return [String]
96
96
  attr_accessor :transparency
97
+ # Defines the access classification for the calendar. Enum, available values: Public, Private, Confidential, NotDefined
98
+ # @return [String]
99
+ attr_accessor :_class
100
+ # Specifies the importance of a calendar object. Enum, available values: Low, Normal, High, NotDefined
101
+ # @return [String]
102
+ attr_accessor :microsoft_importance
97
103
  # Attribute mapping from ruby-style variable name to JSON key.
98
104
  def self.attribute_map
99
105
  {
@@ -118,7 +124,9 @@ module AsposeEmailCloud
118
124
  :'start_time_zone' => :'startTimeZone',
119
125
  :'status' => :'status',
120
126
  :'summary' => :'summary',
121
- :'transparency' => :'transparency'
127
+ :'transparency' => :'transparency',
128
+ :'_class' => :'class',
129
+ :'microsoft_importance' => :'microsoftImportance'
122
130
  }
123
131
  end
124
132
 
@@ -146,7 +154,9 @@ module AsposeEmailCloud
146
154
  :'start_time_zone' => :'String',
147
155
  :'status' => :'String',
148
156
  :'summary' => :'String',
149
- :'transparency' => :'String'
157
+ :'transparency' => :'String',
158
+ :'_class' => :'String',
159
+ :'microsoft_importance' => :'String'
150
160
  }
151
161
  end
152
162
 
@@ -173,6 +183,8 @@ module AsposeEmailCloud
173
183
  # @param [String] status Defines the overall status or confirmation for the calendar document. Enum, available values: NotDefined, Cancelled, Tentative, Confirmed
174
184
  # @param [String] summary Summary.
175
185
  # @param [String] transparency Specifies whether or not this appointment is intended to be visible in availability searches. Enum, available values: NotDefined, Transparent, Opaque
186
+ # @param [String] _class Defines the access classification for the calendar. Enum, available values: Public, Private, Confidential, NotDefined
187
+ # @param [String] microsoft_importance Specifies the importance of a calendar object. Enum, available values: Low, Normal, High, NotDefined
176
188
  def initialize(
177
189
  attachments: nil,
178
190
  attendees: nil,
@@ -195,7 +207,9 @@ module AsposeEmailCloud
195
207
  start_time_zone: nil,
196
208
  status: nil,
197
209
  summary: nil,
198
- transparency: nil)
210
+ transparency: nil,
211
+ _class: nil,
212
+ microsoft_importance: nil)
199
213
  self.attachments = attachments if attachments
200
214
  self.attendees = attendees if attendees
201
215
  self.description = description if description
@@ -218,6 +232,8 @@ module AsposeEmailCloud
218
232
  self.status = status if status
219
233
  self.summary = summary if summary
220
234
  self.transparency = transparency if transparency
235
+ self._class = _class if _class
236
+ self.microsoft_importance = microsoft_importance if microsoft_importance
221
237
  end
222
238
 
223
239
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -272,6 +288,14 @@ module AsposeEmailCloud
272
288
  invalid_properties.push('invalid value for "transparency", transparency cannot be nil.')
273
289
  end
274
290
 
291
+ if @_class.nil?
292
+ invalid_properties.push('invalid value for "_class", _class cannot be nil.')
293
+ end
294
+
295
+ if @microsoft_importance.nil?
296
+ invalid_properties.push('invalid value for "microsoft_importance", microsoft_importance cannot be nil.')
297
+ end
298
+
275
299
  invalid_properties
276
300
  end
277
301
 
@@ -290,6 +314,8 @@ module AsposeEmailCloud
290
314
  return false if @start_date.nil?
291
315
  return false if @status.nil?
292
316
  return false if @transparency.nil?
317
+ return false if @_class.nil?
318
+ return false if @microsoft_importance.nil?
293
319
  true
294
320
  end
295
321
 
@@ -333,7 +359,9 @@ module AsposeEmailCloud
333
359
  start_time_zone == o.start_time_zone &&
334
360
  status == o.status &&
335
361
  summary == o.summary &&
336
- transparency == o.transparency
362
+ transparency == o.transparency &&
363
+ _class == o._class &&
364
+ microsoft_importance == o.microsoft_importance
337
365
  end
338
366
 
339
367
  # @see the `==` method
@@ -345,7 +373,7 @@ module AsposeEmailCloud
345
373
  # Calculates hash code according to all attributes.
346
374
  # @return [Fixnum] Hash code
347
375
  def hash
348
- [attachments, attendees, description, end_date, end_time_zone, flags, is_description_html, location, method, microsoft_busy_status, microsoft_intended_status, optional_attendees, organizer, recurrence_string, recurrence, reminders, sequence_id, start_date, start_time_zone, status, summary, transparency].hash
376
+ [attachments, attendees, description, end_date, end_time_zone, flags, is_description_html, location, method, microsoft_busy_status, microsoft_intended_status, optional_attendees, organizer, recurrence_string, recurrence, reminders, sequence_id, start_date, start_time_zone, status, summary, transparency, _class, microsoft_importance].hash
349
377
  end
350
378
 
351
379
  # Builds the object from hash
@@ -32,7 +32,7 @@ module AsposeEmailCloud
32
32
  # iCalendar file name in storage
33
33
  # @return [String]
34
34
  attr_accessor :file_name
35
- # iCalendar method type Enum, available values: Create, Update, Cancel
35
+ # iCalendar method type. Enum, available values: Create, Update, Cancel
36
36
  # @return [String]
37
37
  attr_accessor :calendar_action
38
38
  # The sequence id
@@ -47,7 +47,7 @@ module AsposeEmailCloud
47
47
 
48
48
  # Get iCalendar from storage as AlternateView
49
49
  # @param [String] file_name iCalendar file name in storage
50
- # @param [String] calendar_action iCalendar method type Enum, available values: Create, Update, Cancel
50
+ # @param [String] calendar_action iCalendar method type. Enum, available values: Create, Update, Cancel
51
51
  # @param [String] sequence_id The sequence id
52
52
  # @param [String] folder Path to folder in storage
53
53
  # @param [String] storage Storage name
@@ -91,3 +91,5 @@ module AsposeEmailCloud
91
91
  end
92
92
  end
93
93
 
94
+
95
+
@@ -34,7 +34,7 @@ module AsposeEmailCloud
34
34
 
35
35
  # @return [CalendarDto]
36
36
  attr_accessor :value
37
- # Calendar file format Enum, available values: Ics, Msg
37
+ # Calendar file format. Enum, available values: Ics, Msg
38
38
  # @return [String]
39
39
  attr_accessor :format
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -58,7 +58,7 @@ module AsposeEmailCloud
58
58
  # Initializes the object
59
59
  # @param [StorageFileLocation] storage_file
60
60
  # @param [CalendarDto] value
61
- # @param [String] format Calendar file format Enum, available values: Ics, Msg
61
+ # @param [String] format Calendar file format. Enum, available values: Ics, Msg
62
62
  def initialize(
63
63
  storage_file: nil,
64
64
  value: nil,
@@ -85,3 +85,5 @@ module AsposeEmailCloud
85
85
  end
86
86
  end
87
87
 
88
+
89
+
@@ -91,3 +91,5 @@ module AsposeEmailCloud
91
91
  end
92
92
  end
93
93
 
94
+
95
+
@@ -44,7 +44,7 @@ module AsposeEmailCloud
44
44
  # Folder in storage where account file located.
45
45
  # @return [String]
46
46
  attr_accessor :account_storage_folder
47
- # MailMessageBase type. Using this property you can fetch message in different formats (as EmailDto, MapiMessageDto or a file represented as Base64 string). Enum, available values: Dto, Mapi, Base64
47
+ # MailMessageBase type. Using this property you can fetch message in different formats (as EmailDto, MapiMessageDto or a file represented as Base64 string). Enum, available values: Dto, Mapi, Base64
48
48
  # @return [String]
49
49
  attr_accessor :type
50
50
  # Base64 data format. Used only if type is set to Base64. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft
@@ -57,7 +57,7 @@ module AsposeEmailCloud
57
57
  # @param [String] folder Account folder to fetch from (should be specified for some protocols such as IMAP)
58
58
  # @param [String] storage Storage name where account file located.
59
59
  # @param [String] account_storage_folder Folder in storage where account file located.
60
- # @param [String] type MailMessageBase type. Using this property you can fetch message in different formats (as EmailDto, MapiMessageDto or a file represented as Base64 string). Enum, available values: Dto, Mapi, Base64
60
+ # @param [String] type MailMessageBase type. Using this property you can fetch message in different formats (as EmailDto, MapiMessageDto or a file represented as Base64 string). Enum, available values: Dto, Mapi, Base64
61
61
  # @param [String] format Base64 data format. Used only if type is set to Base64. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft
62
62
  def initialize(message_id:, account:, folder: nil, storage: nil, account_storage_folder: nil, type: nil, format: nil)
63
63
  self.message_id = message_id if message_id
@@ -47,7 +47,7 @@ module AsposeEmailCloud
47
47
  # Specifies that should message be searched in subfolders recursively
48
48
  # @return [BOOLEAN]
49
49
  attr_accessor :recursive
50
- # MailMessageBase type. Using this property you can get messages in different formats (as EmailDto, MapiMessageDto or a file represented as Base64 string). Enum, available values: Dto, Mapi, Base64
50
+ # MailMessageBase type. Using this property you can get messages in different formats (as EmailDto, MapiMessageDto or a file represented as Base64 string). Enum, available values: Dto, Mapi, Base64
51
51
  # @return [String]
52
52
  attr_accessor :type
53
53
  # Base64 data format. Used only if type is set to Base64. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft
@@ -55,14 +55,14 @@ module AsposeEmailCloud
55
55
  attr_accessor :format
56
56
 
57
57
  # Get messages from folder, filtered by query
58
- # The query string should have the following view. The example of a simple expression: &#39;&lt;Field name&gt;&#39; &lt;Comparison operator&gt; &#39;&lt;Field value&gt;&#39;, where &amp;lt;Field Name&amp;gt; - the name of a message field through which filtering is made, &amp;lt;Comparison operator&amp;gt; - comparison operators, as their name implies, allow to compare message field and specified value, &amp;lt;Field value&amp;gt; - value to be compared with a message field. The number of simple expressions can make a compound one, ex.: (&lt;Simple expression 1&gt; &amp; &lt;Simple expression 2&gt;) | &lt;Simple expression 3 &gt;, where \&quot;&amp;amp;\&quot; - logical-AND operator, \&quot;|\&quot; - logical-OR operator At present the following values are allowed as a field name (&lt;Field name&gt;): \&quot;To\&quot; - represents a TO field of message, \&quot;Text\&quot; - represents string in the header or body of the message, \&quot;Bcc\&quot; - represents a BCC field of message, \&quot;Body\&quot; - represents a string in the body of message, \&quot;Cc\&quot; - represents a CC field of message, \&quot;From\&quot; - represents a From field of message, \&quot;Subject\&quot; - represents a string in the subject of message, \&quot;InternalDate\&quot; - represents an internal date of message, \&quot;SentDate\&quot; - represents a sent date of message Additionally, the following field names are allowed for IMAP-protocol: \&quot;Answered\&quot; - represents an /Answered flag of message \&quot;Seen\&quot; - represents a /Seen flag of message \&quot;Flagged\&quot; - represents a /Flagged flag of message \&quot;Draft\&quot; - represents a /Draft flag of message \&quot;Deleted\&quot; - represents a Deleted/ flag of message \&quot;Recent\&quot; - represents a Deleted/ flag of message \&quot;MessageSize\&quot; - represents a size (in bytes) of message Additionally, the following field names are allowed for Exchange: \&quot;IsRead\&quot; - Indicates whether the message has been read \&quot;HasAttachment\&quot; - Indicates whether or not the message has attachments \&quot;IsSubmitted\&quot; - Indicates whether the message has been submitted to the Outbox \&quot;ContentClass\&quot; - represents a content class of item Additionally, the following field names are allowed for pst/ost files: \&quot;MessageClass\&quot; - Represents a message class \&quot;ContainerClass\&quot; - Represents a folder container class \&quot;Importance\&quot; - Represents a message importance \&quot;MessageSize\&quot; - represents a size (in bytes) of message \&quot;FolderName\&quot; - represents a folder name \&quot;ContentsCount\&quot; - represents a total number of items in the folder \&quot;UnreadContentsCount\&quot; - represents the number of unread items in the folder. \&quot;Subfolders\&quot; - Indicates whether or not the folder has subfolders \&quot;Read\&quot; - the message is marked as having been read \&quot;HasAttachment\&quot; - the message has at least one attachment \&quot;Unsent\&quot; - the message is still being composed \&quot;Unmodified\&quot; - the message has not been modified since it was first saved (if unsent) or it was delivered (if sent) \&quot;FromMe\&quot; - the user receiving the message was also the user who sent the message \&quot;Resend\&quot; - the message includes a request for a resend operation with a non-delivery report \&quot;NotifyRead\&quot; - the user who sent the message has requested notification when a recipient first reads it \&quot;NotifyUnread\&quot; - the user who sent the message has requested notification when a recipient deletes it before reading or the Message object expires \&quot;EverRead\&quot; - the message has been read at least once The field value (&lt;Field value&gt;) can take the following values: For text fields - any string, For date type fields - the string of \&quot;d-MMM-yyy\&quot; format, ex. \&quot;10-Feb-2009\&quot;, For flags (fields of boolean type) - either \&quot;True\&quot;, or \&quot;False\&quot;
58
+ # The query string should have the following view. The example of a simple expression: &#39;&lt;Field name&gt;&#39; &lt;Comparison operator&gt; &#39;&lt;Field value&gt;&#39;, where &amp;lt;Field Name&amp;gt; - the name of a message field through which filtering is made, &amp;lt;Comparison operator&amp;gt; - comparison operators, as their name implies, allow to compare message field and specified value, &amp;lt;Field value&amp;gt; - value to be compared with a message field. The number of simple expressions can make a compound one, ex.: (&lt;Simple expression 1&gt; &amp; &lt;Simple expression 2&gt;) | &lt;Simple expression 3 &gt;, where \&quot;&amp;amp;\&quot; - logical-AND operator, \&quot;|\&quot; - logical-OR operator At present the following values are allowed as a field name (&lt;Field name&gt;): \&quot;To\&quot; - represents a TO field of message, \&quot;Text\&quot; - represents string in the header or body of the message, \&quot;Bcc\&quot; - represents a BCC field of message, \&quot;Body\&quot; - represents a string in the body of message, \&quot;Cc\&quot; - represents a CC field of message, \&quot;From\&quot; - represents a From field of message, \&quot;Subject\&quot; - represents a string in the subject of message, \&quot;InternalDate\&quot; - represents an internal date of message, \&quot;SentDate\&quot; - represents a sent date of message Additionally, the following field names are allowed for IMAP-protocol: \&quot;Answered\&quot; - represents an /Answered flag of message \&quot;Seen\&quot; - represents a /Seen flag of message \&quot;Flagged\&quot; - represents a /Flagged flag of message \&quot;Draft\&quot; - represents a /Draft flag of message \&quot;Deleted\&quot; - represents a Deleted/ flag of message \&quot;Recent\&quot; - represents a Deleted/ flag of message \&quot;MessageSize\&quot; - represents a size (in bytes) of message Additionally, the following field names are allowed for Exchange: \&quot;IsRead\&quot; - Indicates whether the message has been read \&quot;HasAttachment\&quot; - Indicates whether or not the message has attachments \&quot;IsSubmitted\&quot; - Indicates whether the message has been submitted to the Outbox \&quot;ContentClass\&quot; - represents a content class of item The field value (&lt;Field value&gt;) can take the following values: For text fields - any string, For date type fields - the string of \&quot;d-MMM-yyy\&quot; format, ex. \&quot;10-Feb-2009\&quot;, For flags (fields of boolean type) - either \&quot;True\&quot;, or \&quot;False\&quot;
59
59
  # @param [String] folder A folder in email account
60
60
  # @param [String] account Email account
61
61
  # @param [String] query_string A MailQuery search string
62
62
  # @param [String] storage Storage name where account file located
63
63
  # @param [String] account_storage_folder Folder in storage where account file located
64
64
  # @param [BOOLEAN] recursive Specifies that should message be searched in subfolders recursively
65
- # @param [String] type MailMessageBase type. Using this property you can get messages in different formats (as EmailDto, MapiMessageDto or a file represented as Base64 string). Enum, available values: Dto, Mapi, Base64
65
+ # @param [String] type MailMessageBase type. Using this property you can get messages in different formats (as EmailDto, MapiMessageDto or a file represented as Base64 string). Enum, available values: Dto, Mapi, Base64
66
66
  # @param [String] format Base64 data format. Used only if type is set to Base64. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft
67
67
  def initialize(folder:, account:, query_string: nil, storage: nil, account_storage_folder: nil, recursive: nil, type: nil, format: nil)
68
68
  self.folder = folder if folder
@@ -41,7 +41,7 @@ module AsposeEmailCloud
41
41
  # Folder in storage where account file located.
42
42
  # @return [String]
43
43
  attr_accessor :account_storage_folder
44
- # Email file format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft
44
+ # Email file format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft
45
45
  # @return [String]
46
46
  attr_accessor :format
47
47
 
@@ -50,7 +50,7 @@ module AsposeEmailCloud
50
50
  # @param [File] file File to send
51
51
  # @param [String] storage Storage name where account file located.
52
52
  # @param [String] account_storage_folder Folder in storage where account file located.
53
- # @param [String] format Email file format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft
53
+ # @param [String] format Email file format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft
54
54
  def initialize(account:, file:, storage: nil, account_storage_folder: nil, format: nil)
55
55
  self.account = account if account
56
56
  self.file = file if file
@@ -101,3 +101,5 @@ module AsposeEmailCloud
101
101
  end
102
102
  end
103
103
 
104
+
105
+
@@ -101,3 +101,5 @@ module AsposeEmailCloud
101
101
  end
102
102
  end
103
103
 
104
+
105
+
@@ -37,12 +37,16 @@ module AsposeEmailCloud
37
37
  # Email account folder to move thread to.
38
38
  # @return [String]
39
39
  attr_accessor :destination_folder
40
+ # Email account folder to move thread from.
41
+ # @return [String]
42
+ attr_accessor :source_folder
40
43
  # Attribute mapping from ruby-style variable name to JSON key.
41
44
  def self.attribute_map
42
45
  {
43
46
  :'account_location' => :'accountLocation',
44
47
  :'thread_id' => :'threadId',
45
- :'destination_folder' => :'destinationFolder'
48
+ :'destination_folder' => :'destinationFolder',
49
+ :'source_folder' => :'sourceFolder'
46
50
  }
47
51
  end
48
52
 
@@ -51,7 +55,8 @@ module AsposeEmailCloud
51
55
  {
52
56
  :'account_location' => :'StorageFileLocation',
53
57
  :'thread_id' => :'String',
54
- :'destination_folder' => :'String'
58
+ :'destination_folder' => :'String',
59
+ :'source_folder' => :'String'
55
60
  }
56
61
  end
57
62
 
@@ -59,13 +64,16 @@ module AsposeEmailCloud
59
64
  # @param [StorageFileLocation] account_location Email client account configuration location on storage.
60
65
  # @param [String] thread_id Thread identifier.
61
66
  # @param [String] destination_folder Email account folder to move thread to.
67
+ # @param [String] source_folder Email account folder to move thread from.
62
68
  def initialize(
63
69
  account_location: nil,
64
70
  thread_id: nil,
65
- destination_folder: nil)
71
+ destination_folder: nil,
72
+ source_folder: nil)
66
73
  self.account_location = account_location if account_location
67
74
  self.thread_id = thread_id if thread_id
68
75
  self.destination_folder = destination_folder if destination_folder
76
+ self.source_folder = source_folder if source_folder
69
77
  end
70
78
 
71
79
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -141,7 +149,8 @@ module AsposeEmailCloud
141
149
  self.class == o.class &&
142
150
  account_location == o.account_location &&
143
151
  thread_id == o.thread_id &&
144
- destination_folder == o.destination_folder
152
+ destination_folder == o.destination_folder &&
153
+ source_folder == o.source_folder
145
154
  end
146
155
 
147
156
  # @see the `==` method
@@ -153,7 +162,7 @@ module AsposeEmailCloud
153
162
  # Calculates hash code according to all attributes.
154
163
  # @return [Fixnum] Hash code
155
164
  def hash
156
- [account_location, thread_id, destination_folder].hash
165
+ [account_location, thread_id, destination_folder, source_folder].hash
157
166
  end
158
167
 
159
168
  # Builds the object from hash
@@ -29,10 +29,10 @@ require_relative './http_request'
29
29
  module AsposeEmailCloud
30
30
  # Request model for contact_convert operation.
31
31
  class ContactConvertRequest < EmailRequest
32
- # File format to convert to Enum, available values: VCard, WebDav, Msg
32
+ # File format to convert to. Enum, available values: VCard, WebDav, Msg
33
33
  # @return [String]
34
34
  attr_accessor :to_format
35
- # File format to convert from Enum, available values: VCard, WebDav, Msg
35
+ # File format to convert from. Enum, available values: VCard, WebDav, Msg
36
36
  # @return [String]
37
37
  attr_accessor :from_format
38
38
  # File to convert
@@ -40,8 +40,8 @@ module AsposeEmailCloud
40
40
  attr_accessor :file
41
41
 
42
42
  # Converts contact document to specified format and returns as file
43
- # @param [String] to_format File format to convert to Enum, available values: VCard, WebDav, Msg
44
- # @param [String] from_format File format to convert from Enum, available values: VCard, WebDav, Msg
43
+ # @param [String] to_format File format to convert to. Enum, available values: VCard, WebDav, Msg
44
+ # @param [String] from_format File format to convert from. Enum, available values: VCard, WebDav, Msg
45
45
  # @param [File] file File to convert
46
46
  def initialize(to_format:, from_format:, file:)
47
47
  self.to_format = to_format if to_format
@@ -29,7 +29,7 @@ require_relative './http_request'
29
29
  module AsposeEmailCloud
30
30
  # Request model for contact_from_file operation.
31
31
  class ContactFromFileRequest < EmailRequest
32
- # File format Enum, available values: VCard, WebDav, Msg
32
+ # File format. Enum, available values: VCard, WebDav, Msg
33
33
  # @return [String]
34
34
  attr_accessor :format
35
35
  # File to convert
@@ -37,7 +37,7 @@ module AsposeEmailCloud
37
37
  attr_accessor :file
38
38
 
39
39
  # Converts contact document to a model representation
40
- # @param [String] format File format Enum, available values: VCard, WebDav, Msg
40
+ # @param [String] format File format. Enum, available values: VCard, WebDav, Msg
41
41
  # @param [File] file File to convert
42
42
  def initialize(format:, file:)
43
43
  self.format = format if format
@@ -32,10 +32,10 @@ module AsposeEmailCloud
32
32
  # Calendar document file name
33
33
  # @return [String]
34
34
  attr_accessor :file_name
35
- # File format Enum, available values: VCard, WebDav, Msg
35
+ # File format. Enum, available values: VCard, WebDav, Msg
36
36
  # @return [String]
37
37
  attr_accessor :to_format
38
- # File format to convert from Enum, available values: VCard, WebDav, Msg
38
+ # File format to convert from. Enum, available values: VCard, WebDav, Msg
39
39
  # @return [String]
40
40
  attr_accessor :from_format
41
41
  # Storage name
@@ -47,8 +47,8 @@ module AsposeEmailCloud
47
47
 
48
48
  # Converts contact document from storage to specified format and returns as file
49
49
  # @param [String] file_name Calendar document file name
50
- # @param [String] to_format File format Enum, available values: VCard, WebDav, Msg
51
- # @param [String] from_format File format to convert from Enum, available values: VCard, WebDav, Msg
50
+ # @param [String] to_format File format. Enum, available values: VCard, WebDav, Msg
51
+ # @param [String] from_format File format to convert from. Enum, available values: VCard, WebDav, Msg
52
52
  # @param [String] storage Storage name
53
53
  # @param [String] folder Path to folder in storage
54
54
  def initialize(file_name:, to_format:, from_format:, storage: nil, folder: nil)
@@ -97,3 +97,5 @@ module AsposeEmailCloud
97
97
  end
98
98
  end
99
99
 
100
+
101
+
@@ -73,3 +73,5 @@ module AsposeEmailCloud
73
73
  end
74
74
  end
75
75
 
76
+
77
+
@@ -40,7 +40,7 @@ module AsposeEmailCloud
40
40
  # Port.
41
41
  # @return [Integer]
42
42
  attr_accessor :port
43
- # Email account security mode Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
43
+ # Email account security mode. Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
44
44
  # @return [String]
45
45
  attr_accessor :socket_type
46
46
  # Supported authentication types. Items: Email account authentication types. Enum, available values: NoAuth, OAuth2, PasswordCleartext, PasswordEncrypted, SmtpAfterPop, ClientIpAddress
@@ -85,7 +85,7 @@ module AsposeEmailCloud
85
85
  # @param [String] protocol_type Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav
86
86
  # @param [String] host Email account host.
87
87
  # @param [Integer] port Port.
88
- # @param [String] socket_type Email account security mode Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
88
+ # @param [String] socket_type Email account security mode. Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
89
89
  # @param [Array<String>] authentication_types Supported authentication types. Items: Email account authentication types. Enum, available values: NoAuth, OAuth2, PasswordCleartext, PasswordEncrypted, SmtpAfterPop, ClientIpAddress
90
90
  # @param [Array<NameValuePair>] extra_info Extra account information.
91
91
  # @param [BOOLEAN] is_validated Determines that configuration validated. Set to false if validation skipped.
@@ -34,7 +34,7 @@ module AsposeEmailCloud
34
34
  # Mail server port
35
35
  # @return [Integer]
36
36
  attr_accessor :port
37
- # Email account security mode Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
37
+ # Email account security mode. Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
38
38
  # @return [String]
39
39
  attr_accessor :security_options
40
40
  # Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav
@@ -73,7 +73,7 @@ module AsposeEmailCloud
73
73
  # Initializes the object
74
74
  # @param [String] host Mail server host name or IP address
75
75
  # @param [Integer] port Mail server port
76
- # @param [String] security_options Email account security mode Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
76
+ # @param [String] security_options Email account security mode. Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
77
77
  # @param [String] protocol_type Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav
78
78
  # @param [EmailClientAccountCredentials] credentials Email client account credentials
79
79
  # @param [StorageFileLocation] cache_file File with messages cache. Used to provide extra functions, which are not supported by account
@@ -79,3 +79,5 @@ module AsposeEmailCloud
79
79
  end
80
80
  end
81
81
 
82
+
83
+
@@ -29,10 +29,10 @@ require_relative './http_request'
29
29
  module AsposeEmailCloud
30
30
  # Request model for email_convert operation.
31
31
  class EmailConvertRequest < EmailRequest
32
- # File format to convert to Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft
32
+ # File format to convert from. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft
33
33
  # @return [String]
34
34
  attr_accessor :from_format
35
- # File format to convert from Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft
35
+ # File format to convert to. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft
36
36
  # @return [String]
37
37
  attr_accessor :to_format
38
38
  # File to convert
@@ -40,8 +40,8 @@ module AsposeEmailCloud
40
40
  attr_accessor :file
41
41
 
42
42
  # Converts email document to specified format and returns as file
43
- # @param [String] from_format File format to convert to Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft
44
- # @param [String] to_format File format to convert from Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft
43
+ # @param [String] from_format File format to convert from. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft
44
+ # @param [String] to_format File format to convert to. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft
45
45
  # @param [File] file File to convert
46
46
  def initialize(from_format:, to_format:, file:)
47
47
  self.from_format = from_format if from_format