sendmux-management 1.0.0 → 1.1.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 (35) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/LICENSE +21 -0
  4. data/README.md +103 -0
  5. data/lib/sendmux/management/version.rb +1 -1
  6. data/lib/sendmux_management_generated/api/domain_filters_api.rb +4 -4
  7. data/lib/sendmux_management_generated/api/domains_api.rb +77 -4
  8. data/lib/sendmux_management_generated/api/mailboxes_api.rb +64 -0
  9. data/lib/sendmux_management_generated/api/sending_accounts_api.rb +63 -0
  10. data/lib/sendmux_management_generated/api_client.rb +7 -1
  11. data/lib/sendmux_management_generated/models/filter_rule.rb +1 -1
  12. data/lib/sendmux_management_generated/models/mailbox_availability_reason.rb +45 -0
  13. data/lib/sendmux_management_generated/models/mailbox_availability_response.rb +223 -0
  14. data/lib/sendmux_management_generated/models/mailbox_availability_result.rb +240 -0
  15. data/lib/sendmux_management_generated/models/mailbox_domain.rb +44 -2
  16. data/lib/sendmux_management_generated/models/mailbox_domain_dns_records.rb +29 -2
  17. data/lib/sendmux_management_generated/models/mailbox_domain_mail_from_records.rb +191 -0
  18. data/lib/sendmux_management_generated/models/mailbox_domain_name_value_record.rb +1 -1
  19. data/lib/sendmux_management_generated/models/mailbox_domain_named_mx_record.rb +217 -0
  20. data/lib/sendmux_management_generated/models/mailbox_domain_verify_checks.rb +56 -2
  21. data/lib/sendmux_management_generated/models/mailbox_domain_verify_result.rb +29 -2
  22. data/lib/sendmux_management_generated/models/management_create_domain_request.rb +48 -4
  23. data/lib/sendmux_management_generated/models/management_create_mailbox_key_request.rb +1 -0
  24. data/lib/sendmux_management_generated/models/management_create_mailbox_request.rb +2 -0
  25. data/lib/sendmux_management_generated/models/management_create_mailbox_request_send_scope.rb +4 -0
  26. data/lib/sendmux_management_generated/models/management_update_domain_request.rb +189 -0
  27. data/lib/sendmux_management_generated/models/shared_amazon_ses_limit_request.rb +2 -2
  28. data/lib/sendmux_management_generated/models/shared_amazon_ses_limit_request_cancel.rb +190 -0
  29. data/lib/sendmux_management_generated/models/shared_amazon_ses_limit_request_cancel_response.rb +223 -0
  30. data/lib/sendmux_management_generated/models/shared_amazon_ses_limit_request_create.rb +1 -1
  31. data/lib/sendmux_management_generated/models/update_mailbox_body.rb +2 -1
  32. data/lib/sendmux_management_generated/models/update_mailbox_body_send_scope.rb +214 -0
  33. data/lib/sendmux_management_generated.rb +9 -1
  34. metadata +12 -3
  35. data/lib/sendmux_management_generated/models/shared_amazon_ses_limit_request_create_request.rb +0 -368
