mailslurp_client 16.2.1 → 16.2.3

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 (69) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/ai_controller_api.rb +193 -79
  3. data/lib/mailslurp_client/api/attachment_controller_api.rb +6 -3
  4. data/lib/mailslurp_client/api/email_controller_api.rb +3 -0
  5. data/lib/mailslurp_client/api/form_controller_api.rb +8 -9
  6. data/lib/mailslurp_client/api/inbox_controller_api.rb +28 -2
  7. data/lib/mailslurp_client/api/mfa_controller_api.rb +73 -9
  8. data/lib/mailslurp_client/api/sms_controller_api.rb +3 -0
  9. data/lib/mailslurp_client/api/webhook_controller_api.rb +63 -9
  10. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +2 -2
  11. data/lib/mailslurp_client/models/{ai_tranform_create_options.rb → ai_transform_create_options.rb} +31 -7
  12. data/lib/mailslurp_client/models/ai_transform_dto.rb +1 -0
  13. data/lib/mailslurp_client/models/ai_transform_mapping_dto.rb +18 -9
  14. data/lib/mailslurp_client/models/ai_transform_mapping_projection.rb +15 -6
  15. data/lib/mailslurp_client/models/ai_transform_projection.rb +16 -1
  16. data/lib/mailslurp_client/models/ai_transform_result_dto.rb +5 -1
  17. data/lib/mailslurp_client/models/{ai_transform_result_projection.rb → ai_transform_result_projection_dto.rb} +56 -53
  18. data/lib/mailslurp_client/models/conditional_structured_content_result.rb +221 -0
  19. data/lib/mailslurp_client/models/create_ai_transformer_mapping_options.rb +5 -10
  20. data/lib/mailslurp_client/models/create_domain_options.rb +19 -0
  21. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +19 -0
  22. data/lib/mailslurp_client/models/create_inbox_replier_options.rb +19 -0
  23. data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +2 -2
  24. data/lib/mailslurp_client/models/create_totp_device_base32_secret_key_options.rb +306 -0
  25. data/lib/mailslurp_client/models/create_totp_device_custom_options.rb +306 -0
  26. data/lib/mailslurp_client/models/create_totp_device_otp_auth_url_options.rb +35 -0
  27. data/lib/mailslurp_client/models/create_webhook_options.rb +2 -2
  28. data/lib/mailslurp_client/models/describe_domain_options.rb +19 -0
  29. data/lib/mailslurp_client/models/dns_lookup_options.rb +19 -0
  30. data/lib/mailslurp_client/models/email_projection.rb +11 -11
  31. data/lib/mailslurp_client/models/email_thread_projection.rb +10 -10
  32. data/lib/mailslurp_client/models/entity_automation_item_projection.rb +10 -10
  33. data/lib/mailslurp_client/models/expiration_defaults.rb +1 -0
  34. data/lib/mailslurp_client/models/fake_email_dto.rb +1 -0
  35. data/lib/mailslurp_client/models/generate_structured_content_attachment_options.rb +1 -0
  36. data/lib/mailslurp_client/models/generate_structured_content_email_options.rb +1 -0
  37. data/lib/mailslurp_client/models/generate_structured_content_sms_options.rb +1 -0
  38. data/lib/mailslurp_client/models/inbox_exists_dto.rb +26 -4
  39. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +2 -2
  40. data/lib/mailslurp_client/models/inline_object.rb +58 -12
  41. data/lib/mailslurp_client/models/inline_object1.rb +211 -0
  42. data/lib/mailslurp_client/models/invoke_transformer_options.rb +329 -0
  43. data/lib/mailslurp_client/models/match_option.rb +19 -0
  44. data/lib/mailslurp_client/models/missed_email_dto.rb +1 -0
  45. data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +1 -1
  46. data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +19 -19
  47. data/lib/mailslurp_client/models/phone_message_thread_projection.rb +0 -10
  48. data/lib/mailslurp_client/models/sent_email_projection.rb +15 -30
  49. data/lib/mailslurp_client/models/sms_match_option.rb +19 -0
  50. data/lib/mailslurp_client/models/sms_preview.rb +4 -0
  51. data/lib/mailslurp_client/models/structured_output_schema.rb +12 -9
  52. data/lib/mailslurp_client/models/update_inbox_replier_options.rb +19 -0
  53. data/lib/mailslurp_client/models/upload_attachment_options.rb +19 -0
  54. data/lib/mailslurp_client/models/webhook_bounce_payload.rb +2 -2
  55. data/lib/mailslurp_client/models/webhook_bounce_recipient_payload.rb +2 -2
  56. data/lib/mailslurp_client/models/webhook_delivery_status_payload.rb +2 -2
  57. data/lib/mailslurp_client/models/webhook_dto.rb +2 -2
  58. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +2 -2
  59. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +2 -2
  60. data/lib/mailslurp_client/models/webhook_new_ai_transform_result_payload.rb +389 -0
  61. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +2 -2
  62. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +2 -2
  63. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +2 -2
  64. data/lib/mailslurp_client/models/webhook_new_sms_payload.rb +2 -2
  65. data/lib/mailslurp_client/models/webhook_projection.rb +2 -2
  66. data/lib/mailslurp_client/models/webhook_result_dto.rb +2 -2
  67. data/lib/mailslurp_client/version.rb +1 -1
  68. data/lib/mailslurp_client.rb +8 -2
  69. metadata +10 -4
