sendmux-management 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -0
  3. data/lib/sendmux/management/client.rb +4 -0
  4. data/lib/sendmux/management/version.rb +1 -1
  5. data/lib/sendmux_management_generated/api/billing_api.rb +2 -2
  6. data/lib/sendmux_management_generated/api/connection_api.rb +82 -0
  7. data/lib/sendmux_management_generated/api/domains_api.rb +2 -2
  8. data/lib/sendmux_management_generated/models/balance.rb +1 -1
  9. data/lib/sendmux_management_generated/models/connection.rb +273 -0
  10. data/lib/sendmux_management_generated/models/connection_credential.rb +226 -0
  11. data/lib/sendmux_management_generated/models/connection_mailboxes_inner.rb +190 -0
  12. data/lib/sendmux_management_generated/models/connection_response.rb +223 -0
  13. data/lib/sendmux_management_generated/models/connection_team.rb +190 -0
  14. data/lib/sendmux_management_generated/models/delivery_log_detail.rb +534 -0
  15. data/lib/sendmux_management_generated/models/delivery_log_item.rb +112 -1
  16. data/lib/sendmux_management_generated/models/delivery_log_item_response.rb +1 -1
  17. data/lib/sendmux_management_generated/models/delivery_log_recipient.rb +254 -0
  18. data/lib/sendmux_management_generated/models/mailbox_domain.rb +53 -1
  19. data/lib/sendmux_management_generated/models/mailbox_domain_verify_checks.rb +3 -3
  20. data/lib/sendmux_management_generated/models/mailbox_domain_verify_result.rb +111 -3
  21. data/lib/sendmux_management_generated/models/management_create_mailbox_request.rb +11 -0
  22. data/lib/sendmux_management_generated/models/provider_create_body.rb +1 -0
  23. data/lib/sendmux_management_generated/models/provider_item.rb +1 -1
  24. data/lib/sendmux_management_generated/models/provider_update_body.rb +1 -0
  25. data/lib/sendmux_management_generated.rb +8 -0
  26. metadata +20 -6
@@ -15,6 +15,9 @@ require 'time'
15
15
 
16
16
  module Sendmux::Management::Generated
17
17
  class DeliveryLogItem < ApiModelBase
18
+ # Recipient occurrences accepted by the provider, or null when no recipient snapshot exists
19
+ attr_accessor :accepted_recipient_count
20
+
18
21
  attr_accessor :attempts
19
22
 
20
23
  # ISO 8601 creation timestamp
@@ -34,6 +37,12 @@ module Sendmux::Management::Generated
34
37
  # Provider display name
35
38
  attr_accessor :provider_name
36
39
 
40
+ # Total recipient occurrences, or null when no recipient snapshot exists
41
+ attr_accessor :recipient_count
42
+
43
+ # Recipient occurrences rejected by the provider, or null when no recipient snapshot exists
44
+ attr_accessor :rejected_recipient_count
45
+
37
46
  # ISO 8601 timestamp when email was sent
38
47
  attr_accessor :sent_at
39
48
 
@@ -75,6 +84,7 @@ module Sendmux::Management::Generated
75
84
  # Attribute mapping from ruby-style variable name to JSON key.
76
85
  def self.attribute_map