@@ -0,0 +1,191 @@
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
+ # Custom MAIL FROM records for Amazon SES bounce handling
18
+ class MailboxDomainMailFromRecords < ApiModelBase
19
+ attr_accessor :mx
20
+
21
+ attr_accessor :spf
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'mx' => :'mx',
27
+ :'spf' => :'spf'
28
+ }
29
+ end
30
+
31
+ # Returns attribute mapping this model knows about
32
+ def self.acceptable_attribute_map
33
+ attribute_map
34
+ end
35
+
36
+ # Returns all the JSON keys this model knows about
37
+ def self.acceptable_attributes
38
+ acceptable_attribute_map.values
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'mx' => :'MailboxDomainNamedMxRecord',
45
+ :'spf' => :'MailboxDomainNameValueRecord'
46
+ }
47
+ end
48
+
49
+ # List of attributes with nullable: true
50
+ def self.openapi_nullable
51
+ Set.new([
52
+ ])
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param [Hash] attributes Model attributes in the form of hash
57
+ def initialize(attributes = {})
58
+ if (!attributes.is_a?(Hash))
59
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Sendmux::Management::Generated::MailboxDomainMailFromRecords` initialize method"
60
+ end
61
+
62
+ # check to see if the attribute exists and convert string to symbol for hash key
63
+ acceptable_attribute_map = self.class.acceptable_attribute_map
64
+ attributes = attributes.each_with_object({}) { |(k, v), h|
65
+ if (!acceptable_attribute_map.key?(k.to_sym))
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Sendmux::Management::Generated::MailboxDomainMailFromRecords`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
67
+ end
68
+ h[k.to_sym] = v
69
+ }
70
+
71
+ if attributes.key?(:'mx')
72
+ self.mx = attributes[:'mx']
73
+ else
74
+ self.mx = nil
75
+ end
76
+
77
+ if attributes.key?(:'spf')
78
+ self.spf = attributes[:'spf']
79
+ else
80
+ self.spf = nil
81
+ end
82
+ end
83
+
84
+ # Show invalid properties with the reasons. Usually used together with valid?
85
+ # @return Array for valid properties with the reasons
86
+ def list_invalid_properties
87
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
88
+ invalid_properties = Array.new
89
+ if @mx.nil?
90
+ invalid_properties.push('invalid value for "mx", mx cannot be nil.')
91
+ end
92
+
93
+ if @spf.nil?
94
+ invalid_properties.push('invalid value for "spf", spf cannot be nil.')
95
+ end
96
+
97
+ invalid_properties
98
+ end
99
+
100
+ # Check to see if the all the properties in the model are valid
101
+ # @return true if the model is valid
102
+ def valid?
103
+ warn '[DEPRECATED] the `valid?` method is obsolete'
104
+ return false if @mx.nil?
105
+ return false if @spf.nil?
106
+ true
107
+ end
108
+
109
+ # Custom attribute writer method with validation
110
+ # @param [Object] mx Value to be assigned
111
+ def mx=(mx)
112
+ if mx.nil?
113
+ fail ArgumentError, 'mx cannot be nil'
114
+ end
115
+
116
+ @mx = mx
117
+ end
118
+
119
+ # Custom attribute writer method with validation
120
+ # @param [Object] spf Value to be assigned
121
+ def spf=(spf)
122
+ if spf.nil?
123
+ fail ArgumentError, 'spf cannot be nil'
124
+ end
125
+
126
+ @spf = spf
127
+ end
128
+
129
+ # Checks equality by comparing each attribute.
130
+ # @param [Object] Object to be compared
131
+ def ==(o)
132
+ return true if self.equal?(o)
133
+ self.class == o.class &&
134
+ mx == o.mx &&
135
+ spf == o.spf
136
+ end
137
+
138
+ # @see the `==` method
139
+ # @param [Object] Object to be compared
140
+ def eql?(o)
141
+ self == o
142
+ end
143
+
144
+ # Calculates hash code according to all attributes.
145
+ # @return [Integer] Hash code
146
+ def hash
147
+ [mx, spf].hash
148
+ end
149
+
150
+ # Builds the object from hash
151
+ # @param [Hash] attributes Model attributes in the form of hash
152
+ # @return [Object] Returns the model itself
153
+ def self.build_from_hash(attributes)
154
+ return nil unless attributes.is_a?(Hash)
155
+ attributes = attributes.transform_keys(&:to_sym)
156
+ transformed_hash = {}
157
+ openapi_types.each_pair do |key, type|
158
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
159
+ transformed_hash["#{key}"] = nil
160
+ elsif type =~ /\AArray<(.*)>/i
161
+ # check to ensure the input is an array given that the attribute
162
+ # is documented as an array but the input is not
163
+ if attributes[attribute_map[key]].is_a?(Array)
164
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
165
+ end
166
+ elsif !attributes[attribute_map[key]].nil?
167
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
168
+ end
169
+ end
170
+ new(transformed_hash)
171
+ end
172
+
173
+ # Returns the object in the form of hash
174
+ # @return [Hash] Returns the object in the form of hash
175
+ def to_hash
176
+ hash = {}
177
+ self.class.attribute_map.each_pair do |attr, param|
178
+ value = self.send(attr)
179
+ if value.nil?
180
+ is_nullable = self.class.openapi_nullable.include?(attr)
181
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
182
+ end
183
+
184
+ hash[param] = _to_hash(value)
185
+ end
186
+ hash
187
+ end
188
+
189
+ end
190
+
191
+ end
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Sendmux::Management::Generated
17
- # SPF TXT record covering both SES and Sendmux includes
17
+ # SPF TXT record for the custom MAIL FROM subdomain
18
18
  class MailboxDomainNameValueRecord < ApiModelBase
