mailslurp_client 15.19.9 → 15.19.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/models/alias_projection.rb +29 -29
  3. data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
  4. data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
  5. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +15 -15
  6. data/lib/mailslurp_client/models/connector_projection.rb +15 -15
  7. data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
  8. data/lib/mailslurp_client/models/contact_projection.rb +10 -10
  9. data/lib/mailslurp_client/models/email_projection.rb +15 -15
  10. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  11. data/lib/mailslurp_client/models/imap_email_projection.rb +15 -15
  12. data/lib/mailslurp_client/models/imap_mailbox_status.rb +2 -4
  13. data/lib/mailslurp_client/models/imap_update_flags_options.rb +0 -34
  14. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
  15. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +14 -14
  16. data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
  17. data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
  18. data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
  19. data/lib/mailslurp_client/models/sent_email_projection.rb +35 -35
  20. data/lib/mailslurp_client/models/sms_projection.rb +29 -29
  21. data/lib/mailslurp_client/models/template_projection.rb +17 -17
  22. data/lib/mailslurp_client/models/thread_projection.rb +31 -31
  23. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
  24. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
  25. data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
  26. data/lib/mailslurp_client/version.rb +1 -1
  27. metadata +2 -2
@@ -15,14 +15,14 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # ConnectorSyncEventProjection
17
17
  class ConnectorSyncEventProjection
18
+ attr_accessor :created_at
19
+
18
20
  attr_accessor :connector_id
19
21
 
20
22
  attr_accessor :sync_count
21
23
 
22
24
  attr_accessor :sync_status
23
25
 
24
- attr_accessor :created_at
25
-
26
26
  attr_accessor :message
27
27
 
28
28
  attr_accessor :id
@@ -52,10 +52,10 @@ module MailSlurpClient
52
52
  # Attribute mapping from ruby-style variable name to JSON key.
53
53
  def self.attribute_map
54
54
  {
55
+ :'created_at' => :'createdAt',
55
56
  :'connector_id' => :'connectorId',
56
57
  :'sync_count' => :'syncCount',
57
58
  :'sync_status' => :'syncStatus',
58
- :'created_at' => :'createdAt',
59
59
  :'message' => :'message',
60
60
  :'id' => :'id'
61
61
  }
@@ -64,10 +64,10 @@ module MailSlurpClient
64
64
  # Attribute type mapping.
65
65
  def self.openapi_types
66
66
  {
67
+ :'created_at' => :'DateTime',
67
68
  :'connector_id' => :'String',
68
69
  :'sync_count' => :'Integer',
69
70
  :'sync_status' => :'String',
70
- :'created_at' => :'DateTime',
71
71
  :'message' => :'String',
72
72
  :'id' => :'String'
73
73
  }
@@ -94,6 +94,10 @@ module MailSlurpClient
94
94
  h[k.to_sym] = v
95
95
  }
96
96
 
97
+ if attributes.key?(:'created_at')
98
+ self.created_at = attributes[:'created_at']
99
+ end
100
+
97
101
  if attributes.key?(:'connector_id')
98
102
  self.connector_id = attributes[:'connector_id']
99
103
  end
@@ -106,10 +110,6 @@ module MailSlurpClient
106
110
  self.sync_status = attributes[:'sync_status']
107
111
  end
108
112
 
109
- if attributes.key?(:'created_at')
110
- self.created_at = attributes[:'created_at']
111
- end
112
-
113
113
  if attributes.key?(:'message')
114
114
  self.message = attributes[:'message']
115
115
  end
@@ -123,6 +123,10 @@ module MailSlurpClient
123
123
  # @return Array for valid properties with the reasons
124
124
  def list_invalid_properties
125
125
  invalid_properties = Array.new
126
+ if @created_at.nil?
127
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
128
+ end
129
+
126
130
  if @connector_id.nil?
127
131
  invalid_properties.push('invalid value for "connector_id", connector_id cannot be nil.')
128
132
  end
@@ -135,22 +139,18 @@ module MailSlurpClient
135
139
  invalid_properties.push('invalid value for "sync_status", sync_status cannot be nil.')
136
140
  end
137
141
 
138
- if @created_at.nil?
139
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
140
- end
141
-
142
142
  invalid_properties
