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.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/connector_controller_api.rb +260 -0
  3. data/lib/mailslurp_client/api/domain_controller_api.rb +126 -0
  4. data/lib/mailslurp_client/api/email_controller_api.rb +138 -0
  5. data/lib/mailslurp_client/api/imap_controller_api.rb +279 -0
  6. data/lib/mailslurp_client/api/inbox_controller_api.rb +114 -0
  7. data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +3 -0
  8. data/lib/mailslurp_client/api/mail_server_controller_api.rb +62 -0
  9. data/lib/mailslurp_client/models/alias_projection.rb +29 -29
  10. data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
  11. data/lib/mailslurp_client/models/bounce_projection.rb +29 -29
  12. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +22 -22
  13. data/lib/mailslurp_client/models/connector_dto.rb +42 -108
  14. data/lib/mailslurp_client/models/connector_imap_connection_dto.rb +311 -0
  15. data/lib/mailslurp_client/models/connector_projection.rb +39 -43
  16. data/lib/mailslurp_client/models/connector_smtp_connection_dto.rb +293 -0
  17. data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
  18. data/lib/mailslurp_client/models/contact_projection.rb +10 -10
  19. data/lib/mailslurp_client/models/create_connector_imap_connection_options.rb +286 -0
  20. data/lib/mailslurp_client/models/create_connector_options.rb +38 -87
  21. data/lib/mailslurp_client/models/create_connector_smtp_connection_options.rb +256 -0
  22. data/lib/mailslurp_client/models/dns_lookup_options.rb +1 -1
  23. data/lib/mailslurp_client/models/dns_lookups_options.rb +214 -0
  24. data/lib/mailslurp_client/models/domain_group.rb +261 -0
  25. data/lib/mailslurp_client/models/domain_groups_dto.rb +213 -0
  26. data/lib/mailslurp_client/models/domain_information.rb +274 -0
  27. data/lib/mailslurp_client/models/email_preview_urls.rb +18 -4
  28. data/lib/mailslurp_client/models/email_projection.rb +19 -19
  29. data/lib/mailslurp_client/models/email_screenshot_result.rb +211 -0
  30. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  31. data/lib/mailslurp_client/models/get_email_screenshot_options.rb +220 -0
  32. data/lib/mailslurp_client/models/imap_access_details.rb +273 -0
  33. data/lib/mailslurp_client/models/imap_email_projection.rb +239 -0
  34. data/lib/mailslurp_client/models/{create_connector_imap_options.rb → imap_server_fetch_item.rb} +55 -49
  35. data/lib/mailslurp_client/models/imap_server_fetch_result.rb +208 -0
  36. data/lib/mailslurp_client/models/{create_connector_imap_fetch_options.rb → imap_server_list_options.rb} +18 -16
  37. data/lib/mailslurp_client/models/imap_server_list_result.rb +213 -0
  38. data/lib/mailslurp_client/models/imap_server_search_options.rb +318 -0
  39. data/lib/mailslurp_client/models/imap_server_search_result.rb +213 -0
  40. data/lib/mailslurp_client/models/imap_smtp_access_details.rb +16 -1
  41. data/lib/mailslurp_client/models/imap_update_flags_options.rb +277 -0
  42. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
  43. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +10 -10
  44. data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
  45. data/lib/mailslurp_client/models/match_option.rb +4 -4
  46. data/lib/mailslurp_client/models/missed_email_projection.rb +14 -14
  47. data/lib/mailslurp_client/models/page_alias.rb +15 -15
  48. data/lib/mailslurp_client/models/page_attachment_entity.rb +15 -15
  49. data/lib/mailslurp_client/models/page_bounced_email.rb +15 -15
  50. data/lib/mailslurp_client/models/page_bounced_recipients.rb +15 -15
  51. data/lib/mailslurp_client/models/page_complaint.rb +15 -15
  52. data/lib/mailslurp_client/models/page_connector.rb +15 -15
  53. data/lib/mailslurp_client/models/page_connector_sync_events.rb +15 -15
  54. data/lib/mailslurp_client/models/page_contact_projection.rb +15 -15
  55. data/lib/mailslurp_client/models/page_delivery_status.rb +15 -15
  56. data/lib/mailslurp_client/models/page_email_preview.rb +15 -15
  57. data/lib/mailslurp_client/models/page_email_projection.rb +15 -15
  58. data/lib/mailslurp_client/models/page_email_validation_request.rb +15 -15
  59. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +15 -15
  60. data/lib/mailslurp_client/models/page_group_projection.rb +15 -15
  61. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +15 -15
  62. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +15 -15
  63. data/lib/mailslurp_client/models/page_inbox_projection.rb +15 -15
  64. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +15 -15
  65. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +15 -15
  66. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +15 -15
  67. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +15 -15
  68. data/lib/mailslurp_client/models/page_missed_email_projection.rb +15 -15
  69. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +15 -15
  70. data/lib/mailslurp_client/models/page_phone_number_projection.rb +15 -15
  71. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +15 -15
  72. data/lib/mailslurp_client/models/page_sent_email_projection.rb +15 -15
  73. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +15 -15
  74. data/lib/mailslurp_client/models/page_sms_projection.rb +15 -15
  75. data/lib/mailslurp_client/models/page_template_projection.rb +15 -15
  76. data/lib/mailslurp_client/models/page_thread_projection.rb +15 -15
  77. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +15 -15
  78. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +15 -15
  79. data/lib/mailslurp_client/models/page_webhook_projection.rb +15 -15
  80. data/lib/mailslurp_client/models/page_webhook_result.rb +15 -15
  81. data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
  82. data/lib/mailslurp_client/models/sent_email_projection.rb +35 -35
  83. data/lib/mailslurp_client/models/sms_match_option.rb +2 -2
  84. data/lib/mailslurp_client/models/sms_projection.rb +29 -29
  85. data/lib/mailslurp_client/models/smtp_access_details.rb +329 -0
  86. data/lib/mailslurp_client/models/template_projection.rb +17 -17
  87. data/lib/mailslurp_client/models/thread_projection.rb +35 -35
  88. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
  89. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
  90. data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
  91. data/lib/mailslurp_client/version.rb +1 -1
  92. data/lib/mailslurp_client.rb +21 -2
  93. metadata +23 -4