@@ -87,7 +87,6 @@ module MailSlurpClient
87
87
  # List of attributes with nullable: true
88
88
  def self.openapi_nullable
89
89
  Set.new([
90
- :'value',
91
90
  ])
92
91
  end
93
92
 
@@ -163,6 +162,10 @@ module MailSlurpClient
163
162
  invalid_properties.push('invalid value for "ai_transform_mapping_id", ai_transform_mapping_id cannot be nil.')
164
163
  end
165
164
 
165
+ if @value.nil?
166
+ invalid_properties.push('invalid value for "value", value cannot be nil.')
167
+ end
168
+
166
169
  if @entity_id.nil?
167
170
  invalid_properties.push('invalid value for "entity_id", entity_id cannot be nil.')
168
171
  end
@@ -189,6 +192,7 @@ module MailSlurpClient
189
192
  return false if @user_id.nil?
190
193
  return false if @ai_transform_id.nil?
191
194
  return false if @ai_transform_mapping_id.nil?
195
+ return false if @value.nil?
192
196
  return false if @entity_id.nil?
193
197
  return false if @entity_type.nil?
194
198
  entity_type_validator = EnumAttributeValidator.new('String', ["INBOX", "PHONE"])
@@ -13,20 +13,22 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- class AITransformResultProjection
17
- attr_accessor :user_id
16
+ class AITransformResultProjectionDto
17
+ attr_accessor :id
18
18
 
19
19
  attr_accessor :ai_transform_id
20
20
 
21
- attr_accessor :entity_id
22
-
23
- attr_accessor :entity_type
24
-
25
21
  attr_accessor :ai_transform_mapping_id
26
22
 
23
+ attr_accessor :user_id
24
+
27
25
  attr_accessor :value
28
26
 
29
- attr_accessor :id
27
+ attr_accessor :entity_id
28
+
29
+ attr_accessor :entity_type
30
+
31
+ attr_accessor :created_at
30
32
 
31
33
  class EnumAttributeValidator
32
34
  attr_reader :datatype
@@ -53,32 +55,38 @@ module MailSlurpClient
53
55
  # Attribute mapping from ruby-style variable name to JSON key.
54
56
  def self.attribute_map
55
57
  {
56
- :'user_id' => :'userId',
58
+ :'id' => :'id',
57
59
  :'ai_transform_id' => :'aiTransformId',
58
- :'entity_id' => :'entityId',
59
- :'entity_type' => :'entityType',
60
60
  :'ai_transform_mapping_id' => :'aiTransformMappingId',
61
+ :'user_id' => :'userId',
61
62
  :'value' => :'value',
62
- :'id' => :'id'
63
+ :'entity_id' => :'entityId',
64
+ :'entity_type' => :'entityType',
65
+ :'created_at' => :'createdAt'
63
66
  }