143
143
  end
144
144
 
145
145
  # Check to see if the all the properties in the model are valid
146
146
  # @return true if the model is valid
147
147
  def valid?
148
+ return false if @created_at.nil?
148
149
  return false if @connector_id.nil?
149
150
  return false if @sync_count.nil?
150
151
  return false if @sync_status.nil?
151
152
  sync_status_validator = EnumAttributeValidator.new('String', ["SUCCESS", "INTERNAL_ERROR", "SUBSCRIPTION_ERROR", "CONNECTION_ERROR", "NOT_FOUND"])
152
153
  return false unless sync_status_validator.valid?(@sync_status)
153
- return false if @created_at.nil?
154
154
  true
155
155
  end
156
156
 
@@ -169,10 +169,10 @@ module MailSlurpClient
169
169
  def ==(o)
170
170
  return true if self.equal?(o)
171
171
  self.class == o.class &&
172
+ created_at == o.created_at &&
172
173
  connector_id == o.connector_id &&
173
174
  sync_count == o.sync_count &&
174
175
  sync_status == o.sync_status &&
175
- created_at == o.created_at &&
176
176
  message == o.message &&
177
177
  id == o.id
178
178
  end
@@ -186,7 +186,7 @@ module MailSlurpClient
186
186
  # Calculates hash code according to all attributes.
187
187
  # @return [Integer] Hash code
188
188
  def hash
189
- [connector_id, sync_count, sync_status, created_at, message, id].hash
189
+ [created_at, connector_id, sync_count, sync_status, message, id].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash
@@ -15,6 +15,8 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Email contact for address book
17
17
  class ContactProjection
18
+ attr_accessor :created_at
19
+
18
20
  attr_accessor :email_address
19
21
 
20
22
  attr_accessor :email_addresses
@@ -27,8 +29,6 @@ module MailSlurpClient
27
29
 
28
30
  attr_accessor :opt_out
29
31
 
30
- attr_accessor :created_at
31
-
32
32
  attr_accessor :id
33
33
 
34
34
  attr_accessor :group_id
@@ -36,13 +36,13 @@ module MailSlurpClient
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
37
37
  def self.attribute_map
38
38
  {
39
+ :'created_at' => :'createdAt',
39
40
  :'email_address' => :'emailAddress',
40
41
  :'email_addresses' => :'emailAddresses',
41
42
  :'first_name' => :'firstName',
42
43
  :'last_name' => :'lastName',
43
44
  :'company' => :'company',
44
45
  :'opt_out' => :'optOut',
45
- :'created_at' => :'createdAt',
46
46
  :'id' => :'id',
47
47
  :'group_id' => :'groupId'
48
48
  }
@@ -51,13 +51,13 @@ module MailSlurpClient
51
51
  # Attribute type mapping.
52
52
  def self.openapi_types
53
53
  {
54
+ :'created_at' => :'DateTime',
54
55
  :'email_address' => :'String',
55
56
  :'email_addresses' => :'Array<String>',
56
57
  :'first_name' => :'String',
57
58
  :'last_name' => :'String',
58
59
  :'company' => :'String',
59
60
  :'opt_out' => :'Boolean',
60
- :'created_at' => :'DateTime',
61
61
  :'id' => :'String',
62
62
  :'group_id' => :'String'
63
63
  }
@@ -91,6 +91,10 @@ module MailSlurpClient
91
91
  h[k.to_sym] = v
92
92
  }
93
93
 
94
+ if attributes.key?(:'created_at')
95
+ self.created_at = attributes[:'created_at']
96
+ end
97
+
94
98
  if attributes.key?(:'email_address')
95
99
  self.email_address = attributes[:'email_address']
96
100
  end
@@ -117,10 +121,6 @@ module MailSlurpClient
117
121
  self.opt_out = attributes[:'opt_out']
118
122
  end
119
123
 
120
- if attributes.key?(:'created_at')
121
- self.created_at = attributes[:'created_at']
122
- end
123
-
124
124
  if attributes.key?(:'id')
125
125
  self.id = attributes[:'id']
126
126
  end
@@ -158,13 +158,13 @@ module MailSlurpClient
158
158
  def ==(o)
159
159
  return true if self.equal?(o)