77
86
  {
87
+ :'accepted_recipient_count' => :'accepted_recipient_count',
78
88
  :'attempts' => :'attempts',
79
89
  :'created_at' => :'created_at',
80
90
  :'from_email' => :'from_email',
@@ -82,6 +92,8 @@ module Sendmux::Management::Generated
82
92
  :'message_id' => :'message_id',
83
93
  :'provider_id' => :'provider_id',
84
94
  :'provider_name' => :'provider_name',
95
+ :'recipient_count' => :'recipient_count',
96
+ :'rejected_recipient_count' => :'rejected_recipient_count',
85
97
  :'sent_at' => :'sent_at',
86
98
  :'sent_from_email' => :'sent_from_email',
87
99
  :'size_bytes' => :'size_bytes',
@@ -105,6 +117,7 @@ module Sendmux::Management::Generated
105
117
  # Attribute type mapping.
106
118
  def self.openapi_types
107
119
  {
120
+ :'accepted_recipient_count' => :'Integer',
108
121
  :'attempts' => :'Float',
109
122
  :'created_at' => :'String',
110
123
  :'from_email' => :'String',
@@ -112,6 +125,8 @@ module Sendmux::Management::Generated
112
125
  :'message_id' => :'String',
113
126
  :'provider_id' => :'String',
114
127
  :'provider_name' => :'String',
128
+ :'recipient_count' => :'Integer',
129
+ :'rejected_recipient_count' => :'Integer',
115
130
  :'sent_at' => :'String',
116
131
  :'sent_from_email' => :'String',
117
132
  :'size_bytes' => :'Float',
@@ -125,10 +140,13 @@ module Sendmux::Management::Generated
125
140
  # List of attributes with nullable: true
126
141
  def self.openapi_nullable
127
142
  Set.new([
143
+ :'accepted_recipient_count',
128
144
  :'from_email',
129
145
  :'message_id',
130
146
  :'provider_id',
131
147
  :'provider_name',
148
+ :'recipient_count',
149
+ :'rejected_recipient_count',
132
150
  :'sent_at',
133
151
  :'sent_from_email',
134
152
  :'size_bytes',
@@ -154,6 +172,12 @@ module Sendmux::Management::Generated
154
172
  h[k.to_sym] = v
155
173
  }
156
174
 
175
+ if attributes.key?(:'accepted_recipient_count')
176
+ self.accepted_recipient_count = attributes[:'accepted_recipient_count']
177
+ else
178
+ self.accepted_recipient_count = nil
179
+ end
180
+
157
181
  if attributes.key?(:'attempts')
158
182
  self.attempts = attributes[:'attempts']
159
183
  else
@@ -196,6 +220,18 @@ module Sendmux::Management::Generated
196
220
  self.provider_name = nil
197
221
  end
198
222
 
223
+ if attributes.key?(:'recipient_count')
224
+ self.recipient_count = attributes[:'recipient_count']
225
+ else
226
+ self.recipient_count = nil
227
+ end
228
+
229
+ if attributes.key?(:'rejected_recipient_count')
230
+ self.rejected_recipient_count = attributes[:'rejected_recipient_count']
231
+ else
232
+ self.rejected_recipient_count = nil
233
+ end
234
+
199
235
  if attributes.key?(:'sent_at')
200
236
  self.sent_at = attributes[:'sent_at']
201
237
  else
@@ -244,6 +280,14 @@ module Sendmux::Management::Generated
244
280
  def list_invalid_properties
245
281
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
246
282
  invalid_properties = Array.new
283
+ if @accepted_recipient_count > 50
284
+ invalid_properties.push('invalid value for "accepted_recipient_count", must be smaller than or equal to 50.')
285
+ end
286
+
287
+ if @accepted_recipient_count < 0
288
+ invalid_properties.push('invalid value for "accepted_recipient_count", must be greater than or equal to 0.')
289
+ end
290
+
247
291
  if @attempts.nil?
248
292
  invalid_properties.push('invalid value for "attempts", attempts cannot be nil.')
249
293
  end
@@ -256,6 +300,22 @@ module Sendmux::Management::Generated
256
300
  invalid_properties.push('invalid value for "id", id cannot be nil.')
257
301
  end
258
302
 
303
+ if @recipient_count > 50
304
+ invalid_properties.push('invalid value for "recipient_count", must be smaller than or equal to 50.')
305
+ end
306
+
307
+ if @recipient_count < 0
308
+ invalid_properties.push('invalid value for "recipient_count", must be greater than or equal to 0.')
309
+ end
310
+
311
+ if @rejected_recipient_count > 50
312
+ invalid_properties.push('invalid value for "rejected_recipient_count", must be smaller than or equal to 50.')
313
+ end
314
+
315
+ if @rejected_recipient_count < 0
316
+ invalid_properties.push('invalid value for "rejected_recipient_count", must be greater than or equal to 0.')
317
+ end
318
+
259
319
  if @status.nil?
260
320
  invalid_properties.push('invalid value for "status", status cannot be nil.')
261
321
  end
@@ -267,15 +327,35 @@ module Sendmux::Management::Generated
267
327
  # @return true if the model is valid
268
328
  def valid?
269
329
  warn '[DEPRECATED] the `valid?` method is obsolete'
330
+ return false if @accepted_recipient_count > 50
331
+ return false if @accepted_recipient_count < 0
270
332
  return false if @attempts.nil?
271
333
  return false if @created_at.nil?
272
334
  return false if @id.nil?
335
+ return false if @recipient_count > 50
336
+ return false if @recipient_count < 0
337
+ return false if @rejected_recipient_count > 50
338
+ return false if @rejected_recipient_count < 0
273
339
  return false if @status.nil?
274
340
  status_validator = EnumAttributeValidator.new('String', ["pending", "sent", "failed", "rejected", "unknown_default_open_api"])
275
341
  return false unless status_validator.valid?(@status)
276
342
  true
277
343
  end
278
344
 
345
+ # Custom attribute writer method with validation
346
+ # @param [Object] accepted_recipient_count Value to be assigned
347
+ def accepted_recipient_count=(accepted_recipient_count)
348
+ if !accepted_recipient_count.nil? && accepted_recipient_count > 50
349
+ fail ArgumentError, 'invalid value for "accepted_recipient_count", must be smaller than or equal to 50.'
350
+ end
351
+
352
+ if !accepted_recipient_count.nil? && accepted_recipient_count < 0
353
+ fail ArgumentError, 'invalid value for "accepted_recipient_count", must be greater than or equal to 0.'
354
+ end
355
+
356
+ @accepted_recipient_count = accepted_recipient_count
357
+ end
358
+
279
359
  # Custom attribute writer method with validation
280
360
  # @param [Object] attempts Value to be assigned
281
361
  def attempts=(attempts)
@@ -306,6 +386,34 @@ module Sendmux::Management::Generated
306
386
  @id = id
307
387
  end
308
388
 
389
+ # Custom attribute writer method with validation
390
+ # @param [Object] recipient_count Value to be assigned
391
+ def recipient_count=(recipient_count)
392
+ if !recipient_count.nil? && recipient_count > 50
393
+ fail ArgumentError, 'invalid value for "recipient_count", must be smaller than or equal to 50.'
394
+ end
395
+
396
+ if !recipient_count.nil? && recipient_count < 0
397
+ fail ArgumentError, 'invalid value for "recipient_count", must be greater than or equal to 0.'
398
+ end
399
+
400
+ @recipient_count = recipient_count
401
+ end
402
+
403
+ # Custom attribute writer method with validation
404
+ # @param [Object] rejected_recipient_count Value to be assigned
405
+ def rejected_recipient_count=(rejected_recipient_count)
406
+ if !rejected_recipient_count.nil? && rejected_recipient_count > 50
407
+ fail ArgumentError, 'invalid value for "rejected_recipient_count", must be smaller than or equal to 50.'
408
+ end
409
+
410
+ if !rejected_recipient_count.nil? && rejected_recipient_count < 0
411
+ fail ArgumentError, 'invalid value for "rejected_recipient_count", must be greater than or equal to 0.'
412
+ end
413
+
414
+ @rejected_recipient_count = rejected_recipient_count
415
+ end
416
+
309
417
  # Custom attribute writer method checking allowed values (enum).
310
418
  # @param [Object] status Object to be assigned
311
419
  def status=(status)
@@ -321,6 +429,7 @@ module Sendmux::Management::Generated
321
429
  def ==(o)
322
430
  return true if self.equal?(o)
323
431
  self.class == o.class &&
432
+ accepted_recipient_count == o.accepted_recipient_count &&
324
433
  attempts == o.attempts &&
325
434
  created_at == o.created_at &&
326
435
  from_email == o.from_email &&
@@ -328,6 +437,8 @@ module Sendmux::Management::Generated
328
437
  message_id == o.message_id &&
329
438
  provider_id == o.provider_id &&
330
439
  provider_name == o.provider_name &&
440
+ recipient_count == o.recipient_count &&
441
+ rejected_recipient_count == o.rejected_recipient_count &&
331
442
  sent_at == o.sent_at &&
332
443
  sent_from_email == o.sent_from_email &&
333
444
  size_bytes == o.size_bytes &&
@@ -346,7 +457,7 @@ module Sendmux::Management::Generated
346
457
  # Calculates hash code according to all attributes.
347
458
  # @return [Integer] Hash code
348
459
  def hash
349
- [attempts, created_at, from_email, id, message_id, provider_id, provider_name, sent_at, sent_from_email, size_bytes, status, status_reason, subject, to_email].hash
460
+ [accepted_recipient_count, attempts, created_at, from_email, id, message_id, provider_id, provider_name, recipient_count, rejected_recipient_count, sent_at, sent_from_email, size_bytes, status, status_reason, subject, to_email].hash
350
461
  end
351
462
 
352
463
  # Builds the object from hash
@@ -45,7 +45,7 @@ module Sendmux::Management::Generated
45
45
  {
46
46
  :'meta' => :'ResponseMeta',
47
47
  :'ok' => :'Boolean',
48
- :'data' => :'DeliveryLogItem'
48
+ :'data' => :'DeliveryLogDetail'
49
49
  }
50
50
  end
51
51
 
@@ -0,0 +1,254 @@
1
+ =begin
2
+ #Sendmux API
3
+
4
+ #Programmatic access to your Sendmux email infrastructure.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Sendmux::Management::Generated
17
+ class DeliveryLogRecipient < ApiModelBase
18
+ # Recipient email address
19
+ attr_accessor :email
20
+
21
+ # Recipient-specific rejection reason when available
22
+ attr_accessor :reason
23
+
24
+ # Provider acceptance outcome
25
+ attr_accessor :status
26
+
27
+ # Recipient header type when known
28
+ attr_accessor :type
29
+
30
+ class EnumAttributeValidator
31
+ attr_reader :datatype
32
+ attr_reader :allowable_values
33
+
34
+ def initialize(datatype, allowable_values)
35
+ @allowable_values = allowable_values.map do |value|
36
+ case datatype.to_s
37
+ when /Integer/i
38
+ value.to_i
39
+ when /Float/i
40
+ value.to_f
41
+ else
42
+ value
43
+ end
44
+ end
45
+ end
46
+
47
+ def valid?(value)
48
+ !value || allowable_values.include?(value)
49
+ end
50
+ end
51
+
52
+ # Attribute mapping from ruby-style variable name to JSON key.
53
+ def self.attribute_map
54
+ {
55
+ :'email' => :'email',
56
+ :'reason' => :'reason',
57
+ :'status' => :'status',
58
+ :'type' => :'type'
59
+ }
60
+ end
61
+
62
+ # Returns attribute mapping this model knows about
63
+ def self.acceptable_attribute_map
64
+ attribute_map
65
+ end
66
+
67
+ # Returns all the JSON keys this model knows about
68
+ def self.acceptable_attributes
69
+ acceptable_attribute_map.values
70
+ end
71
+
72
+ # Attribute type mapping.
73
+ def self.openapi_types
74
+ {
75
+ :'email' => :'String',
76
+ :'reason' => :'String',
77
+ :'status' => :'String',
78
+ :'type' => :'String'
79
+ }
80
+ end
81
+
82
+ # List of attributes with nullable: true
83
+ def self.openapi_nullable
84
+ Set.new([
85
+ :'reason',
86
+ :'type'
87
+ ])
88
+ end
89
+
90
+ # Initializes the object
91
+ # @param [Hash] attributes Model attributes in the form of hash
92
+ def initialize(attributes = {})
93
+ if (!attributes.is_a?(Hash))
94
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Sendmux::Management::Generated::DeliveryLogRecipient` initialize method"
95
+ end
96
+
97
+ # check to see if the attribute exists and convert string to symbol for hash key
98
+ acceptable_attribute_map = self.class.acceptable_attribute_map
99
+ attributes = attributes.each_with_object({}) { |(k, v), h|
100
+ if (!acceptable_attribute_map.key?(k.to_sym))
101
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Sendmux::Management::Generated::DeliveryLogRecipient`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
102
+ end
103
+ h[k.to_sym] = v
104
+ }
105
+
106
+ if attributes.key?(:'email')
107
+ self.email = attributes[:'email']
108
+ else
109
+ self.email = nil
110
+ end
111
+
112
+ if attributes.key?(:'reason')
113
+ self.reason = attributes[:'reason']
114
+ else
115
+ self.reason = nil
116
+ end
117
+
118
+ if attributes.key?(:'status')
119
+ self.status = attributes[:'status']
120
+ else
121
+ self.status = nil
122
+ end
123
+
124
+ if attributes.key?(:'type')
125
+ self.type = attributes[:'type']
126
+ else
127
+ self.type = nil
128
+ end
129
+ end
130
+
131
+ # Show invalid properties with the reasons. Usually used together with valid?
132
+ # @return Array for valid properties with the reasons
133
+ def list_invalid_properties
134
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
135
+ invalid_properties = Array.new
136
+ if @email.nil?
137
+ invalid_properties.push('invalid value for "email", email cannot be nil.')
138
+ end
139
+
140
+ if @status.nil?
141
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
142
+ end
143
+
144
+ invalid_properties
145
+ end
146
+
147
+ # Check to see if the all the properties in the model are valid
148
+ # @return true if the model is valid
149
+ def valid?
150
+ warn '[DEPRECATED] the `valid?` method is obsolete'
151
+ return false if @email.nil?
152
+ return false if @status.nil?
153
+ status_validator = EnumAttributeValidator.new('String', ["accepted", "rejected", "unknown_default_open_api"])
154
+ return false unless status_validator.valid?(@status)
155
+ type_validator = EnumAttributeValidator.new('String', ["to", "cc", "bcc", "unknown_default_open_api"])
156
+ return false unless type_validator.valid?(@type)
157
+ true
158
+ end
159
+
160
+ # Custom attribute writer method with validation
161
+ # @param [Object] email Value to be assigned
162
+ def email=(email)
163
+ if email.nil?
164
+ fail ArgumentError, 'email cannot be nil'
165
+ end
166
+
167
+ @email = email
168
+ end
169
+
170
+ # Custom attribute writer method checking allowed values (enum).
171
+ # @param [Object] status Object to be assigned
172
+ def status=(status)
173
+ validator = EnumAttributeValidator.new('String', ["accepted", "rejected", "unknown_default_open_api"])
174
+ unless validator.valid?(status)
175
+ fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
176
+ end
177
+ @status = status
178
+ end
179
+
180
+ # Custom attribute writer method checking allowed values (enum).
181
+ # @param [Object] type Object to be assigned
182
+ def type=(type)
183
+ validator = EnumAttributeValidator.new('String', ["to", "cc", "bcc", "unknown_default_open_api"])
184
+ unless validator.valid?(type)
185
+ fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
186
+ end
187
+ @type = type
188
+ end
189
+
190
+ # Checks equality by comparing each attribute.
191
+ # @param [Object] Object to be compared
192
+ def ==(o)
193
+ return true if self.equal?(o)
194
+ self.class == o.class &&
195
+ email == o.email &&
196
+ reason == o.reason &&
197
+ status == o.status &&
198
+ type == o.type
199
+ end
200
+
201
+ # @see the `==` method
202
+ # @param [Object] Object to be compared
203
+ def eql?(o)
204
+ self == o
205
+ end
206
+
207
+ # Calculates hash code according to all attributes.
208
+ # @return [Integer] Hash code
209
+ def hash
210
+ [email, reason, status, type].hash
211
+ end
212
+
213
+ # Builds the object from hash
214
+ # @param [Hash] attributes Model attributes in the form of hash
215
+ # @return [Object] Returns the model itself
216
+ def self.build_from_hash(attributes)
217
+ return nil unless attributes.is_a?(Hash)
218
+ attributes = attributes.transform_keys(&:to_sym)
219
+ transformed_hash = {}
220
+ openapi_types.each_pair do |key, type|
221
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
222
+ transformed_hash["#{key}"] = nil
223
+ elsif type =~ /\AArray<(.*)>/i
224
+ # check to ensure the input is an array given that the attribute
225
+ # is documented as an array but the input is not
226
+ if attributes[attribute_map[key]].is_a?(Array)
227
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
228
+ end
229
+ elsif !attributes[attribute_map[key]].nil?
230
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
231
+ end
232
+ end
233
+ new(transformed_hash)
234
+ end
235
+
236
+ # Returns the object in the form of hash
237
+ # @return [Hash] Returns the object in the form of hash
238
+ def to_hash
239
+ hash = {}
240
+ self.class.attribute_map.each_pair do |attr, param|
241
+ value = self.send(attr)
242
+ if value.nil?
243
+ is_nullable = self.class.openapi_nullable.include?(attr)
244
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
245
+ end
246
+
247
+ hash[param] = _to_hash(value)
248
+ end
249
+ hash
250
+ end
251
+
252
+ end
253
+
254
+ end
@@ -32,12 +32,24 @@ module Sendmux::Management::Generated
32
32
  # `send_only` verifies outbound DNS only. `send_receive` also verifies MX records and can host mailboxes.
33
33
  attr_accessor :mode
34
34
 
35
+ # Whether Amazon SES DKIM signing is currently enabled for this identity
36
+ attr_accessor :ses_dkim_signing_enabled
37
+
35
38
  # Amazon SES DKIM status (pending/success/failed/temporary_failure/not_started)
36
39
  attr_accessor :ses_dkim_status
37
40
 
41
+ # ISO 8601 timestamp of the latest complete Amazon SES identity check
42
+ attr_accessor :ses_identity_checked_at
43
+
44
+ # Latest Amazon SES identity verification status
45
+ attr_accessor :ses_identity_verification_status
46
+
38
47
  # Amazon SES MAIL FROM status (pending/success/failed/temporary_failure/not_started)
39
48
  attr_accessor :ses_mail_from_status
40
49
 
50
+ # Whether Amazon SES currently permits sending for this identity
51
+ attr_accessor :ses_verified_for_sending
52
+
41
53
  # Current verification state
42
54
  attr_accessor :verification_status
43
55
 
@@ -75,8 +87,12 @@ module Sendmux::Management::Generated
75
87
  :'id' => :'id',
76
88
  :'mailbox_count' => :'mailbox_count',
77
89
  :'mode' => :'mode',
90
+ :'ses_dkim_signing_enabled' => :'ses_dkim_signing_enabled',
78
91
  :'ses_dkim_status' => :'ses_dkim_status',
92
+ :'ses_identity_checked_at' => :'ses_identity_checked_at',
93
+ :'ses_identity_verification_status' => :'ses_identity_verification_status',
79
94
  :'ses_mail_from_status' => :'ses_mail_from_status',
95
+ :'ses_verified_for_sending' => :'ses_verified_for_sending',
80
96
  :'verification_status' => :'verification_status',
81
97
  :'verified_at' => :'verified_at'
82
98
  }
@@ -101,8 +117,12 @@ module Sendmux::Management::Generated
101
117
  :'id' => :'String',
102
118
  :'mailbox_count' => :'Integer',
103
119
  :'mode' => :'String',
120
+ :'ses_dkim_signing_enabled' => :'Boolean',
104
121
  :'ses_dkim_status' => :'String',
122
+ :'ses_identity_checked_at' => :'String',
123
+ :'ses_identity_verification_status' => :'String',
105
124
  :'ses_mail_from_status' => :'String',
125
+ :'ses_verified_for_sending' => :'Boolean',
106
126
  :'verification_status' => :'String',
107
127
  :'verified_at' => :'String'
108
128
  }
