aspose_email_cloud 20.9.0 → 21.9.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.
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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f0071ee74210013dd545a3d116b2447d22531033a6d9a2b8b6f03126e03a61c
4
- data.tar.gz: c655371aa69b461941db1c8a14e4cf251f8d10378425dcfc2de177398084869f
3
+ metadata.gz: 1a7678727bef799179854a3909b2dacbe1153b0085581dea88fe2e003d5d1014
4
+ data.tar.gz: 67a0468e37c2ee2d055744348567f5b39188c7093e1208f59c2b365e72222cc9
5
5
  SHA512:
6
- metadata.gz: a7e625eba78a7d532498460cffaafed53a14e310a47982add24ef08c096acf003753156deb6873189c9ab83d2b8a7a0a38044ce572f0756fea4fa4fe993ff19f
7
- data.tar.gz: 8ec3f61b15b7e87a62893dcc065266f5fa07e3347dd86e1f346994e1b7df76d57e6fa577b7fc0297f55b2437f5147efa283b22b1eb2ee726e6477e442f5e2d91
6
+ metadata.gz: cbbf68e6b085e51bd0e41a8b0b5bdfcc504f57911b4948f375dd126d94912e7a8f3662ae5c4efa81def597cc7a6d1963dddb5c5e37ffc02d1f732230f10d4118
7
+ data.tar.gz: 1ac541ae416269dfc4dfde9f2b129063823f089a97344b168231d4bf0b85ab943b219f24391e5e2b2bb021e0669dfd617ed9ca82f5594272a41b43a4a50a8de6
@@ -31,13 +31,13 @@ module AsposeEmailCloud
31
31
  attr_reader :api_invoker
32
32
 
33
33
  # Initializes a new instance of the AiBcrApi class.
34
- # @param [String] app_key Key to access the server.
35
- # @param [String] app_sid ID to access the server.
34
+ # @param [String] client_secret Key to access the server.
35
+ # @param [String] client_id ID to access the server.
36
36
  # @param [String] base_url Server URL.
37
37
  # @param [String] api_version Api version.
38
38
  # @param [Object] debug Debug switch [true, false].
39
- # def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
- # @api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
39
+ # def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
+ # @api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
41
41
  # end
42
42
 
43
43
  # Initializes a new instance of the AiBcrApi class.
@@ -82,3 +82,6 @@ module AsposeEmailCloud
82
82
  end
83
83
  end
84
84
  end
85
+
86
+
87
+
@@ -31,13 +31,13 @@ module AsposeEmailCloud
31
31
  attr_reader :api_invoker
32
32
 
33
33
  # Initializes a new instance of the AiNameApi class.
34
- # @param [String] app_key Key to access the server.
35
- # @param [String] app_sid ID to access the server.
34
+ # @param [String] client_secret Key to access the server.
35
+ # @param [String] client_id ID to access the server.
36
36
  # @param [String] base_url Server URL.
37
37
  # @param [String] api_version Api version.
38
38
  # @param [Object] debug Debug switch [true, false].
39
- # def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
- # @api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
39
+ # def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
+ # @api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
41
41
  # end
42
42
 
43
43
  # Initializes a new instance of the AiNameApi class.
@@ -211,3 +211,6 @@ module AsposeEmailCloud
211
211
  end
212
212
  end
213
213
  end
214
+
215
+
216
+
@@ -31,13 +31,13 @@ module AsposeEmailCloud
31
31
  attr_reader :api_invoker
32
32
 
33
33
  # Initializes a new instance of the CalendarApi class.
34
- # @param [String] app_key Key to access the server.
35
- # @param [String] app_sid ID to access the server.
34
+ # @param [String] client_secret Key to access the server.
35
+ # @param [String] client_id ID to access the server.
36
36
  # @param [String] base_url Server URL.
37
37
  # @param [String] api_version Api version.
38
38
  # @param [Object] debug Debug switch [true, false].