19
19
  attr_accessor :name
20
20
 
@@ -0,0 +1,217 @@
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
+ # MX record for Amazon SES bounce handling
18
+ class MailboxDomainNamedMxRecord < ApiModelBase
19
+ attr_accessor :name
20
+
21
+ attr_accessor :priority
22
+
23
+ attr_accessor :target
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'name' => :'name',
29
+ :'priority' => :'priority',
30
+ :'target' => :'target'
31
+ }
32
+ end
33
+
34
+ # Returns attribute mapping this model knows about
35
+ def self.acceptable_attribute_map
36
+ attribute_map
37
+ end
38
+
39
+ # Returns all the JSON keys this model knows about
40
+ def self.acceptable_attributes
41
+ acceptable_attribute_map.values
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.openapi_types
46
+ {
47
+ :'name' => :'String',
48
+ :'priority' => :'Integer',
49
+ :'target' => :'String'
50
+ }
51
+ end
52
+
53
+ # List of attributes with nullable: true
54
+ def self.openapi_nullable
55
+ Set.new([
56
+ ])
57
+ end
58
+
59
+ # Initializes the object
60
+ # @param [Hash] attributes Model attributes in the form of hash
61
+ def initialize(attributes = {})
62
+ if (!attributes.is_a?(Hash))
63
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Sendmux::Management::Generated::MailboxDomainNamedMxRecord` initialize method"
64
+ end
65
+
66
+ # check to see if the attribute exists and convert string to symbol for hash key
67
+ acceptable_attribute_map = self.class.acceptable_attribute_map
68
+ attributes = attributes.each_with_object({}) { |(k, v), h|
69
+ if (!acceptable_attribute_map.key?(k.to_sym))
70
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Sendmux::Management::Generated::MailboxDomainNamedMxRecord`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
71
+ end
72
+ h[k.to_sym] = v
73
+ }
74
+
75
+ if attributes.key?(:'name')
76
+ self.name = attributes[:'name']
77
+ else
78
+ self.name = nil
79
+ end
80
+
81
+ if attributes.key?(:'priority')
82
+ self.priority = attributes[:'priority']
83
+ else
84
+ self.priority = nil
85
+ end
86
+
87
+ if attributes.key?(:'target')
88
+ self.target = attributes[:'target']
89
+ else
90
+ self.target = nil
91
+ end
92
+ end
93
+
94
+ # Show invalid properties with the reasons. Usually used together with valid?
95
+ # @return Array for valid properties with the reasons
96
+ def list_invalid_properties
97
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
98
+ invalid_properties = Array.new
99
+ if @name.nil?
100
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
101
+ end
102
+
103
+ if @priority.nil?
104
+ invalid_properties.push('invalid value for "priority", priority cannot be nil.')
105
+ end
106
+
107
+ if @target.nil?
108
+ invalid_properties.push('invalid value for "target", target cannot be nil.')
109
+ end
110
+
111
+ invalid_properties
112
+ end
113
+
114
+ # Check to see if the all the properties in the model are valid
115
+ # @return true if the model is valid
116
+ def valid?
117
+ warn '[DEPRECATED] the `valid?` method is obsolete'
118
+ return false if @name.nil?
119
+ return false if @priority.nil?
120
+ return false if @target.nil?
121
+ true
122
+ end
123
+
124
+ # Custom attribute writer method with validation
125
+ # @param [Object] name Value to be assigned
126
+ def name=(name)
127
+ if name.nil?
128
+ fail ArgumentError, 'name cannot be nil'
129
+ end
130
+
131
+ @name = name
132
+ end
133
+
134
+ # Custom attribute writer method with validation
135
+ # @param [Object] priority Value to be assigned
136
+ def priority=(priority)
137
+ if priority.nil?
138
+ fail ArgumentError, 'priority cannot be nil'
139
+ end
140
+
141
+ @priority = priority
142
+ end
143
+
144
+ # Custom attribute writer method with validation
145
+ # @param [Object] target Value to be assigned
146
+ def target=(target)
147
+ if target.nil?
148
+ fail ArgumentError, 'target cannot be nil'
149
+ end
150
+
151
+ @target = target
152
+ end
153
+
154
+ # Checks equality by comparing each attribute.
155
+ # @param [Object] Object to be compared
156
+ def ==(o)
157
+ return true if self.equal?(o)
158
+ self.class == o.class &&
159
+ name == o.name &&
160
+ priority == o.priority &&
161
+ target == o.target
162
+ end
163
+
164
+ # @see the `==` method
165
+ # @param [Object] Object to be compared
166
+ def eql?(o)
167
+ self == o
168
+ end
169
+
170
+ # Calculates hash code according to all attributes.
171
+ # @return [Integer] Hash code
172
+ def hash
173
+ [name, priority, target].hash
174
+ end
175
+
176
+ # Builds the object from hash
177
+ # @param [Hash] attributes Model attributes in the form of hash
178
+ # @return [Object] Returns the model itself
179
+ def self.build_from_hash(attributes)
180
+ return nil unless attributes.is_a?(Hash)
181
+ attributes = attributes.transform_keys(&:to_sym)
182
+ transformed_hash = {}
183
+ openapi_types.each_pair do |key, type|
184
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
185
+ transformed_hash["#{key}"] = nil
186
+ elsif type =~ /\AArray<(.*)>/i
187
+ # check to ensure the input is an array given that the attribute
188
+ # is documented as an array but the input is not
189
+ if attributes[attribute_map[key]].is_a?(Array)
190
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
191
+ end
192
+ elsif !attributes[attribute_map[key]].nil?
193
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
194
+ end
195
+ end
196
+ new(transformed_hash)
197
+ end
198
+
199
+ # Returns the object in the form of hash
200
+ # @return [Hash] Returns the object in the form of hash
201
+ def to_hash
202
+ hash = {}
203
+ self.class.attribute_map.each_pair do |attr, param|
204
+ value = self.send(attr)
205
+ if value.nil?
206
+ is_nullable = self.class.openapi_nullable.include?(attr)
207
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
208
+ end
209
+
210
+ hash[param] = _to_hash(value)
211
+ end
212
+ hash
213
+ end
214
+
215
+ end
216
+
217
+ end
@@ -18,7 +18,13 @@ module Sendmux::Management::Generated
18
18
  # DMARC TXT record matches expected value