@@ -15,10 +15,6 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Email attachment data
17
17
  class AttachmentProjection
18
- attr_accessor :created_at
19
-
20
- attr_accessor :updated_at
21
-
22
18
  attr_accessor :user_id
23
19
 
24
20
  # Content ID of attachment.
@@ -27,6 +23,10 @@ module MailSlurpClient
27
23
  # Attachment ID
28
24
  attr_accessor :attachment_id
29
25
 
26
+ attr_accessor :created_at
27
+
28
+ attr_accessor :updated_at
29
+
30
30
  attr_accessor :name
31
31
 
32
32
  # Content length of attachment in bytes
@@ -38,11 +38,11 @@ module MailSlurpClient
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
39
39
  def self.attribute_map
40
40
  {
41
- :'created_at' => :'createdAt',
42
- :'updated_at' => :'updatedAt',
43
41
  :'user_id' => :'userId',
44
42
  :'content_id' => :'contentId',
45
43
  :'attachment_id' => :'attachmentId',
44
+ :'created_at' => :'createdAt',
45
+ :'updated_at' => :'updatedAt',
46
46
  :'name' => :'name',
47
47
  :'content_length' => :'contentLength',
48
48
  :'content_type' => :'contentType'
@@ -52,11 +52,11 @@ module MailSlurpClient
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
- :'created_at' => :'DateTime',
56
- :'updated_at' => :'DateTime',
57
55
  :'user_id' => :'String',
58
56
  :'content_id' => :'String',
59
57
  :'attachment_id' => :'String',
58
+ :'created_at' => :'DateTime',
59
+ :'updated_at' => :'DateTime',
60
60
  :'name' => :'String',
61
61
  :'content_length' => :'Integer',
62
62
  :'content_type' => :'String'
@@ -88,14 +88,6 @@ module MailSlurpClient
88
88
  h[k.to_sym] = v
89
89
  }