39
- # def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
- # @api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
39
+ # def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
+ # @api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
41
41
  # end
42
42
 
43
43
  # Initializes a new instance of the CalendarApi class.
@@ -204,3 +204,6 @@ module AsposeEmailCloud
204
204
  end
205
205
  end
206
206
  end
207
+
208
+
209
+
@@ -31,13 +31,13 @@ module AsposeEmailCloud
31
31
  attr_reader :api_invoker
32
32
 
33
33
  # Initializes a new instance of the ClientAccountApi class.
34
- # @param [String] app_key Key to access the server.
35
- # @param [String] app_sid ID to access the server.
34
+ # @param [String] client_secret Key to access the server.
35
+ # @param [String] client_id ID to access the server.
36
36
  # @param [String] base_url Server URL.
37
37
  # @param [String] api_version Api version.
38
38
  # @param [Object] debug Debug switch [true, false].
39
- # def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
- # @api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
39
+ # def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
+ # @api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
41
41
  # end
42
42
 
43
43
  # Initializes a new instance of the ClientAccountApi class.
@@ -119,3 +119,6 @@ module AsposeEmailCloud
119
119
  end
120
120
  end
121
121
  end
122
+
123
+
124
+
@@ -31,13 +31,13 @@ module AsposeEmailCloud
31
31
  attr_reader :api_invoker
32
32
 
33
33
  # Initializes a new instance of the ClientFolderApi class.
34
- # @param [String] app_key Key to access the server.
35
- # @param [String] app_sid ID to access the server.
34
+ # @param [String] client_secret Key to access the server.
35
+ # @param [String] client_id ID to access the server.
36
36
  # @param [String] base_url Server URL.
37
37
  # @param [String] api_version Api version.
38
38
  # @param [Object] debug Debug switch [true, false].
39
- # def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
- # @api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
39
+ # def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
+ # @api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
41
41
  # end
42
42
 
43
43
  # Initializes a new instance of the ClientFolderApi class.
@@ -111,3 +111,6 @@ module AsposeEmailCloud
111
111
  end
112
112
  end
113
113
  end
114
+
115
+
116
+
@@ -31,13 +31,13 @@ module AsposeEmailCloud
31
31
  attr_reader :api_invoker
32
32
 
33
33
  # Initializes a new instance of the ClientMessageApi class.
34
- # @param [String] app_key Key to access the server.
35
- # @param [String] app_sid ID to access the server.
34
+ # @param [String] client_secret Key to access the server.
35
+ # @param [String] client_id ID to access the server.
36
36
  # @param [String] base_url Server URL.
37
37
  # @param [String] api_version Api version.
38
38
  # @param [Object] debug Debug switch [true, false].
39
- # def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
- # @api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
39
+ # def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
+ # @api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
41
41
  # end
42
42
 
43
43
  # Initializes a new instance of the ClientMessageApi class.
@@ -126,7 +126,7 @@ module AsposeEmailCloud
126
126
  end
127
127
 
128
128
  # Get messages from folder, filtered by query
129
- # 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\"
129
+ # 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 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\"
130
130
  # @param [ClientMessageListRequest] request Request object.
131
131
  # @return [MailMessageBaseList]
132
132
  def list(request)
@@ -228,3 +228,6 @@ module AsposeEmailCloud
228
228
  end
229
229
  end
230
230
  end
231
+
232
+
233
+
@@ -31,13 +31,13 @@ module AsposeEmailCloud
31
31
  attr_reader :api_invoker
32
32
 
33
33
  # Initializes a new instance of the ClientThreadApi class.
34
- # @param [String] app_key Key to access the server.
35
- # @param [String] app_sid ID to access the server.
34
+ # @param [String] client_secret Key to access the server.
35
+ # @param [String] client_id ID to access the server.
36
36
  # @param [String] base_url Server URL.
37
37
  # @param [String] api_version Api version.
38
38
  # @param [Object] debug Debug switch [true, false].