160
160
  self.class == o.class &&
161
+ created_at == o.created_at &&
161
162
  email_address == o.email_address &&
162
163
  email_addresses == o.email_addresses &&
163
164
  first_name == o.first_name &&
164
165
  last_name == o.last_name &&
165
166
  company == o.company &&
166
167
  opt_out == o.opt_out &&
167
- created_at == o.created_at &&
168
168
  id == o.id &&
169
169
  group_id == o.group_id
170
170
  end
@@ -178,7 +178,7 @@ module MailSlurpClient
178
178
  # Calculates hash code according to all attributes.
179
179
  # @return [Integer] Hash code
180
180
  def hash
181
- [email_address, email_addresses, first_name, last_name, company, opt_out, created_at, id, group_id].hash
181
+ [created_at, email_address, email_addresses, first_name, last_name, company, opt_out, id, group_id].hash
182
182
  end
183
183
 
184
184
  # Builds the object from hash
@@ -15,6 +15,8 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # A compact representation of a full email. Used in list endpoints to keep response sizes low. Body and attachments are not included. To get all fields of the email use the `getEmail` method with the email projection's ID. See `EmailDto` for documentation on projection properties.
17
17
  class EmailProjection
18
+ attr_accessor :created_at
19
+
18
20
  attr_accessor :attachments
19
21
 
20
22
  attr_accessor :inbox_id
@@ -37,8 +39,6 @@ module MailSlurpClient
37
39
 
38
40
  attr_accessor :text_excerpt
39
41
 
40
- attr_accessor :created_at
41
-
42
42
  attr_accessor :subject
43
43
 
44
44
  attr_accessor :id
@@ -48,6 +48,7 @@ module MailSlurpClient
48
48
  # Attribute mapping from ruby-style variable name to JSON key.
49
49
  def self.attribute_map