90
90
 
91
- if attributes.key?(:'created_at')
92
- self.created_at = attributes[:'created_at']
93
- end
94
-
95
- if attributes.key?(:'updated_at')
96
- self.updated_at = attributes[:'updated_at']
97
- end
98
-
99
91
  if attributes.key?(:'user_id')
100
92
  self.user_id = attributes[:'user_id']
101
93
  end
@@ -108,6 +100,14 @@ module MailSlurpClient
108
100
  self.attachment_id = attributes[:'attachment_id']
109
101
  end
110
102
 
103
+ if attributes.key?(:'created_at')
104
+ self.created_at = attributes[:'created_at']
105
+ end
106
+
107
+ if attributes.key?(:'updated_at')
108
+ self.updated_at = attributes[:'updated_at']
109
+ end
110
+
111
111
  if attributes.key?(:'name')
112
112
  self.name = attributes[:'name']
113
113
  end
@@ -125,14 +125,6 @@ module MailSlurpClient
125
125
  # @return Array for valid properties with the reasons
126
126
  def list_invalid_properties
127
127
  invalid_properties = Array.new
128
- if @created_at.nil?
129
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
130
- end
131
-
132
- if @updated_at.nil?
133
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
134
- end
135
-
136
128
  if @user_id.nil?
137
129
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
138
130
  end
@@ -141,16 +133,24 @@ module MailSlurpClient
141
133
  invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
142
134
  end
143
135
 
136
+ if @created_at.nil?
137
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
138
+ end
139
+
140
+ if @updated_at.nil?
141
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
142
+ end
143
+
144
144
  invalid_properties
145
145
  end
146
146
 
147
147
  # Check to see if the all the properties in the model are valid
148
148
  # @return true if the model is valid
149
149
  def valid?
150
- return false if @created_at.nil?
151
- return false if @updated_at.nil?
152
150
  return false if @user_id.nil?
153
151
  return false if @attachment_id.nil?
152
+ return false if @created_at.nil?
153
+ return false if @updated_at.nil?
154
154
  true
155
155
  end
156
156
 
@@ -159,11 +159,11 @@ module MailSlurpClient
159
159
  def ==(o)
160
160
  return true if self.equal?(o)
161
161
  self.class == o.class &&
162
- created_at == o.created_at &&
163
- updated_at == o.updated_at &&
164
162
  user_id == o.user_id &&
165
163
  content_id == o.content_id &&
166
164
  attachment_id == o.attachment_id &&
165
+ created_at == o.created_at &&
166
+ updated_at == o.updated_at &&
167
167
  name == o.name &&
168
168
  content_length == o.content_length &&
169
169
  content_type == o.content_type
@@ -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
- [created_at, updated_at, user_id, content_id, attachment_id, name, content_length, content_type].hash
181
+ [user_id, content_id, attachment_id, created_at, updated_at, name, content_length, content_type].hash
182
182
  end
183
183
 
184
184
  # Builds the object from hash
@@ -15,26 +15,26 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Bounced email event
17
17
  class BounceProjection
18
- attr_accessor :created_at
18
+ attr_accessor :subject
19
19
 
20
20
  attr_accessor :sender
21
21
 
22
- attr_accessor :bounce_type
23
-
24
22
  attr_accessor :bounce_mta
25
23
 
26
- attr_accessor :subject
24
+ attr_accessor :bounce_type
25
+
26
+ attr_accessor :created_at
27
27
 
28
28
  attr_accessor :id
29
29
 
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
33
- :'created_at' => :'createdAt',
33
+ :'subject' => :'subject',
34
34
  :'sender' => :'sender',
35
- :'bounce_type' => :'bounceType',
36
35
  :'bounce_mta' => :'bounceMta',
37
- :'subject' => :'subject',
36
+ :'bounce_type' => :'bounceType',
37
+ :'created_at' => :'createdAt',
38
38
  :'id' => :'id'
39
39
  }
40
40
  end
