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.
- checksums.yaml +4 -4
- data/lib/aspose-email-cloud/api/ai_bcr_api.rb +7 -4
- data/lib/aspose-email-cloud/api/ai_name_api.rb +7 -4
- data/lib/aspose-email-cloud/api/calendar_api.rb +7 -4
- data/lib/aspose-email-cloud/api/client_account_api.rb +7 -4
- data/lib/aspose-email-cloud/api/client_folder_api.rb +7 -4
- data/lib/aspose-email-cloud/api/client_message_api.rb +8 -5
- data/lib/aspose-email-cloud/api/client_thread_api.rb +7 -4
- data/lib/aspose-email-cloud/api/contact_api.rb +7 -4
- data/lib/aspose-email-cloud/api/disposable_email_api.rb +7 -4
- data/lib/aspose-email-cloud/api/email_api.rb +8 -5
- data/lib/aspose-email-cloud/api/email_cloud.rb +5 -5
- data/lib/aspose-email-cloud/api/email_config_api.rb +7 -4
- data/lib/aspose-email-cloud/api/file_api.rb +7 -4
- data/lib/aspose-email-cloud/api/folder_api.rb +7 -4
- data/lib/aspose-email-cloud/api/mapi_calendar_api.rb +7 -4
- data/lib/aspose-email-cloud/api/mapi_contact_api.rb +7 -4
- data/lib/aspose-email-cloud/api/mapi_message_api.rb +7 -4
- data/lib/aspose-email-cloud/api/storage_api.rb +7 -4
- data/lib/aspose-email-cloud/api_client.rb +4 -4
- data/lib/aspose-email-cloud/api_invoker.rb +2 -2
- data/lib/aspose-email-cloud/configuration.rb +11 -11
- data/lib/aspose-email-cloud/models/ai_bcr_parse_request.rb +2 -0
- data/lib/aspose-email-cloud/models/ai_name_component.rb +56 -0
- data/lib/aspose-email-cloud/models/ai_name_parse_email_address_request.rb +2 -0
- data/lib/aspose-email-cloud/models/calendar_as_file_request.rb +2 -2
- data/lib/aspose-email-cloud/models/calendar_dto.rb +33 -5
- data/lib/aspose-email-cloud/models/calendar_get_as_alternate_request.rb +2 -2
- data/lib/aspose-email-cloud/models/calendar_get_list_request.rb +2 -0
- data/lib/aspose-email-cloud/models/calendar_save_request.rb +2 -2
- data/lib/aspose-email-cloud/models/client_account_get_multi_request.rb +2 -0
- data/lib/aspose-email-cloud/models/client_folder_get_list_request.rb +2 -0
- data/lib/aspose-email-cloud/models/client_message_fetch_request.rb +2 -2
- data/lib/aspose-email-cloud/models/client_message_list_request.rb +3 -3
- data/lib/aspose-email-cloud/models/client_message_send_file_request.rb +4 -2
- data/lib/aspose-email-cloud/models/client_thread_get_messages_request.rb +2 -0
- data/lib/aspose-email-cloud/models/client_thread_move_request.rb +14 -5
- data/lib/aspose-email-cloud/models/contact_convert_request.rb +4 -4
- data/lib/aspose-email-cloud/models/contact_from_file_request.rb +2 -2
- data/lib/aspose-email-cloud/models/contact_get_as_file_request.rb +4 -4
- data/lib/aspose-email-cloud/models/contact_get_list_request.rb +2 -0
- data/lib/aspose-email-cloud/models/disposable_email_is_disposable_request.rb +2 -0
- data/lib/aspose-email-cloud/models/email_account_config.rb +2 -2
- data/lib/aspose-email-cloud/models/email_client_account.rb +2 -2
- data/lib/aspose-email-cloud/models/email_config_discover_request.rb +2 -0
- data/lib/aspose-email-cloud/models/email_convert_request.rb +4 -4
- data/lib/aspose-email-cloud/models/email_dto.rb +23 -5
- data/lib/aspose-email-cloud/models/email_from_file_request.rb +2 -2
- data/lib/aspose-email-cloud/models/email_get_as_file_request.rb +2 -2
- data/lib/aspose-email-cloud/models/email_get_list_request.rb +2 -0
- data/lib/aspose-email-cloud/models/email_request.rb +1 -3
- data/lib/aspose-email-cloud/models/mapi_calendar_as_file_request.rb +2 -2
- data/lib/aspose-email-cloud/models/mapi_calendar_daily_recurrence_pattern_dto.rb +8 -8
- data/lib/aspose-email-cloud/models/mapi_calendar_dto.rb +4 -4
- data/lib/aspose-email-cloud/models/mapi_calendar_exception_info_dto.rb +4 -4
- data/lib/aspose-email-cloud/models/mapi_calendar_get_request.rb +2 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_recurrence_pattern_dto.rb +6 -6
- data/lib/aspose-email-cloud/models/mapi_calendar_save_request.rb +2 -2
- data/lib/aspose-email-cloud/models/mapi_calendar_time_zone_info_dto.rb +2 -2
- data/lib/aspose-email-cloud/models/mapi_calendar_weekly_recurrence_pattern_dto.rb +8 -8
- data/lib/aspose-email-cloud/models/mapi_calendar_yearly_and_monthly_recurrence_pattern_dto.rb +8 -8
- data/lib/aspose-email-cloud/models/mapi_contact_from_file_request.rb +2 -2
- data/lib/aspose-email-cloud/models/mapi_contact_get_request.rb +2 -0
- data/lib/aspose-email-cloud/models/mapi_contact_personal_info_property_set_dto.rb +2 -2
- data/lib/aspose-email-cloud/models/mapi_message_from_file_request.rb +2 -2
- data/lib/aspose-email-cloud/models/mapi_message_get_request.rb +2 -0
- data/lib/aspose-email-cloud/models/mapi_pid_lid_property_descriptor.rb +2 -2
- data/lib/aspose-email-cloud/models/mapi_pid_name_property_descriptor.rb +2 -2
- data/lib/aspose-email-cloud/models/mapi_pid_property_descriptor.rb +2 -2
- data/lib/aspose-email-cloud/models/mapi_pid_tag_property_descriptor.rb +2 -2
- data/lib/aspose-email-cloud/models/move_folder_request.rb +2 -0
- data/lib/aspose-email-cloud/models/storage_exists_request.rb +2 -0
- data/lib/aspose-email-cloud/models/upload_file_request.rb +2 -0
- data/lib/aspose-email-cloud/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a7678727bef799179854a3909b2dacbe1153b0085581dea88fe2e003d5d1014
|
4
|
+
data.tar.gz: 67a0468e37c2ee2d055744348567f5b39188c7093e1208f59c2b365e72222cc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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]
|
35
|
-
# @param [String]
|
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(
|
40
|
-
# @api_client = ApiClient.new(
|
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]
|
35
|
-
# @param [String]
|
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(
|
40
|
-
# @api_client = ApiClient.new(
|
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]
|
35
|
-
# @param [String]
|
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(
|
40
|
-
# @api_client = ApiClient.new(
|
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]
|
35
|
-
# @param [String]
|
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(
|
40
|
-
# @api_client = ApiClient.new(
|
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]
|
35
|
-
# @param [String]
|
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(
|
40
|
-
# @api_client = ApiClient.new(
|
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]
|
35
|
-
# @param [String]
|
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(
|
40
|
-
# @api_client = ApiClient.new(
|
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 <Field Name> - the name of a message field through which filtering is made, <Comparison operator> - comparison operators, as their name implies, allow to compare message field and specified value, <Field value> - 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 \"&\" - 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
|
129
|
+
# The query string should have the following view. The example of a simple expression: '<Field name>' <Comparison operator> '<Field value>', where <Field Name> - the name of a message field through which filtering is made, <Comparison operator> - comparison operators, as their name implies, allow to compare message field and specified value, <Field value> - 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 \"&\" - 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]
|
35
|
-
# @param [String]
|
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(
|
40
|
-
# @api_client = ApiClient.new(
|
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]
|
35
|
-
# @param [String]
|
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(
|
40
|
-
# @api_client = ApiClient.new(
|
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]
|
35
|
-
# @param [String]
|
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(
|
40
|
-
# @api_client = ApiClient.new(
|
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]
|
35
|
-
# @param [String]
|
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(
|
40
|
-
# @api_client = ApiClient.new(
|
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
|
-
#
|
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]
|
66
|
-
# @param [String]
|
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(
|
71
|
-
api_client = ApiClient.new(
|
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]
|
35
|
-
# @param [String]
|
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(
|
40
|
-
# @api_client = ApiClient.new(
|
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]
|
35
|
-
# @param [String]
|
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(
|
40
|
-
# @api_client = ApiClient.new(
|
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]
|
35
|
-
# @param [String]
|
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(
|
40
|
-
# @api_client = ApiClient.new(
|
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]
|
35
|
-
# @param [String]
|
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(
|
40
|
-
# @api_client = ApiClient.new(
|
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]
|
35
|
-
# @param [String]
|
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(
|
40
|
-
# @api_client = ApiClient.new(
|
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]
|
35
|
-
# @param [String]
|
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(
|
40
|
-
# @api_client = ApiClient.new(
|
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]
|
35
|
-
# @param [String]
|
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(
|
40
|
-
# @api_client = ApiClient.new(
|
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]
|
51
|
-
# @param [String]
|
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(
|
56
|
-
@config = Configuration.new(
|
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.
|
87
|
-
'client_secret': config.
|
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 "
|
55
|
-
# config.
|
56
|
-
attr_accessor :
|
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]
|
156
|
-
# @param [String]
|
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(
|
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
|
-
@
|
167
|
-
|
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 = (!(
|
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]} #{@
|
216
|
+
"#{@api_key_prefix[param_name]} #{@client_credentials[param_name]}"
|
217
217
|
else
|
218
|
-
@
|
218
|
+
@client_credentials[param_name]
|
219
219
|
end
|
220
220
|
end
|
221
221
|
|