50
50
  {
51
+ :'created_at' => :'createdAt',
51
52
  :'attachments' => :'attachments',
52
53
  :'inbox_id' => :'inboxId',
53
54
  :'to' => :'to',
@@ -59,7 +60,6 @@ module MailSlurpClient
59
60
  :'team_access' => :'teamAccess',
60
61
  :'body_md5_hash' => :'bodyMD5Hash',
61
62
  :'text_excerpt' => :'textExcerpt',
62
- :'created_at' => :'createdAt',
63
63
  :'subject' => :'subject',
64
64
  :'id' => :'id',
65
65
  :'from' => :'from'
@@ -69,6 +69,7 @@ module MailSlurpClient
69
69
  # Attribute type mapping.
70
70
  def self.openapi_types
71
71
  {
72
+ :'created_at' => :'DateTime',
72
73
  :'attachments' => :'Array<String>',
73
74
  :'inbox_id' => :'String',
74
75
  :'to' => :'Array<String>',
@@ -80,7 +81,6 @@ module MailSlurpClient
80
81
  :'team_access' => :'Boolean',
81
82
  :'body_md5_hash' => :'String',
82
83
  :'text_excerpt' => :'String',
83
- :'created_at' => :'DateTime',
84
84
  :'subject' => :'String',
85
85
  :'id' => :'String',
86
86
  :'from' => :'String'
@@ -117,6 +117,10 @@ module MailSlurpClient
117
117
  h[k.to_sym] = v
118
118
  }
119
119
 
120
+ if attributes.key?(:'created_at')
121
+ self.created_at = attributes[:'created_at']
122
+ end
123
+
120
124
  if attributes.key?(:'attachments')
121
125
  if (value = attributes[:'attachments']).is_a?(Array)
122
126
  self.attachments = value
@@ -169,10 +173,6 @@ module MailSlurpClient
169
173
  self.text_excerpt = attributes[:'text_excerpt']
170
174
  end
171
175
 
172
- if attributes.key?(:'created_at')
173
- self.created_at = attributes[:'created_at']
174
- end
175
-
176
176
  if attributes.key?(:'subject')
177
177
  self.subject = attributes[:'subject']
178
178
  end
@@ -190,6 +190,10 @@ module MailSlurpClient
190
190
  # @return Array for valid properties with the reasons
191
191
  def list_invalid_properties
192
192
  invalid_properties = Array.new
193
+ if @created_at.nil?
194
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
195
+ end
196
+
193
197
  if @inbox_id.nil?
194
198
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
195
199
  end
@@ -206,10 +210,6 @@ module MailSlurpClient
206
210
  invalid_properties.push('invalid value for "team_access", team_access cannot be nil.')
207
211
  end
208
212
 
209
- if @created_at.nil?
210
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
211
- end
212
-
213
213
  if @id.nil?
214
214
  invalid_properties.push('invalid value for "id", id cannot be nil.')
215
215
  end
@@ -220,11 +220,11 @@ module MailSlurpClient
220
220
  # Check to see if the all the properties in the model are valid
221
221
  # @return true if the model is valid
222
222
  def valid?
223
+ return false if @created_at.nil?
223
224
  return false if @inbox_id.nil?
224
225
  return false if @to.nil?
225
226
  return false if @read.nil?
226
227
  return false if @team_access.nil?
227
- return false if @created_at.nil?
228
228
  return false if @id.nil?
229
229
  true
230
230
  end
@@ -234,6 +234,7 @@ module MailSlurpClient
234
234
  def ==(o)
235
235
  return true if self.equal?(o)
236
236
  self.class == o.class &&
237
+ created_at == o.created_at &&
237
238
  attachments == o.attachments &&
238
239
  inbox_id == o.inbox_id &&
239
240
  to == o.to &&
@@ -245,7 +246,6 @@ module MailSlurpClient
245
246
  team_access == o.team_access &&
246
247
  body_md5_hash == o.body_md5_hash &&
247
248
  text_excerpt == o.text_excerpt &&
248
- created_at == o.created_at &&
249
249
  subject == o.subject &&
250
250
  id == o.id &&
251
251
  from == o.from
@@ -260,7 +260,7 @@ module MailSlurpClient
260
260
  # Calculates hash code according to all attributes.
261
261
  # @return [Integer] Hash code
262
262
  def hash
263
- [attachments, inbox_id, to, domain_id, bcc, cc, read, body_excerpt, team_access, body_md5_hash, text_excerpt, created_at, subject, id, from].hash
263
+ [created_at, attachments, inbox_id, to, domain_id, bcc, cc, read, body_excerpt, team_access, body_md5_hash, text_excerpt, subject, id, from].hash
264
264
  end
265
265
 
266
266
  # Builds the object from hash
@@ -15,20 +15,20 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Record of inbox expiration
17
17
  class ExpiredInboxRecordProjection
18
+ attr_accessor :created_at
19
+
18
20
  attr_accessor :email_address
19
21
 
20
22
  attr_accessor :user_id
21
23
 
22
- attr_accessor :created_at
23
-
24
24
  attr_accessor :id
25
25
 
26
26
  # Attribute mapping from ruby-style variable name to JSON key.
27
27
  def self.attribute_map
28
28
  {
29
+ :'created_at' => :'createdAt',
29
30
  :'email_address' => :'emailAddress',
30
31
  :'user_id' => :'userId',
31
- :'created_at' => :'createdAt',
32
32
  :'id' => :'id'
33
33
  }
34
34
  end
@@ -36,9 +36,9 @@ module MailSlurpClient
36
36
  # Attribute type mapping.
37
37
  def self.openapi_types
38
38
  {
39
+ :'created_at' => :'DateTime',
39
40
  :'email_address' => :'String',
40
41
  :'user_id' => :'String',
41
- :'created_at' => :'DateTime',
42
42
  :'id' => :'String'
43
43
  }
44
44
  end
@@ -64,6 +64,10 @@ module MailSlurpClient
64
64
  h[k.to_sym] = v
65
65
  }
66
66
 
67
+ if attributes.key?(:'created_at')
68
+ self.created_at = attributes[:'created_at']
69
+ end
70
+
67
71
  if attributes.key?(:'email_address')
68
72
  self.email_address = attributes[:'email_address']
69
73
  end
@@ -72,10 +76,6 @@ module MailSlurpClient
72
76
  self.user_id = attributes[:'user_id']
73
77
  end
74
78
 
75
- if attributes.key?(:'created_at')
76
- self.created_at = attributes[:'created_at']
77
- end
78
-
79
79
  if attributes.key?(:'id')
80
80
  self.id = attributes[:'id']