@@ -42,11 +42,11 @@ module MailSlurpClient
42
42
  # Attribute type mapping.
43
43
  def self.openapi_types
44
44
  {
45
- :'created_at' => :'DateTime',
45
+ :'subject' => :'String',
46
46
  :'sender' => :'String',
47
- :'bounce_type' => :'String',
48
47
  :'bounce_mta' => :'String',
49
- :'subject' => :'String',
48
+ :'bounce_type' => :'String',
49
+ :'created_at' => :'DateTime',
50
50
  :'id' => :'String'
51
51
  }
52
52
  end
@@ -54,9 +54,9 @@ module MailSlurpClient
54
54
  # List of attributes with nullable: true
55
55
  def self.openapi_nullable
56
56
  Set.new([
57
- :'bounce_type',
58
- :'bounce_mta',
59
57
  :'subject',
58
+ :'bounce_mta',
59
+ :'bounce_type',
60
60
  ])
61
61
  end
62
62
 
@@ -75,24 +75,24 @@ module MailSlurpClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'created_at')
79
- self.created_at = attributes[:'created_at']
78
+ if attributes.key?(:'subject')
79
+ self.subject = attributes[:'subject']
80
80
  end
81
81
 
82
82
  if attributes.key?(:'sender')
83
83
  self.sender = attributes[:'sender']
84
84
  end
85
85
 
86
- if attributes.key?(:'bounce_type')
87
- self.bounce_type = attributes[:'bounce_type']
88
- end
89
-
90
86
  if attributes.key?(:'bounce_mta')
91
87
  self.bounce_mta = attributes[:'bounce_mta']
92
88
  end
93
89
 
94
- if attributes.key?(:'subject')
95
- self.subject = attributes[:'subject']
90
+ if attributes.key?(:'bounce_type')
91
+ self.bounce_type = attributes[:'bounce_type']
92
+ end
93
+
94
+ if attributes.key?(:'created_at')
95
+ self.created_at = attributes[:'created_at']
96
96
  end
97
97
 
98
98
  if attributes.key?(:'id')
@@ -104,22 +104,22 @@ module MailSlurpClient
104
104
  # @return Array for valid properties with the reasons
105
105
  def list_invalid_properties
106
106
  invalid_properties = Array.new
107
- if @created_at.nil?
108
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
109
- end
110
-
111
107
  if @sender.nil?
112
108
  invalid_properties.push('invalid value for "sender", sender cannot be nil.')
113
109
  end
114
110
 
111
+ if @created_at.nil?
112
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
113
+ end
114
+
115
115
  invalid_properties
116
116
  end
117
117
 
118
118
  # Check to see if the all the properties in the model are valid
119
119
  # @return true if the model is valid
120
120
  def valid?
121
- return false if @created_at.nil?
122
121
  return false if @sender.nil?
122
+ return false if @created_at.nil?
123
123
  true
124
124
  end
125
125
 
@@ -128,11 +128,11 @@ module MailSlurpClient
128
128
  def ==(o)
129
129
  return true if self.equal?(o)
130
130
  self.class == o.class &&
131
- created_at == o.created_at &&
131
+ subject == o.subject &&
132
132
  sender == o.sender &&
133
- bounce_type == o.bounce_type &&
134
133
  bounce_mta == o.bounce_mta &&
135
- subject == o.subject &&
134
+ bounce_type == o.bounce_type &&
135
+ created_at == o.created_at &&
136
136
  id == o.id
137
137
  end
138
138
 
@@ -145,7 +145,7 @@ module MailSlurpClient
145
145
  # Calculates hash code according to all attributes.
146
146
  # @return [Integer] Hash code
147
147
  def hash
148
- [created_at, sender, bounce_type, bounce_mta, subject, id].hash
148
+ [subject, sender, bounce_mta, bounce_type, created_at, id].hash
149
149
  end
150
150
 
151
151
  # Builds the object from hash
@@ -15,15 +15,15 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Bounced recipient
17
17
  class BounceRecipientProjection
18
- attr_accessor :created_at
19
-
20
18
  attr_accessor :sent_email_id
