mailslurp_client 15.5.6 → 15.6.0
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/api_internal_controller_api.rb +89 -0
- data/lib/mailslurp_client/api/bounce_controller_api.rb +64 -0
- data/lib/mailslurp_client/api/email_verification_controller_api.rb +179 -0
- data/lib/mailslurp_client/api/mail_server_controller_api.rb +2 -2
- data/lib/mailslurp_client/models/alias_projection.rb +13 -13
- data/lib/mailslurp_client/models/bounce_recipient.rb +0 -5
- data/lib/mailslurp_client/models/bounced_recipient_dto.rb +0 -5
- data/lib/mailslurp_client/models/email_projection.rb +12 -12
- data/lib/mailslurp_client/models/email_validation_request.rb +276 -0
- data/lib/mailslurp_client/models/filter_bounced_recipients_options.rb +213 -0
- data/lib/mailslurp_client/models/filter_bounced_recipients_result.rb +213 -0
- data/lib/mailslurp_client/models/get_or_create_saml_user_options.rb +234 -0
- data/lib/mailslurp_client/models/page_email_validation_request.rb +308 -0
- data/lib/mailslurp_client/models/send_email_options.rb +36 -4
- data/lib/mailslurp_client/models/sent_email_dto.rb +13 -4
- data/lib/mailslurp_client/models/sent_email_projection.rb +17 -17
- data/lib/mailslurp_client/models/template_projection.rb +18 -18
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/user_dto.rb +438 -0
- data/lib/mailslurp_client/models/validate_email_address_list_options.rb +213 -0
- data/lib/mailslurp_client/models/validate_email_address_list_result.rb +245 -0
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +10 -0
- metadata +12 -2
@@ -0,0 +1,245 @@
|
|
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
|
+
Contact: contact@mailslurp.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module MailSlurpClient
|
16
|
+
class ValidateEmailAddressListResult
|
17
|
+
attr_accessor :valid_email_addresses
|
18
|
+
|
19
|
+
attr_accessor :invalid_email_addresses
|
20
|
+
|
21
|
+
attr_accessor :result_map_email_address_is_valid
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'valid_email_addresses' => :'validEmailAddresses',
|
27
|
+
:'invalid_email_addresses' => :'invalidEmailAddresses',
|
28
|
+
:'result_map_email_address_is_valid' => :'resultMapEmailAddressIsValid'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# Attribute type mapping.
|
33
|
+
def self.openapi_types
|
34
|
+
{
|
35
|
+
:'valid_email_addresses' => :'Array<String>',
|
36
|
+
:'invalid_email_addresses' => :'Array<String>',
|
37
|
+
:'result_map_email_address_is_valid' => :'Hash<String, Boolean>'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# List of attributes with nullable: true
|
42
|
+
def self.openapi_nullable
|
43
|
+
Set.new([
|
44
|
+
])
|
45
|
+
end
|
46
|
+
|
47
|
+
# Initializes the object
|
48
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
49
|
+
def initialize(attributes = {})
|
50
|
+
if (!attributes.is_a?(Hash))
|
51
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::ValidateEmailAddressListResult` initialize method"
|
52
|
+
end
|
53
|
+
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
57
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::ValidateEmailAddressListResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
58
|
+
end
|
59
|
+
h[k.to_sym] = v
|
60
|
+
}
|
61
|
+
|
62
|
+
if attributes.key?(:'valid_email_addresses')
|
63
|
+
if (value = attributes[:'valid_email_addresses']).is_a?(Array)
|
64
|
+
self.valid_email_addresses = value
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.key?(:'invalid_email_addresses')
|
69
|
+
if (value = attributes[:'invalid_email_addresses']).is_a?(Array)
|
70
|
+
self.invalid_email_addresses = value
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes.key?(:'result_map_email_address_is_valid')
|
75
|
+
if (value = attributes[:'result_map_email_address_is_valid']).is_a?(Hash)
|
76
|
+
self.result_map_email_address_is_valid = value
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
82
|
+
# @return Array for valid properties with the reasons
|
83
|
+
def list_invalid_properties
|
84
|
+
invalid_properties = Array.new
|
85
|
+
if @valid_email_addresses.nil?
|
86
|
+
invalid_properties.push('invalid value for "valid_email_addresses", valid_email_addresses cannot be nil.')
|
87
|
+
end
|
88
|
+
|
89
|
+
if @invalid_email_addresses.nil?
|
90
|
+
invalid_properties.push('invalid value for "invalid_email_addresses", invalid_email_addresses cannot be nil.')
|
91
|
+
end
|
92
|
+
|
93
|
+
if @result_map_email_address_is_valid.nil?
|
94
|
+
invalid_properties.push('invalid value for "result_map_email_address_is_valid", result_map_email_address_is_valid cannot be nil.')
|
95
|
+
end
|
96
|
+
|
97
|
+
invalid_properties
|
98
|
+
end
|
99
|
+
|
100
|
+
# Check to see if the all the properties in the model are valid
|
101
|
+
# @return true if the model is valid
|
102
|
+
def valid?
|
103
|
+
return false if @valid_email_addresses.nil?
|
104
|
+
return false if @invalid_email_addresses.nil?
|
105
|
+
return false if @result_map_email_address_is_valid.nil?
|
106
|
+
true
|
107
|
+
end
|
108
|
+
|
109
|
+
# Checks equality by comparing each attribute.
|
110
|
+
# @param [Object] Object to be compared
|
111
|
+
def ==(o)
|
112
|
+
return true if self.equal?(o)
|
113
|
+
self.class == o.class &&
|
114
|
+
valid_email_addresses == o.valid_email_addresses &&
|
115
|
+
invalid_email_addresses == o.invalid_email_addresses &&
|
116
|
+
result_map_email_address_is_valid == o.result_map_email_address_is_valid
|
117
|
+
end
|
118
|
+
|
119
|
+
# @see the `==` method
|
120
|
+
# @param [Object] Object to be compared
|
121
|
+
def eql?(o)
|
122
|
+
self == o
|
123
|
+
end
|
124
|
+
|
125
|
+
# Calculates hash code according to all attributes.
|
126
|
+
# @return [Integer] Hash code
|
127
|
+
def hash
|
128
|
+
[valid_email_addresses, invalid_email_addresses, result_map_email_address_is_valid].hash
|
129
|
+
end
|
130
|
+
|
131
|
+
# Builds the object from hash
|
132
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
133
|
+
# @return [Object] Returns the model itself
|
134
|
+
def self.build_from_hash(attributes)
|
135
|
+
new.build_from_hash(attributes)
|
136
|
+
end
|
137
|
+
|
138
|
+
# Builds the object from hash
|
139
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
140
|
+
# @return [Object] Returns the model itself
|
141
|
+
def build_from_hash(attributes)
|
142
|
+
return nil unless attributes.is_a?(Hash)
|
143
|
+
self.class.openapi_types.each_pair do |key, type|
|
144
|
+
if type =~ /\AArray<(.*)>/i
|
145
|
+
# check to ensure the input is an array given that the attribute
|
146
|
+
# is documented as an array but the input is not
|
147
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
148
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
149
|
+
end
|
150
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
151
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
152
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
153
|
+
end
|
154
|
+
|
155
|
+
self
|
156
|
+
end
|
157
|
+
|
158
|
+
# Deserializes the data based on type
|
159
|
+
# @param string type Data type
|
160
|
+
# @param string value Value to be deserialized
|
161
|
+
# @return [Object] Deserialized data
|
162
|
+
def _deserialize(type, value)
|
163
|
+
case type.to_sym
|
164
|
+
when :DateTime
|
165
|
+
DateTime.parse(value)
|
166
|
+
when :Date
|
167
|
+
Date.parse(value)
|
168
|
+
when :String
|
169
|
+
value.to_s
|
170
|
+
when :Integer
|
171
|
+
value.to_i
|
172
|
+
when :Float
|
173
|
+
value.to_f
|
174
|
+
when :Boolean
|
175
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
176
|
+
true
|
177
|
+
else
|
178
|
+
false
|
179
|
+
end
|
180
|
+
when :Object
|
181
|
+
# generic object (usually a Hash), return directly
|
182
|
+
value
|
183
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
184
|
+
inner_type = Regexp.last_match[:inner_type]
|
185
|
+
value.map { |v| _deserialize(inner_type, v) }
|
186
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
187
|
+
k_type = Regexp.last_match[:k_type]
|
188
|
+
v_type = Regexp.last_match[:v_type]
|
189
|
+
{}.tap do |hash|
|
190
|
+
value.each do |k, v|
|
191
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
192
|
+
end
|
193
|
+
end
|
194
|
+
else # model
|
195
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
199
|
+
# Returns the string representation of the object
|
200
|
+
# @return [String] String presentation of the object
|
201
|
+
def to_s
|
202
|
+
to_hash.to_s
|
203
|
+
end
|
204
|
+
|
205
|
+
# to_body is an alias to to_hash (backward compatibility)
|
206
|
+
# @return [Hash] Returns the object in the form of hash
|
207
|
+
def to_body
|
208
|
+
to_hash
|
209
|
+
end
|
210
|
+
|
211
|
+
# Returns the object in the form of hash
|
212
|
+
# @return [Hash] Returns the object in the form of hash
|
213
|
+
def to_hash
|
214
|
+
hash = {}
|
215
|
+
self.class.attribute_map.each_pair do |attr, param|
|
216
|
+
value = self.send(attr)
|
217
|
+
if value.nil?
|
218
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
219
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
220
|
+
end
|
221
|
+
|
222
|
+
hash[param] = _to_hash(value)
|
223
|
+
end
|
224
|
+
hash
|
225
|
+
end
|
226
|
+
|
227
|
+
# Outputs non-array value in the form of hash
|
228
|
+
# For object, use to_hash. Otherwise, just return the value
|
229
|
+
# @param [Object] value Any valid value
|
230
|
+
# @return [Hash] Returns the value in the form of hash
|
231
|
+
def _to_hash(value)
|
232
|
+
if value.is_a?(Array)
|
233
|
+
value.compact.map { |v| _to_hash(v) }
|
234
|
+
elsif value.is_a?(Hash)
|
235
|
+
{}.tap do |hash|
|
236
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
237
|
+
end
|
238
|
+
elsif value.respond_to? :to_hash
|
239
|
+
value.to_hash
|
240
|
+
else
|
241
|
+
value
|
242
|
+
end
|
243
|
+
end
|
244
|
+
end
|
245
|
+
end
|
data/lib/mailslurp_client.rb
CHANGED
@@ -62,14 +62,18 @@ require 'mailslurp_client/models/email_preview_urls'
|
|
62
62
|
require 'mailslurp_client/models/email_projection'
|
63
63
|
require 'mailslurp_client/models/email_recipients'
|
64
64
|
require 'mailslurp_client/models/email_text_lines_result'
|
65
|
+
require 'mailslurp_client/models/email_validation_request'
|
65
66
|
require 'mailslurp_client/models/email_verification_result'
|
66
67
|
require 'mailslurp_client/models/expiration_defaults'
|
67
68
|
require 'mailslurp_client/models/expired_inbox_dto'
|
68
69
|
require 'mailslurp_client/models/expired_inbox_record_projection'
|
69
70
|
require 'mailslurp_client/models/export_link'
|
70
71
|
require 'mailslurp_client/models/export_options'
|
72
|
+
require 'mailslurp_client/models/filter_bounced_recipients_options'
|
73
|
+
require 'mailslurp_client/models/filter_bounced_recipients_result'
|
71
74
|
require 'mailslurp_client/models/flush_expired_inboxes_result'
|
72
75
|
require 'mailslurp_client/models/forward_email_options'
|
76
|
+
require 'mailslurp_client/models/get_or_create_saml_user_options'
|
73
77
|
require 'mailslurp_client/models/gravatar_url'
|
74
78
|
require 'mailslurp_client/models/group_contacts_dto'
|
75
79
|
require 'mailslurp_client/models/group_dto'
|
@@ -105,6 +109,7 @@ require 'mailslurp_client/models/page_bounced_recipients'
|
|
105
109
|
require 'mailslurp_client/models/page_contact_projection'
|
106
110
|
require 'mailslurp_client/models/page_email_preview'
|
107
111
|
require 'mailslurp_client/models/page_email_projection'
|
112
|
+
require 'mailslurp_client/models/page_email_validation_request'
|
108
113
|
require 'mailslurp_client/models/page_expired_inbox_record_projection'
|
109
114
|
require 'mailslurp_client/models/page_group_projection'
|
110
115
|
require 'mailslurp_client/models/page_inbox_forwarder_dto'
|
@@ -148,6 +153,9 @@ require 'mailslurp_client/models/update_domain_options'
|
|
148
153
|
require 'mailslurp_client/models/update_group_contacts'
|
149
154
|
require 'mailslurp_client/models/update_inbox_options'
|
150
155
|
require 'mailslurp_client/models/upload_attachment_options'
|
156
|
+
require 'mailslurp_client/models/user_dto'
|
157
|
+
require 'mailslurp_client/models/validate_email_address_list_options'
|
158
|
+
require 'mailslurp_client/models/validate_email_address_list_result'
|
151
159
|
require 'mailslurp_client/models/validation_dto'
|
152
160
|
require 'mailslurp_client/models/validation_message'
|
153
161
|
require 'mailslurp_client/models/verify_email_address_options'
|
@@ -167,6 +175,7 @@ require 'mailslurp_client/models/webhook_test_result'
|
|
167
175
|
|
168
176
|
# APIs
|
169
177
|
require 'mailslurp_client/api/alias_controller_api'
|
178
|
+
require 'mailslurp_client/api/api_internal_controller_api'
|
170
179
|
require 'mailslurp_client/api/attachment_controller_api'
|
171
180
|
require 'mailslurp_client/api/bounce_controller_api'
|
172
181
|
require 'mailslurp_client/api/bulk_actions_controller_api'
|
@@ -174,6 +183,7 @@ require 'mailslurp_client/api/common_actions_controller_api'
|
|
174
183
|
require 'mailslurp_client/api/contact_controller_api'
|
175
184
|
require 'mailslurp_client/api/domain_controller_api'
|
176
185
|
require 'mailslurp_client/api/email_controller_api'
|
186
|
+
require 'mailslurp_client/api/email_verification_controller_api'
|
177
187
|
require 'mailslurp_client/api/expired_controller_api'
|
178
188
|
require 'mailslurp_client/api/export_controller_api'
|
179
189
|
require 'mailslurp_client/api/form_controller_api'
|
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: 15.
|
4
|
+
version: 15.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mailslurp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-02 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.
|
@@ -24,6 +24,7 @@ files:
|
|
24
24
|
- SUPPORT.md
|
25
25
|
- lib/mailslurp_client.rb
|
26
26
|
- lib/mailslurp_client/api/alias_controller_api.rb
|
27
|
+
- lib/mailslurp_client/api/api_internal_controller_api.rb
|
27
28
|
- lib/mailslurp_client/api/attachment_controller_api.rb
|
28
29
|
- lib/mailslurp_client/api/bounce_controller_api.rb
|
29
30
|
- lib/mailslurp_client/api/bulk_actions_controller_api.rb
|
@@ -31,6 +32,7 @@ files:
|
|
31
32
|
- lib/mailslurp_client/api/contact_controller_api.rb
|
32
33
|
- lib/mailslurp_client/api/domain_controller_api.rb
|
33
34
|
- lib/mailslurp_client/api/email_controller_api.rb
|
35
|
+
- lib/mailslurp_client/api/email_verification_controller_api.rb
|
34
36
|
- lib/mailslurp_client/api/expired_controller_api.rb
|
35
37
|
- lib/mailslurp_client/api/export_controller_api.rb
|
36
38
|
- lib/mailslurp_client/api/form_controller_api.rb
|
@@ -93,14 +95,18 @@ files:
|
|
93
95
|
- lib/mailslurp_client/models/email_projection.rb
|
94
96
|
- lib/mailslurp_client/models/email_recipients.rb
|
95
97
|
- lib/mailslurp_client/models/email_text_lines_result.rb
|
98
|
+
- lib/mailslurp_client/models/email_validation_request.rb
|
96
99
|
- lib/mailslurp_client/models/email_verification_result.rb
|
97
100
|
- lib/mailslurp_client/models/expiration_defaults.rb
|
98
101
|
- lib/mailslurp_client/models/expired_inbox_dto.rb
|
99
102
|
- lib/mailslurp_client/models/expired_inbox_record_projection.rb
|
100
103
|
- lib/mailslurp_client/models/export_link.rb
|
101
104
|
- lib/mailslurp_client/models/export_options.rb
|
105
|
+
- lib/mailslurp_client/models/filter_bounced_recipients_options.rb
|
106
|
+
- lib/mailslurp_client/models/filter_bounced_recipients_result.rb
|
102
107
|
- lib/mailslurp_client/models/flush_expired_inboxes_result.rb
|
103
108
|
- lib/mailslurp_client/models/forward_email_options.rb
|
109
|
+
- lib/mailslurp_client/models/get_or_create_saml_user_options.rb
|
104
110
|
- lib/mailslurp_client/models/gravatar_url.rb
|
105
111
|
- lib/mailslurp_client/models/group_contacts_dto.rb
|
106
112
|
- lib/mailslurp_client/models/group_dto.rb
|
@@ -136,6 +142,7 @@ files:
|
|
136
142
|
- lib/mailslurp_client/models/page_contact_projection.rb
|
137
143
|
- lib/mailslurp_client/models/page_email_preview.rb
|
138
144
|
- lib/mailslurp_client/models/page_email_projection.rb
|
145
|
+
- lib/mailslurp_client/models/page_email_validation_request.rb
|
139
146
|
- lib/mailslurp_client/models/page_expired_inbox_record_projection.rb
|
140
147
|
- lib/mailslurp_client/models/page_group_projection.rb
|
141
148
|
- lib/mailslurp_client/models/page_inbox_forwarder_dto.rb
|
@@ -179,6 +186,9 @@ files:
|
|
179
186
|
- lib/mailslurp_client/models/update_group_contacts.rb
|
180
187
|
- lib/mailslurp_client/models/update_inbox_options.rb
|
181
188
|
- lib/mailslurp_client/models/upload_attachment_options.rb
|
189
|
+
- lib/mailslurp_client/models/user_dto.rb
|
190
|
+
- lib/mailslurp_client/models/validate_email_address_list_options.rb
|
191
|
+
- lib/mailslurp_client/models/validate_email_address_list_result.rb
|
182
192
|
- lib/mailslurp_client/models/validation_dto.rb
|
183
193
|
- lib/mailslurp_client/models/validation_message.rb
|
184
194
|
- lib/mailslurp_client/models/verify_email_address_options.rb
|