mailslurp_client 15.18.5 → 15.19.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/connector_controller_api.rb +260 -0
- data/lib/mailslurp_client/api/domain_controller_api.rb +126 -0
- data/lib/mailslurp_client/api/email_controller_api.rb +138 -0
- data/lib/mailslurp_client/api/imap_controller_api.rb +279 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +114 -0
- data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +3 -0
- data/lib/mailslurp_client/api/mail_server_controller_api.rb +62 -0
- data/lib/mailslurp_client/models/alias_projection.rb +29 -29
- data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
- data/lib/mailslurp_client/models/bounce_projection.rb +29 -29
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +22 -22
- data/lib/mailslurp_client/models/connector_dto.rb +42 -108
- data/lib/mailslurp_client/models/connector_imap_connection_dto.rb +311 -0
- data/lib/mailslurp_client/models/connector_projection.rb +39 -43
- data/lib/mailslurp_client/models/connector_smtp_connection_dto.rb +293 -0
- data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
- data/lib/mailslurp_client/models/contact_projection.rb +10 -10
- data/lib/mailslurp_client/models/create_connector_imap_connection_options.rb +286 -0
- data/lib/mailslurp_client/models/create_connector_options.rb +38 -87
- data/lib/mailslurp_client/models/create_connector_smtp_connection_options.rb +256 -0
- data/lib/mailslurp_client/models/dns_lookup_options.rb +1 -1
- data/lib/mailslurp_client/models/dns_lookups_options.rb +214 -0
- data/lib/mailslurp_client/models/domain_group.rb +261 -0
- data/lib/mailslurp_client/models/domain_groups_dto.rb +213 -0
- data/lib/mailslurp_client/models/domain_information.rb +274 -0
- data/lib/mailslurp_client/models/email_preview_urls.rb +18 -4
- data/lib/mailslurp_client/models/email_projection.rb +19 -19
- data/lib/mailslurp_client/models/email_screenshot_result.rb +211 -0
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/get_email_screenshot_options.rb +220 -0
- data/lib/mailslurp_client/models/imap_access_details.rb +273 -0
- data/lib/mailslurp_client/models/imap_email_projection.rb +239 -0
- data/lib/mailslurp_client/models/{create_connector_imap_options.rb → imap_server_fetch_item.rb} +55 -49
- data/lib/mailslurp_client/models/imap_server_fetch_result.rb +208 -0
- data/lib/mailslurp_client/models/{create_connector_imap_fetch_options.rb → imap_server_list_options.rb} +18 -16
- data/lib/mailslurp_client/models/imap_server_list_result.rb +213 -0
- data/lib/mailslurp_client/models/imap_server_search_options.rb +318 -0
- data/lib/mailslurp_client/models/imap_server_search_result.rb +213 -0
- data/lib/mailslurp_client/models/imap_smtp_access_details.rb +16 -1
- data/lib/mailslurp_client/models/imap_update_flags_options.rb +277 -0
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +10 -10
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/match_option.rb +4 -4
- data/lib/mailslurp_client/models/missed_email_projection.rb +14 -14
- data/lib/mailslurp_client/models/page_alias.rb +15 -15
- data/lib/mailslurp_client/models/page_attachment_entity.rb +15 -15
- data/lib/mailslurp_client/models/page_bounced_email.rb +15 -15
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +15 -15
- data/lib/mailslurp_client/models/page_complaint.rb +15 -15
- data/lib/mailslurp_client/models/page_connector.rb +15 -15
- data/lib/mailslurp_client/models/page_connector_sync_events.rb +15 -15
- data/lib/mailslurp_client/models/page_contact_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_delivery_status.rb +15 -15
- data/lib/mailslurp_client/models/page_email_preview.rb +15 -15
- data/lib/mailslurp_client/models/page_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_email_validation_request.rb +15 -15
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_group_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +15 -15
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +15 -15
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +15 -15
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_sms_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_template_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_thread_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_webhook_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_webhook_result.rb +15 -15
- data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/sent_email_projection.rb +35 -35
- data/lib/mailslurp_client/models/sms_match_option.rb +2 -2
- data/lib/mailslurp_client/models/sms_projection.rb +29 -29
- data/lib/mailslurp_client/models/smtp_access_details.rb +329 -0
- data/lib/mailslurp_client/models/template_projection.rb +17 -17
- data/lib/mailslurp_client/models/thread_projection.rb +35 -35
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
- data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +21 -2
- metadata +23 -4
@@ -0,0 +1,279 @@
|
|
1
|
+
=begin
|
2
|
+
#MailSlurp API
|
3
|
+
|
4
|
+
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 6.5.2
|
7
|
+
Contact: contact@mailslurp.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module MailSlurpClient
|
16
|
+
class ImapControllerApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Fetch message in an inbox
|
23
|
+
# @param seq_num [Integer]
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :inbox_id Inbox ID to search
|
26
|
+
# @return [ImapServerFetchResult]
|
27
|
+
def imap_server_fetch(seq_num, opts = {})
|
28
|
+
data, _status_code, _headers = imap_server_fetch_with_http_info(seq_num, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Fetch message in an inbox
|
33
|
+
# @param seq_num [Integer]
|
34
|
+
# @param [Hash] opts the optional parameters
|
35
|
+
# @option opts [String] :inbox_id Inbox ID to search
|
36
|
+
# @return [Array<(ImapServerFetchResult, Integer, Hash)>] ImapServerFetchResult data, response status code and response headers
|
37
|
+
def imap_server_fetch_with_http_info(seq_num, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: ImapControllerApi.imap_server_fetch ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'seq_num' is set
|
42
|
+
if @api_client.config.client_side_validation && seq_num.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'seq_num' when calling ImapControllerApi.imap_server_fetch"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/imap/server/fetch'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
query_params[:'seqNum'] = seq_num
|
51
|
+
query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
|
52
|
+
|
53
|
+
# header parameters
|
54
|
+
header_params = opts[:header_params] || {}
|
55
|
+
# HTTP header 'Accept' (if needed)
|
56
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:body]
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type] || 'ImapServerFetchResult'
|
66
|
+
|
67
|
+
# auth_names
|
68
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
69
|
+
|
70
|
+
new_options = opts.merge(
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: ImapControllerApi#imap_server_fetch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# List messages in an inbox
|
87
|
+
# @param imap_server_list_options [ImapServerListOptions]
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @option opts [String] :inbox_id Inbox ID to list
|
90
|
+
# @return [ImapServerListResult]
|
91
|
+
def imap_server_list(imap_server_list_options, opts = {})
|
92
|
+
data, _status_code, _headers = imap_server_list_with_http_info(imap_server_list_options, opts)
|
93
|
+
data
|
94
|
+
end
|
95
|
+
|
96
|
+
# List messages in an inbox
|
97
|
+
# @param imap_server_list_options [ImapServerListOptions]
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @option opts [String] :inbox_id Inbox ID to list
|
100
|
+
# @return [Array<(ImapServerListResult, Integer, Hash)>] ImapServerListResult data, response status code and response headers
|
101
|
+
def imap_server_list_with_http_info(imap_server_list_options, opts = {})
|
102
|
+
if @api_client.config.debugging
|
103
|
+
@api_client.config.logger.debug 'Calling API: ImapControllerApi.imap_server_list ...'
|
104
|
+
end
|
105
|
+
# verify the required parameter 'imap_server_list_options' is set
|
106
|
+
if @api_client.config.client_side_validation && imap_server_list_options.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'imap_server_list_options' when calling ImapControllerApi.imap_server_list"
|
108
|
+
end
|
109
|
+
# resource path
|
110
|
+
local_var_path = '/imap/server/list'
|
111
|
+
|
112
|
+
# query parameters
|
113
|
+
query_params = opts[:query_params] || {}
|
114
|
+
query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
|
115
|
+
|
116
|
+
# header parameters
|
117
|
+
header_params = opts[:header_params] || {}
|
118
|
+
# HTTP header 'Accept' (if needed)
|
119
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
120
|
+
# HTTP header 'Content-Type'
|
121
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
122
|
+
|
123
|
+
# form parameters
|
124
|
+
form_params = opts[:form_params] || {}
|
125
|
+
|
126
|
+
# http body (model)
|
127
|
+
post_body = opts[:body] || @api_client.object_to_http_body(imap_server_list_options)
|
128
|
+
|
129
|
+
# return_type
|
130
|
+
return_type = opts[:return_type] || 'ImapServerListResult'
|
131
|
+
|
132
|
+
# auth_names
|
133
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
134
|
+
|
135
|
+
new_options = opts.merge(
|
136
|
+
:header_params => header_params,
|
137
|
+
:query_params => query_params,
|
138
|
+
:form_params => form_params,
|
139
|
+
:body => post_body,
|
140
|
+
:auth_names => auth_names,
|
141
|
+
:return_type => return_type
|
142
|
+
)
|
143
|
+
|
144
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
145
|
+
if @api_client.config.debugging
|
146
|
+
@api_client.config.logger.debug "API called: ImapControllerApi#imap_server_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
147
|
+
end
|
148
|
+
return data, status_code, headers
|
149
|
+
end
|
150
|
+
|
151
|
+
# Search messages in an inbox
|
152
|
+
# @param imap_server_search_options [ImapServerSearchOptions]
|
153
|
+
# @param [Hash] opts the optional parameters
|
154
|
+
# @option opts [String] :inbox_id Inbox ID to search
|
155
|
+
# @return [ImapServerSearchResult]
|
156
|
+
def imap_server_search(imap_server_search_options, opts = {})
|
157
|
+
data, _status_code, _headers = imap_server_search_with_http_info(imap_server_search_options, opts)
|
158
|
+
data
|
159
|
+
end
|
160
|
+
|
161
|
+
# Search messages in an inbox
|
162
|
+
# @param imap_server_search_options [ImapServerSearchOptions]
|
163
|
+
# @param [Hash] opts the optional parameters
|
164
|
+
# @option opts [String] :inbox_id Inbox ID to search
|
165
|
+
# @return [Array<(ImapServerSearchResult, Integer, Hash)>] ImapServerSearchResult data, response status code and response headers
|
166
|
+
def imap_server_search_with_http_info(imap_server_search_options, opts = {})
|
167
|
+
if @api_client.config.debugging
|
168
|
+
@api_client.config.logger.debug 'Calling API: ImapControllerApi.imap_server_search ...'
|
169
|
+
end
|
170
|
+
# verify the required parameter 'imap_server_search_options' is set
|
171
|
+
if @api_client.config.client_side_validation && imap_server_search_options.nil?
|
172
|
+
fail ArgumentError, "Missing the required parameter 'imap_server_search_options' when calling ImapControllerApi.imap_server_search"
|
173
|
+
end
|
174
|
+
# resource path
|
175
|
+
local_var_path = '/imap/server/search'
|
176
|
+
|
177
|
+
# query parameters
|
178
|
+
query_params = opts[:query_params] || {}
|
179
|
+
query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
|
180
|
+
|
181
|
+
# header parameters
|
182
|
+
header_params = opts[:header_params] || {}
|
183
|
+
# HTTP header 'Accept' (if needed)
|
184
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
185
|
+
# HTTP header 'Content-Type'
|
186
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
187
|
+
|
188
|
+
# form parameters
|
189
|
+
form_params = opts[:form_params] || {}
|
190
|
+
|
191
|
+
# http body (model)
|
192
|
+
post_body = opts[:body] || @api_client.object_to_http_body(imap_server_search_options)
|
193
|
+
|
194
|
+
# return_type
|
195
|
+
return_type = opts[:return_type] || 'ImapServerSearchResult'
|
196
|
+
|
197
|
+
# auth_names
|
198
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
199
|
+
|
200
|
+
new_options = opts.merge(
|
201
|
+
:header_params => header_params,
|
202
|
+
:query_params => query_params,
|
203
|
+
:form_params => form_params,
|
204
|
+
:body => post_body,
|
205
|
+
:auth_names => auth_names,
|
206
|
+
:return_type => return_type
|
207
|
+
)
|
208
|
+
|
209
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
210
|
+
if @api_client.config.debugging
|
211
|
+
@api_client.config.logger.debug "API called: ImapControllerApi#imap_server_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
212
|
+
end
|
213
|
+
return data, status_code, headers
|
214
|
+
end
|
215
|
+
|
216
|
+
# Update message flags
|
217
|
+
# @param imap_update_flags_options [ImapUpdateFlagsOptions]
|
218
|
+
# @param [Hash] opts the optional parameters
|
219
|
+
# @option opts [String] :inbox_id
|
220
|
+
# @return [nil]
|
221
|
+
def imap_server_update_flags(imap_update_flags_options, opts = {})
|
222
|
+
imap_server_update_flags_with_http_info(imap_update_flags_options, opts)
|
223
|
+
nil
|
224
|
+
end
|
225
|
+
|
226
|
+
# Update message flags
|
227
|
+
# @param imap_update_flags_options [ImapUpdateFlagsOptions]
|
228
|
+
# @param [Hash] opts the optional parameters
|
229
|
+
# @option opts [String] :inbox_id
|
230
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
231
|
+
def imap_server_update_flags_with_http_info(imap_update_flags_options, opts = {})
|
232
|
+
if @api_client.config.debugging
|
233
|
+
@api_client.config.logger.debug 'Calling API: ImapControllerApi.imap_server_update_flags ...'
|
234
|
+
end
|
235
|
+
# verify the required parameter 'imap_update_flags_options' is set
|
236
|
+
if @api_client.config.client_side_validation && imap_update_flags_options.nil?
|
237
|
+
fail ArgumentError, "Missing the required parameter 'imap_update_flags_options' when calling ImapControllerApi.imap_server_update_flags"
|
238
|
+
end
|
239
|
+
# resource path
|
240
|
+
local_var_path = '/imap/server/update-flags'
|
241
|
+
|
242
|
+
# query parameters
|
243
|
+
query_params = opts[:query_params] || {}
|
244
|
+
query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
|
245
|
+
|
246
|
+
# header parameters
|
247
|
+
header_params = opts[:header_params] || {}
|
248
|
+
# HTTP header 'Content-Type'
|
249
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
250
|
+
|
251
|
+
# form parameters
|
252
|
+
form_params = opts[:form_params] || {}
|
253
|
+
|
254
|
+
# http body (model)
|
255
|
+
post_body = opts[:body] || @api_client.object_to_http_body(imap_update_flags_options)
|
256
|
+
|
257
|
+
# return_type
|
258
|
+
return_type = opts[:return_type]
|
259
|
+
|
260
|
+
# auth_names
|
261
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
262
|
+
|
263
|
+
new_options = opts.merge(
|
264
|
+
:header_params => header_params,
|
265
|
+
:query_params => query_params,
|
266
|
+
:form_params => form_params,
|
267
|
+
:body => post_body,
|
268
|
+
:auth_names => auth_names,
|
269
|
+
:return_type => return_type
|
270
|
+
)
|
271
|
+
|
272
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
273
|
+
if @api_client.config.debugging
|
274
|
+
@api_client.config.logger.debug "API called: ImapControllerApi#imap_server_update_flags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
275
|
+
end
|
276
|
+
return data, status_code, headers
|
277
|
+
end
|
278
|
+
end
|
279
|
+
end
|
@@ -1319,6 +1319,63 @@ module MailSlurpClient
|
|
1319
1319
|
return data, status_code, headers
|
1320
1320
|
end
|
1321
1321
|
|
1322
|
+
# Get IMAP access usernames and passwords
|
1323
|
+
# @param [Hash] opts the optional parameters
|
1324
|
+
# @option opts [String] :inbox_id Inbox ID
|
1325
|
+
# @return [ImapAccessDetails]
|
1326
|
+
def get_imap_access(opts = {})
|
1327
|
+
data, _status_code, _headers = get_imap_access_with_http_info(opts)
|
1328
|
+
data
|
1329
|
+
end
|
1330
|
+
|
1331
|
+
# Get IMAP access usernames and passwords
|
1332
|
+
# @param [Hash] opts the optional parameters
|
1333
|
+
# @option opts [String] :inbox_id Inbox ID
|
1334
|
+
# @return [Array<(ImapAccessDetails, Integer, Hash)>] ImapAccessDetails data, response status code and response headers
|
1335
|
+
def get_imap_access_with_http_info(opts = {})
|
1336
|
+
if @api_client.config.debugging
|
1337
|
+
@api_client.config.logger.debug 'Calling API: InboxControllerApi.get_imap_access ...'
|
1338
|
+
end
|
1339
|
+
# resource path
|
1340
|
+
local_var_path = '/inboxes/imap-access'
|
1341
|
+
|
1342
|
+
# query parameters
|
1343
|
+
query_params = opts[:query_params] || {}
|
1344
|
+
query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
|
1345
|
+
|
1346
|
+
# header parameters
|
1347
|
+
header_params = opts[:header_params] || {}
|
1348
|
+
# HTTP header 'Accept' (if needed)
|
1349
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1350
|
+
|
1351
|
+
# form parameters
|
1352
|
+
form_params = opts[:form_params] || {}
|
1353
|
+
|
1354
|
+
# http body (model)
|
1355
|
+
post_body = opts[:body]
|
1356
|
+
|
1357
|
+
# return_type
|
1358
|
+
return_type = opts[:return_type] || 'ImapAccessDetails'
|
1359
|
+
|
1360
|
+
# auth_names
|
1361
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1362
|
+
|
1363
|
+
new_options = opts.merge(
|
1364
|
+
:header_params => header_params,
|
1365
|
+
:query_params => query_params,
|
1366
|
+
:form_params => form_params,
|
1367
|
+
:body => post_body,
|
1368
|
+
:auth_names => auth_names,
|
1369
|
+
:return_type => return_type
|
1370
|
+
)
|
1371
|
+
|
1372
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1373
|
+
if @api_client.config.debugging
|
1374
|
+
@api_client.config.logger.debug "API called: InboxControllerApi#get_imap_access\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1375
|
+
end
|
1376
|
+
return data, status_code, headers
|
1377
|
+
end
|
1378
|
+
|
1322
1379
|
# Get IMAP and SMTP access usernames and passwords
|
1323
1380
|
# @param [Hash] opts the optional parameters
|
1324
1381
|
# @option opts [String] :inbox_id Inbox ID
|
@@ -2325,6 +2382,63 @@ module MailSlurpClient
|
|
2325
2382
|
return data, status_code, headers
|
2326
2383
|
end
|
2327
2384
|
|
2385
|
+
# Get SMTP access usernames and passwords
|
2386
|
+
# @param [Hash] opts the optional parameters
|
2387
|
+
# @option opts [String] :inbox_id Inbox ID
|
2388
|
+
# @return [SmtpAccessDetails]
|
2389
|
+
def get_smtp_access(opts = {})
|
2390
|
+
data, _status_code, _headers = get_smtp_access_with_http_info(opts)
|
2391
|
+
data
|
2392
|
+
end
|
2393
|
+
|
2394
|
+
# Get SMTP access usernames and passwords
|
2395
|
+
# @param [Hash] opts the optional parameters
|
2396
|
+
# @option opts [String] :inbox_id Inbox ID
|
2397
|
+
# @return [Array<(SmtpAccessDetails, Integer, Hash)>] SmtpAccessDetails data, response status code and response headers
|
2398
|
+
def get_smtp_access_with_http_info(opts = {})
|
2399
|
+
if @api_client.config.debugging
|
2400
|
+
@api_client.config.logger.debug 'Calling API: InboxControllerApi.get_smtp_access ...'
|
2401
|
+
end
|
2402
|
+
# resource path
|
2403
|
+
local_var_path = '/inboxes/smtp-access'
|
2404
|
+
|
2405
|
+
# query parameters
|
2406
|
+
query_params = opts[:query_params] || {}
|
2407
|
+
query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
|
2408
|
+
|
2409
|
+
# header parameters
|
2410
|
+
header_params = opts[:header_params] || {}
|
2411
|
+
# HTTP header 'Accept' (if needed)
|
2412
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
2413
|
+
|
2414
|
+
# form parameters
|
2415
|
+
form_params = opts[:form_params] || {}
|
2416
|
+
|
2417
|
+
# http body (model)
|
2418
|
+
post_body = opts[:body]
|
2419
|
+
|
2420
|
+
# return_type
|
2421
|
+
return_type = opts[:return_type] || 'SmtpAccessDetails'
|
2422
|
+
|
2423
|
+
# auth_names
|
2424
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
2425
|
+
|
2426
|
+
new_options = opts.merge(
|
2427
|
+
:header_params => header_params,
|
2428
|
+
:query_params => query_params,
|
2429
|
+
:form_params => form_params,
|
2430
|
+
:body => post_body,
|
2431
|
+
:auth_names => auth_names,
|
2432
|
+
:return_type => return_type
|
2433
|
+
)
|
2434
|
+
|
2435
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2436
|
+
if @api_client.config.debugging
|
2437
|
+
@api_client.config.logger.debug "API called: InboxControllerApi#get_smtp_access\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2438
|
+
end
|
2439
|
+
return data, status_code, headers
|
2440
|
+
end
|
2441
|
+
|
2328
2442
|
# List inbox rulesets
|
2329
2443
|
# List all rulesets attached to an inbox
|
2330
2444
|
# @param inbox_id [String]
|
@@ -212,6 +212,7 @@ module MailSlurpClient
|
|
212
212
|
# @param [Hash] opts the optional parameters
|
213
213
|
# @option opts [Integer] :page Optional page index in inbox forwarder event list pagination (default to 0)
|
214
214
|
# @option opts [Integer] :size Optional page size in inbox forwarder event list pagination (default to 20)
|
215
|
+
# @option opts [String] :inbox_id Optional inbox ID to filter for
|
215
216
|
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
|
216
217
|
# @return [PageInboxForwarderEvents]
|
217
218
|
def get_all_inbox_forwarder_events(opts = {})
|
@@ -224,6 +225,7 @@ module MailSlurpClient
|
|
224
225
|
# @param [Hash] opts the optional parameters
|
225
226
|
# @option opts [Integer] :page Optional page index in inbox forwarder event list pagination
|
226
227
|
# @option opts [Integer] :size Optional page size in inbox forwarder event list pagination
|
228
|
+
# @option opts [String] :inbox_id Optional inbox ID to filter for
|
227
229
|
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
228
230
|
# @return [Array<(PageInboxForwarderEvents, Integer, Hash)>] PageInboxForwarderEvents data, response status code and response headers
|
229
231
|
def get_all_inbox_forwarder_events_with_http_info(opts = {})
|
@@ -241,6 +243,7 @@ module MailSlurpClient
|
|
241
243
|
query_params = opts[:query_params] || {}
|
242
244
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
243
245
|
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
246
|
+
query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
|
244
247
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
245
248
|
|
246
249
|
# header parameters
|
@@ -143,6 +143,68 @@ module MailSlurpClient
|
|
143
143
|
return data, status_code, headers
|
144
144
|
end
|
145
145
|
|
146
|
+
# Lookup DNS records for multiple domains
|
147
|
+
# @param dns_lookups_options [DNSLookupsOptions]
|
148
|
+
# @param [Hash] opts the optional parameters
|
149
|
+
# @return [DNSLookupResults]
|
150
|
+
def get_dns_lookups(dns_lookups_options, opts = {})
|
151
|
+
data, _status_code, _headers = get_dns_lookups_with_http_info(dns_lookups_options, opts)
|
152
|
+
data
|
153
|
+
end
|
154
|
+
|
155
|
+
# Lookup DNS records for multiple domains
|
156
|
+
# @param dns_lookups_options [DNSLookupsOptions]
|
157
|
+
# @param [Hash] opts the optional parameters
|
158
|
+
# @return [Array<(DNSLookupResults, Integer, Hash)>] DNSLookupResults data, response status code and response headers
|
159
|
+
def get_dns_lookups_with_http_info(dns_lookups_options, opts = {})
|
160
|
+
if @api_client.config.debugging
|
161
|
+
@api_client.config.logger.debug 'Calling API: MailServerControllerApi.get_dns_lookups ...'
|
162
|
+
end
|
163
|
+
# verify the required parameter 'dns_lookups_options' is set
|
164
|
+
if @api_client.config.client_side_validation && dns_lookups_options.nil?
|
165
|
+
fail ArgumentError, "Missing the required parameter 'dns_lookups_options' when calling MailServerControllerApi.get_dns_lookups"
|
166
|
+
end
|
167
|
+
# resource path
|
168
|
+
local_var_path = '/mail-server/describe/dns-lookups'
|
169
|
+
|
170
|
+
# query parameters
|
171
|
+
query_params = opts[:query_params] || {}
|
172
|
+
|
173
|
+
# header parameters
|
174
|
+
header_params = opts[:header_params] || {}
|
175
|
+
# HTTP header 'Accept' (if needed)
|
176
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
177
|
+
# HTTP header 'Content-Type'
|
178
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
179
|
+
|
180
|
+
# form parameters
|
181
|
+
form_params = opts[:form_params] || {}
|
182
|
+
|
183
|
+
# http body (model)
|
184
|
+
post_body = opts[:body] || @api_client.object_to_http_body(dns_lookups_options)
|
185
|
+
|
186
|
+
# return_type
|
187
|
+
return_type = opts[:return_type] || 'DNSLookupResults'
|
188
|
+
|
189
|
+
# auth_names
|
190
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
191
|
+
|
192
|
+
new_options = opts.merge(
|
193
|
+
:header_params => header_params,
|
194
|
+
:query_params => query_params,
|
195
|
+
:form_params => form_params,
|
196
|
+
:body => post_body,
|
197
|
+
:auth_names => auth_names,
|
198
|
+
:return_type => return_type
|
199
|
+
)
|
200
|
+
|
201
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
202
|
+
if @api_client.config.debugging
|
203
|
+
@api_client.config.logger.debug "API called: MailServerControllerApi#get_dns_lookups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
204
|
+
end
|
205
|
+
return data, status_code, headers
|
206
|
+
end
|
207
|
+
|
146
208
|
# Get IP address for a domain
|
147
209
|
# @param name [String]
|
148
210
|
# @param [Hash] opts the optional parameters
|
@@ -15,10 +15,6 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Representation of a alias
|
17
17
|
class AliasProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
|
-
attr_accessor :updated_at
|
21
|
-
|
22
18
|
attr_accessor :inbox_id
|
23
19
|
|
24
20
|
attr_accessor :user_id
|
@@ -27,6 +23,10 @@ module MailSlurpClient
|
|
27
23
|
|
28
24
|
attr_accessor :use_threads
|
29
25
|
|
26
|
+
attr_accessor :created_at
|
27
|
+
|
28
|
+
attr_accessor :updated_at
|
29
|
+
|
30
30
|
attr_accessor :name
|
31
31
|
|
32
32
|
attr_accessor :id
|
@@ -34,12 +34,12 @@ module MailSlurpClient
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
|
-
:'created_at' => :'createdAt',
|
38
|
-
:'updated_at' => :'updatedAt',
|
39
37
|
:'inbox_id' => :'inboxId',
|
40
38
|
:'user_id' => :'userId',
|
41
39
|
:'email_address' => :'emailAddress',
|
42
40
|
:'use_threads' => :'useThreads',
|
41
|
+
:'created_at' => :'createdAt',
|
42
|
+
:'updated_at' => :'updatedAt',
|
43
43
|
:'name' => :'name',
|
44
44
|
:'id' => :'id'
|
45
45
|
}
|
@@ -48,12 +48,12 @@ module MailSlurpClient
|
|
48
48
|
# Attribute type mapping.
|
49
49
|
def self.openapi_types
|
50
50
|
{
|
51
|
-
:'created_at' => :'DateTime',
|
52
|
-
:'updated_at' => :'DateTime',
|
53
51
|
:'inbox_id' => :'String',
|
54
52
|
:'user_id' => :'String',
|
55
53
|
:'email_address' => :'String',
|
56
54
|
:'use_threads' => :'Boolean',
|
55
|
+
:'created_at' => :'DateTime',
|
56
|
+
:'updated_at' => :'DateTime',
|
57
57
|
:'name' => :'String',
|
58
58
|
:'id' => :'String'
|
59
59
|
}
|
@@ -80,14 +80,6 @@ module MailSlurpClient
|
|
80
80
|
h[k.to_sym] = v
|
81
81
|
}
|
82
82
|
|
83
|
-
if attributes.key?(:'created_at')
|
84
|
-
self.created_at = attributes[:'created_at']
|
85
|
-
end
|
86
|
-
|
87
|
-
if attributes.key?(:'updated_at')
|
88
|
-
self.updated_at = attributes[:'updated_at']
|
89
|
-
end
|
90
|
-
|
91
83
|
if attributes.key?(:'inbox_id')
|
92
84
|
self.inbox_id = attributes[:'inbox_id']
|
93
85
|
end
|
@@ -104,6 +96,14 @@ module MailSlurpClient
|
|
104
96
|
self.use_threads = attributes[:'use_threads']
|
105
97
|
end
|
106
98
|
|
99
|
+
if attributes.key?(:'created_at')
|
100
|
+
self.created_at = attributes[:'created_at']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.key?(:'updated_at')
|
104
|
+
self.updated_at = attributes[:'updated_at']
|
105
|
+
end
|
106
|
+
|
107
107
|
if attributes.key?(:'name')
|
108
108
|
self.name = attributes[:'name']
|
109
109
|
end
|
@@ -117,14 +117,6 @@ module MailSlurpClient
|
|
117
117
|
# @return Array for valid properties with the reasons
|
118
118
|
def list_invalid_properties
|
119
119
|
invalid_properties = Array.new
|
120
|
-
if @created_at.nil?
|
121
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
122
|
-
end
|
123
|
-
|
124
|
-
if @updated_at.nil?
|
125
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
126
|
-
end
|
127
|
-
|
128
120
|
if @inbox_id.nil?
|
129
121
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
130
122
|
end
|
@@ -137,6 +129,14 @@ module MailSlurpClient
|
|
137
129
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
138
130
|
end
|
139
131
|
|
132
|
+
if @created_at.nil?
|
133
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
134
|
+
end
|
135
|
+
|
136
|
+
if @updated_at.nil?
|
137
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
138
|
+
end
|
139
|
+
|
140
140
|
if @id.nil?
|
141
141
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
142
142
|
end
|
@@ -147,11 +147,11 @@ module MailSlurpClient
|
|
147
147
|
# Check to see if the all the properties in the model are valid
|
148
148
|
# @return true if the model is valid
|
149
149
|
def valid?
|
150
|
-
return false if @created_at.nil?
|
151
|
-
return false if @updated_at.nil?
|
152
150
|
return false if @inbox_id.nil?
|
153
151
|
return false if @user_id.nil?
|
154
152
|
return false if @email_address.nil?
|
153
|
+
return false if @created_at.nil?
|
154
|
+
return false if @updated_at.nil?
|
155
155
|
return false if @id.nil?
|
156
156
|
true
|
157
157
|
end
|
@@ -161,12 +161,12 @@ module MailSlurpClient
|
|
161
161
|
def ==(o)
|
162
162
|
return true if self.equal?(o)
|
163
163
|
self.class == o.class &&
|
164
|
-
created_at == o.created_at &&
|
165
|
-
updated_at == o.updated_at &&
|
166
164
|
inbox_id == o.inbox_id &&
|
167
165
|
user_id == o.user_id &&
|
168
166
|
email_address == o.email_address &&
|
169
167
|
use_threads == o.use_threads &&
|
168
|
+
created_at == o.created_at &&
|
169
|
+
updated_at == o.updated_at &&
|
170
170
|
name == o.name &&
|
171
171
|
id == o.id
|
172
172
|
end
|
@@ -180,7 +180,7 @@ module MailSlurpClient
|
|
180
180
|
# Calculates hash code according to all attributes.
|
181
181
|
# @return [Integer] Hash code
|
182
182
|
def hash
|
183
|
-
[
|
183
|
+
[inbox_id, user_id, email_address, use_threads, created_at, updated_at, name, id].hash
|
184
184
|
end
|
185
185
|
|
186
186
|
# Builds the object from hash
|