21
19
 
22
20
  attr_accessor :recipient
23
21
 
22
+ attr_accessor :action
23
+
24
24
  attr_accessor :bounce_type
25
25
 
26
- attr_accessor :action
26
+ attr_accessor :created_at
27
27
 
28
28
  attr_accessor :id
29
29
 
@@ -32,11 +32,11 @@ module MailSlurpClient
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'created_at' => :'createdAt',
36
35
  :'sent_email_id' => :'sentEmailId',
37
36
  :'recipient' => :'recipient',
38
- :'bounce_type' => :'bounceType',
39
37
  :'action' => :'action',
38
+ :'bounce_type' => :'bounceType',
39
+ :'created_at' => :'createdAt',
40
40
  :'id' => :'id',
41
41
  :'status' => :'status'
42
42
  }
@@ -45,11 +45,11 @@ module MailSlurpClient
45
45
  # Attribute type mapping.
46
46
  def self.openapi_types
47
47
  {
48
- :'created_at' => :'DateTime',
49
48
  :'sent_email_id' => :'String',
50
49
  :'recipient' => :'String',
51
- :'bounce_type' => :'String',
52
50
  :'action' => :'String',
51
+ :'bounce_type' => :'String',
52
+ :'created_at' => :'DateTime',
53
53
  :'id' => :'String',
54
54
  :'status' => :'String'
55
55
  }
@@ -59,8 +59,8 @@ module MailSlurpClient
59
59
  def self.openapi_nullable
60
60
  Set.new([
61
61
  :'sent_email_id',
62
- :'bounce_type',
63
62
  :'action',
63
+ :'bounce_type',
64
64
  :'status'
65
65
  ])
66
66
  end
@@ -80,10 +80,6 @@ module MailSlurpClient
80
80
  h[k.to_sym] = v
81
81
  }
82
82
 
83
- if attributes.key?(:'created_at')
84
- self.created_at = attributes[:'created_at']
85
- end
86
-
87
83
  if attributes.key?(:'sent_email_id')
88
84
  self.sent_email_id = attributes[:'sent_email_id']
89
85
  end
@@ -92,12 +88,16 @@ module MailSlurpClient
92
88
  self.recipient = attributes[:'recipient']
93
89
  end
94
90
 
91
+ if attributes.key?(:'action')
92
+ self.action = attributes[:'action']
93
+ end
94
+
95
95
  if attributes.key?(:'bounce_type')
96
96
  self.bounce_type = attributes[:'bounce_type']
97
97
  end
98
98
 
99
- if attributes.key?(:'action')
100
- self.action = attributes[:'action']
99
+ if attributes.key?(:'created_at')
100
+ self.created_at = attributes[:'created_at']
101
101
  end
102
102
 
103
103
  if attributes.key?(:'id')
@@ -113,22 +113,22 @@ module MailSlurpClient
113
113
  # @return Array for valid properties with the reasons
114
114
  def list_invalid_properties
115
115
  invalid_properties = Array.new
116
- if @created_at.nil?
117
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
118
- end
119
-
120
116
  if @recipient.nil?
121
117
  invalid_properties.push('invalid value for "recipient", recipient cannot be nil.')
122
118
  end
123
119
 
120
+ if @created_at.nil?
121
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
122
+ end
123
+
124
124
  invalid_properties
125
125
  end
126
126
 
127
127
  # Check to see if the all the properties in the model are valid
128
128
  # @return true if the model is valid
129
129
  def valid?
130
- return false if @created_at.nil?
131
130
  return false if @recipient.nil?
131
+ return false if @created_at.nil?
132
132
  true
133
133
  end
134
134
 
@@ -137,11 +137,11 @@ module MailSlurpClient
137
137
  def ==(o)
138
138
  return true if self.equal?(o)
139
139
  self.class == o.class &&
140
- created_at == o.created_at &&
141
140
  sent_email_id == o.sent_email_id &&
142
141
  recipient == o.recipient &&
143
- bounce_type == o.bounce_type &&
144
142
  action == o.action &&