64
67
  end
65
68
 
66
69
  # Attribute type mapping.
67
70
  def self.openapi_types
68
71
  {
69
- :'user_id' => :'String',
72
+ :'id' => :'String',
70
73
  :'ai_transform_id' => :'String',
74
+ :'ai_transform_mapping_id' => :'String',
75
+ :'user_id' => :'String',
76
+ :'value' => :'Object',
71
77
  :'entity_id' => :'String',
72
78
  :'entity_type' => :'String',
73
- :'ai_transform_mapping_id' => :'String',
74
- :'value' => :'String',
75
- :'id' => :'String'
79
+ :'created_at' => :'DateTime'
76
80
  }
77
81
  end
78
82
 
79
83
  # List of attributes with nullable: true
80
84
  def self.openapi_nullable
81
85
  Set.new([
86
+ :'ai_transform_mapping_id',
87
+ :'value',
88
+ :'entity_id',
89
+ :'entity_type',
82
90
  ])
83
91
  end
84
92
 
@@ -86,43 +94,47 @@ module MailSlurpClient
86
94
  # @param [Hash] attributes Model attributes in the form of hash
87
95
  def initialize(attributes = {})
88
96
  if (!attributes.is_a?(Hash))
89
- fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::AITransformResultProjection` initialize method"
97
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::AITransformResultProjectionDto` initialize method"
90
98
  end
91
99
 
92
100
  # check to see if the attribute exists and convert string to symbol for hash key
93
101
  attributes = attributes.each_with_object({}) { |(k, v), h|
94
102
  if (!self.class.attribute_map.key?(k.to_sym))
95
- fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::AITransformResultProjection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
103
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::AITransformResultProjectionDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
96
104
  end
97
105
  h[k.to_sym] = v
98
106
  }
99
107
 
100
- if attributes.key?(:'user_id')
101
- self.user_id = attributes[:'user_id']
108
+ if attributes.key?(:'id')
109
+ self.id = attributes[:'id']
102
110
  end
103
111
 
104
112
  if attributes.key?(:'ai_transform_id')
105
113
  self.ai_transform_id = attributes[:'ai_transform_id']
106
114
  end
107
115
 
108
- if attributes.key?(:'entity_id')
109
- self.entity_id = attributes[:'entity_id']
110
- end
111
-
112
- if attributes.key?(:'entity_type')
113
- self.entity_type = attributes[:'entity_type']
114
- end
115
-
116
116
  if attributes.key?(:'ai_transform_mapping_id')
117
117
  self.ai_transform_mapping_id = attributes[:'ai_transform_mapping_id']
118
118
  end
119
119
 
120
+ if attributes.key?(:'user_id')
121
+ self.user_id = attributes[:'user_id']
122
+ end
123
+
120
124
  if attributes.key?(:'value')
121
125
  self.value = attributes[:'value']
122
126
  end
123
127
 
124
- if attributes.key?(:'id')
125
- self.id = attributes[:'id']
128
+ if attributes.key?(:'entity_id')
129
+ self.entity_id = attributes[:'entity_id']
130
+ end
131
+
132
+ if attributes.key?(:'entity_type')
133
+ self.entity_type = attributes[:'entity_type']
134
+ end
135
+
136
+ if attributes.key?(:'created_at')
137
+ self.created_at = attributes[:'created_at']
126
138
  end
127
139
  end
128
140
 
@@ -130,28 +142,20 @@ module MailSlurpClient
130
142
  # @return Array for valid properties with the reasons
131
143
  def list_invalid_properties
132
144
  invalid_properties = Array.new
133
- if @user_id.nil?
134
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
145
+ if @id.nil?
146
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
135
147
  end
136
148
 
137
149
  if @ai_transform_id.nil?
138
150
  invalid_properties.push('invalid value for "ai_transform_id", ai_transform_id cannot be nil.')
139
151
  end
140
152
 
141
- if @entity_id.nil?
142
- invalid_properties.push('invalid value for "entity_id", entity_id cannot be nil.')
143
- end
144
-
145
- if @entity_type.nil?
146
- invalid_properties.push('invalid value for "entity_type", entity_type cannot be nil.')
153
+ if @user_id.nil?
154
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
147
155
  end
