sendmux-mailbox 1.0.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 (139) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +12 -0
  3. data/README.md +3 -0
  4. data/lib/sendmux/mailbox/client.rb +34 -0
  5. data/lib/sendmux/mailbox/version.rb +7 -0
  6. data/lib/sendmux/mailbox.rb +12 -0
  7. data/lib/sendmux_mailbox_generated/api/mailbox_api_api.rb +3226 -0
  8. data/lib/sendmux_mailbox_generated/api_client.rb +441 -0
  9. data/lib/sendmux_mailbox_generated/api_error.rb +58 -0
  10. data/lib/sendmux_mailbox_generated/api_model_base.rb +88 -0
  11. data/lib/sendmux_mailbox_generated/configuration.rb +393 -0
  12. data/lib/sendmux_mailbox_generated/models/api_error_detail.rb +219 -0
  13. data/lib/sendmux_mailbox_generated/models/api_error_error.rb +275 -0
  14. data/lib/sendmux_mailbox_generated/models/api_error_meta.rb +164 -0
  15. data/lib/sendmux_mailbox_generated/models/api_error_response.rb +216 -0
  16. data/lib/sendmux_mailbox_generated/models/batch_delete_mailbox_messages_body.rb +204 -0
  17. data/lib/sendmux_mailbox_generated/models/batch_update_mailbox_messages_body.rb +224 -0
  18. data/lib/sendmux_mailbox_generated/models/create_mailbox_folder_body.rb +183 -0
  19. data/lib/sendmux_mailbox_generated/models/cursor_pagination.rb +173 -0
  20. data/lib/sendmux_mailbox_generated/models/mailbox.rb +284 -0
  21. data/lib/sendmux_mailbox_generated/models/mailbox_address.rb +176 -0
  22. data/lib/sendmux_mailbox_generated/models/mailbox_attachment.rb +248 -0
  23. data/lib/sendmux_mailbox_generated/models/mailbox_attachment_upload_result.rb +243 -0
  24. data/lib/sendmux_mailbox_generated/models/mailbox_attachment_upload_result_response.rb +223 -0
  25. data/lib/sendmux_mailbox_generated/models/mailbox_batch_delete_messages_result.rb +248 -0
  26. data/lib/sendmux_mailbox_generated/models/mailbox_batch_delete_messages_result_response.rb +223 -0
  27. data/lib/sendmux_mailbox_generated/models/mailbox_batch_get_body.rb +363 -0
  28. data/lib/sendmux_mailbox_generated/models/mailbox_batch_get_item.rb +188 -0
  29. data/lib/sendmux_mailbox_generated/models/mailbox_batch_get_result.rb +220 -0
  30. data/lib/sendmux_mailbox_generated/models/mailbox_batch_get_result_response.rb +223 -0
  31. data/lib/sendmux_mailbox_generated/models/mailbox_batch_get_result_states.rb +150 -0
  32. data/lib/sendmux_mailbox_generated/models/mailbox_batch_message_failure.rb +216 -0
  33. data/lib/sendmux_mailbox_generated/models/mailbox_batch_message_states.rb +162 -0
  34. data/lib/sendmux_mailbox_generated/models/mailbox_batch_update_messages_result.rb +248 -0
  35. data/lib/sendmux_mailbox_generated/models/mailbox_batch_update_messages_result_response.rb +223 -0
  36. data/lib/sendmux_mailbox_generated/models/mailbox_changes.rb +297 -0
  37. data/lib/sendmux_mailbox_generated/models/mailbox_changes_response.rb +223 -0
  38. data/lib/sendmux_mailbox_generated/models/mailbox_content_headers.rb +214 -0
  39. data/lib/sendmux_mailbox_generated/models/mailbox_content_headers_full_inner.rb +190 -0
  40. data/lib/sendmux_mailbox_generated/models/mailbox_content_headers_selected.rb +234 -0
  41. data/lib/sendmux_mailbox_generated/models/mailbox_folder.rb +307 -0
  42. data/lib/sendmux_mailbox_generated/models/mailbox_folder_cursor_list_response.rb +251 -0
  43. data/lib/sendmux_mailbox_generated/models/mailbox_folder_deleted_response.rb +223 -0
  44. data/lib/sendmux_mailbox_generated/models/mailbox_folder_deleted_response_all_of_data.rb +190 -0
  45. data/lib/sendmux_mailbox_generated/models/mailbox_folder_query_changes.rb +270 -0
  46. data/lib/sendmux_mailbox_generated/models/mailbox_folder_query_changes_added_inner.rb +190 -0
  47. data/lib/sendmux_mailbox_generated/models/mailbox_folder_query_changes_response.rb +223 -0
  48. data/lib/sendmux_mailbox_generated/models/mailbox_folder_response.rb +223 -0
  49. data/lib/sendmux_mailbox_generated/models/mailbox_get_changes200_response.rb +103 -0
  50. data/lib/sendmux_mailbox_generated/models/mailbox_identity.rb +352 -0
  51. data/lib/sendmux_mailbox_generated/models/mailbox_identity_cursor_list_response.rb +251 -0
  52. data/lib/sendmux_mailbox_generated/models/mailbox_identity_response.rb +223 -0
  53. data/lib/sendmux_mailbox_generated/models/mailbox_me.rb +301 -0
  54. data/lib/sendmux_mailbox_generated/models/mailbox_me_item_response.rb +223 -0
  55. data/lib/sendmux_mailbox_generated/models/mailbox_message.rb +515 -0
  56. data/lib/sendmux_mailbox_generated/models/mailbox_message_content.rb +348 -0
  57. data/lib/sendmux_mailbox_generated/models/mailbox_message_content_body.rb +327 -0
  58. data/lib/sendmux_mailbox_generated/models/mailbox_message_content_dates.rb +162 -0
  59. data/lib/sendmux_mailbox_generated/models/mailbox_message_content_participants.rb +276 -0
  60. data/lib/sendmux_mailbox_generated/models/mailbox_message_content_response.rb +223 -0
  61. data/lib/sendmux_mailbox_generated/models/mailbox_message_content_response_all_of_data.rb +355 -0
  62. data/lib/sendmux_mailbox_generated/models/mailbox_message_content_states.rb +176 -0
  63. data/lib/sendmux_mailbox_generated/models/mailbox_message_count.rb +176 -0
  64. data/lib/sendmux_mailbox_generated/models/mailbox_message_count_response.rb +223 -0
  65. data/lib/sendmux_mailbox_generated/models/mailbox_message_deleted_response.rb +223 -0
  66. data/lib/sendmux_mailbox_generated/models/mailbox_message_detail_response.rb +223 -0
  67. data/lib/sendmux_mailbox_generated/models/mailbox_message_flags.rb +242 -0
  68. data/lib/sendmux_mailbox_generated/models/mailbox_message_query_changes.rb +270 -0
  69. data/lib/sendmux_mailbox_generated/models/mailbox_message_query_changes_response.rb +223 -0
  70. data/lib/sendmux_mailbox_generated/models/mailbox_message_summary.rb +456 -0
  71. data/lib/sendmux_mailbox_generated/models/mailbox_message_summary_cursor_list_response.rb +251 -0
  72. data/lib/sendmux_mailbox_generated/models/mailbox_message_summary_from.rb +183 -0
  73. data/lib/sendmux_mailbox_generated/models/mailbox_quota.rb +359 -0
  74. data/lib/sendmux_mailbox_generated/models/mailbox_quota_cursor_list_response.rb +251 -0
  75. data/lib/sendmux_mailbox_generated/models/mailbox_raw_body.rb +279 -0
  76. data/lib/sendmux_mailbox_generated/models/mailbox_raw_body_body.rb +200 -0
  77. data/lib/sendmux_mailbox_generated/models/mailbox_raw_body_response.rb +223 -0
  78. data/lib/sendmux_mailbox_generated/models/mailbox_raw_body_response_all_of_data.rb +286 -0
  79. data/lib/sendmux_mailbox_generated/models/mailbox_realtime_event.rb +380 -0
  80. data/lib/sendmux_mailbox_generated/models/mailbox_realtime_message.rb +529 -0
  81. data/lib/sendmux_mailbox_generated/models/mailbox_realtime_message_all_of_body.rb +214 -0
  82. data/lib/sendmux_mailbox_generated/models/mailbox_search_snippet.rb +190 -0
  83. data/lib/sendmux_mailbox_generated/models/mailbox_search_snippets_result.rb +206 -0
  84. data/lib/sendmux_mailbox_generated/models/mailbox_search_snippets_result_response.rb +223 -0
  85. data/lib/sendmux_mailbox_generated/models/mailbox_send_result_response.rb +223 -0
  86. data/lib/sendmux_mailbox_generated/models/mailbox_send_scope.rb +213 -0
  87. data/lib/sendmux_mailbox_generated/models/mailbox_session.rb +294 -0
  88. data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities.rb +346 -0
  89. data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_attachments.rb +294 -0
  90. data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_folders.rb +320 -0
  91. data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_identities.rb +268 -0
  92. data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_messages.rb +516 -0
  93. data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_quotas.rb +242 -0
  94. data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_submissions.rb +242 -0
  95. data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_sync.rb +222 -0
  96. data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_threads.rb +268 -0
  97. data/lib/sendmux_mailbox_generated/models/mailbox_session_endpoints.rb +334 -0
  98. data/lib/sendmux_mailbox_generated/models/mailbox_session_gated.rb +451 -0
  99. data/lib/sendmux_mailbox_generated/models/mailbox_session_limits.rb +398 -0
  100. data/lib/sendmux_mailbox_generated/models/mailbox_session_mailbox.rb +203 -0
  101. data/lib/sendmux_mailbox_generated/models/mailbox_session_response.rb +223 -0
  102. data/lib/sendmux_mailbox_generated/models/mailbox_session_states.rb +294 -0
  103. data/lib/sendmux_mailbox_generated/models/mailbox_submission.rb +321 -0
  104. data/lib/sendmux_mailbox_generated/models/mailbox_submission_cursor_list_response.rb +251 -0
  105. data/lib/sendmux_mailbox_generated/models/mailbox_submission_delivery_status.rb +200 -0
  106. data/lib/sendmux_mailbox_generated/models/mailbox_submission_envelope.rb +178 -0
  107. data/lib/sendmux_mailbox_generated/models/mailbox_submission_envelope_address.rb +178 -0
  108. data/lib/sendmux_mailbox_generated/models/mailbox_submission_envelope_rcpt_to_inner.rb +185 -0
  109. data/lib/sendmux_mailbox_generated/models/mailbox_submission_response.rb +223 -0
  110. data/lib/sendmux_mailbox_generated/models/mailbox_thread.rb +398 -0
  111. data/lib/sendmux_mailbox_generated/models/mailbox_thread_content_meta.rb +244 -0
  112. data/lib/sendmux_mailbox_generated/models/mailbox_thread_content_meta_states.rb +188 -0
  113. data/lib/sendmux_mailbox_generated/models/mailbox_thread_content_response.rb +251 -0
  114. data/lib/sendmux_mailbox_generated/models/mailbox_thread_content_response_all_of_data.rb +355 -0
  115. data/lib/sendmux_mailbox_generated/models/mailbox_thread_detail_response.rb +223 -0
  116. data/lib/sendmux_mailbox_generated/models/mailbox_thread_summary.rb +363 -0
  117. data/lib/sendmux_mailbox_generated/models/mailbox_thread_summary_cursor_list_response.rb +251 -0
  118. data/lib/sendmux_mailbox_generated/models/mailbox_thread_summary_last_message.rb +463 -0
  119. data/lib/sendmux_mailbox_generated/models/mailbox_thread_summary_states.rb +162 -0
  120. data/lib/sendmux_mailbox_generated/models/mailbox_typed_changes.rb +164 -0
  121. data/lib/sendmux_mailbox_generated/models/mailbox_typed_changes_response.rb +223 -0
  122. data/lib/sendmux_mailbox_generated/models/mailbox_typed_changes_types.rb +192 -0
  123. data/lib/sendmux_mailbox_generated/models/mailbox_usage.rb +192 -0
  124. data/lib/sendmux_mailbox_generated/models/mailbox_usage_resource.rb +408 -0
  125. data/lib/sendmux_mailbox_generated/models/mailbox_usage_response.rb +223 -0
  126. data/lib/sendmux_mailbox_generated/models/mailbox_usage_states.rb +150 -0
  127. data/lib/sendmux_mailbox_generated/models/patch_mailbox_folder_body.rb +166 -0
  128. data/lib/sendmux_mailbox_generated/models/patch_mailbox_message_body.rb +168 -0
  129. data/lib/sendmux_mailbox_generated/models/response_meta.rb +164 -0
  130. data/lib/sendmux_mailbox_generated/models/send_mailbox_message_body.rb +283 -0
  131. data/lib/sendmux_mailbox_generated/models/send_mailbox_message_body_attachments_inner.rb +103 -0
  132. data/lib/sendmux_mailbox_generated/models/send_mailbox_message_body_attachments_inner_any_of.rb +217 -0
  133. data/lib/sendmux_mailbox_generated/models/send_mailbox_message_body_attachments_inner_any_of1.rb +217 -0
  134. data/lib/sendmux_mailbox_generated/models/send_mailbox_message_result.rb +214 -0
  135. data/lib/sendmux_mailbox_generated/models/success_envelope.rb +192 -0
  136. data/lib/sendmux_mailbox_generated/models/update_mailbox_identity_body.rb +216 -0
  137. data/lib/sendmux_mailbox_generated/version.rb +15 -0
  138. data/lib/sendmux_mailbox_generated.rb +166 -0
  139. metadata +255 -0