143
+ bounce_type == o.bounce_type &&
144
+ created_at == o.created_at &&
145
145
  id == o.id &&
146
146
  status == o.status
147
147
  end
@@ -155,7 +155,7 @@ module MailSlurpClient
155
155
  # Calculates hash code according to all attributes.
156
156
  # @return [Integer] Hash code
157
157
  def hash
158
- [created_at, sent_email_id, recipient, bounce_type, action, id, status].hash
158
+ [sent_email_id, recipient, action, bounce_type, created_at, id, status].hash
159
159
  end
160
160
 
161
161
  # Builds the object from hash
@@ -16,13 +16,13 @@ module MailSlurpClient
16
16
  class ConnectorDto
17
17
  attr_accessor :id
18
18
 
19
+ attr_accessor :name
20
+
19
21
  attr_accessor :enabled
20
22
 
21
23
  attr_accessor :user_id
22
24
 
23
- attr_accessor :connector_type
24
-
25
- attr_accessor :connector_auth_type
25
+ attr_accessor :inbox_id
26
26
 
27
27
  attr_accessor :sync_enabled
28
28
 
@@ -30,19 +30,9 @@ module MailSlurpClient
30
30
 
31
31
  attr_accessor :sync_interval
32
32
 
33
- attr_accessor :imap_host
34
-
35
- attr_accessor :imap_port
36
-
37
- attr_accessor :imap_username
38
-
39
- attr_accessor :imap_password
33
+ attr_accessor :has_imap_connection
40
34
 
41
- attr_accessor :imap_ssl
42
-
43
- attr_accessor :select_folder
44
-
45
- attr_accessor :search_terms
35
+ attr_accessor :has_smtp_connection
46
36
 
47
37
  attr_accessor :created_at
48
38
 
@@ -72,20 +62,15 @@ module MailSlurpClient
72
62
  def self.attribute_map
73
63
  {
74
64
  :'id' => :'id',
65
+ :'name' => :'name',
75
66
  :'enabled' => :'enabled',
76
67
  :'user_id' => :'userId',
77
- :'connector_type' => :'connectorType',
78
- :'connector_auth_type' => :'connectorAuthType',
68
+ :'inbox_id' => :'inboxId',
79
69
  :'sync_enabled' => :'syncEnabled',
80
70
  :'sync_schedule_type' => :'syncScheduleType',
81
71
  :'sync_interval' => :'syncInterval',
82
- :'imap_host' => :'imapHost',
83
- :'imap_port' => :'imapPort',
84
- :'imap_username' => :'imapUsername',
85
- :'imap_password' => :'imapPassword',
86
- :'imap_ssl' => :'imapSsl',
87
- :'select_folder' => :'selectFolder',
88
- :'search_terms' => :'searchTerms',
72
+ :'has_imap_connection' => :'hasImapConnection',
73
+ :'has_smtp_connection' => :'hasSmtpConnection',
89
74
  :'created_at' => :'createdAt'
90
75
  }
91
76
  end
@@ -94,20 +79,15 @@ module MailSlurpClient
94
79
  def self.openapi_types
95
80
  {
96
81
  :'id' => :'String',
82
+ :'name' => :'String',
97
83
  :'enabled' => :'Boolean',
98
84
  :'user_id' => :'String',
99
- :'connector_type' => :'String',
100
- :'connector_auth_type' => :'String',
85
+ :'inbox_id' => :'String',
101
86
  :'sync_enabled' => :'Boolean',
102
87
  :'sync_schedule_type' => :'String',
103
88
  :'sync_interval' => :'Integer',
104
- :'imap_host' => :'String',
105
- :'imap_port' => :'Integer',
106
- :'imap_username' => :'String',
107
- :'imap_password' => :'String',
108
- :'imap_ssl' => :'Boolean',
109
- :'select_folder' => :'String',
110
- :'search_terms' => :'String',
89
+ :'has_imap_connection' => :'Boolean',
90
+ :'has_smtp_connection' => :'Boolean',
111
91
  :'created_at' => :'DateTime'
112
92
  }
113
93
  end