148
156
 
149
- if @ai_transform_mapping_id.nil?
150
- invalid_properties.push('invalid value for "ai_transform_mapping_id", ai_transform_mapping_id cannot be nil.')
151
- end
152
-
153
- if @id.nil?
154
- invalid_properties.push('invalid value for "id", id cannot be nil.')
157
+ if @created_at.nil?
158
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
155
159
  end
156
160
 
157
161
  invalid_properties
@@ -160,14 +164,12 @@ module MailSlurpClient
160
164
  # Check to see if the all the properties in the model are valid
161
165
  # @return true if the model is valid
162
166
  def valid?
163
- return false if @user_id.nil?
167
+ return false if @id.nil?
164
168
  return false if @ai_transform_id.nil?
165
- return false if @entity_id.nil?
166
- return false if @entity_type.nil?
169
+ return false if @user_id.nil?
167
170
  entity_type_validator = EnumAttributeValidator.new('String', ["INBOX", "PHONE"])
168
171
  return false unless entity_type_validator.valid?(@entity_type)
169
- return false if @ai_transform_mapping_id.nil?
170
- return false if @id.nil?
172
+ return false if @created_at.nil?
171
173
  true
172
174
  end
173
175
 
@@ -186,13 +188,14 @@ module MailSlurpClient
186
188
  def ==(o)
187
189
  return true if self.equal?(o)
188
190
  self.class == o.class &&
189
- user_id == o.user_id &&
191
+ id == o.id &&
190
192
  ai_transform_id == o.ai_transform_id &&
191
- entity_id == o.entity_id &&
192
- entity_type == o.entity_type &&
193
193
  ai_transform_mapping_id == o.ai_transform_mapping_id &&
194
+ user_id == o.user_id &&
194
195
  value == o.value &&
195
- id == o.id
196
+ entity_id == o.entity_id &&
197
+ entity_type == o.entity_type &&
198
+ created_at == o.created_at
196
199
  end
197
200
 
198
201
  # @see the `==` method
@@ -204,7 +207,7 @@ module MailSlurpClient
204
207
  # Calculates hash code according to all attributes.
205
208
  # @return [Integer] Hash code
206
209
  def hash
207
- [user_id, ai_transform_id, entity_id, entity_type, ai_transform_mapping_id, value, id].hash
210
+ [id, ai_transform_id, ai_transform_mapping_id, user_id, value, entity_id, entity_type, created_at].hash
208
211
  end
209
212
 
210
213
  # Builds the object from hash