@@ -111,8 +131,12 @@ module Sendmux::Management::Generated
111
131
  # List of attributes with nullable: true
112
132
  def self.openapi_nullable
113
133
  Set.new([
134
+ :'ses_dkim_signing_enabled',
114
135
  :'ses_dkim_status',
136
+ :'ses_identity_checked_at',
137
+ :'ses_identity_verification_status',
115
138
  :'ses_mail_from_status',
139
+ :'ses_verified_for_sending',
116
140
  :'verified_at'
117
141
  ])
118
142
  end
@@ -169,18 +193,42 @@ module Sendmux::Management::Generated
169
193
  self.mode = nil
170
194
  end
171
195
 
196
+ if attributes.key?(:'ses_dkim_signing_enabled')
197
+ self.ses_dkim_signing_enabled = attributes[:'ses_dkim_signing_enabled']
198
+ else
199
+ self.ses_dkim_signing_enabled = nil
200
+ end
201
+
172
202
  if attributes.key?(:'ses_dkim_status')
173
203
  self.ses_dkim_status = attributes[:'ses_dkim_status']
174
204
  else
175
205
  self.ses_dkim_status = nil
176
206
  end
177
207
 
208
+ if attributes.key?(:'ses_identity_checked_at')
209
+ self.ses_identity_checked_at = attributes[:'ses_identity_checked_at']
210
+ else
211
+ self.ses_identity_checked_at = nil
212
+ end
213
+
214
+ if attributes.key?(:'ses_identity_verification_status')
215
+ self.ses_identity_verification_status = attributes[:'ses_identity_verification_status']
216
+ else
217
+ self.ses_identity_verification_status = nil
218
+ end
219
+
178
220
  if attributes.key?(:'ses_mail_from_status')
