mailslurp_client 11.2.0 → 11.3.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9cd20c2759d9185cb88d7aefd6b6982c8ee6e10cf8a4fd6acbeaf591f6ac4e9
|
4
|
+
data.tar.gz: 6e225230fb0ba5275566a4e398cbdeb01e6586285bd757b17383ce6d358a61c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2db984622698047a181f5e443c71a86554e280bb87ac15ee3802ccfc9f2111c8d43a179ef3363b0692ad0e03223863c6e42abb7ba5ee2766b6b344fb66c389a2
|
7
|
+
data.tar.gz: efddf2e1871b046523dfc8101b3e57540aa6e77cb5812a32c42e26c2199fabe0facc67aacafa681e372d0cabf80696d610baa5343cccac9f8be6f6fab154b415
|
data/lib/mailslurp_client.rb
CHANGED
@@ -110,6 +110,7 @@ require 'mailslurp_client/api/common_actions_controller_api'
|
|
110
110
|
require 'mailslurp_client/api/contact_controller_api'
|
111
111
|
require 'mailslurp_client/api/domain_controller_api'
|
112
112
|
require 'mailslurp_client/api/email_controller_api'
|
113
|
+
require 'mailslurp_client/api/expired_controller_api'
|
113
114
|
require 'mailslurp_client/api/form_controller_api'
|
114
115
|
require 'mailslurp_client/api/group_controller_api'
|
115
116
|
require 'mailslurp_client/api/inbox_controller_api'
|
@@ -0,0 +1,215 @@
|
|
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://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 6.5.2
|
7
|
+
|
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 ExpiredControllerApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Get expired inbox record for a previously existing inbox
|
23
|
+
# Use the inboxId to return an ExpiredInboxRecord if an inbox has expired. Inboxes expire and are disabled if an expiration date is set or plan requires. Returns 404 if no expired inbox is found for the inboxId
|
24
|
+
# @param inbox_id [String] ID of inbox you want to retrieve (not the inbox ID)
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [ExpiredInboxDto]
|
27
|
+
def get_expired_inbox_by_inbox_id(inbox_id, opts = {})
|
28
|
+
data, _status_code, _headers = get_expired_inbox_by_inbox_id_with_http_info(inbox_id, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Get expired inbox record for a previously existing inbox
|
33
|
+
# Use the inboxId to return an ExpiredInboxRecord if an inbox has expired. Inboxes expire and are disabled if an expiration date is set or plan requires. Returns 404 if no expired inbox is found for the inboxId
|
34
|
+
# @param inbox_id [String] ID of inbox you want to retrieve (not the inbox ID)
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(ExpiredInboxDto, Integer, Hash)>] ExpiredInboxDto data, response status code and response headers
|
37
|
+
def get_expired_inbox_by_inbox_id_with_http_info(inbox_id, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: ExpiredControllerApi.get_expired_inbox_by_inbox_id ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'inbox_id' is set
|
42
|
+
if @api_client.config.client_side_validation && inbox_id.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'inbox_id' when calling ExpiredControllerApi.get_expired_inbox_by_inbox_id"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/expired/inbox/{inboxId}'.sub('{' + 'inboxId' + '}', CGI.escape(inbox_id.to_s))
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
|
56
|
+
# form parameters
|
57
|
+
form_params = opts[:form_params] || {}
|
58
|
+
|
59
|
+
# http body (model)
|
60
|
+
post_body = opts[:body]
|
61
|
+
|
62
|
+
# return_type
|
63
|
+
return_type = opts[:return_type] || 'ExpiredInboxDto'
|
64
|
+
|
65
|
+
# auth_names
|
66
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
67
|
+
|
68
|
+
new_options = opts.merge(
|
69
|
+
:header_params => header_params,
|
70
|
+
:query_params => query_params,
|
71
|
+
:form_params => form_params,
|
72
|
+
:body => post_body,
|
73
|
+
:auth_names => auth_names,
|
74
|
+
:return_type => return_type
|
75
|
+
)
|
76
|
+
|
77
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
78
|
+
if @api_client.config.debugging
|
79
|
+
@api_client.config.logger.debug "API called: ExpiredControllerApi#get_expired_inbox_by_inbox_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
80
|
+
end
|
81
|
+
return data, status_code, headers
|
82
|
+
end
|
83
|
+
|
84
|
+
# Get an expired inbox record
|
85
|
+
# Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties
|
86
|
+
# @param expired_id [String] ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId)
|
87
|
+
# @param [Hash] opts the optional parameters
|
88
|
+
# @return [ExpiredInboxDto]
|
89
|
+
def get_expired_inbox_record(expired_id, opts = {})
|
90
|
+
data, _status_code, _headers = get_expired_inbox_record_with_http_info(expired_id, opts)
|
91
|
+
data
|
92
|
+
end
|
93
|
+
|
94
|
+
# Get an expired inbox record
|
95
|
+
# Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties
|
96
|
+
# @param expired_id [String] ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId)
|
97
|
+
# @param [Hash] opts the optional parameters
|
98
|
+
# @return [Array<(ExpiredInboxDto, Integer, Hash)>] ExpiredInboxDto data, response status code and response headers
|
99
|
+
def get_expired_inbox_record_with_http_info(expired_id, opts = {})
|
100
|
+
if @api_client.config.debugging
|
101
|
+
@api_client.config.logger.debug 'Calling API: ExpiredControllerApi.get_expired_inbox_record ...'
|
102
|
+
end
|
103
|
+
# verify the required parameter 'expired_id' is set
|
104
|
+
if @api_client.config.client_side_validation && expired_id.nil?
|
105
|
+
fail ArgumentError, "Missing the required parameter 'expired_id' when calling ExpiredControllerApi.get_expired_inbox_record"
|
106
|
+
end
|
107
|
+
# resource path
|
108
|
+
local_var_path = '/expired/{expiredId}'.sub('{' + 'expiredId' + '}', CGI.escape(expired_id.to_s))
|
109
|
+
|
110
|
+
# query parameters
|
111
|
+
query_params = opts[:query_params] || {}
|
112
|
+
|
113
|
+
# header parameters
|
114
|
+
header_params = opts[:header_params] || {}
|
115
|
+
# HTTP header 'Accept' (if needed)
|
116
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
117
|
+
|
118
|
+
# form parameters
|
119
|
+
form_params = opts[:form_params] || {}
|
120
|
+
|
121
|
+
# http body (model)
|
122
|
+
post_body = opts[:body]
|
123
|
+
|
124
|
+
# return_type
|
125
|
+
return_type = opts[:return_type] || 'ExpiredInboxDto'
|
126
|
+
|
127
|
+
# auth_names
|
128
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
129
|
+
|
130
|
+
new_options = opts.merge(
|
131
|
+
:header_params => header_params,
|
132
|
+
:query_params => query_params,
|
133
|
+
:form_params => form_params,
|
134
|
+
:body => post_body,
|
135
|
+
:auth_names => auth_names,
|
136
|
+
:return_type => return_type
|
137
|
+
)
|
138
|
+
|
139
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
140
|
+
if @api_client.config.debugging
|
141
|
+
@api_client.config.logger.debug "API called: ExpiredControllerApi#get_expired_inbox_record\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
142
|
+
end
|
143
|
+
return data, status_code, headers
|
144
|
+
end
|
145
|
+
|
146
|
+
# List records of expired inboxes
|
147
|
+
# Inboxes created with an expiration date will expire after the given date. An ExpiredInboxRecord is created that records the inboxes old ID and email address. You can still read emails in the inbox (using the inboxes old ID) but the email address associated with the inbox can no longer send or receive emails. Fetch expired inbox records to view the old inboxes properties
|
148
|
+
# @param [Hash] opts the optional parameters
|
149
|
+
# @option opts [Integer] :page Optional page index in inbox sent email list pagination (default to 0)
|
150
|
+
# @option opts [Integer] :size Optional page size in inbox sent email list pagination (default to 20)
|
151
|
+
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
|
152
|
+
# @return [PageExpiredInboxRecordProjection]
|
153
|
+
def get_expired_inboxes(opts = {})
|
154
|
+
data, _status_code, _headers = get_expired_inboxes_with_http_info(opts)
|
155
|
+
data
|
156
|
+
end
|
157
|
+
|
158
|
+
# List records of expired inboxes
|
159
|
+
# Inboxes created with an expiration date will expire after the given date. An ExpiredInboxRecord is created that records the inboxes old ID and email address. You can still read emails in the inbox (using the inboxes old ID) but the email address associated with the inbox can no longer send or receive emails. Fetch expired inbox records to view the old inboxes properties
|
160
|
+
# @param [Hash] opts the optional parameters
|
161
|
+
# @option opts [Integer] :page Optional page index in inbox sent email list pagination
|
162
|
+
# @option opts [Integer] :size Optional page size in inbox sent email list pagination
|
163
|
+
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
164
|
+
# @return [Array<(PageExpiredInboxRecordProjection, Integer, Hash)>] PageExpiredInboxRecordProjection data, response status code and response headers
|
165
|
+
def get_expired_inboxes_with_http_info(opts = {})
|
166
|
+
if @api_client.config.debugging
|
167
|
+
@api_client.config.logger.debug 'Calling API: ExpiredControllerApi.get_expired_inboxes ...'
|
168
|
+
end
|
169
|
+
allowable_values = ["ASC", "DESC"]
|
170
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
171
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
172
|
+
end
|
173
|
+
# resource path
|
174
|
+
local_var_path = '/expired'
|
175
|
+
|
176
|
+
# query parameters
|
177
|
+
query_params = opts[:query_params] || {}
|
178
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
179
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
180
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
181
|
+
|
182
|
+
# header parameters
|
183
|
+
header_params = opts[:header_params] || {}
|
184
|
+
# HTTP header 'Accept' (if needed)
|
185
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
186
|
+
|
187
|
+
# form parameters
|
188
|
+
form_params = opts[:form_params] || {}
|
189
|
+
|
190
|
+
# http body (model)
|
191
|
+
post_body = opts[:body]
|
192
|
+
|
193
|
+
# return_type
|
194
|
+
return_type = opts[:return_type] || 'PageExpiredInboxRecordProjection'
|
195
|
+
|
196
|
+
# auth_names
|
197
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
198
|
+
|
199
|
+
new_options = opts.merge(
|
200
|
+
:header_params => header_params,
|
201
|
+
:query_params => query_params,
|
202
|
+
:form_params => form_params,
|
203
|
+
:body => post_body,
|
204
|
+
:auth_names => auth_names,
|
205
|
+
:return_type => return_type
|
206
|
+
)
|
207
|
+
|
208
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
209
|
+
if @api_client.config.debugging
|
210
|
+
@api_client.config.logger.debug "API called: ExpiredControllerApi#get_expired_inboxes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
211
|
+
end
|
212
|
+
return data, status_code, headers
|
213
|
+
end
|
214
|
+
end
|
215
|
+
end
|
@@ -439,199 +439,6 @@ module MailSlurpClient
|
|
439
439
|
return data, status_code, headers
|
440
440
|
end
|
441
441
|
|
442
|
-
# Get an expired inbox record
|
443
|
-
# Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties
|
444
|
-
# @param expired_id [String] ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId)
|
445
|
-
# @param [Hash] opts the optional parameters
|
446
|
-
# @return [ExpiredInboxDto]
|
447
|
-
def get_expired_inbox_record_by_id(expired_id, opts = {})
|
448
|
-
data, _status_code, _headers = get_expired_inbox_record_by_id_with_http_info(expired_id, opts)
|
449
|
-
data
|
450
|
-
end
|
451
|
-
|
452
|
-
# Get an expired inbox record
|
453
|
-
# Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties
|
454
|
-
# @param expired_id [String] ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId)
|
455
|
-
# @param [Hash] opts the optional parameters
|
456
|
-
# @return [Array<(ExpiredInboxDto, Integer, Hash)>] ExpiredInboxDto data, response status code and response headers
|
457
|
-
def get_expired_inbox_record_by_id_with_http_info(expired_id, opts = {})
|
458
|
-
if @api_client.config.debugging
|
459
|
-
@api_client.config.logger.debug 'Calling API: InboxControllerApi.get_expired_inbox_record_by_id ...'
|
460
|
-
end
|
461
|
-
# verify the required parameter 'expired_id' is set
|
462
|
-
if @api_client.config.client_side_validation && expired_id.nil?
|
463
|
-
fail ArgumentError, "Missing the required parameter 'expired_id' when calling InboxControllerApi.get_expired_inbox_record_by_id"
|
464
|
-
end
|
465
|
-
# resource path
|
466
|
-
local_var_path = '/inboxes/expired-records/{expiredId}'.sub('{' + 'expiredId' + '}', CGI.escape(expired_id.to_s))
|
467
|
-
|
468
|
-
# query parameters
|
469
|
-
query_params = opts[:query_params] || {}
|
470
|
-
|
471
|
-
# header parameters
|
472
|
-
header_params = opts[:header_params] || {}
|
473
|
-
# HTTP header 'Accept' (if needed)
|
474
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
475
|
-
|
476
|
-
# form parameters
|
477
|
-
form_params = opts[:form_params] || {}
|
478
|
-
|
479
|
-
# http body (model)
|
480
|
-
post_body = opts[:body]
|
481
|
-
|
482
|
-
# return_type
|
483
|
-
return_type = opts[:return_type] || 'ExpiredInboxDto'
|
484
|
-
|
485
|
-
# auth_names
|
486
|
-
auth_names = opts[:auth_names] || ['API_KEY']
|
487
|
-
|
488
|
-
new_options = opts.merge(
|
489
|
-
:header_params => header_params,
|
490
|
-
:query_params => query_params,
|
491
|
-
:form_params => form_params,
|
492
|
-
:body => post_body,
|
493
|
-
:auth_names => auth_names,
|
494
|
-
:return_type => return_type
|
495
|
-
)
|
496
|
-
|
497
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
498
|
-
if @api_client.config.debugging
|
499
|
-
@api_client.config.logger.debug "API called: InboxControllerApi#get_expired_inbox_record_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
500
|
-
end
|
501
|
-
return data, status_code, headers
|
502
|
-
end
|
503
|
-
|
504
|
-
# Get expired inbox record for a previously existing inbox
|
505
|
-
# Use the inboxId to return an ExpiredInboxRecord if an inbox has expired. Inboxes expire and are disabled if an expiration date is set or plan requires. Returns 404 if no expired inbox is found for the inboxId
|
506
|
-
# @param inbox_id [String] ID of inbox you want to retrieve (not the inbox ID)
|
507
|
-
# @param [Hash] opts the optional parameters
|
508
|
-
# @return [ExpiredInboxDto]
|
509
|
-
def get_expired_inbox_record_by_inbox_id(inbox_id, opts = {})
|
510
|
-
data, _status_code, _headers = get_expired_inbox_record_by_inbox_id_with_http_info(inbox_id, opts)
|
511
|
-
data
|
512
|
-
end
|
513
|
-
|
514
|
-
# Get expired inbox record for a previously existing inbox
|
515
|
-
# Use the inboxId to return an ExpiredInboxRecord if an inbox has expired. Inboxes expire and are disabled if an expiration date is set or plan requires. Returns 404 if no expired inbox is found for the inboxId
|
516
|
-
# @param inbox_id [String] ID of inbox you want to retrieve (not the inbox ID)
|
517
|
-
# @param [Hash] opts the optional parameters
|
518
|
-
# @return [Array<(ExpiredInboxDto, Integer, Hash)>] ExpiredInboxDto data, response status code and response headers
|
519
|
-
def get_expired_inbox_record_by_inbox_id_with_http_info(inbox_id, opts = {})
|
520
|
-
if @api_client.config.debugging
|
521
|
-
@api_client.config.logger.debug 'Calling API: InboxControllerApi.get_expired_inbox_record_by_inbox_id ...'
|
522
|
-
end
|
523
|
-
# verify the required parameter 'inbox_id' is set
|
524
|
-
if @api_client.config.client_side_validation && inbox_id.nil?
|
525
|
-
fail ArgumentError, "Missing the required parameter 'inbox_id' when calling InboxControllerApi.get_expired_inbox_record_by_inbox_id"
|
526
|
-
end
|
527
|
-
# resource path
|
528
|
-
local_var_path = '/inboxes/{inboxId}/expired-record'.sub('{' + 'inboxId' + '}', CGI.escape(inbox_id.to_s))
|
529
|
-
|
530
|
-
# query parameters
|
531
|
-
query_params = opts[:query_params] || {}
|
532
|
-
|
533
|
-
# header parameters
|
534
|
-
header_params = opts[:header_params] || {}
|
535
|
-
# HTTP header 'Accept' (if needed)
|
536
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
537
|
-
|
538
|
-
# form parameters
|
539
|
-
form_params = opts[:form_params] || {}
|
540
|
-
|
541
|
-
# http body (model)
|
542
|
-
post_body = opts[:body]
|
543
|
-
|
544
|
-
# return_type
|
545
|
-
return_type = opts[:return_type] || 'ExpiredInboxDto'
|
546
|
-
|
547
|
-
# auth_names
|
548
|
-
auth_names = opts[:auth_names] || ['API_KEY']
|
549
|
-
|
550
|
-
new_options = opts.merge(
|
551
|
-
:header_params => header_params,
|
552
|
-
:query_params => query_params,
|
553
|
-
:form_params => form_params,
|
554
|
-
:body => post_body,
|
555
|
-
:auth_names => auth_names,
|
556
|
-
:return_type => return_type
|
557
|
-
)
|
558
|
-
|
559
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
560
|
-
if @api_client.config.debugging
|
561
|
-
@api_client.config.logger.debug "API called: InboxControllerApi#get_expired_inbox_record_by_inbox_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
562
|
-
end
|
563
|
-
return data, status_code, headers
|
564
|
-
end
|
565
|
-
|
566
|
-
# List records of expired inboxes
|
567
|
-
# Inboxes created with an expiration date will expire after the given date. An ExpiredInboxRecord is created that records the inboxes old ID and email address. You can still read emails in the inbox (using the inboxes old ID) but the email address associated with the inbox can no longer send or receive emails. Fetch expired inbox records to view the old inboxes properties
|
568
|
-
# @param [Hash] opts the optional parameters
|
569
|
-
# @option opts [Integer] :page Optional page index in inbox sent email list pagination (default to 0)
|
570
|
-
# @option opts [Integer] :size Optional page size in inbox sent email list pagination (default to 20)
|
571
|
-
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
|
572
|
-
# @return [PageExpiredInboxRecordProjection]
|
573
|
-
def get_expired_inbox_records(opts = {})
|
574
|
-
data, _status_code, _headers = get_expired_inbox_records_with_http_info(opts)
|
575
|
-
data
|
576
|
-
end
|
577
|
-
|
578
|
-
# List records of expired inboxes
|
579
|
-
# Inboxes created with an expiration date will expire after the given date. An ExpiredInboxRecord is created that records the inboxes old ID and email address. You can still read emails in the inbox (using the inboxes old ID) but the email address associated with the inbox can no longer send or receive emails. Fetch expired inbox records to view the old inboxes properties
|
580
|
-
# @param [Hash] opts the optional parameters
|
581
|
-
# @option opts [Integer] :page Optional page index in inbox sent email list pagination
|
582
|
-
# @option opts [Integer] :size Optional page size in inbox sent email list pagination
|
583
|
-
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
584
|
-
# @return [Array<(PageExpiredInboxRecordProjection, Integer, Hash)>] PageExpiredInboxRecordProjection data, response status code and response headers
|
585
|
-
def get_expired_inbox_records_with_http_info(opts = {})
|
586
|
-
if @api_client.config.debugging
|
587
|
-
@api_client.config.logger.debug 'Calling API: InboxControllerApi.get_expired_inbox_records ...'
|
588
|
-
end
|
589
|
-
allowable_values = ["ASC", "DESC"]
|
590
|
-
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
591
|
-
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
592
|
-
end
|
593
|
-
# resource path
|
594
|
-
local_var_path = '/inboxes/expired-records'
|
595
|
-
|
596
|
-
# query parameters
|
597
|
-
query_params = opts[:query_params] || {}
|
598
|
-
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
599
|
-
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
600
|
-
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
601
|
-
|
602
|
-
# header parameters
|
603
|
-
header_params = opts[:header_params] || {}
|
604
|
-
# HTTP header 'Accept' (if needed)
|
605
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
606
|
-
|
607
|
-
# form parameters
|
608
|
-
form_params = opts[:form_params] || {}
|
609
|
-
|
610
|
-
# http body (model)
|
611
|
-
post_body = opts[:body]
|
612
|
-
|
613
|
-
# return_type
|
614
|
-
return_type = opts[:return_type] || 'PageExpiredInboxRecordProjection'
|
615
|
-
|
616
|
-
# auth_names
|
617
|
-
auth_names = opts[:auth_names] || ['API_KEY']
|
618
|
-
|
619
|
-
new_options = opts.merge(
|
620
|
-
:header_params => header_params,
|
621
|
-
:query_params => query_params,
|
622
|
-
:form_params => form_params,
|
623
|
-
:body => post_body,
|
624
|
-
:auth_names => auth_names,
|
625
|
-
:return_type => return_type
|
626
|
-
)
|
627
|
-
|
628
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
629
|
-
if @api_client.config.debugging
|
630
|
-
@api_client.config.logger.debug "API called: InboxControllerApi#get_expired_inbox_records\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
631
|
-
end
|
632
|
-
return data, status_code, headers
|
633
|
-
end
|
634
|
-
|
635
442
|
# Get Inbox
|
636
443
|
# Returns an inbox's properties, including its email address and ID.
|
637
444
|
# @param inbox_id [String] inboxId
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailslurp_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 11.
|
4
|
+
version: 11.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mailslurp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Create emails addresses in Ruby then send and receive real emails and
|
14
14
|
attachments. See https://www.mailslurp.com/docs/ruby/ for full Ruby documentation.
|
@@ -30,6 +30,7 @@ files:
|
|
30
30
|
- lib/mailslurp_client/api/contact_controller_api.rb
|
31
31
|
- lib/mailslurp_client/api/domain_controller_api.rb
|
32
32
|
- lib/mailslurp_client/api/email_controller_api.rb
|
33
|
+
- lib/mailslurp_client/api/expired_controller_api.rb
|
33
34
|
- lib/mailslurp_client/api/form_controller_api.rb
|
34
35
|
- lib/mailslurp_client/api/group_controller_api.rb
|
35
36
|
- lib/mailslurp_client/api/inbox_controller_api.rb
|