19
19
  attr_accessor :dmarc
20
20
 
21
- # MX record present with priority 10 pointing at mail.sendmux.ai
21
+ # Custom MAIL FROM MX record matches expected value
22
+ attr_accessor :mail_from_mx
23
+
24
+ # Custom MAIL FROM SPF TXT record matches expected value
25
+ attr_accessor :mail_from_spf
26
+
27
+ # MX record present when the domain is configured for receiving. Always true for send-only domains.
22
28
  attr_accessor :mx
23
29
 
24
30
  # SPF TXT record matches expected value
@@ -31,6 +37,8 @@ module Sendmux::Management::Generated
31
37
  def self.attribute_map
32
38
  {
33
39
  :'dmarc' => :'dmarc',
40
+ :'mail_from_mx' => :'mail_from_mx',
41
+ :'mail_from_spf' => :'mail_from_spf',
34
42
  :'mx' => :'mx',
35
43
  :'spf' => :'spf',
36
44
  :'verification_txt' => :'verification_txt'
@@ -51,6 +59,8 @@ module Sendmux::Management::Generated
51
59
  def self.openapi_types
52
60
  {
53
61
  :'dmarc' => :'Boolean',
62
+ :'mail_from_mx' => :'Boolean',
63
+ :'mail_from_spf' => :'Boolean',
54
64
  :'mx' => :'Boolean',
55
65
  :'spf' => :'Boolean',
56
66
  :'verification_txt' => :'Boolean'
@@ -85,6 +95,18 @@ module Sendmux::Management::Generated
85
95
  self.dmarc = nil
86
96
  end
87
97
 
98
+ if attributes.key?(:'mail_from_mx')
99
+ self.mail_from_mx = attributes[:'mail_from_mx']
100
+ else
101
+ self.mail_from_mx = nil
102
+ end
103
+
104
+ if attributes.key?(:'mail_from_spf')
105
+ self.mail_from_spf = attributes[:'mail_from_spf']
106
+ else
107
+ self.mail_from_spf = nil
108
+ end
109
+
88
110
  if attributes.key?(:'mx')
89
111
  self.mx = attributes[:'mx']
90
112
  else
@@ -113,6 +135,14 @@ module Sendmux::Management::Generated
113
135
  invalid_properties.push('invalid value for "dmarc", dmarc cannot be nil.')
114
136
  end
115
137
 
138
+ if @mail_from_mx.nil?
139
+ invalid_properties.push('invalid value for "mail_from_mx", mail_from_mx cannot be nil.')
140
+ end
141
+
142
+ if @mail_from_spf.nil?
143
+ invalid_properties.push('invalid value for "mail_from_spf", mail_from_spf cannot be nil.')
144
+ end
145
+
116
146
  if @mx.nil?
117
147
  invalid_properties.push('invalid value for "mx", mx cannot be nil.')
118
148
  end
@@ -133,6 +163,8 @@ module Sendmux::Management::Generated
133
163
  def valid?
134
164
  warn '[DEPRECATED] the `valid?` method is obsolete'
135
165
  return false if @dmarc.nil?
166
+ return false if @mail_from_mx.nil?
167
+ return false if @mail_from_spf.nil?
136
168
  return false if @mx.nil?
137
169
  return false if @spf.nil?
138
170
  return false if @verification_txt.nil?
@@ -149,6 +181,26 @@ module Sendmux::Management::Generated
149
181
  @dmarc = dmarc
150
182
  end
151
183
 
184
+ # Custom attribute writer method with validation
185
+ # @param [Object] mail_from_mx Value to be assigned
186
+ def mail_from_mx=(mail_from_mx)
187
+ if mail_from_mx.nil?
188
+ fail ArgumentError, 'mail_from_mx cannot be nil'
189
+ end
190
+
191
+ @mail_from_mx = mail_from_mx
192
+ end
193
+
194
+ # Custom attribute writer method with validation
195
+ # @param [Object] mail_from_spf Value to be assigned
196
+ def mail_from_spf=(mail_from_spf)
197
+ if mail_from_spf.nil?
198
+ fail ArgumentError, 'mail_from_spf cannot be nil'
199
+ end
200
+
201
+ @mail_from_spf = mail_from_spf
202
+ end
203
+
152
204
  # Custom attribute writer method with validation
153
205
  # @param [Object] mx Value to be assigned
154
206
  def mx=(mx)
@@ -185,6 +237,8 @@ module Sendmux::Management::Generated
185
237
  return true if self.equal?(o)
186
238
  self.class == o.class &&
187
239
  dmarc == o.dmarc &&
240
+ mail_from_mx == o.mail_from_mx &&
241
+ mail_from_spf == o.mail_from_spf &&
188
242
  mx == o.mx &&
189
243
  spf == o.spf &&
190
244
  verification_txt == o.verification_txt
@@ -199,7 +253,7 @@ module Sendmux::Management::Generated
199
253
  # Calculates hash code according to all attributes.
200
254
  # @return [Integer] Hash code
201
255
  def hash
202
- [dmarc, mx, spf, verification_txt].hash
256
+ [dmarc, mail_from_mx, mail_from_spf, mx, spf, verification_txt].hash
203
257
  end
204
258
 
205
259
  # Builds the object from hash
@@ -17,9 +17,12 @@ module Sendmux::Management::Generated
17
17
  class MailboxDomainVerifyResult < ApiModelBase
18
18
  attr_accessor :checks
19
19
 
20
- # Latest SES DKIM status from AWS
20
+ # Latest Amazon SES DKIM status
21
21
  attr_accessor :ses_dkim_status
22
22
 
23
+ # Latest Amazon SES MAIL FROM status
24
+ attr_accessor :ses_mail_from_status
25
+
23
26
  # Post-check verification status
24
27
  attr_accessor :status
25
28
 
@@ -50,6 +53,7 @@ module Sendmux::Management::Generated
50
53
  {
51
54
  :'checks' => :'checks',
52
55
  :'ses_dkim_status' => :'ses_dkim_status',
56
+ :'ses_mail_from_status' => :'ses_mail_from_status',
53
57
  :'status' => :'status'
54
58
  }
55
59
  end
@@ -69,6 +73,7 @@ module Sendmux::Management::Generated
69
73
  {
70
74
  :'checks' => :'MailboxDomainVerifyChecks',
71
75
  :'ses_dkim_status' => :'String',
76
+ :'ses_mail_from_status' => :'String',
72
77
  :'status' => :'String'
73
78
  }
74
79
  end
@@ -107,6 +112,12 @@ module Sendmux::Management::Generated
107
112
  self.ses_dkim_status = nil
108
113
  end
109
114
 
115
+ if attributes.key?(:'ses_mail_from_status')
116
+ self.ses_mail_from_status = attributes[:'ses_mail_from_status']
117
+ else
118
+ self.ses_mail_from_status = nil
119
+ end
120
+
110
121
  if attributes.key?(:'status')
111
122
  self.status = attributes[:'status']
112
123
  else
@@ -127,6 +138,10 @@ module Sendmux::Management::Generated
127
138
  invalid_properties.push('invalid value for "ses_dkim_status", ses_dkim_status cannot be nil.')
128
139
  end
129
140
 
141
+ if @ses_mail_from_status.nil?
142
+ invalid_properties.push('invalid value for "ses_mail_from_status", ses_mail_from_status cannot be nil.')
143
+ end
144
+
130
145
  if @status.nil?
131
146
  invalid_properties.push('invalid value for "status", status cannot be nil.')
132
147
  end
@@ -140,6 +155,7 @@ module Sendmux::Management::Generated
140
155
  warn '[DEPRECATED] the `valid?` method is obsolete'
141
156
  return false if @checks.nil?
142
157
  return false if @ses_dkim_status.nil?
158
+ return false if @ses_mail_from_status.nil?
143
159
  return false if @status.nil?
144
160
  status_validator = EnumAttributeValidator.new('String', ["verified", "pending", "unknown_default_open_api"])
145
161
  return false unless status_validator.valid?(@status)
@@ -166,6 +182,16 @@ module Sendmux::Management::Generated
166
182
  @ses_dkim_status = ses_dkim_status
167
183
  end
168
184
 
185
+ # Custom attribute writer method with validation
186
+ # @param [Object] ses_mail_from_status Value to be assigned
187
+ def ses_mail_from_status=(ses_mail_from_status)
188
+ if ses_mail_from_status.nil?
189
+ fail ArgumentError, 'ses_mail_from_status cannot be nil'
190
+ end
191
+
192
+ @ses_mail_from_status = ses_mail_from_status
193
+ end
194
+
169
195
  # Custom attribute writer method checking allowed values (enum).
170
196
  # @param [Object] status Object to be assigned
171
197
  def status=(status)
@@ -183,6 +209,7 @@ module Sendmux::Management::Generated
183
209
  self.class == o.class &&
184
210
  checks == o.checks &&
185
211
  ses_dkim_status == o.ses_dkim_status &&
212
+ ses_mail_from_status == o.ses_mail_from_status &&
186
213
  status == o.status
187
214
  end
188
215
 
@@ -195,7 +222,7 @@ module Sendmux::Management::Generated
195
222
  # Calculates hash code according to all attributes.
196
223
  # @return [Integer] Hash code
197
224
  def hash
198
- [checks, ses_dkim_status, status].hash
225
+ [checks, ses_dkim_status, ses_mail_from_status, status].hash
199
226
  end
200
227
 
201
228
  # Builds the object from hash