39
- # def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
- # @api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
39
+ # def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
+ # @api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
41
41
  # end
42
42
 
43
43
  # Initializes a new instance of the ClientThreadApi class.
@@ -147,3 +147,6 @@ module AsposeEmailCloud
147
147
  end
148
148
  end
149
149
  end
150
+
151
+
152
+
@@ -31,13 +31,13 @@ module AsposeEmailCloud
31
31
  attr_reader :api_invoker
32
32
 
33
33
  # Initializes a new instance of the ContactApi class.
34
- # @param [String] app_key Key to access the server.
35
- # @param [String] app_sid ID to access the server.
34
+ # @param [String] client_secret Key to access the server.
35
+ # @param [String] client_id ID to access the server.
36
36
  # @param [String] base_url Server URL.
37
37
  # @param [String] api_version Api version.
38
38
  # @param [Object] debug Debug switch [true, false].
39
- # def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
- # @api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
39
+ # def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
+ # @api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
41
41
  # end
42
42
 
43
43
  # Initializes a new instance of the ContactApi class.
@@ -169,3 +169,6 @@ module AsposeEmailCloud
169
169
  end
170
170
  end
171
171
  end
172
+
173
+
174
+
@@ -31,13 +31,13 @@ module AsposeEmailCloud
31
31
  attr_reader :api_invoker
32
32
 
33
33
  # Initializes a new instance of the DisposableEmailApi class.
34
- # @param [String] app_key Key to access the server.
35
- # @param [String] app_sid ID to access the server.
34
+ # @param [String] client_secret Key to access the server.
35
+ # @param [String] client_id ID to access the server.
36
36
  # @param [String] base_url Server URL.
37
37
  # @param [String] api_version Api version.
38
38
  # @param [Object] debug Debug switch [true, false].
39
- # def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
- # @api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
39
+ # def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
+ # @api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
41
41
  # end
42
42
 
43
43
  # Initializes a new instance of the DisposableEmailApi class.
@@ -55,3 +55,6 @@ module AsposeEmailCloud
55
55
  end
56
56
  end
57
57
  end
58
+
59
+
60
+
@@ -31,13 +31,13 @@ module AsposeEmailCloud
31
31
  attr_reader :api_invoker
32
32
 
33
33
  # Initializes a new instance of the EmailApi class.
34
- # @param [String] app_key Key to access the server.
35
- # @param [String] app_sid ID to access the server.
34
+ # @param [String] client_secret Key to access the server.
35
+ # @param [String] client_id ID to access the server.
36
36
  # @param [String] base_url Server URL.
37
37
  # @param [String] api_version Api version.
38
38
  # @param [Object] debug Debug switch [true, false].
39
- # def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
- # @api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
39
+ # def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
+ # @api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
41
41
  # end
42
42
 
43
43
  # Initializes a new instance of the EmailApi class.
@@ -46,7 +46,7 @@ module AsposeEmailCloud
46
46
  @api_invoker = api_invoker
47
47
  end
48
48
 
49
- # Converts Email model to specified format and returns as file.
49
+ # Converts Email model to a specified format and returns as a file.
50
50
  # @param [EmailAsFileRequest] request Email model and format to convert.
51
51
  # @return [File]
52
52
  def as_file(request)
@@ -169,3 +169,6 @@ module AsposeEmailCloud
169
169
  end
170
170
  end
171
171
  end
172
+
173
+
174
+
@@ -40,7 +40,7 @@ module AsposeEmailCloud
40
40
  # Email document (*.eml) operations.
41
41
  attr_reader :email
42
42
 
43
- # Check email address is disposable operations
43
+ # Checks if an email is a disposable one
44
44
  attr_reader :disposable_email
45
45
 
46
46
  # Email server configuration discovery.
@@ -62,13 +62,13 @@ module AsposeEmailCloud
62
62
 
63
63
 
64
64
  # Initializes a new instance of the EmailApi class.