@@ -115,6 +95,9 @@ module MailSlurpClient
115
95
  # List of attributes with nullable: true
116
96
  def self.openapi_nullable
117
97
  Set.new([
98
+ :'name',
99
+ :'sync_schedule_type',
100
+ :'sync_interval',
118
101
  ])
119
102
  end
120
103
 
@@ -137,6 +120,10 @@ module MailSlurpClient
137
120
  self.id = attributes[:'id']
138
121
  end
139
122
 
123
+ if attributes.key?(:'name')
124
+ self.name = attributes[:'name']
125
+ end
126
+
140
127
  if attributes.key?(:'enabled')
141
128
  self.enabled = attributes[:'enabled']
142
129
  end
@@ -145,12 +132,8 @@ module MailSlurpClient
145
132
  self.user_id = attributes[:'user_id']
146
133
  end
147
134
 
148
- if attributes.key?(:'connector_type')
149
- self.connector_type = attributes[:'connector_type']
150
- end
151
-
152
- if attributes.key?(:'connector_auth_type')
153
- self.connector_auth_type = attributes[:'connector_auth_type']
135
+ if attributes.key?(:'inbox_id')
136
+ self.inbox_id = attributes[:'inbox_id']
154
137
  end
155
138
 
156
139
  if attributes.key?(:'sync_enabled')
@@ -165,32 +148,12 @@ module MailSlurpClient
165
148
  self.sync_interval = attributes[:'sync_interval']
166
149
  end
167
150
 
168
- if attributes.key?(:'imap_host')
169
- self.imap_host = attributes[:'imap_host']
170
- end
171
-
172
- if attributes.key?(:'imap_port')
173
- self.imap_port = attributes[:'imap_port']
174
- end
175
-
176
- if attributes.key?(:'imap_username')
177
- self.imap_username = attributes[:'imap_username']
178
- end
179
-
180
- if attributes.key?(:'imap_password')
181
- self.imap_password = attributes[:'imap_password']
151
+ if attributes.key?(:'has_imap_connection')
152
+ self.has_imap_connection = attributes[:'has_imap_connection']
182
153
  end
183
154
 
184
- if attributes.key?(:'imap_ssl')
185
- self.imap_ssl = attributes[:'imap_ssl']
186
- end
187
-
188
- if attributes.key?(:'select_folder')
189
- self.select_folder = attributes[:'select_folder']
190
- end
191
-
192
- if attributes.key?(:'search_terms')
193
- self.search_terms = attributes[:'search_terms']
155
+ if attributes.key?(:'has_smtp_connection')
156
+ self.has_smtp_connection = attributes[:'has_smtp_connection']
194
157
  end
195
158
 
196
159
  if attributes.key?(:'created_at')
@@ -214,20 +177,20 @@ module MailSlurpClient
214
177
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
215
178
  end
216
179
 
217
- if @connector_type.nil?
218
- invalid_properties.push('invalid value for "connector_type", connector_type cannot be nil.')
219
- end
220
-
221
- if @connector_auth_type.nil?
222
- invalid_properties.push('invalid value for "connector_auth_type", connector_auth_type cannot be nil.')
180
+ if @inbox_id.nil?
181
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
223
182
  end
224
183
 
225
184
  if @sync_enabled.nil?
226
185
  invalid_properties.push('invalid value for "sync_enabled", sync_enabled cannot be nil.')
227
186
  end
228
187
 
229
- if @sync_schedule_type.nil?
230
- invalid_properties.push('invalid value for "sync_schedule_type", sync_schedule_type cannot be nil.')
188
+ if @has_imap_connection.nil?
189
+ invalid_properties.push('invalid value for "has_imap_connection", has_imap_connection cannot be nil.')
190
+ end
191
+
192
+ if @has_smtp_connection.nil?
193
+ invalid_properties.push('invalid value for "has_smtp_connection", has_smtp_connection cannot be nil.')
231
194
  end
232
195
 
233
196
  if @created_at.nil?
@@ -243,40 +206,16 @@ module MailSlurpClient
243
206
  return false if @id.nil?
