mailslurp_client 15.18.5 → 15.19.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/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,311 @@
|
|
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 'date'
|
14
|
+
|
15
|
+
module MailSlurpClient
|
16
|
+
class ConnectorImapConnectionDto
|
17
|
+
attr_accessor :connector_id
|
18
|
+
|
19
|
+
attr_accessor :imap_host
|
20
|
+
|
21
|
+
attr_accessor :imap_port
|
22
|
+
|
23
|
+
attr_accessor :imap_username
|
24
|
+
|
25
|
+
attr_accessor :imap_password
|
26
|
+
|
27
|
+
attr_accessor :imap_ssl
|
28
|
+
|
29
|
+
attr_accessor :select_folder
|
30
|
+
|
31
|
+
attr_accessor :search_terms
|
32
|
+
|
33
|
+
attr_accessor :enabled
|
34
|
+
|
35
|
+
attr_accessor :created_at
|
36
|
+
|
37
|
+
attr_accessor :id
|
38
|
+
|
39
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
40
|
+
def self.attribute_map
|
41
|
+
{
|
42
|
+
:'connector_id' => :'connectorId',
|
43
|
+
:'imap_host' => :'imapHost',
|
44
|
+
:'imap_port' => :'imapPort',
|
45
|
+
:'imap_username' => :'imapUsername',
|
46
|
+
:'imap_password' => :'imapPassword',
|
47
|
+
:'imap_ssl' => :'imapSsl',
|
48
|
+
:'select_folder' => :'selectFolder',
|
49
|
+
:'search_terms' => :'searchTerms',
|
50
|
+
:'enabled' => :'enabled',
|
51
|
+
:'created_at' => :'createdAt',
|
52
|
+
:'id' => :'id'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# Attribute type mapping.
|
57
|
+
def self.openapi_types
|
58
|
+
{
|
59
|
+
:'connector_id' => :'String',
|
60
|
+
:'imap_host' => :'String',
|
61
|
+
:'imap_port' => :'Integer',
|
62
|
+
:'imap_username' => :'String',
|
63
|
+
:'imap_password' => :'String',
|
64
|
+
:'imap_ssl' => :'Boolean',
|
65
|
+
:'select_folder' => :'String',
|
66
|
+
:'search_terms' => :'String',
|
67
|
+
:'enabled' => :'Boolean',
|
68
|
+
:'created_at' => :'DateTime',
|
69
|
+
:'id' => :'String'
|
70
|
+
}
|
71
|
+
end
|
72
|
+
|
73
|
+
# List of attributes with nullable: true
|
74
|
+
def self.openapi_nullable
|
75
|
+
Set.new([
|
76
|
+
])
|
77
|
+
end
|
78
|
+
|
79
|
+
# Initializes the object
|
80
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
81
|
+
def initialize(attributes = {})
|
82
|
+
if (!attributes.is_a?(Hash))
|
83
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::ConnectorImapConnectionDto` initialize method"
|
84
|
+
end
|
85
|
+
|
86
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
87
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
88
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
89
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::ConnectorImapConnectionDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
90
|
+
end
|
91
|
+
h[k.to_sym] = v
|
92
|
+
}
|
93
|
+
|
94
|
+
if attributes.key?(:'connector_id')
|
95
|
+
self.connector_id = attributes[:'connector_id']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.key?(:'imap_host')
|
99
|
+
self.imap_host = attributes[:'imap_host']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.key?(:'imap_port')
|
103
|
+
self.imap_port = attributes[:'imap_port']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.key?(:'imap_username')
|
107
|
+
self.imap_username = attributes[:'imap_username']
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes.key?(:'imap_password')
|
111
|
+
self.imap_password = attributes[:'imap_password']
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes.key?(:'imap_ssl')
|
115
|
+
self.imap_ssl = attributes[:'imap_ssl']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes.key?(:'select_folder')
|
119
|
+
self.select_folder = attributes[:'select_folder']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'search_terms')
|
123
|
+
self.search_terms = attributes[:'search_terms']
|
124
|
+
end
|
125
|
+
|
126
|
+
if attributes.key?(:'enabled')
|
127
|
+
self.enabled = attributes[:'enabled']
|
128
|
+
end
|
129
|
+
|
130
|
+
if attributes.key?(:'created_at')
|
131
|
+
self.created_at = attributes[:'created_at']
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes.key?(:'id')
|
135
|
+
self.id = attributes[:'id']
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
140
|
+
# @return Array for valid properties with the reasons
|
141
|
+
def list_invalid_properties
|
142
|
+
invalid_properties = Array.new
|
143
|
+
if @connector_id.nil?
|
144
|
+
invalid_properties.push('invalid value for "connector_id", connector_id cannot be nil.')
|
145
|
+
end
|
146
|
+
|
147
|
+
if @created_at.nil?
|
148
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
149
|
+
end
|
150
|
+
|
151
|
+
if @id.nil?
|
152
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
153
|
+
end
|
154
|
+
|
155
|
+
invalid_properties
|
156
|
+
end
|
157
|
+
|
158
|
+
# Check to see if the all the properties in the model are valid
|
159
|
+
# @return true if the model is valid
|
160
|
+
def valid?
|
161
|
+
return false if @connector_id.nil?
|
162
|
+
return false if @created_at.nil?
|
163
|
+
return false if @id.nil?
|
164
|
+
true
|
165
|
+
end
|
166
|
+
|
167
|
+
# Checks equality by comparing each attribute.
|
168
|
+
# @param [Object] Object to be compared
|
169
|
+
def ==(o)
|
170
|
+
return true if self.equal?(o)
|
171
|
+
self.class == o.class &&
|
172
|
+
connector_id == o.connector_id &&
|
173
|
+
imap_host == o.imap_host &&
|
174
|
+
imap_port == o.imap_port &&
|
175
|
+
imap_username == o.imap_username &&
|
176
|
+
imap_password == o.imap_password &&
|
177
|
+
imap_ssl == o.imap_ssl &&
|
178
|
+
select_folder == o.select_folder &&
|
179
|
+
search_terms == o.search_terms &&
|
180
|
+
enabled == o.enabled &&
|
181
|
+
created_at == o.created_at &&
|
182
|
+
id == o.id
|
183
|
+
end
|
184
|
+
|
185
|
+
# @see the `==` method
|
186
|
+
# @param [Object] Object to be compared
|
187
|
+
def eql?(o)
|
188
|
+
self == o
|
189
|
+
end
|
190
|
+
|
191
|
+
# Calculates hash code according to all attributes.
|
192
|
+
# @return [Integer] Hash code
|
193
|
+
def hash
|
194
|
+
[connector_id, imap_host, imap_port, imap_username, imap_password, imap_ssl, select_folder, search_terms, enabled, created_at, id].hash
|
195
|
+
end
|
196
|
+
|
197
|
+
# Builds the object from hash
|
198
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
199
|
+
# @return [Object] Returns the model itself
|
200
|
+
def self.build_from_hash(attributes)
|
201
|
+
new.build_from_hash(attributes)
|
202
|
+
end
|
203
|
+
|
204
|
+
# Builds the object from hash
|
205
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
206
|
+
# @return [Object] Returns the model itself
|
207
|
+
def build_from_hash(attributes)
|
208
|
+
return nil unless attributes.is_a?(Hash)
|
209
|
+
self.class.openapi_types.each_pair do |key, type|
|
210
|
+
if type =~ /\AArray<(.*)>/i
|
211
|
+
# check to ensure the input is an array given that the attribute
|
212
|
+
# is documented as an array but the input is not
|
213
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
214
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
215
|
+
end
|
216
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
217
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
218
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
219
|
+
end
|
220
|
+
|
221
|
+
self
|
222
|
+
end
|
223
|
+
|
224
|
+
# Deserializes the data based on type
|
225
|
+
# @param string type Data type
|
226
|
+
# @param string value Value to be deserialized
|
227
|
+
# @return [Object] Deserialized data
|
228
|
+
def _deserialize(type, value)
|
229
|
+
case type.to_sym
|
230
|
+
when :DateTime
|
231
|
+
DateTime.parse(value)
|
232
|
+
when :Date
|
233
|
+
Date.parse(value)
|
234
|
+
when :String
|
235
|
+
value.to_s
|
236
|
+
when :Integer
|
237
|
+
value.to_i
|
238
|
+
when :Float
|
239
|
+
value.to_f
|
240
|
+
when :Boolean
|
241
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
242
|
+
true
|
243
|
+
else
|
244
|
+
false
|
245
|
+
end
|
246
|
+
when :Object
|
247
|
+
# generic object (usually a Hash), return directly
|
248
|
+
value
|
249
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
250
|
+
inner_type = Regexp.last_match[:inner_type]
|
251
|
+
value.map { |v| _deserialize(inner_type, v) }
|
252
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
253
|
+
k_type = Regexp.last_match[:k_type]
|
254
|
+
v_type = Regexp.last_match[:v_type]
|
255
|
+
{}.tap do |hash|
|
256
|
+
value.each do |k, v|
|
257
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
258
|
+
end
|
259
|
+
end
|
260
|
+
else # model
|
261
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
# Returns the string representation of the object
|
266
|
+
# @return [String] String presentation of the object
|
267
|
+
def to_s
|
268
|
+
to_hash.to_s
|
269
|
+
end
|
270
|
+
|
271
|
+
# to_body is an alias to to_hash (backward compatibility)
|
272
|
+
# @return [Hash] Returns the object in the form of hash
|
273
|
+
def to_body
|
274
|
+
to_hash
|
275
|
+
end
|
276
|
+
|
277
|
+
# Returns the object in the form of hash
|
278
|
+
# @return [Hash] Returns the object in the form of hash
|
279
|
+
def to_hash
|
280
|
+
hash = {}
|
281
|
+
self.class.attribute_map.each_pair do |attr, param|
|
282
|
+
value = self.send(attr)
|
283
|
+
if value.nil?
|
284
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
285
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
286
|
+
end
|
287
|
+
|
288
|
+
hash[param] = _to_hash(value)
|
289
|
+
end
|
290
|
+
hash
|
291
|
+
end
|
292
|
+
|
293
|
+
# Outputs non-array value in the form of hash
|
294
|
+
# For object, use to_hash. Otherwise, just return the value
|
295
|
+
# @param [Object] value Any valid value
|
296
|
+
# @return [Hash] Returns the value in the form of hash
|
297
|
+
def _to_hash(value)
|
298
|
+
if value.is_a?(Array)
|
299
|
+
value.compact.map { |v| _to_hash(v) }
|
300
|
+
elsif value.is_a?(Hash)
|
301
|
+
{}.tap do |hash|
|
302
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
303
|
+
end
|
304
|
+
elsif value.respond_to? :to_hash
|
305
|
+
value.to_hash
|
306
|
+
else
|
307
|
+
value
|
308
|
+
end
|
309
|
+
end
|
310
|
+
end
|
311
|
+
end
|
@@ -15,20 +15,24 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Connector
|
17
17
|
class ConnectorProjection
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :enabled
|
19
19
|
|
20
20
|
attr_accessor :inbox_id
|
21
21
|
|
22
22
|
attr_accessor :user_id
|
23
23
|
|
24
|
-
attr_accessor :
|
24
|
+
attr_accessor :email_address
|
25
25
|
|
26
|
-
attr_accessor :
|
26
|
+
attr_accessor :sync_enabled
|
27
27
|
|
28
28
|
attr_accessor :sync_schedule_type
|
29
29
|
|
30
30
|
attr_accessor :sync_interval
|
31
31
|
|
32
|
+
attr_accessor :created_at
|
33
|
+
|
34
|
+
attr_accessor :name
|
35
|
+
|
32
36
|
attr_accessor :id
|
33
37
|
|
34
38
|
class EnumAttributeValidator
|
@@ -56,13 +60,15 @@ module MailSlurpClient
|
|
56
60
|
# Attribute mapping from ruby-style variable name to JSON key.
|
57
61
|
def self.attribute_map
|
58
62
|
{
|
59
|
-
:'
|
63
|
+
:'enabled' => :'enabled',
|
60
64
|
:'inbox_id' => :'inboxId',
|
61
65
|
:'user_id' => :'userId',
|
66
|
+
:'email_address' => :'emailAddress',
|
62
67
|
:'sync_enabled' => :'syncEnabled',
|
63
|
-
:'connector_type' => :'connectorType',
|
64
68
|
:'sync_schedule_type' => :'syncScheduleType',
|
65
69
|
:'sync_interval' => :'syncInterval',
|
70
|
+
:'created_at' => :'createdAt',
|
71
|
+
:'name' => :'name',
|
66
72
|
:'id' => :'id'
|
67
73
|
}
|
68
74
|
end
|
@@ -70,13 +76,15 @@ module MailSlurpClient
|
|
70
76
|
# Attribute type mapping.
|
71
77
|
def self.openapi_types
|
72
78
|
{
|
73
|
-
:'
|
79
|
+
:'enabled' => :'Boolean',
|
74
80
|
:'inbox_id' => :'String',
|
75
81
|
:'user_id' => :'String',
|
82
|
+
:'email_address' => :'String',
|
76
83
|
:'sync_enabled' => :'Boolean',
|
77
|
-
:'connector_type' => :'String',
|
78
84
|
:'sync_schedule_type' => :'String',
|
79
85
|
:'sync_interval' => :'Integer',
|
86
|
+
:'created_at' => :'DateTime',
|
87
|
+
:'name' => :'String',
|
80
88
|
:'id' => :'String'
|
81
89
|
}
|
82
90
|
end
|
@@ -102,8 +110,8 @@ module MailSlurpClient
|
|
102
110
|
h[k.to_sym] = v
|
103
111
|
}
|
104
112
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
113
|
+
if attributes.key?(:'enabled')
|
114
|
+
self.enabled = attributes[:'enabled']
|
107
115
|
end
|
108
116
|
|
109
117
|
if attributes.key?(:'inbox_id')
|
@@ -114,12 +122,12 @@ module MailSlurpClient
|
|
114
122
|
self.user_id = attributes[:'user_id']
|
115
123
|
end
|
116
124
|
|
117
|
-
if attributes.key?(:'
|
118
|
-
self.
|
125
|
+
if attributes.key?(:'email_address')
|
126
|
+
self.email_address = attributes[:'email_address']
|
119
127
|
end
|
120
128
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
self.
|
129
|
+
if attributes.key?(:'sync_enabled')
|
130
|
+
self.sync_enabled = attributes[:'sync_enabled']
|
123
131
|
end
|
124
132
|
|
125
133
|
if attributes.key?(:'sync_schedule_type')
|
@@ -130,6 +138,14 @@ module MailSlurpClient
|
|
130
138
|
self.sync_interval = attributes[:'sync_interval']
|
131
139
|
end
|
132
140
|
|
141
|
+
if attributes.key?(:'created_at')
|
142
|
+
self.created_at = attributes[:'created_at']
|
143
|
+
end
|
144
|
+
|
145
|
+
if attributes.key?(:'name')
|
146
|
+
self.name = attributes[:'name']
|
147
|
+
end
|
148
|
+
|
133
149
|
if attributes.key?(:'id')
|
134
150
|
self.id = attributes[:'id']
|
135
151
|
end
|
@@ -139,10 +155,6 @@ module MailSlurpClient
|
|
139
155
|
# @return Array for valid properties with the reasons
|
140
156
|
def list_invalid_properties
|
141
157
|
invalid_properties = Array.new
|
142
|
-
if @created_at.nil?
|
143
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
144
|
-
end
|
145
|
-
|
146
158
|
if @inbox_id.nil?
|
147
159
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
148
160
|
end
|
@@ -151,47 +163,29 @@ module MailSlurpClient
|
|
151
163
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
152
164
|
end
|
153
165
|
|
154
|
-
if @sync_enabled.nil?
|
155
|
-
invalid_properties.push('invalid value for "sync_enabled", sync_enabled cannot be nil.')
|
156
|
-
end
|
157
|
-
|
158
|
-
if @connector_type.nil?
|
159
|
-
invalid_properties.push('invalid value for "connector_type", connector_type cannot be nil.')
|
160
|
-
end
|
161
|
-
|
162
166
|
if @sync_schedule_type.nil?
|
163
167
|
invalid_properties.push('invalid value for "sync_schedule_type", sync_schedule_type cannot be nil.')
|
164
168
|
end
|
165
169
|
|
170
|
+
if @created_at.nil?
|
171
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
172
|
+
end
|
173
|
+
|
166
174
|
invalid_properties
|
167
175
|
end
|
168
176
|
|
169
177
|
# Check to see if the all the properties in the model are valid
|
170
178
|
# @return true if the model is valid
|
171
179
|
def valid?
|
172
|
-
return false if @created_at.nil?
|
173
180
|
return false if @inbox_id.nil?
|
174
181
|
return false if @user_id.nil?
|
175
|
-
return false if @sync_enabled.nil?
|
176
|
-
return false if @connector_type.nil?
|
177
|
-
connector_type_validator = EnumAttributeValidator.new('String', ["IMAP"])
|
178
|
-
return false unless connector_type_validator.valid?(@connector_type)
|
179
182
|
return false if @sync_schedule_type.nil?
|
180
183
|
sync_schedule_type_validator = EnumAttributeValidator.new('String', ["INTERVAL"])
|
181
184
|
return false unless sync_schedule_type_validator.valid?(@sync_schedule_type)
|
185
|
+
return false if @created_at.nil?
|
182
186
|
true
|
183
187
|
end
|
184
188
|
|
185
|
-
# Custom attribute writer method checking allowed values (enum).
|
186
|
-
# @param [Object] connector_type Object to be assigned
|
187
|
-
def connector_type=(connector_type)
|
188
|
-
validator = EnumAttributeValidator.new('String', ["IMAP"])
|
189
|
-
unless validator.valid?(connector_type)
|
190
|
-
fail ArgumentError, "invalid value for \"connector_type\", must be one of #{validator.allowable_values}."
|
191
|
-
end
|
192
|
-
@connector_type = connector_type
|
193
|
-
end
|
194
|
-
|
195
189
|
# Custom attribute writer method checking allowed values (enum).
|
196
190
|
# @param [Object] sync_schedule_type Object to be assigned
|
197
191
|
def sync_schedule_type=(sync_schedule_type)
|
@@ -207,13 +201,15 @@ module MailSlurpClient
|
|
207
201
|
def ==(o)
|
208
202
|
return true if self.equal?(o)
|
209
203
|
self.class == o.class &&
|
210
|
-
|
204
|
+
enabled == o.enabled &&
|
211
205
|
inbox_id == o.inbox_id &&
|
212
206
|
user_id == o.user_id &&
|
207
|
+
email_address == o.email_address &&
|
213
208
|
sync_enabled == o.sync_enabled &&
|
214
|
-
connector_type == o.connector_type &&
|
215
209
|
sync_schedule_type == o.sync_schedule_type &&
|
216
210
|
sync_interval == o.sync_interval &&
|
211
|
+
created_at == o.created_at &&
|
212
|
+
name == o.name &&
|
217
213
|
id == o.id
|
218
214
|
end
|
219
215
|
|
@@ -226,7 +222,7 @@ module MailSlurpClient
|
|
226
222
|
# Calculates hash code according to all attributes.
|
227
223
|
# @return [Integer] Hash code
|
228
224
|
def hash
|
229
|
-
[
|
225
|
+
[enabled, inbox_id, user_id, email_address, sync_enabled, sync_schedule_type, sync_interval, created_at, name, id].hash
|
230
226
|
end
|
231
227
|
|
232
228
|
# Builds the object from hash
|