81
81
  end
@@ -85,6 +85,10 @@ module MailSlurpClient
85
85
  # @return Array for valid properties with the reasons
86
86
  def list_invalid_properties
87
87
  invalid_properties = Array.new
88
+ if @created_at.nil?
89
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
90
+ end
91
+
88
92
  if @email_address.nil?
89
93
  invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
90
94
  end
@@ -93,10 +97,6 @@ module MailSlurpClient
93
97
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
94
98
  end
95
99
 
96
- if @created_at.nil?
97
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
98
- end
99
-
100
100
  if @id.nil?
101
101
  invalid_properties.push('invalid value for "id", id cannot be nil.')
102
102
  end
@@ -107,9 +107,9 @@ module MailSlurpClient
107
107
  # Check to see if the all the properties in the model are valid
108
108
  # @return true if the model is valid
109
109
  def valid?
110
+ return false if @created_at.nil?
110
111
  return false if @email_address.nil?
111
112
  return false if @user_id.nil?
112
- return false if @created_at.nil?
113
113
  return false if @id.nil?
114
114
  true
115
115
  end
@@ -119,9 +119,9 @@ module MailSlurpClient
119
119
  def ==(o)
120
120
  return true if self.equal?(o)
121
121
  self.class == o.class &&
122
+ created_at == o.created_at &&
122
123
  email_address == o.email_address &&
123
124
  user_id == o.user_id &&
124
- created_at == o.created_at &&
125
125
  id == o.id
126
126
  end
127
127
 
@@ -134,7 +134,7 @@ module MailSlurpClient
134
134
  # Calculates hash code according to all attributes.
135
135
  # @return [Integer] Hash code
136
136
  def hash
137
- [email_address, user_id, created_at, id].hash
137
+ [created_at, email_address, user_id, id].hash
138
138
  end
139
139
 
140
140
  # Builds the object from hash
@@ -14,23 +14,23 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class ImapEmailProjection
17
+ attr_accessor :created_at
18
+
17
19
  attr_accessor :read
18
20
 
19
21
  attr_accessor :uid
20
22
 
21
23
  attr_accessor :seq_num
22
24
 
23
- attr_accessor :created_at
24
-
25
25
  attr_accessor :id
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
28
28
  def self.attribute_map
29
29
  {
30
+ :'created_at' => :'createdAt',
30
31
  :'read' => :'read',
31
32
  :'uid' => :'uid',
32
33
  :'seq_num' => :'seqNum',
33
- :'created_at' => :'createdAt',
34
34
  :'id' => :'id'
35
35
  }
36
36
  end
@@ -38,10 +38,10 @@ module MailSlurpClient
38
38
  # Attribute type mapping.
39
39
  def self.openapi_types
40
40
  {
41
+ :'created_at' => :'DateTime',
41
42
  :'read' => :'Boolean',
42
43
  :'uid' => :'Integer',
43
44
  :'seq_num' => :'Integer',
44
- :'created_at' => :'DateTime',
45
45
  :'id' => :'String'
46
46
  }
47
47
  end
@@ -68,6 +68,10 @@ module MailSlurpClient
68
68
  h[k.to_sym] = v
69
69
  }
70
70
 
71
+ if attributes.key?(:'created_at')
72
+ self.created_at = attributes[:'created_at']
73
+ end
74
+
71
75
  if attributes.key?(:'read')
72
76
  self.read = attributes[:'read']
73
77
  end
@@ -80,10 +84,6 @@ module MailSlurpClient
80
84
  self.seq_num = attributes[:'seq_num']
81
85
  end
82
86
 
83
- if attributes.key?(:'created_at')
84
- self.created_at = attributes[:'created_at']
85
- end
86
-
87
87
  if attributes.key?(:'id')
88
88
  self.id = attributes[:'id']
89
89
  end
@@ -93,6 +93,10 @@ module MailSlurpClient
93
93
  # @return Array for valid properties with the reasons
94
94
  def list_invalid_properties
95
95
  invalid_properties = Array.new
96
+ if @created_at.nil?
97
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
98
+ end
99
+
96
100
  if @uid.nil?
97
101
  invalid_properties.push('invalid value for "uid", uid cannot be nil.')
98
102
  end