65
- # @param [String] app_key Key to access the server.
66
- # @param [String] app_sid ID to access the server.
65
+ # @param [String] client_secret Key to access the server.
66
+ # @param [String] client_id ID to access the server.
67
67
  # @param [String] base_url Server URL.
68
68
  # @param [String] api_version Api version.
69
69
  # @param [Object] debug Debug switch [true, false].
70
- def initialize(app_key = nil, app_sid = nil, base_url = 'api.aspose.cloud', api_version = 'v4.0', debug = false)
71
- api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
70
+ def initialize(client_secret = nil, client_id = nil, base_url = 'api.aspose.cloud', api_version = 'v4.0', debug = false)
71
+ api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
72
72
  @api_invoker = ApiInvoker.new(api_client)
73
73
 
74
74
  @calendar = CalendarApi.new(@api_invoker)
@@ -31,13 +31,13 @@ module AsposeEmailCloud
31
31
  attr_reader :api_invoker
32
32
 
33
33
  # Initializes a new instance of the EmailConfigApi class.
34
- # @param [String] app_key Key to access the server.
35
- # @param [String] app_sid ID to access the server.
34
+ # @param [String] client_secret Key to access the server.
35
+ # @param [String] client_id ID to access the server.
36
36
  # @param [String] base_url Server URL.
37
37
  # @param [String] api_version Api version.
38
38
  # @param [Object] debug Debug switch [true, false].
39
- # def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
- # @api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
39
+ # def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
+ # @api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
41
41
  # end
42
42
 
43
43
  # Initializes a new instance of the EmailConfigApi class.
@@ -109,3 +109,6 @@ module AsposeEmailCloud
109
109
  end
110
110
  end
111
111
  end
112
+
113
+
114
+
@@ -31,13 +31,13 @@ module AsposeEmailCloud
31
31
  attr_reader :api_invoker
32
32
 
33
33
  # Initializes a new instance of the FileApi class.
34
- # @param [String] app_key Key to access the server.
35
- # @param [String] app_sid ID to access the server.
34
+ # @param [String] client_secret Key to access the server.
35
+ # @param [String] client_id ID to access the server.
36
36
  # @param [String] base_url Server URL.
37
37
  # @param [String] api_version Api version.
38
38
  # @param [Object] debug Debug switch [true, false].
39
- # def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
- # @api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
39
+ # def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
+ # @api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
41
41
  # end
42
42
 
43
43
  # Initializes a new instance of the FileApi class.
@@ -90,3 +90,6 @@ module AsposeEmailCloud
90
90
  end
91
91
  end
92
92
  end
93
+
94
+
95
+
@@ -31,13 +31,13 @@ module AsposeEmailCloud
31
31
  attr_reader :api_invoker
32
32
 
33
33
  # Initializes a new instance of the FolderApi class.
34
- # @param [String] app_key Key to access the server.
35
- # @param [String] app_sid ID to access the server.
34
+ # @param [String] client_secret Key to access the server.
35
+ # @param [String] client_id ID to access the server.
36
36
  # @param [String] base_url Server URL.
37
37
  # @param [String] api_version Api version.
38
38
  # @param [Object] debug Debug switch [true, false].
39
- # def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
- # @api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
39
+ # def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
+ # @api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
41
41
  # end
42
42
 
43
43
  # Initializes a new instance of the FolderApi class.
@@ -91,3 +91,6 @@ module AsposeEmailCloud
91
91
  end
92
92
  end
93
93
  end
94
+
95
+
96
+
@@ -31,13 +31,13 @@ module AsposeEmailCloud
31
31
  attr_reader :api_invoker
32
32
 
33
33
  # Initializes a new instance of the MapiCalendarApi class.
34
- # @param [String] app_key Key to access the server.
35
- # @param [String] app_sid ID to access the server.
34
+ # @param [String] client_secret Key to access the server.
35
+ # @param [String] client_id ID to access the server.
36
36
  # @param [String] base_url Server URL.
37
37
  # @param [String] api_version Api version.