@@ -0,0 +1,221 @@
1
+ =begin
2
+ #MailSlurp API
3
+
4
+ #MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. 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
+ class ConditionalStructuredContentResult
17
+ attr_accessor :result
18
+
19
+ attr_accessor :conditions_match
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'result' => :'result',
25
+ :'conditions_match' => :'conditionsMatch'
26
+ }
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.openapi_types
31
+ {
32
+ :'result' => :'Object',
33
+ :'conditions_match' => :'Boolean'
34
+ }
35
+ end
36
+
37
+ # List of attributes with nullable: true
38
+ def self.openapi_nullable
39
+ Set.new([
40
+ :'result',
41
+ ])
42
+ end
43
+
44
+ # Initializes the object
45
+ # @param [Hash] attributes Model attributes in the form of hash
46
+ def initialize(attributes = {})
47
+ if (!attributes.is_a?(Hash))
48
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::ConditionalStructuredContentResult` initialize method"
49
+ end
50
+
51
+ # check to see if the attribute exists and convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}) { |(k, v), h|
53
+ if (!self.class.attribute_map.key?(k.to_sym))
54
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::ConditionalStructuredContentResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ end
56
+ h[k.to_sym] = v
57
+ }
58
+
59
+ if attributes.key?(:'result')
60
+ self.result = attributes[:'result']
61
+ end
62
+
63
+ if attributes.key?(:'conditions_match')
64
+ self.conditions_match = attributes[:'conditions_match']
65
+ end
66
+ end
67
+
68
+ # Show invalid properties with the reasons. Usually used together with valid?
69
+ # @return Array for valid properties with the reasons
70
+ def list_invalid_properties
71
+ invalid_properties = Array.new
72
+ if @conditions_match.nil?
73
+ invalid_properties.push('invalid value for "conditions_match", conditions_match cannot be nil.')
74
+ end
75
+
76
+ invalid_properties
77
+ end
78
+
79
+ # Check to see if the all the properties in the model are valid
80
+ # @return true if the model is valid
81
+ def valid?
82
+ return false if @conditions_match.nil?
83
+ true
84
+ end
85
+
86
+ # Checks equality by comparing each attribute.
87
+ # @param [Object] Object to be compared
88
+ def ==(o)
89
+ return true if self.equal?(o)
90
+ self.class == o.class &&
91
+ result == o.result &&
92
+ conditions_match == o.conditions_match
93
+ end
94
+
95
+ # @see the `==` method
96
+ # @param [Object] Object to be compared
97
+ def eql?(o)
98
+ self == o
99
+ end
100
+
101
+ # Calculates hash code according to all attributes.
102
+ # @return [Integer] Hash code
103
+ def hash
104
+ [result, conditions_match].hash
105
+ end
106
+
107
+ # Builds the object from hash
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ # @return [Object] Returns the model itself
110
+ def self.build_from_hash(attributes)
111
+ new.build_from_hash(attributes)
112
+ end
113
+
114
+ # Builds the object from hash
115
+ # @param [Hash] attributes Model attributes in the form of hash
116
+ # @return [Object] Returns the model itself
117
+ def build_from_hash(attributes)
118
+ return nil unless attributes.is_a?(Hash)
119
+ self.class.openapi_types.each_pair do |key, type|
120
+ if type =~ /\AArray<(.*)>/i
121
+ # check to ensure the input is an array given that the attribute
122
+ # is documented as an array but the input is not
123
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
124
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
125
+ end
126
+ elsif !attributes[self.class.attribute_map[key]].nil?
127
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
128
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
129
+ end
130
+
131
+ self
132
+ end
133
+
134
+ # Deserializes the data based on type
135
+ # @param string type Data type
136
+ # @param string value Value to be deserialized
137
+ # @return [Object] Deserialized data
138
+ def _deserialize(type, value)
139
+ case type.to_sym
140
+ when :DateTime
141
+ DateTime.parse(value)
142
+ when :Date
143
+ Date.parse(value)
144
+ when :String
145
+ value.to_s
146
+ when :Integer
147
+ value.to_i
148
+ when :Float
149
+ value.to_f
150
+ when :Boolean
151
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
152
+ true
153
+ else
154
+ false
155
+ end
156
+ when :Object
157
+ # generic object (usually a Hash), return directly
158
+ value
159
+ when /\AArray<(?<inner_type>.+)>\z/
160
+ inner_type = Regexp.last_match[:inner_type]
161
+ value.map { |v| _deserialize(inner_type, v) }
162
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
163
+ k_type = Regexp.last_match[:k_type]
164
+ v_type = Regexp.last_match[:v_type]
165
+ {}.tap do |hash|
166
+ value.each do |k, v|
167
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
168
+ end
169
+ end
170
+ else # model
171
+ MailSlurpClient.const_get(type).build_from_hash(value)
172
+ end
173
+ end
174
+
175
+ # Returns the string representation of the object
176
+ # @return [String] String presentation of the object
177
+ def to_s
178
+ to_hash.to_s
179
+ end
180
+
181
+ # to_body is an alias to to_hash (backward compatibility)
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_body
184
+ to_hash
185
+ end
186
+
187
+ # Returns the object in the form of hash
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_hash
190
+ hash = {}
191
+ self.class.attribute_map.each_pair do |attr, param|
192
+ value = self.send(attr)
193
+ if value.nil?
194
+ is_nullable = self.class.openapi_nullable.include?(attr)
195
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
196
+ end
197
+
198
+ hash[param] = _to_hash(value)
199
+ end
200
+ hash
201
+ end
202
+
203
+ # Outputs non-array value in the form of hash
204
+ # For object, use to_hash. Otherwise, just return the value
205
+ # @param [Object] value Any valid value
206
+ # @return [Hash] Returns the value in the form of hash
207
+ def _to_hash(value)
208
+ if value.is_a?(Array)
209
+ value.compact.map { |v| _to_hash(v) }
210
+ elsif value.is_a?(Hash)
211
+ {}.tap do |hash|
212
+ value.each { |k, v| hash[k] = _to_hash(v) }
213
+ end
214
+ elsif value.respond_to? :to_hash
215
+ value.to_hash
216
+ else
217
+ value
218
+ end
219
+ end
220
+ end
221
+ end
@@ -79,6 +79,11 @@ module MailSlurpClient
79
79
  # List of attributes with nullable: true
80
80
  def self.openapi_nullable
81
81
  Set.new([
82
+ :'name',
83
+ :'entity_id',
84
+ :'content_selector',
85
+ :'trigger_selector',
86
+ :'spread_root_array'
82
87
  ])
83
88
  end
84
89
 
@@ -130,18 +135,10 @@ module MailSlurpClient
130
135
  # @return Array for valid properties with the reasons
131
136
  def list_invalid_properties
132
137
  invalid_properties = Array.new
133
- if @name.nil?
134
- invalid_properties.push('invalid value for "name", name cannot be nil.')
135
- end
136
-
137
138
  if @ai_transform_id.nil?
138
139
  invalid_properties.push('invalid value for "ai_transform_id", ai_transform_id cannot be nil.')
139
140
  end
140
141
 
141
- if @entity_id.nil?
142
- invalid_properties.push('invalid value for "entity_id", entity_id cannot be nil.')
143
- end
144
-
145
142
  if @entity_type.nil?
146
143
  invalid_properties.push('invalid value for "entity_type", entity_type cannot be nil.')
147
144
  end
@@ -152,9 +149,7 @@ module MailSlurpClient
152
149
  # Check to see if the all the properties in the model are valid
153
150
  # @return true if the model is valid
154
151
  def valid?
155
- return false if @name.nil?
156
152
  return false if @ai_transform_id.nil?
157
- return false if @entity_id.nil?
158
153
  return false if @entity_type.nil?
159
154
  entity_type_validator = EnumAttributeValidator.new('String', ["INBOX", "PHONE"])
160
155
  return false unless entity_type_validator.valid?(@entity_type)
@@ -118,6 +118,10 @@ module MailSlurpClient
118
118
  invalid_properties.push('invalid value for "domain", domain cannot be nil.')
119
119
  end
120
120
 
121
+ if @domain.to_s.length < 1
122
+ invalid_properties.push('invalid value for "domain", the character length must be great than or equal to 1.')
123
+ end
124
+
121
125
  invalid_properties
122
126
  end
123
127
 
@@ -125,11 +129,26 @@ module MailSlurpClient
125
129
  # @return true if the model is valid
126
130
  def valid?
127
131
  return false if @domain.nil?
132
+ return false if @domain.to_s.length < 1
128
133
  domain_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_DOMAIN"])
129
134
  return false unless domain_type_validator.valid?(@domain_type)
130
135
  true
131
136
  end
132
137
 
138
+ # Custom attribute writer method with validation
139
+ # @param [Object] domain Value to be assigned
140
+ def domain=(domain)
141
+ if domain.nil?
142
+ fail ArgumentError, 'domain cannot be nil'
143
+ end
144
+
145
+ if domain.to_s.length < 1
146
+ fail ArgumentError, 'invalid value for "domain", the character length must be great than or equal to 1.'
147
+ end
148
+
149
+ @domain = domain
150
+ end
151
+
133
152
  # Custom attribute writer method checking allowed values (enum).
134
153
  # @param [Object] domain_type Object to be assigned
135
154
  def domain_type=(domain_type)
@@ -112,6 +112,10 @@ module MailSlurpClient
112
112
  invalid_properties.push('invalid value for "match", match cannot be nil.')
113
113
  end
114
114
 
115
+ if @match.to_s.length < 1
116
+ invalid_properties.push('invalid value for "match", the character length must be great than or equal to 1.')
117
+ end
118
+
115
119
  if @forward_to_recipients.nil?
116
120
  invalid_properties.push('invalid value for "forward_to_recipients", forward_to_recipients cannot be nil.')
117
121
  end
@@ -126,6 +130,7 @@ module MailSlurpClient
126
130
  field_validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS"])
127
131
  return false unless field_validator.valid?(@field)
128
132
  return false if @match.nil?
133
+ return false if @match.to_s.length < 1
129
134
  return false if @forward_to_recipients.nil?
130
135
  true
131
136
  end
@@ -140,6 +145,20 @@ module MailSlurpClient
140
145
  @field = field
141
146
  end
142
147
 
148
+ # Custom attribute writer method with validation
149
+ # @param [Object] match Value to be assigned
150
+ def match=(match)
151
+ if match.nil?
152
+ fail ArgumentError, 'match cannot be nil'
153
+ end
154
+
155
+ if match.to_s.length < 1
156
+ fail ArgumentError, 'invalid value for "match", the character length must be great than or equal to 1.'
157
+ end
158
+
159
+ @match = match
160
+ end
161
+
143
162
  # Checks equality by comparing each attribute.
144
163
  # @param [Object] Object to be compared
145
164
  def ==(o)
@@ -213,6 +213,10 @@ module MailSlurpClient
213
213
  invalid_properties.push('invalid value for "match", match cannot be nil.')
214
214
  end
215
215
 
216
+ if @match.to_s.length < 1
217
+ invalid_properties.push('invalid value for "match", the character length must be great than or equal to 1.')
218
+ end
219
+
216
220
  invalid_properties
217
221
  end
218
222
 
@@ -223,6 +227,7 @@ module MailSlurpClient
223
227
  field_validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS"])
224
228
  return false unless field_validator.valid?(@field)
225
229
  return false if @match.nil?
230
+ return false if @match.to_s.length < 1
226
231
  true
227
232
  end
228
233
 
@@ -236,6 +241,20 @@ module MailSlurpClient
236
241
  @field = field
237
242
  end
238
243
 
244
+ # Custom attribute writer method with validation
245
+ # @param [Object] match Value to be assigned
246
+ def match=(match)
247
+ if match.nil?
248
+ fail ArgumentError, 'match cannot be nil'
249
+ end
250
+
251
+ if match.to_s.length < 1
252
+ fail ArgumentError, 'invalid value for "match", the character length must be great than or equal to 1.'
253
+ end
254
+
255
+ @match = match
256
+ end
257
+
239
258
  # Checks equality by comparing each attribute.
240
259
  # @param [Object] Object to be compared
241
260
  def ==(o)
@@ -124,7 +124,7 @@ module MailSlurpClient
124
124
  scope_validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS"])
125
125
  return false unless scope_validator.valid?(@scope)
126
126
  return false if @action.nil?
127
- action_validator = EnumAttributeValidator.new('String', ["BLOCK", "ALLOW", "FILTER_REMOVE"])
127
+ action_validator = EnumAttributeValidator.new('String', ["BLOCK", "ALLOW", "FILTER_REMOVE", "BOUNCE_SOFT", "BOUNCE_HARD"])
128
128
  return false unless action_validator.valid?(@action)
129
129
  return false if @target.nil?
130
130
  true
@@ -143,7 +143,7 @@ module MailSlurpClient
143
143
  # Custom attribute writer method checking allowed values (enum).
144
144
  # @param [Object] action Object to be assigned
145
145
  def action=(action)
146
- validator = EnumAttributeValidator.new('String', ["BLOCK", "ALLOW", "FILTER_REMOVE"])
146
+ validator = EnumAttributeValidator.new('String', ["BLOCK", "ALLOW", "FILTER_REMOVE", "BOUNCE_SOFT", "BOUNCE_HARD"])
147
147
  unless validator.valid?(action)
148
148
  fail ArgumentError, "invalid value for \"action\", must be one of #{validator.allowable_values}."
149
149
  end