179
221
  self.ses_mail_from_status = attributes[:'ses_mail_from_status']
180
222
  else
181
223
  self.ses_mail_from_status = nil
182
224
  end
183
225
 
226
+ if attributes.key?(:'ses_verified_for_sending')
227
+ self.ses_verified_for_sending = attributes[:'ses_verified_for_sending']
228
+ else
229
+ self.ses_verified_for_sending = nil
230
+ end
231
+
184
232
  if attributes.key?(:'verification_status')
185
233
  self.verification_status = attributes[:'verification_status']
186
234
  else
@@ -338,8 +386,12 @@ module Sendmux::Management::Generated
338
386
  id == o.id &&
339
387
  mailbox_count == o.mailbox_count &&
340
388
  mode == o.mode &&
389
+ ses_dkim_signing_enabled == o.ses_dkim_signing_enabled &&
341
390
  ses_dkim_status == o.ses_dkim_status &&
391
+ ses_identity_checked_at == o.ses_identity_checked_at &&
392
+ ses_identity_verification_status == o.ses_identity_verification_status &&
342
393
  ses_mail_from_status == o.ses_mail_from_status &&
394
+ ses_verified_for_sending == o.ses_verified_for_sending &&
343
395
  verification_status == o.verification_status &&
344
396
  verified_at == o.verified_at