38
38
  # @param [Object] debug Debug switch [true, false].
39
- # def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
- # @api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
39
+ # def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
+ # @api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
41
41
  # end
42
42
 
43
43
  # Initializes a new instance of the MapiCalendarApi class.
@@ -145,3 +145,6 @@ module AsposeEmailCloud
145
145
  end
146
146
  end
147
147
  end
148
+
149
+
150
+
@@ -31,13 +31,13 @@ module AsposeEmailCloud
31
31
  attr_reader :api_invoker
32
32
 
33
33
  # Initializes a new instance of the MapiContactApi class.
34
- # @param [String] app_key Key to access the server.
35
- # @param [String] app_sid ID to access the server.
34
+ # @param [String] client_secret Key to access the server.
35
+ # @param [String] client_id ID to access the server.
36
36
  # @param [String] base_url Server URL.
37
37
  # @param [String] api_version Api version.
38
38
  # @param [Object] debug Debug switch [true, false].
39
- # def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
- # @api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
39
+ # def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
+ # @api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
41
41
  # end
42
42
 
43
43
  # Initializes a new instance of the MapiContactApi class.
@@ -145,3 +145,6 @@ module AsposeEmailCloud
145
145
  end
146
146
  end
147
147
  end
148
+
149
+
150
+
@@ -31,13 +31,13 @@ module AsposeEmailCloud
31
31
  attr_reader :api_invoker
32
32
 
33
33
  # Initializes a new instance of the MapiMessageApi class.
34
- # @param [String] app_key Key to access the server.
35
- # @param [String] app_sid ID to access the server.
34
+ # @param [String] client_secret Key to access the server.
35
+ # @param [String] client_id ID to access the server.
36
36
  # @param [String] base_url Server URL.
37
37
  # @param [String] api_version Api version.
38
38
  # @param [Object] debug Debug switch [true, false].
39
- # def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
- # @api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
39
+ # def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
+ # @api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
41
41
  # end
42
42
 
43
43
  # Initializes a new instance of the MapiMessageApi class.
@@ -145,3 +145,6 @@ module AsposeEmailCloud
145
145
  end
146
146
  end
147
147
  end
148
+
149
+
150
+
@@ -31,13 +31,13 @@ module AsposeEmailCloud
31
31
  attr_reader :api_invoker
32
32
 
33
33
  # Initializes a new instance of the StorageApi class.
34
- # @param [String] app_key Key to access the server.
35
- # @param [String] app_sid ID to access the server.
34
+ # @param [String] client_secret Key to access the server.
35
+ # @param [String] client_id ID to access the server.
36
36
  # @param [String] base_url Server URL.
37
37
  # @param [String] api_version Api version.
38
38
  # @param [Object] debug Debug switch [true, false].
39
- # def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
- # @api_client = ApiClient.new(app_key, app_sid, base_url, api_version, debug)
39
+ # def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
40
+ # @api_client = ApiClient.new(client_secret, client_id, base_url, api_version, debug)
41
41
  # end
42
42
 
43
43
  # Initializes a new instance of the StorageApi class.
@@ -79,3 +79,6 @@ module AsposeEmailCloud
79
79
  end
80
80
  end
81
81
  end
82
+
83
+
84
+
@@ -47,13 +47,13 @@ module AsposeEmailCloud
47
47
  attr_accessor :default_headers
48
48
 
49
49
  # Initializes the ApiClient
50
- # @param [String] app_key Key to access the server.
51
- # @param [String] app_sid ID to access the server.
50
+ # @param [String] client_secret Key to access the server.
51
+ # @param [String] client_id ID to access the server.
52
52
  # @param [String] base_url Server URL.
53
53
  # @param [String] api_version Api version.
54
54
  # @param [Object] debug Debug switch [true, false].