@@ -0,0 +1,451 @@
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::Mailbox::Generated
17
+ # Flags are true when a feature is intentionally unavailable through the mailbox API.
18
+ class MailboxSessionGated < ApiModelBase
19
+ attr_accessor :attachment_parsing
20
+
21
+ attr_accessor :blob_copy
22
+
23
+ attr_accessor :blob_lookup
24
+
25
+ attr_accessor :events
26
+
27
+ attr_accessor :filter_script_writes
28
+
29
+ attr_accessor :identity_mutation
30
+
31
+ attr_accessor :message_copy
32
+
33
+ attr_accessor :message_import
34
+
35
+ attr_accessor :message_parse
36
+
37
+ attr_accessor :quota_mutation
38
+
39
+ attr_accessor :raw_protocol
40
+
41
+ attr_accessor :vacation_response
42
+
43
+ # Attribute mapping from ruby-style variable name to JSON key.
44
+ def self.attribute_map
45
+ {
46
+ :'attachment_parsing' => :'attachment_parsing',
47
+ :'blob_copy' => :'blob_copy',
48
+ :'blob_lookup' => :'blob_lookup',
49
+ :'events' => :'events',
50
+ :'filter_script_writes' => :'filter_script_writes',
51
+ :'identity_mutation' => :'identity_mutation',
52
+ :'message_copy' => :'message_copy',
53
+ :'message_import' => :'message_import',
54
+ :'message_parse' => :'message_parse',
55
+ :'quota_mutation' => :'quota_mutation',
56
+ :'raw_protocol' => :'raw_protocol',
57
+ :'vacation_response' => :'vacation_response'
58
+ }
59
+ end
60
+
61
+ # Returns attribute mapping this model knows about
62
+ def self.acceptable_attribute_map
63
+ attribute_map
64
+ end
65
+
66
+ # Returns all the JSON keys this model knows about
67
+ def self.acceptable_attributes
68
+ acceptable_attribute_map.values
69
+ end
70
+
71
+ # Attribute type mapping.
72
+ def self.openapi_types
73
+ {
74
+ :'attachment_parsing' => :'Boolean',
75
+ :'blob_copy' => :'Boolean',
76
+ :'blob_lookup' => :'Boolean',
77
+ :'events' => :'Boolean',
78
+ :'filter_script_writes' => :'Boolean',
79
+ :'identity_mutation' => :'Boolean',
80
+ :'message_copy' => :'Boolean',
81
+ :'message_import' => :'Boolean',
82
+ :'message_parse' => :'Boolean',
83
+ :'quota_mutation' => :'Boolean',
84
+ :'raw_protocol' => :'Boolean',
85
+ :'vacation_response' => :'Boolean'
86
+ }
87
+ end
88
+
89
+ # List of attributes with nullable: true
90
+ def self.openapi_nullable
91
+ Set.new([
92
+ ])
93
+ end
94
+
95
+ # Initializes the object
96
+ # @param [Hash] attributes Model attributes in the form of hash
97
+ def initialize(attributes = {})
98
+ if (!attributes.is_a?(Hash))
99
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Sendmux::Mailbox::Generated::MailboxSessionGated` initialize method"
100
+ end
101
+
102
+ # check to see if the attribute exists and convert string to symbol for hash key
103
+ acceptable_attribute_map = self.class.acceptable_attribute_map
104
+ attributes = attributes.each_with_object({}) { |(k, v), h|
105
+ if (!acceptable_attribute_map.key?(k.to_sym))
106
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Sendmux::Mailbox::Generated::MailboxSessionGated`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
107
+ end
108
+ h[k.to_sym] = v
109
+ }
110
+
111
+ if attributes.key?(:'attachment_parsing')
112
+ self.attachment_parsing = attributes[:'attachment_parsing']
113
+ else
114
+ self.attachment_parsing = nil
115
+ end
116
+
117
+ if attributes.key?(:'blob_copy')
118
+ self.blob_copy = attributes[:'blob_copy']
119
+ else
120
+ self.blob_copy = nil
121
+ end
122
+
123
+ if attributes.key?(:'blob_lookup')
124
+ self.blob_lookup = attributes[:'blob_lookup']
125
+ else
126
+ self.blob_lookup = nil
127
+ end
128
+
129
+ if attributes.key?(:'events')
130
+ self.events = attributes[:'events']
131
+ else
132
+ self.events = nil
133
+ end
134
+
135
+ if attributes.key?(:'filter_script_writes')
136
+ self.filter_script_writes = attributes[:'filter_script_writes']
137
+ else
138
+ self.filter_script_writes = nil
139
+ end
140
+
141
+ if attributes.key?(:'identity_mutation')
142
+ self.identity_mutation = attributes[:'identity_mutation']
143
+ else
144
+ self.identity_mutation = nil
145
+ end
146
+
147
+ if attributes.key?(:'message_copy')
148
+ self.message_copy = attributes[:'message_copy']
149
+ else
150
+ self.message_copy = nil
151
+ end
152
+
153
+ if attributes.key?(:'message_import')
154
+ self.message_import = attributes[:'message_import']
155
+ else
156
+ self.message_import = nil
157
+ end
158
+
159
+ if attributes.key?(:'message_parse')
160
+ self.message_parse = attributes[:'message_parse']
161
+ else
162
+ self.message_parse = nil
163
+ end
164
+
165
+ if attributes.key?(:'quota_mutation')
166
+ self.quota_mutation = attributes[:'quota_mutation']
167
+ else
168
+ self.quota_mutation = nil
169
+ end
170
+
171
+ if attributes.key?(:'raw_protocol')
172
+ self.raw_protocol = attributes[:'raw_protocol']
173
+ else
174
+ self.raw_protocol = nil
175
+ end
176
+
177
+ if attributes.key?(:'vacation_response')
178
+ self.vacation_response = attributes[:'vacation_response']
179
+ else
180
+ self.vacation_response = nil
181
+ end
182
+ end
183
+
184
+ # Show invalid properties with the reasons. Usually used together with valid?
185
+ # @return Array for valid properties with the reasons
186
+ def list_invalid_properties
187
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
188
+ invalid_properties = Array.new
189
+ if @attachment_parsing.nil?
190
+ invalid_properties.push('invalid value for "attachment_parsing", attachment_parsing cannot be nil.')
191
+ end
192
+
193
+ if @blob_copy.nil?
194
+ invalid_properties.push('invalid value for "blob_copy", blob_copy cannot be nil.')
195
+ end
196
+
197
+ if @blob_lookup.nil?
198
+ invalid_properties.push('invalid value for "blob_lookup", blob_lookup cannot be nil.')
199
+ end
200
+
201
+ if @events.nil?
202
+ invalid_properties.push('invalid value for "events", events cannot be nil.')
203
+ end
204
+
205
+ if @filter_script_writes.nil?
206
+ invalid_properties.push('invalid value for "filter_script_writes", filter_script_writes cannot be nil.')
207
+ end
208
+
209
+ if @identity_mutation.nil?
210
+ invalid_properties.push('invalid value for "identity_mutation", identity_mutation cannot be nil.')
211
+ end
212
+
213
+ if @message_copy.nil?
214
+ invalid_properties.push('invalid value for "message_copy", message_copy cannot be nil.')
215
+ end
216
+
217
+ if @message_import.nil?
218
+ invalid_properties.push('invalid value for "message_import", message_import cannot be nil.')
219
+ end
220
+
221
+ if @message_parse.nil?
222
+ invalid_properties.push('invalid value for "message_parse", message_parse cannot be nil.')
223
+ end
224
+
225
+ if @quota_mutation.nil?
226
+ invalid_properties.push('invalid value for "quota_mutation", quota_mutation cannot be nil.')
227
+ end
228
+
229
+ if @raw_protocol.nil?
230
+ invalid_properties.push('invalid value for "raw_protocol", raw_protocol cannot be nil.')
231
+ end
232
+
233
+ if @vacation_response.nil?
234
+ invalid_properties.push('invalid value for "vacation_response", vacation_response cannot be nil.')
235
+ end
236
+
237
+ invalid_properties
238
+ end
239
+
240
+ # Check to see if the all the properties in the model are valid
241
+ # @return true if the model is valid
242
+ def valid?
243
+ warn '[DEPRECATED] the `valid?` method is obsolete'
244
+ return false if @attachment_parsing.nil?
245
+ return false if @blob_copy.nil?
246
+ return false if @blob_lookup.nil?
247
+ return false if @events.nil?
248
+ return false if @filter_script_writes.nil?
249
+ return false if @identity_mutation.nil?
250
+ return false if @message_copy.nil?
251
+ return false if @message_import.nil?
252
+ return false if @message_parse.nil?
253
+ return false if @quota_mutation.nil?
254
+ return false if @raw_protocol.nil?
255
+ return false if @vacation_response.nil?
256
+ true
257
+ end
258
+
259
+ # Custom attribute writer method with validation
260
+ # @param [Object] attachment_parsing Value to be assigned
261
+ def attachment_parsing=(attachment_parsing)
262
+ if attachment_parsing.nil?
263
+ fail ArgumentError, 'attachment_parsing cannot be nil'
264
+ end
265
+
266
+ @attachment_parsing = attachment_parsing
267
+ end
268
+
269
+ # Custom attribute writer method with validation
270
+ # @param [Object] blob_copy Value to be assigned
271
+ def blob_copy=(blob_copy)
272
+ if blob_copy.nil?
273
+ fail ArgumentError, 'blob_copy cannot be nil'
274
+ end
275
+
276
+ @blob_copy = blob_copy
277
+ end
278
+
279
+ # Custom attribute writer method with validation
280
+ # @param [Object] blob_lookup Value to be assigned
281
+ def blob_lookup=(blob_lookup)
282
+ if blob_lookup.nil?
283
+ fail ArgumentError, 'blob_lookup cannot be nil'
284
+ end
285
+
286
+ @blob_lookup = blob_lookup
287
+ end
288
+
289
+ # Custom attribute writer method with validation
290
+ # @param [Object] events Value to be assigned
291
+ def events=(events)
292
+ if events.nil?
293
+ fail ArgumentError, 'events cannot be nil'
294
+ end
295
+
296
+ @events = events
297
+ end
298
+
299
+ # Custom attribute writer method with validation
300
+ # @param [Object] filter_script_writes Value to be assigned
301
+ def filter_script_writes=(filter_script_writes)
302
+ if filter_script_writes.nil?
303
+ fail ArgumentError, 'filter_script_writes cannot be nil'
304
+ end
305
+
306
+ @filter_script_writes = filter_script_writes
307
+ end
308
+
309
+ # Custom attribute writer method with validation
310
+ # @param [Object] identity_mutation Value to be assigned
311
+ def identity_mutation=(identity_mutation)
312
+ if identity_mutation.nil?
313
+ fail ArgumentError, 'identity_mutation cannot be nil'
314
+ end
315
+
316
+ @identity_mutation = identity_mutation
317
+ end
318
+
319
+ # Custom attribute writer method with validation
320
+ # @param [Object] message_copy Value to be assigned
321
+ def message_copy=(message_copy)
322
+ if message_copy.nil?
323
+ fail ArgumentError, 'message_copy cannot be nil'
324
+ end
325
+
326
+ @message_copy = message_copy
327
+ end
328
+
329
+ # Custom attribute writer method with validation
330
+ # @param [Object] message_import Value to be assigned
331
+ def message_import=(message_import)
332
+ if message_import.nil?
333
+ fail ArgumentError, 'message_import cannot be nil'
334
+ end
335
+
336
+ @message_import = message_import
337
+ end
338
+
339
+ # Custom attribute writer method with validation
340
+ # @param [Object] message_parse Value to be assigned
341
+ def message_parse=(message_parse)
342
+ if message_parse.nil?
343
+ fail ArgumentError, 'message_parse cannot be nil'
344
+ end
345
+
346
+ @message_parse = message_parse
347
+ end
348
+
349
+ # Custom attribute writer method with validation
350
+ # @param [Object] quota_mutation Value to be assigned
351
+ def quota_mutation=(quota_mutation)
352
+ if quota_mutation.nil?
353
+ fail ArgumentError, 'quota_mutation cannot be nil'
354
+ end
355
+
356
+ @quota_mutation = quota_mutation
357
+ end
358
+
359
+ # Custom attribute writer method with validation
360
+ # @param [Object] raw_protocol Value to be assigned
361
+ def raw_protocol=(raw_protocol)
362
+ if raw_protocol.nil?
363
+ fail ArgumentError, 'raw_protocol cannot be nil'
364
+ end
365
+
366
+ @raw_protocol = raw_protocol
367
+ end
368
+
369
+ # Custom attribute writer method with validation
370
+ # @param [Object] vacation_response Value to be assigned
371
+ def vacation_response=(vacation_response)
372
+ if vacation_response.nil?
373
+ fail ArgumentError, 'vacation_response cannot be nil'
374
+ end
375
+
376
+ @vacation_response = vacation_response
377
+ end
378
+
379
+ # Checks equality by comparing each attribute.
380
+ # @param [Object] Object to be compared
381
+ def ==(o)
382
+ return true if self.equal?(o)
383
+ self.class == o.class &&
384
+ attachment_parsing == o.attachment_parsing &&
385
+ blob_copy == o.blob_copy &&
386
+ blob_lookup == o.blob_lookup &&
387
+ events == o.events &&
388
+ filter_script_writes == o.filter_script_writes &&
389
+ identity_mutation == o.identity_mutation &&
390
+ message_copy == o.message_copy &&
391
+ message_import == o.message_import &&
392
+ message_parse == o.message_parse &&
393
+ quota_mutation == o.quota_mutation &&
394
+ raw_protocol == o.raw_protocol &&
395
+ vacation_response == o.vacation_response
396
+ end
397
+
398
+ # @see the `==` method
399
+ # @param [Object] Object to be compared
400
+ def eql?(o)
401
+ self == o
402
+ end
403
+
404
+ # Calculates hash code according to all attributes.
405
+ # @return [Integer] Hash code
406
+ def hash
407
+ [attachment_parsing, blob_copy, blob_lookup, events, filter_script_writes, identity_mutation, message_copy, message_import, message_parse, quota_mutation, raw_protocol, vacation_response].hash
408
+ end
409
+
410
+ # Builds the object from hash
411
+ # @param [Hash] attributes Model attributes in the form of hash
412
+ # @return [Object] Returns the model itself
413
+ def self.build_from_hash(attributes)
414
+ return nil unless attributes.is_a?(Hash)
415
+ attributes = attributes.transform_keys(&:to_sym)
416
+ transformed_hash = {}
417
+ openapi_types.each_pair do |key, type|
418
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
419
+ transformed_hash["#{key}"] = nil
420
+ elsif type =~ /\AArray<(.*)>/i
421
+ # check to ensure the input is an array given that the attribute
422
+ # is documented as an array but the input is not
423
+ if attributes[attribute_map[key]].is_a?(Array)
424
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
425
+ end
426
+ elsif !attributes[attribute_map[key]].nil?
427
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
428
+ end
429
+ end
430
+ new(transformed_hash)
431
+ end
432
+
433
+ # Returns the object in the form of hash
434
+ # @return [Hash] Returns the object in the form of hash
435
+ def to_hash
436
+ hash = {}
437
+ self.class.attribute_map.each_pair do |attr, param|
438
+ value = self.send(attr)
439
+ if value.nil?
440
+ is_nullable = self.class.openapi_nullable.include?(attr)
441
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
442
+ end
443
+
444
+ hash[param] = _to_hash(value)
445
+ end
446
+ hash
447
+ end
448
+
449
+ end
450
+
451
+ end