345
397
  end
@@ -353,7 +405,7 @@ module Sendmux::Management::Generated
353
405
  # Calculates hash code according to all attributes.
354
406
  # @return [Integer] Hash code
355
407
  def hash
356
- [created_at, dns_records, domain, id, mailbox_count, mode, ses_dkim_status, ses_mail_from_status, verification_status, verified_at].hash
408
+ [created_at, dns_records, domain, id, mailbox_count, mode, ses_dkim_signing_enabled, ses_dkim_status, ses_identity_checked_at, ses_identity_verification_status, ses_mail_from_status, ses_verified_for_sending, verification_status, verified_at].hash
357
409
  end
358
410
 
359
411
  # Builds the object from hash
@@ -15,19 +15,19 @@ require 'time'
15
15
 
16
16
  module Sendmux::Management::Generated
17
17
  class MailboxDomainVerifyChecks < ApiModelBase
18
- # DMARC TXT record matches expected value
18
+ # Published DMARC policy provides at least the required enforcement level.
19
19
  attr_accessor :dmarc
20
20
 
21
21
  # Custom MAIL FROM MX record matches expected value
22
22
  attr_accessor :mail_from_mx
23
23
 
24
- # Custom MAIL FROM SPF TXT record matches expected value
24
+ # Custom MAIL FROM SPF policy is compatible with the required Amazon SES sender authorisation.
25
25
  attr_accessor :mail_from_spf
26
26
 
27
27
  # MX record present when the domain is configured for receiving. Always true for send-only domains.
28
28
  attr_accessor :mx
29
29
 
30
- # SPF TXT record matches expected value
30
+ # Published SPF policy is compatible with the required Amazon SES sender authorisation.
31
31
  attr_accessor :spf
32
32
 
33
33
  # Ownership TXT record present with correct value