mailslurp_client 15.17.17 → 15.17.22
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/inbox_controller_api.rb +183 -0
- data/lib/mailslurp_client/api/sms_controller_api.rb +132 -0
- data/lib/mailslurp_client/api/tools_controller_api.rb +518 -0
- data/lib/mailslurp_client/models/alias_projection.rb +15 -15
- data/lib/mailslurp_client/models/attachment_projection.rb +16 -16
- data/lib/mailslurp_client/models/bounce_projection.rb +10 -10
- data/lib/mailslurp_client/models/connector_projection.rb +15 -15
- data/lib/mailslurp_client/models/generate_bimi_record_options.rb +282 -0
- data/lib/mailslurp_client/models/generate_bimi_record_results.rb +288 -0
- data/lib/mailslurp_client/models/generate_dmarc_record_options.rb +454 -0
- data/lib/mailslurp_client/models/generate_dmarc_record_results.rb +288 -0
- data/lib/mailslurp_client/models/generate_mta_sts_record_options.rb +329 -0
- data/lib/mailslurp_client/models/generate_mta_sts_record_results.rb +316 -0
- data/lib/mailslurp_client/models/generate_tls_reporting_record_options.rb +298 -0
- data/lib/mailslurp_client/models/generate_tls_reporting_record_results.rb +288 -0
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +11 -11
- data/lib/mailslurp_client/models/lookup_bimi_domain_options.rb +211 -0
- data/lib/mailslurp_client/models/lookup_bimi_domain_results.rb +273 -0
- data/lib/mailslurp_client/models/lookup_dmarc_domain_options.rb +211 -0
- data/lib/mailslurp_client/models/lookup_dmarc_domain_results.rb +273 -0
- data/lib/mailslurp_client/models/lookup_mta_sts_domain_options.rb +211 -0
- data/lib/mailslurp_client/models/lookup_mta_sts_domain_results.rb +315 -0
- data/lib/mailslurp_client/models/lookup_tls_reporting_domain_options.rb +211 -0
- data/lib/mailslurp_client/models/lookup_tls_reporting_domain_results.rb +273 -0
- data/lib/mailslurp_client/models/reply_for_sms.rb +206 -0
- data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/sent_sms_dto.rb +351 -0
- data/lib/mailslurp_client/models/sms_reply_options.rb +211 -0
- data/lib/mailslurp_client/models/thread_projection.rb +16 -16
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +20 -0
- metadata +22 -2
@@ -0,0 +1,518 @@
|
|
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 ToolsControllerApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create a BIMI record policy
|
23
|
+
# @param generate_bimi_record_options [GenerateBimiRecordOptions]
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [GenerateBimiRecordResults]
|
26
|
+
def generate_bimi_record(generate_bimi_record_options, opts = {})
|
27
|
+
data, _status_code, _headers = generate_bimi_record_with_http_info(generate_bimi_record_options, opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# Create a BIMI record policy
|
32
|
+
# @param generate_bimi_record_options [GenerateBimiRecordOptions]
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(GenerateBimiRecordResults, Integer, Hash)>] GenerateBimiRecordResults data, response status code and response headers
|
35
|
+
def generate_bimi_record_with_http_info(generate_bimi_record_options, opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: ToolsControllerApi.generate_bimi_record ...'
|
38
|
+
end
|
39
|
+
# verify the required parameter 'generate_bimi_record_options' is set
|
40
|
+
if @api_client.config.client_side_validation && generate_bimi_record_options.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'generate_bimi_record_options' when calling ToolsControllerApi.generate_bimi_record"
|
42
|
+
end
|
43
|
+
# resource path
|
44
|
+
local_var_path = '/tools/generate-bimi-record'
|
45
|
+
|
46
|
+
# query parameters
|
47
|
+
query_params = opts[:query_params] || {}
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = opts[:header_params] || {}
|
51
|
+
# HTTP header 'Accept' (if needed)
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
53
|
+
# HTTP header 'Content-Type'
|
54
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
55
|
+
|
56
|
+
# form parameters
|
57
|
+
form_params = opts[:form_params] || {}
|
58
|
+
|
59
|
+
# http body (model)
|
60
|
+
post_body = opts[:body] || @api_client.object_to_http_body(generate_bimi_record_options)
|
61
|
+
|
62
|
+
# return_type
|
63
|
+
return_type = opts[:return_type] || 'GenerateBimiRecordResults'
|
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(:POST, local_var_path, new_options)
|
78
|
+
if @api_client.config.debugging
|
79
|
+
@api_client.config.logger.debug "API called: ToolsControllerApi#generate_bimi_record\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
80
|
+
end
|
81
|
+
return data, status_code, headers
|
82
|
+
end
|
83
|
+
|
84
|
+
# Create a DMARC record policy
|
85
|
+
# @param generate_dmarc_record_options [GenerateDmarcRecordOptions]
|
86
|
+
# @param [Hash] opts the optional parameters
|
87
|
+
# @return [GenerateDmarcRecordResults]
|
88
|
+
def generate_dmarc_record(generate_dmarc_record_options, opts = {})
|
89
|
+
data, _status_code, _headers = generate_dmarc_record_with_http_info(generate_dmarc_record_options, opts)
|
90
|
+
data
|
91
|
+
end
|
92
|
+
|
93
|
+
# Create a DMARC record policy
|
94
|
+
# @param generate_dmarc_record_options [GenerateDmarcRecordOptions]
|
95
|
+
# @param [Hash] opts the optional parameters
|
96
|
+
# @return [Array<(GenerateDmarcRecordResults, Integer, Hash)>] GenerateDmarcRecordResults data, response status code and response headers
|
97
|
+
def generate_dmarc_record_with_http_info(generate_dmarc_record_options, opts = {})
|
98
|
+
if @api_client.config.debugging
|
99
|
+
@api_client.config.logger.debug 'Calling API: ToolsControllerApi.generate_dmarc_record ...'
|
100
|
+
end
|
101
|
+
# verify the required parameter 'generate_dmarc_record_options' is set
|
102
|
+
if @api_client.config.client_side_validation && generate_dmarc_record_options.nil?
|
103
|
+
fail ArgumentError, "Missing the required parameter 'generate_dmarc_record_options' when calling ToolsControllerApi.generate_dmarc_record"
|
104
|
+
end
|
105
|
+
# resource path
|
106
|
+
local_var_path = '/tools/generate-dmarc-record'
|
107
|
+
|
108
|
+
# query parameters
|
109
|
+
query_params = opts[:query_params] || {}
|
110
|
+
|
111
|
+
# header parameters
|
112
|
+
header_params = opts[:header_params] || {}
|
113
|
+
# HTTP header 'Accept' (if needed)
|
114
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
115
|
+
# HTTP header 'Content-Type'
|
116
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
117
|
+
|
118
|
+
# form parameters
|
119
|
+
form_params = opts[:form_params] || {}
|
120
|
+
|
121
|
+
# http body (model)
|
122
|
+
post_body = opts[:body] || @api_client.object_to_http_body(generate_dmarc_record_options)
|
123
|
+
|
124
|
+
# return_type
|
125
|
+
return_type = opts[:return_type] || 'GenerateDmarcRecordResults'
|
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(:POST, local_var_path, new_options)
|
140
|
+
if @api_client.config.debugging
|
141
|
+
@api_client.config.logger.debug "API called: ToolsControllerApi#generate_dmarc_record\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
142
|
+
end
|
143
|
+
return data, status_code, headers
|
144
|
+
end
|
145
|
+
|
146
|
+
# Create a TLS reporting record policy
|
147
|
+
# @param generate_mta_sts_record_options [GenerateMtaStsRecordOptions]
|
148
|
+
# @param [Hash] opts the optional parameters
|
149
|
+
# @return [GenerateMtaStsRecordResults]
|
150
|
+
def generate_mta_sts_record(generate_mta_sts_record_options, opts = {})
|
151
|
+
data, _status_code, _headers = generate_mta_sts_record_with_http_info(generate_mta_sts_record_options, opts)
|
152
|
+
data
|
153
|
+
end
|
154
|
+
|
155
|
+
# Create a TLS reporting record policy
|
156
|
+
# @param generate_mta_sts_record_options [GenerateMtaStsRecordOptions]
|
157
|
+
# @param [Hash] opts the optional parameters
|
158
|
+
# @return [Array<(GenerateMtaStsRecordResults, Integer, Hash)>] GenerateMtaStsRecordResults data, response status code and response headers
|
159
|
+
def generate_mta_sts_record_with_http_info(generate_mta_sts_record_options, opts = {})
|
160
|
+
if @api_client.config.debugging
|
161
|
+
@api_client.config.logger.debug 'Calling API: ToolsControllerApi.generate_mta_sts_record ...'
|
162
|
+
end
|
163
|
+
# verify the required parameter 'generate_mta_sts_record_options' is set
|
164
|
+
if @api_client.config.client_side_validation && generate_mta_sts_record_options.nil?
|
165
|
+
fail ArgumentError, "Missing the required parameter 'generate_mta_sts_record_options' when calling ToolsControllerApi.generate_mta_sts_record"
|
166
|
+
end
|
167
|
+
# resource path
|
168
|
+
local_var_path = '/tools/generate-mta-sts-record'
|
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(generate_mta_sts_record_options)
|
185
|
+
|
186
|
+
# return_type
|
187
|
+
return_type = opts[:return_type] || 'GenerateMtaStsRecordResults'
|
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: ToolsControllerApi#generate_mta_sts_record\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
204
|
+
end
|
205
|
+
return data, status_code, headers
|
206
|
+
end
|
207
|
+
|
208
|
+
# Create a TLS reporting record policy
|
209
|
+
# @param generate_tls_reporting_record_options [GenerateTlsReportingRecordOptions]
|
210
|
+
# @param [Hash] opts the optional parameters
|
211
|
+
# @return [GenerateTlsReportingRecordResults]
|
212
|
+
def generate_tls_reporting_record(generate_tls_reporting_record_options, opts = {})
|
213
|
+
data, _status_code, _headers = generate_tls_reporting_record_with_http_info(generate_tls_reporting_record_options, opts)
|
214
|
+
data
|
215
|
+
end
|
216
|
+
|
217
|
+
# Create a TLS reporting record policy
|
218
|
+
# @param generate_tls_reporting_record_options [GenerateTlsReportingRecordOptions]
|
219
|
+
# @param [Hash] opts the optional parameters
|
220
|
+
# @return [Array<(GenerateTlsReportingRecordResults, Integer, Hash)>] GenerateTlsReportingRecordResults data, response status code and response headers
|
221
|
+
def generate_tls_reporting_record_with_http_info(generate_tls_reporting_record_options, opts = {})
|
222
|
+
if @api_client.config.debugging
|
223
|
+
@api_client.config.logger.debug 'Calling API: ToolsControllerApi.generate_tls_reporting_record ...'
|
224
|
+
end
|
225
|
+
# verify the required parameter 'generate_tls_reporting_record_options' is set
|
226
|
+
if @api_client.config.client_side_validation && generate_tls_reporting_record_options.nil?
|
227
|
+
fail ArgumentError, "Missing the required parameter 'generate_tls_reporting_record_options' when calling ToolsControllerApi.generate_tls_reporting_record"
|
228
|
+
end
|
229
|
+
# resource path
|
230
|
+
local_var_path = '/tools/generate-tls-reporting-record'
|
231
|
+
|
232
|
+
# query parameters
|
233
|
+
query_params = opts[:query_params] || {}
|
234
|
+
|
235
|
+
# header parameters
|
236
|
+
header_params = opts[:header_params] || {}
|
237
|
+
# HTTP header 'Accept' (if needed)
|
238
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
239
|
+
# HTTP header 'Content-Type'
|
240
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
241
|
+
|
242
|
+
# form parameters
|
243
|
+
form_params = opts[:form_params] || {}
|
244
|
+
|
245
|
+
# http body (model)
|
246
|
+
post_body = opts[:body] || @api_client.object_to_http_body(generate_tls_reporting_record_options)
|
247
|
+
|
248
|
+
# return_type
|
249
|
+
return_type = opts[:return_type] || 'GenerateTlsReportingRecordResults'
|
250
|
+
|
251
|
+
# auth_names
|
252
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
253
|
+
|
254
|
+
new_options = opts.merge(
|
255
|
+
:header_params => header_params,
|
256
|
+
:query_params => query_params,
|
257
|
+
:form_params => form_params,
|
258
|
+
:body => post_body,
|
259
|
+
:auth_names => auth_names,
|
260
|
+
:return_type => return_type
|
261
|
+
)
|
262
|
+
|
263
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
264
|
+
if @api_client.config.debugging
|
265
|
+
@api_client.config.logger.debug "API called: ToolsControllerApi#generate_tls_reporting_record\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
266
|
+
end
|
267
|
+
return data, status_code, headers
|
268
|
+
end
|
269
|
+
|
270
|
+
# Lookup a BIMI record policy
|
271
|
+
# @param lookup_bimi_domain_options [LookupBimiDomainOptions]
|
272
|
+
# @param [Hash] opts the optional parameters
|
273
|
+
# @return [LookupBimiDomainResults]
|
274
|
+
def lookup_bimi_domain(lookup_bimi_domain_options, opts = {})
|
275
|
+
data, _status_code, _headers = lookup_bimi_domain_with_http_info(lookup_bimi_domain_options, opts)
|
276
|
+
data
|
277
|
+
end
|
278
|
+
|
279
|
+
# Lookup a BIMI record policy
|
280
|
+
# @param lookup_bimi_domain_options [LookupBimiDomainOptions]
|
281
|
+
# @param [Hash] opts the optional parameters
|
282
|
+
# @return [Array<(LookupBimiDomainResults, Integer, Hash)>] LookupBimiDomainResults data, response status code and response headers
|
283
|
+
def lookup_bimi_domain_with_http_info(lookup_bimi_domain_options, opts = {})
|
284
|
+
if @api_client.config.debugging
|
285
|
+
@api_client.config.logger.debug 'Calling API: ToolsControllerApi.lookup_bimi_domain ...'
|
286
|
+
end
|
287
|
+
# verify the required parameter 'lookup_bimi_domain_options' is set
|
288
|
+
if @api_client.config.client_side_validation && lookup_bimi_domain_options.nil?
|
289
|
+
fail ArgumentError, "Missing the required parameter 'lookup_bimi_domain_options' when calling ToolsControllerApi.lookup_bimi_domain"
|
290
|
+
end
|
291
|
+
# resource path
|
292
|
+
local_var_path = '/tools/lookup-bimi-domain'
|
293
|
+
|
294
|
+
# query parameters
|
295
|
+
query_params = opts[:query_params] || {}
|
296
|
+
|
297
|
+
# header parameters
|
298
|
+
header_params = opts[:header_params] || {}
|
299
|
+
# HTTP header 'Accept' (if needed)
|
300
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
301
|
+
# HTTP header 'Content-Type'
|
302
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
303
|
+
|
304
|
+
# form parameters
|
305
|
+
form_params = opts[:form_params] || {}
|
306
|
+
|
307
|
+
# http body (model)
|
308
|
+
post_body = opts[:body] || @api_client.object_to_http_body(lookup_bimi_domain_options)
|
309
|
+
|
310
|
+
# return_type
|
311
|
+
return_type = opts[:return_type] || 'LookupBimiDomainResults'
|
312
|
+
|
313
|
+
# auth_names
|
314
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
315
|
+
|
316
|
+
new_options = opts.merge(
|
317
|
+
:header_params => header_params,
|
318
|
+
:query_params => query_params,
|
319
|
+
:form_params => form_params,
|
320
|
+
:body => post_body,
|
321
|
+
:auth_names => auth_names,
|
322
|
+
:return_type => return_type
|
323
|
+
)
|
324
|
+
|
325
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
326
|
+
if @api_client.config.debugging
|
327
|
+
@api_client.config.logger.debug "API called: ToolsControllerApi#lookup_bimi_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
328
|
+
end
|
329
|
+
return data, status_code, headers
|
330
|
+
end
|
331
|
+
|
332
|
+
# Lookup a DMARC record policy
|
333
|
+
# @param lookup_dmarc_domain_options [LookupDmarcDomainOptions]
|
334
|
+
# @param [Hash] opts the optional parameters
|
335
|
+
# @return [LookupDmarcDomainResults]
|
336
|
+
def lookup_dmarc_domain(lookup_dmarc_domain_options, opts = {})
|
337
|
+
data, _status_code, _headers = lookup_dmarc_domain_with_http_info(lookup_dmarc_domain_options, opts)
|
338
|
+
data
|
339
|
+
end
|
340
|
+
|
341
|
+
# Lookup a DMARC record policy
|
342
|
+
# @param lookup_dmarc_domain_options [LookupDmarcDomainOptions]
|
343
|
+
# @param [Hash] opts the optional parameters
|
344
|
+
# @return [Array<(LookupDmarcDomainResults, Integer, Hash)>] LookupDmarcDomainResults data, response status code and response headers
|
345
|
+
def lookup_dmarc_domain_with_http_info(lookup_dmarc_domain_options, opts = {})
|
346
|
+
if @api_client.config.debugging
|
347
|
+
@api_client.config.logger.debug 'Calling API: ToolsControllerApi.lookup_dmarc_domain ...'
|
348
|
+
end
|
349
|
+
# verify the required parameter 'lookup_dmarc_domain_options' is set
|
350
|
+
if @api_client.config.client_side_validation && lookup_dmarc_domain_options.nil?
|
351
|
+
fail ArgumentError, "Missing the required parameter 'lookup_dmarc_domain_options' when calling ToolsControllerApi.lookup_dmarc_domain"
|
352
|
+
end
|
353
|
+
# resource path
|
354
|
+
local_var_path = '/tools/lookup-dmarc-domain'
|
355
|
+
|
356
|
+
# query parameters
|
357
|
+
query_params = opts[:query_params] || {}
|
358
|
+
|
359
|
+
# header parameters
|
360
|
+
header_params = opts[:header_params] || {}
|
361
|
+
# HTTP header 'Accept' (if needed)
|
362
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
363
|
+
# HTTP header 'Content-Type'
|
364
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
365
|
+
|
366
|
+
# form parameters
|
367
|
+
form_params = opts[:form_params] || {}
|
368
|
+
|
369
|
+
# http body (model)
|
370
|
+
post_body = opts[:body] || @api_client.object_to_http_body(lookup_dmarc_domain_options)
|
371
|
+
|
372
|
+
# return_type
|
373
|
+
return_type = opts[:return_type] || 'LookupDmarcDomainResults'
|
374
|
+
|
375
|
+
# auth_names
|
376
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
377
|
+
|
378
|
+
new_options = opts.merge(
|
379
|
+
:header_params => header_params,
|
380
|
+
:query_params => query_params,
|
381
|
+
:form_params => form_params,
|
382
|
+
:body => post_body,
|
383
|
+
:auth_names => auth_names,
|
384
|
+
:return_type => return_type
|
385
|
+
)
|
386
|
+
|
387
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
388
|
+
if @api_client.config.debugging
|
389
|
+
@api_client.config.logger.debug "API called: ToolsControllerApi#lookup_dmarc_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
390
|
+
end
|
391
|
+
return data, status_code, headers
|
392
|
+
end
|
393
|
+
|
394
|
+
# Lookup a MTA-STS domain policy
|
395
|
+
# @param lookup_mta_sts_domain_options [LookupMtaStsDomainOptions]
|
396
|
+
# @param [Hash] opts the optional parameters
|
397
|
+
# @return [LookupMtaStsDomainResults]
|
398
|
+
def lookup_mta_sts_domain(lookup_mta_sts_domain_options, opts = {})
|
399
|
+
data, _status_code, _headers = lookup_mta_sts_domain_with_http_info(lookup_mta_sts_domain_options, opts)
|
400
|
+
data
|
401
|
+
end
|
402
|
+
|
403
|
+
# Lookup a MTA-STS domain policy
|
404
|
+
# @param lookup_mta_sts_domain_options [LookupMtaStsDomainOptions]
|
405
|
+
# @param [Hash] opts the optional parameters
|
406
|
+
# @return [Array<(LookupMtaStsDomainResults, Integer, Hash)>] LookupMtaStsDomainResults data, response status code and response headers
|
407
|
+
def lookup_mta_sts_domain_with_http_info(lookup_mta_sts_domain_options, opts = {})
|
408
|
+
if @api_client.config.debugging
|
409
|
+
@api_client.config.logger.debug 'Calling API: ToolsControllerApi.lookup_mta_sts_domain ...'
|
410
|
+
end
|
411
|
+
# verify the required parameter 'lookup_mta_sts_domain_options' is set
|
412
|
+
if @api_client.config.client_side_validation && lookup_mta_sts_domain_options.nil?
|
413
|
+
fail ArgumentError, "Missing the required parameter 'lookup_mta_sts_domain_options' when calling ToolsControllerApi.lookup_mta_sts_domain"
|
414
|
+
end
|
415
|
+
# resource path
|
416
|
+
local_var_path = '/tools/lookup-mta-sts-domain'
|
417
|
+
|
418
|
+
# query parameters
|
419
|
+
query_params = opts[:query_params] || {}
|
420
|
+
|
421
|
+
# header parameters
|
422
|
+
header_params = opts[:header_params] || {}
|
423
|
+
# HTTP header 'Accept' (if needed)
|
424
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
425
|
+
# HTTP header 'Content-Type'
|
426
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
427
|
+
|
428
|
+
# form parameters
|
429
|
+
form_params = opts[:form_params] || {}
|
430
|
+
|
431
|
+
# http body (model)
|
432
|
+
post_body = opts[:body] || @api_client.object_to_http_body(lookup_mta_sts_domain_options)
|
433
|
+
|
434
|
+
# return_type
|
435
|
+
return_type = opts[:return_type] || 'LookupMtaStsDomainResults'
|
436
|
+
|
437
|
+
# auth_names
|
438
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
439
|
+
|
440
|
+
new_options = opts.merge(
|
441
|
+
:header_params => header_params,
|
442
|
+
:query_params => query_params,
|
443
|
+
:form_params => form_params,
|
444
|
+
:body => post_body,
|
445
|
+
:auth_names => auth_names,
|
446
|
+
:return_type => return_type
|
447
|
+
)
|
448
|
+
|
449
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
450
|
+
if @api_client.config.debugging
|
451
|
+
@api_client.config.logger.debug "API called: ToolsControllerApi#lookup_mta_sts_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
452
|
+
end
|
453
|
+
return data, status_code, headers
|
454
|
+
end
|
455
|
+
|
456
|
+
# Lookup a TLS reporting domain policy
|
457
|
+
# @param lookup_tls_reporting_domain_options [LookupTlsReportingDomainOptions]
|
458
|
+
# @param [Hash] opts the optional parameters
|
459
|
+
# @return [LookupTlsReportingDomainResults]
|
460
|
+
def lookup_tls_reporting_domain(lookup_tls_reporting_domain_options, opts = {})
|
461
|
+
data, _status_code, _headers = lookup_tls_reporting_domain_with_http_info(lookup_tls_reporting_domain_options, opts)
|
462
|
+
data
|
463
|
+
end
|
464
|
+
|
465
|
+
# Lookup a TLS reporting domain policy
|
466
|
+
# @param lookup_tls_reporting_domain_options [LookupTlsReportingDomainOptions]
|
467
|
+
# @param [Hash] opts the optional parameters
|
468
|
+
# @return [Array<(LookupTlsReportingDomainResults, Integer, Hash)>] LookupTlsReportingDomainResults data, response status code and response headers
|
469
|
+
def lookup_tls_reporting_domain_with_http_info(lookup_tls_reporting_domain_options, opts = {})
|
470
|
+
if @api_client.config.debugging
|
471
|
+
@api_client.config.logger.debug 'Calling API: ToolsControllerApi.lookup_tls_reporting_domain ...'
|
472
|
+
end
|
473
|
+
# verify the required parameter 'lookup_tls_reporting_domain_options' is set
|
474
|
+
if @api_client.config.client_side_validation && lookup_tls_reporting_domain_options.nil?
|
475
|
+
fail ArgumentError, "Missing the required parameter 'lookup_tls_reporting_domain_options' when calling ToolsControllerApi.lookup_tls_reporting_domain"
|
476
|
+
end
|
477
|
+
# resource path
|
478
|
+
local_var_path = '/tools/lookup-tls-reporting-domain'
|
479
|
+
|
480
|
+
# query parameters
|
481
|
+
query_params = opts[:query_params] || {}
|
482
|
+
|
483
|
+
# header parameters
|
484
|
+
header_params = opts[:header_params] || {}
|
485
|
+
# HTTP header 'Accept' (if needed)
|
486
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
487
|
+
# HTTP header 'Content-Type'
|
488
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
489
|
+
|
490
|
+
# form parameters
|
491
|
+
form_params = opts[:form_params] || {}
|
492
|
+
|
493
|
+
# http body (model)
|
494
|
+
post_body = opts[:body] || @api_client.object_to_http_body(lookup_tls_reporting_domain_options)
|
495
|
+
|
496
|
+
# return_type
|
497
|
+
return_type = opts[:return_type] || 'LookupTlsReportingDomainResults'
|
498
|
+
|
499
|
+
# auth_names
|
500
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
501
|
+
|
502
|
+
new_options = opts.merge(
|
503
|
+
:header_params => header_params,
|
504
|
+
:query_params => query_params,
|
505
|
+
:form_params => form_params,
|
506
|
+
:body => post_body,
|
507
|
+
:auth_names => auth_names,
|
508
|
+
:return_type => return_type
|
509
|
+
)
|
510
|
+
|
511
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
512
|
+
if @api_client.config.debugging
|
513
|
+
@api_client.config.logger.debug "API called: ToolsControllerApi#lookup_tls_reporting_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
514
|
+
end
|
515
|
+
return data, status_code, headers
|
516
|
+
end
|
517
|
+
end
|
518
|
+
end
|
@@ -19,12 +19,12 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
-
attr_accessor :inbox_id
|
23
|
-
|
24
22
|
attr_accessor :user_id
|
25
23
|
|
26
24
|
attr_accessor :email_address
|
27
25
|
|
26
|
+
attr_accessor :inbox_id
|
27
|
+
|
28
28
|
attr_accessor :created_at
|
29
29
|
|
30
30
|
attr_accessor :updated_at
|
@@ -36,9 +36,9 @@ module MailSlurpClient
|
|
36
36
|
{
|
37
37
|
:'name' => :'name',
|
38
38
|
:'id' => :'id',
|
39
|
-
:'inbox_id' => :'inboxId',
|
40
39
|
:'user_id' => :'userId',
|
41
40
|
:'email_address' => :'emailAddress',
|
41
|
+
:'inbox_id' => :'inboxId',
|
42
42
|
:'created_at' => :'createdAt',
|
43
43
|
:'updated_at' => :'updatedAt',
|
44
44
|
:'use_threads' => :'useThreads'
|
@@ -50,9 +50,9 @@ module MailSlurpClient
|
|
50
50
|
{
|
51
51
|
:'name' => :'String',
|
52
52
|
:'id' => :'String',
|
53
|
-
:'inbox_id' => :'String',
|
54
53
|
:'user_id' => :'String',
|
55
54
|
:'email_address' => :'String',
|
55
|
+
:'inbox_id' => :'String',
|
56
56
|
:'created_at' => :'DateTime',
|
57
57
|
:'updated_at' => :'DateTime',
|
58
58
|
:'use_threads' => :'Boolean'
|
@@ -88,10 +88,6 @@ module MailSlurpClient
|
|
88
88
|
self.id = attributes[:'id']
|
89
89
|
end
|
90
90
|
|
91
|
-
if attributes.key?(:'inbox_id')
|
92
|
-
self.inbox_id = attributes[:'inbox_id']
|
93
|
-
end
|
94
|
-
|
95
91
|
if attributes.key?(:'user_id')
|
96
92
|
self.user_id = attributes[:'user_id']
|
97
93
|
end
|
@@ -100,6 +96,10 @@ module MailSlurpClient
|
|
100
96
|
self.email_address = attributes[:'email_address']
|
101
97
|
end
|
102
98
|
|
99
|
+
if attributes.key?(:'inbox_id')
|
100
|
+
self.inbox_id = attributes[:'inbox_id']
|
101
|
+
end
|
102
|
+
|
103
103
|
if attributes.key?(:'created_at')
|
104
104
|
self.created_at = attributes[:'created_at']
|
105
105
|
end
|
@@ -121,10 +121,6 @@ module MailSlurpClient
|
|
121
121
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
122
122
|
end
|
123
123
|
|
124
|
-
if @inbox_id.nil?
|
125
|
-
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
126
|
-
end
|
127
|
-
|
128
124
|
if @user_id.nil?
|
129
125
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
130
126
|
end
|
@@ -133,6 +129,10 @@ module MailSlurpClient
|
|
133
129
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
134
130
|
end
|
135
131
|
|
132
|
+
if @inbox_id.nil?
|
133
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
134
|
+
end
|
135
|
+
|
136
136
|
if @created_at.nil?
|
137
137
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
138
138
|
end
|
@@ -148,9 +148,9 @@ module MailSlurpClient
|
|
148
148
|
# @return true if the model is valid
|
149
149
|
def valid?
|
150
150
|
return false if @id.nil?
|
151
|
-
return false if @inbox_id.nil?
|
152
151
|
return false if @user_id.nil?
|
153
152
|
return false if @email_address.nil?
|
153
|
+
return false if @inbox_id.nil?
|
154
154
|
return false if @created_at.nil?
|
155
155
|
return false if @updated_at.nil?
|
156
156
|
true
|
@@ -163,9 +163,9 @@ module MailSlurpClient
|
|
163
163
|
self.class == o.class &&
|
164
164
|
name == o.name &&
|
165
165
|
id == o.id &&
|
166
|
-
inbox_id == o.inbox_id &&
|
167
166
|
user_id == o.user_id &&
|
168
167
|
email_address == o.email_address &&
|
168
|
+
inbox_id == o.inbox_id &&
|
169
169
|
created_at == o.created_at &&
|
170
170
|
updated_at == o.updated_at &&
|
171
171
|
use_threads == o.use_threads
|
@@ -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
|
-
[name, id,
|
183
|
+
[name, id, user_id, email_address, inbox_id, created_at, updated_at, use_threads].hash
|
184
184
|
end
|
185
185
|
|
186
186
|
# Builds the object from hash
|