244
207
  return false if @enabled.nil?
245
208
  return false if @user_id.nil?
246
- return false if @connector_type.nil?
247
- connector_type_validator = EnumAttributeValidator.new('String', ["IMAP"])
248
- return false unless connector_type_validator.valid?(@connector_type)
249
- return false if @connector_auth_type.nil?
250
- connector_auth_type_validator = EnumAttributeValidator.new('String', ["PLAIN_TEXT"])
251
- return false unless connector_auth_type_validator.valid?(@connector_auth_type)
209
+ return false if @inbox_id.nil?
252
210
  return false if @sync_enabled.nil?
253
- return false if @sync_schedule_type.nil?
254
211
  sync_schedule_type_validator = EnumAttributeValidator.new('String', ["INTERVAL"])
255
212
  return false unless sync_schedule_type_validator.valid?(@sync_schedule_type)
213
+ return false if @has_imap_connection.nil?
214
+ return false if @has_smtp_connection.nil?
256
215
  return false if @created_at.nil?
257
216
  true
258
217
  end
259
218
 
260
- # Custom attribute writer method checking allowed values (enum).
261
- # @param [Object] connector_type Object to be assigned
262
- def connector_type=(connector_type)
263
- validator = EnumAttributeValidator.new('String', ["IMAP"])
264
- unless validator.valid?(connector_type)
265
- fail ArgumentError, "invalid value for \"connector_type\", must be one of #{validator.allowable_values}."
266
- end
267
- @connector_type = connector_type
268
- end
269
-
270
- # Custom attribute writer method checking allowed values (enum).
271
- # @param [Object] connector_auth_type Object to be assigned
272
- def connector_auth_type=(connector_auth_type)
273
- validator = EnumAttributeValidator.new('String', ["PLAIN_TEXT"])
274
- unless validator.valid?(connector_auth_type)
275
- fail ArgumentError, "invalid value for \"connector_auth_type\", must be one of #{validator.allowable_values}."
276
- end
277
- @connector_auth_type = connector_auth_type
278
- end
279
-
280
219
  # Custom attribute writer method checking allowed values (enum).
281
220
  # @param [Object] sync_schedule_type Object to be assigned
282
221
  def sync_schedule_type=(sync_schedule_type)
@@ -293,20 +232,15 @@ module MailSlurpClient
293
232
  return true if self.equal?(o)
294
233
  self.class == o.class &&
295
234
  id == o.id &&
235
+ name == o.name &&
296
236
  enabled == o.enabled &&
297
237
  user_id == o.user_id &&
298
- connector_type == o.connector_type &&
299
- connector_auth_type == o.connector_auth_type &&
238
+ inbox_id == o.inbox_id &&
300
239
  sync_enabled == o.sync_enabled &&
301
240
  sync_schedule_type == o.sync_schedule_type &&
302
241
  sync_interval == o.sync_interval &&
303
- imap_host == o.imap_host &&
304
- imap_port == o.imap_port &&
305
- imap_username == o.imap_username &&
306
- imap_password == o.imap_password &&
307
- imap_ssl == o.imap_ssl &&
308
- select_folder == o.select_folder &&
309
- search_terms == o.search_terms &&
242
+ has_imap_connection == o.has_imap_connection &&
243
+ has_smtp_connection == o.has_smtp_connection &&
310
244
  created_at == o.created_at
311
245
  end
312
246
 
@@ -319,7 +253,7 @@ module MailSlurpClient
319
253
  # Calculates hash code according to all attributes.
320
254
  # @return [Integer] Hash code
321
255
  def hash
322
- [id, enabled, user_id, connector_type, connector_auth_type, sync_enabled, sync_schedule_type, sync_interval, imap_host, imap_port, imap_username, imap_password, imap_ssl, select_folder, search_terms, created_at].hash
256
+ [id, name, enabled, user_id, inbox_id, sync_enabled, sync_schedule_type, sync_interval, has_imap_connection, has_smtp_connection, created_at].hash
323
257
  end
324
258
 
325
259
  # Builds the object from hash