@@ -101,10 +105,6 @@ module MailSlurpClient
101
105
  invalid_properties.push('invalid value for "seq_num", seq_num cannot be nil.')
102
106
  end
103
107
 
104
- if @created_at.nil?
105
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
106
- end
107
-
108
108
  if @id.nil?
109
109
  invalid_properties.push('invalid value for "id", id cannot be nil.')
110
110
  end
@@ -115,9 +115,9 @@ module MailSlurpClient
115
115
  # Check to see if the all the properties in the model are valid
116
116
  # @return true if the model is valid
117
117
  def valid?
118
+ return false if @created_at.nil?
118
119
  return false if @uid.nil?
119
120
  return false if @seq_num.nil?
120
- return false if @created_at.nil?
121
121
  return false if @id.nil?
122
122
  true
123
123
  end
@@ -127,10 +127,10 @@ module MailSlurpClient
127
127
  def ==(o)
128
128
  return true if self.equal?(o)
129
129
  self.class == o.class &&
130
+ created_at == o.created_at &&
130
131
  read == o.read &&
131
132
  uid == o.uid &&
132
133
  seq_num == o.seq_num &&
133
- created_at == o.created_at &&
134
134
  id == o.id
135
135
  end
136
136
 
@@ -143,7 +143,7 @@ module MailSlurpClient
143
143
  # Calculates hash code according to all attributes.
144
144
  # @return [Integer] Hash code
145
145
  def hash
146
- [read, uid, seq_num, created_at, id].hash
146
+ [created_at, read, uid, seq_num, id].hash
147
147
  end
148
148
 
149
149
  # Builds the object from hash
@@ -73,7 +73,7 @@ module MailSlurpClient
73
73
  {
74
74
  :'name' => :'String',
75
75
  :'read_only' => :'Boolean',
76
- :'items' => :'Hash<String, Object>',
76
+ :'items' => :'Object',
77
77
  :'flags' => :'Array<String>',
78
78
  :'permanent_flags' => :'Array<String>',
79
79
  :'unseen_seq_num' => :'Integer',
@@ -120,9 +120,7 @@ module MailSlurpClient
120
120
  end
121
121
 
122
122
  if attributes.key?(:'items')
123
- if (value = attributes[:'items']).is_a?(Hash)
124
- self.items = value
125
- end
123
+ self.items = attributes[:'items']
126
124
  end
127
125
 
128
126
  if attributes.key?(:'flags')
@@ -22,28 +22,6 @@ module MailSlurpClient
22
22
 
23
23
  attr_accessor :seq_set
24
24
 
25
- class EnumAttributeValidator
26
- attr_reader :datatype
27
- attr_reader :allowable_values
28
-
29
- def initialize(datatype, allowable_values)
30
- @allowable_values = allowable_values.map do |value|
31
- case datatype.to_s
32
- when /Integer/i
33
- value.to_i
34
- when /Float/i
35
- value.to_f
36
- else
37
- value
38
- end
39
- end
40
- end
41
-
42
- def valid?(value)
43
- !value || allowable_values.include?(value)
44
- end
45
- end
46
-
47
25
  # Attribute mapping from ruby-style variable name to JSON key.
48
26
  def self.attribute_map
49
27
  {
@@ -122,21 +100,9 @@ module MailSlurpClient
122
100
  # @return true if the model is valid
123
101
  def valid?
124
102
  return false if @operation.nil?
125
- operation_validator = EnumAttributeValidator.new('String', ["FLAGS", "+FLAGS", "-FLAGS"])
126
- return false unless operation_validator.valid?(@operation)
127
103
  true
128
104
  end
129
105
 
130
- # Custom attribute writer method checking allowed values (enum).
131
- # @param [Object] operation Object to be assigned
132
- def operation=(operation)
133
- validator = EnumAttributeValidator.new('String', ["FLAGS", "+FLAGS", "-FLAGS"])
134
- unless validator.valid?(operation)
135
- fail ArgumentError, "invalid value for \"operation\", must be one of #{validator.allowable_values}."
136
- end
137
- @operation = operation
138
- end
139
-
140
106
  # Checks equality by comparing each attribute.
141
107
  # @param [Object] Object to be compared
142
108
  def ==(o)