55
- def initialize(app_key = nil, app_sid = nil, base_url = 'api.aspose.cloud', api_version = 'v4.0', debug = false)
56
- @config = Configuration.new(app_key, app_sid, base_url, api_version, debug)
55
+ def initialize(client_secret = nil, client_id = nil, base_url = 'api.aspose.cloud', api_version = 'v4.0', debug = false)
56
+ @config = Configuration.new(client_secret, client_id, base_url, api_version, debug)
57
57
  @default_headers = {
58
58
  'x-aspose-client' => 'ruby sdk'
59
59
  }
@@ -83,8 +83,8 @@ module AsposeEmailCloud
83
83
  def request_token_form_params(config)
84
84
  {
85
85
  'grant_type': 'client_credentials',
86
- 'client_id': config.api_key[:app_sid],
87
- 'client_secret': config.api_key[:api_key]
86
+ 'client_id': config.client_credentials[:client_id],
87
+ 'client_secret': config.client_credentials[:client_secret]
88
88
  }
89
89
  end
90
90
  end
@@ -51,9 +51,9 @@ module AsposeEmailCloud
51
51
  #
52
52
  # @return [Hash] key: parameter name, value: parameter value (API key)
53
53
  #
54
- # @example parameter name is "api_key", API key is "xxx" (e.g. "api_key=xxx" in query string)
55
- # config.api_key['api_key'] = 'xxx'
56
- attr_accessor :api_key
54
+ # @example parameter name is "client_secret", API key is "xxx" (e.g. "client_secret=xxx" in query string)
55
+ # config.client_secret['client_secret'] = 'xxx'
56
+ attr_accessor :client_credentials
57
57
 
58
58
  # Defines API key prefixes used with API Key authentications.
59
59
  #
@@ -152,19 +152,19 @@ module AsposeEmailCloud
152
152
  attr_accessor :force_ending_format
153
153
 
154
154
  # Initializes a new instance.
155
- # @param [String] app_key Key to access the server.
156
- # @param [String] app_sid ID to access the server.
155
+ # @param [String] client_secret Key to access the server.
156
+ # @param [String] client_id ID to access the server.
157
157
  # @param [String] base_url Server URL.
158
158
  # @param [String] api_version Api version.
159
159
  # @param [Object] debug Debug switch [true, false].
160
- def initialize(app_key = nil, app_sid = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
160
+ def initialize(client_secret = nil, client_id = nil, base_url = 'api-qa.aspose.cloud', api_version = 'v4.0', debug = false)
161
161
  @scheme = 'https'
162
162
  self.host = base_url
163
163
  self.auth_url = base_url
164
164
  @api_version = api_version
165
165
  self.base_path = @api_version
166
- @api_key = { 'api_key': app_key || '',
167
- 'app_sid': app_sid || '' }
166
+ @client_credentials = { 'client_secret': client_secret || '',
167
+ 'client_id': client_id || '' }
168
168
  @api_key_prefix = {}
169
169
  @timeout = 0
170
170
  @client_side_validation = true
@@ -177,7 +177,7 @@ module AsposeEmailCloud
177
177
  @inject_format = false
178
178
  @force_ending_format = false
179
179
  @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
180
- @on_premise = (!(app_key || app_sid) && base_url)
180
+ @on_premise = (!(client_secret || client_id) && base_url)
181
181
 
182
182
  yield(self) if block_given?
183
183
  end
@@ -213,9 +213,9 @@ module AsposeEmailCloud
213
213
  # @param [String] param_name the parameter name of API key auth
214
214
  def api_key_with_prefix(param_name)
215
215
  if @api_key_prefix[param_name]
216
- "#{@api_key_prefix[param_name]} #{@api_key[param_name]}"
216
+ "#{@api_key_prefix[param_name]} #{@client_credentials[param_name]}"
217
217
  else
218
- @api_key[param_name]
218
+ @client_credentials[param_name]
219
219
  end
220
220
  end
221
221
 
@@ -91,3 +91,5 @@ module AsposeEmailCloud
91
91
  end
92
92
  end
93
93
 
94
+
95
+