mailslurp_client 15.18.5 → 15.19.1

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