sendmux-mailbox 2.0.1 → 3.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 (153) hide show
  1. checksums.yaml +4 -4
  2. metadata +13 -230
  3. data/CHANGELOG.md +0 -79
  4. data/LICENSE +0 -21
  5. data/README.md +0 -181
  6. data/lib/sendmux/mailbox/client.rb +0 -41
  7. data/lib/sendmux/mailbox/version.rb +0 -7
  8. data/lib/sendmux/mailbox.rb +0 -12
  9. data/lib/sendmux_mailbox_generated/api/mailbox_api_api.rb +0 -3547
  10. data/lib/sendmux_mailbox_generated/api_client.rb +0 -447
  11. data/lib/sendmux_mailbox_generated/api_error.rb +0 -58
  12. data/lib/sendmux_mailbox_generated/api_model_base.rb +0 -88
  13. data/lib/sendmux_mailbox_generated/configuration.rb +0 -400
  14. data/lib/sendmux_mailbox_generated/models/api_error_detail.rb +0 -219
  15. data/lib/sendmux_mailbox_generated/models/api_error_error.rb +0 -275
  16. data/lib/sendmux_mailbox_generated/models/api_error_meta.rb +0 -164
  17. data/lib/sendmux_mailbox_generated/models/api_error_response.rb +0 -216
  18. data/lib/sendmux_mailbox_generated/models/batch_delete_mailbox_messages_body.rb +0 -205
  19. data/lib/sendmux_mailbox_generated/models/batch_update_mailbox_messages_body.rb +0 -227
  20. data/lib/sendmux_mailbox_generated/models/connection.rb +0 -273
  21. data/lib/sendmux_mailbox_generated/models/connection_credential.rb +0 -226
  22. data/lib/sendmux_mailbox_generated/models/connection_mailboxes_inner.rb +0 -190
  23. data/lib/sendmux_mailbox_generated/models/connection_response.rb +0 -223
  24. data/lib/sendmux_mailbox_generated/models/connection_team.rb +0 -190
  25. data/lib/sendmux_mailbox_generated/models/create_mailbox_folder_body.rb +0 -183
  26. data/lib/sendmux_mailbox_generated/models/cursor_pagination.rb +0 -173
  27. data/lib/sendmux_mailbox_generated/models/granted_mailbox.rb +0 -192
  28. data/lib/sendmux_mailbox_generated/models/granted_mailbox_list_response.rb +0 -251
  29. data/lib/sendmux_mailbox_generated/models/mailbox_address.rb +0 -176
  30. data/lib/sendmux_mailbox_generated/models/mailbox_attachment.rb +0 -250
  31. data/lib/sendmux_mailbox_generated/models/mailbox_attachment_upload_intent_body.rb +0 -228
  32. data/lib/sendmux_mailbox_generated/models/mailbox_attachment_upload_intent_result.rb +0 -323
  33. data/lib/sendmux_mailbox_generated/models/mailbox_attachment_upload_intent_result_headers.rb +0 -191
  34. data/lib/sendmux_mailbox_generated/models/mailbox_attachment_upload_intent_result_response.rb +0 -223
  35. data/lib/sendmux_mailbox_generated/models/mailbox_attachment_upload_result.rb +0 -243
  36. data/lib/sendmux_mailbox_generated/models/mailbox_attachment_upload_result_response.rb +0 -223
  37. data/lib/sendmux_mailbox_generated/models/mailbox_batch_delete_messages_result.rb +0 -248
  38. data/lib/sendmux_mailbox_generated/models/mailbox_batch_delete_messages_result_response.rb +0 -223
  39. data/lib/sendmux_mailbox_generated/models/mailbox_batch_get_body.rb +0 -373
  40. data/lib/sendmux_mailbox_generated/models/mailbox_batch_get_item.rb +0 -188
  41. data/lib/sendmux_mailbox_generated/models/mailbox_batch_get_result.rb +0 -220
  42. data/lib/sendmux_mailbox_generated/models/mailbox_batch_get_result_response.rb +0 -223
  43. data/lib/sendmux_mailbox_generated/models/mailbox_batch_get_result_states.rb +0 -150
  44. data/lib/sendmux_mailbox_generated/models/mailbox_batch_message_failure.rb +0 -216
  45. data/lib/sendmux_mailbox_generated/models/mailbox_batch_message_states.rb +0 -162
  46. data/lib/sendmux_mailbox_generated/models/mailbox_batch_update_messages_result.rb +0 -248
  47. data/lib/sendmux_mailbox_generated/models/mailbox_batch_update_messages_result_response.rb +0 -223
  48. data/lib/sendmux_mailbox_generated/models/mailbox_changes.rb +0 -307
  49. data/lib/sendmux_mailbox_generated/models/mailbox_changes_response.rb +0 -223
  50. data/lib/sendmux_mailbox_generated/models/mailbox_content_headers.rb +0 -214
  51. data/lib/sendmux_mailbox_generated/models/mailbox_content_headers_full_inner.rb +0 -190
  52. data/lib/sendmux_mailbox_generated/models/mailbox_content_headers_selected.rb +0 -234
  53. data/lib/sendmux_mailbox_generated/models/mailbox_folder.rb +0 -307
  54. data/lib/sendmux_mailbox_generated/models/mailbox_folder_cursor_list_response.rb +0 -251
  55. data/lib/sendmux_mailbox_generated/models/mailbox_folder_deleted_response.rb +0 -223
  56. data/lib/sendmux_mailbox_generated/models/mailbox_folder_deleted_response_all_of_data.rb +0 -190
  57. data/lib/sendmux_mailbox_generated/models/mailbox_folder_query_changes.rb +0 -270
  58. data/lib/sendmux_mailbox_generated/models/mailbox_folder_query_changes_added_inner.rb +0 -190
  59. data/lib/sendmux_mailbox_generated/models/mailbox_folder_query_changes_response.rb +0 -223
  60. data/lib/sendmux_mailbox_generated/models/mailbox_folder_response.rb +0 -223
  61. data/lib/sendmux_mailbox_generated/models/mailbox_get_changes200_response.rb +0 -103
  62. data/lib/sendmux_mailbox_generated/models/mailbox_identity.rb +0 -352
  63. data/lib/sendmux_mailbox_generated/models/mailbox_identity_cursor_list_response.rb +0 -251
  64. data/lib/sendmux_mailbox_generated/models/mailbox_identity_list_meta.rb +0 -173
  65. data/lib/sendmux_mailbox_generated/models/mailbox_identity_response.rb +0 -223
  66. data/lib/sendmux_mailbox_generated/models/mailbox_me.rb +0 -294
  67. data/lib/sendmux_mailbox_generated/models/mailbox_me_item_response.rb +0 -223
  68. data/lib/sendmux_mailbox_generated/models/mailbox_message.rb +0 -478
  69. data/lib/sendmux_mailbox_generated/models/mailbox_message_content.rb +0 -348
  70. data/lib/sendmux_mailbox_generated/models/mailbox_message_content_body.rb +0 -327
  71. data/lib/sendmux_mailbox_generated/models/mailbox_message_content_dates.rb +0 -162
  72. data/lib/sendmux_mailbox_generated/models/mailbox_message_content_participants.rb +0 -262
  73. data/lib/sendmux_mailbox_generated/models/mailbox_message_content_response.rb +0 -223
  74. data/lib/sendmux_mailbox_generated/models/mailbox_message_content_response_all_of_data.rb +0 -355
  75. data/lib/sendmux_mailbox_generated/models/mailbox_message_content_states.rb +0 -176
  76. data/lib/sendmux_mailbox_generated/models/mailbox_message_count.rb +0 -176
  77. data/lib/sendmux_mailbox_generated/models/mailbox_message_count_response.rb +0 -223
  78. data/lib/sendmux_mailbox_generated/models/mailbox_message_deleted_response.rb +0 -223
  79. data/lib/sendmux_mailbox_generated/models/mailbox_message_detail_response.rb +0 -223
  80. data/lib/sendmux_mailbox_generated/models/mailbox_message_flags.rb +0 -242
  81. data/lib/sendmux_mailbox_generated/models/mailbox_message_query_changes.rb +0 -270
  82. data/lib/sendmux_mailbox_generated/models/mailbox_message_query_changes_response.rb +0 -223
  83. data/lib/sendmux_mailbox_generated/models/mailbox_message_summary.rb +0 -454
  84. data/lib/sendmux_mailbox_generated/models/mailbox_message_summary_cursor_list_response.rb +0 -251
  85. data/lib/sendmux_mailbox_generated/models/mailbox_query_meta.rb +0 -173
  86. data/lib/sendmux_mailbox_generated/models/mailbox_quota.rb +0 -359
  87. data/lib/sendmux_mailbox_generated/models/mailbox_quota_cursor_list_response.rb +0 -251
  88. data/lib/sendmux_mailbox_generated/models/mailbox_raw_body.rb +0 -279
  89. data/lib/sendmux_mailbox_generated/models/mailbox_raw_body_body.rb +0 -200
  90. data/lib/sendmux_mailbox_generated/models/mailbox_raw_body_response.rb +0 -223
  91. data/lib/sendmux_mailbox_generated/models/mailbox_raw_body_response_all_of_data.rb +0 -286
  92. data/lib/sendmux_mailbox_generated/models/mailbox_realtime_event.rb +0 -366
  93. data/lib/sendmux_mailbox_generated/models/mailbox_realtime_message.rb +0 -492
  94. data/lib/sendmux_mailbox_generated/models/mailbox_realtime_message_body.rb +0 -214
  95. data/lib/sendmux_mailbox_generated/models/mailbox_search_snippet.rb +0 -190
  96. data/lib/sendmux_mailbox_generated/models/mailbox_search_snippets_result.rb +0 -206
  97. data/lib/sendmux_mailbox_generated/models/mailbox_search_snippets_result_response.rb +0 -223
  98. data/lib/sendmux_mailbox_generated/models/mailbox_send_result_response.rb +0 -223
  99. data/lib/sendmux_mailbox_generated/models/mailbox_send_scope.rb +0 -213
  100. data/lib/sendmux_mailbox_generated/models/mailbox_session.rb +0 -294
  101. data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities.rb +0 -346
  102. data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_attachments.rb +0 -294
  103. data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_folders.rb +0 -320
  104. data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_identities.rb +0 -268
  105. data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_messages.rb +0 -516
  106. data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_quotas.rb +0 -242
  107. data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_submissions.rb +0 -242
  108. data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_sync.rb +0 -222
  109. data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_threads.rb +0 -268
  110. data/lib/sendmux_mailbox_generated/models/mailbox_session_endpoints.rb +0 -334
  111. data/lib/sendmux_mailbox_generated/models/mailbox_session_gated.rb +0 -451
  112. data/lib/sendmux_mailbox_generated/models/mailbox_session_limits.rb +0 -398
  113. data/lib/sendmux_mailbox_generated/models/mailbox_session_mailbox.rb +0 -203
  114. data/lib/sendmux_mailbox_generated/models/mailbox_session_response.rb +0 -223
  115. data/lib/sendmux_mailbox_generated/models/mailbox_session_states.rb +0 -294
  116. data/lib/sendmux_mailbox_generated/models/mailbox_submission.rb +0 -321
  117. data/lib/sendmux_mailbox_generated/models/mailbox_submission_cursor_list_response.rb +0 -251
  118. data/lib/sendmux_mailbox_generated/models/mailbox_submission_delivery_status.rb +0 -200
  119. data/lib/sendmux_mailbox_generated/models/mailbox_submission_envelope.rb +0 -178
  120. data/lib/sendmux_mailbox_generated/models/mailbox_submission_envelope_address.rb +0 -178
  121. data/lib/sendmux_mailbox_generated/models/mailbox_submission_envelope_rcpt_to_inner.rb +0 -185
  122. data/lib/sendmux_mailbox_generated/models/mailbox_submission_response.rb +0 -223
  123. data/lib/sendmux_mailbox_generated/models/mailbox_sync_meta.rb +0 -173
  124. data/lib/sendmux_mailbox_generated/models/mailbox_thread.rb +0 -377
  125. data/lib/sendmux_mailbox_generated/models/mailbox_thread_content_meta.rb +0 -244
  126. data/lib/sendmux_mailbox_generated/models/mailbox_thread_content_meta_states.rb +0 -188
  127. data/lib/sendmux_mailbox_generated/models/mailbox_thread_content_response.rb +0 -251
  128. data/lib/sendmux_mailbox_generated/models/mailbox_thread_content_response_all_of_data.rb +0 -355
  129. data/lib/sendmux_mailbox_generated/models/mailbox_thread_detail_response.rb +0 -223
  130. data/lib/sendmux_mailbox_generated/models/mailbox_thread_message_summary_cursor_list_response.rb +0 -251
  131. data/lib/sendmux_mailbox_generated/models/mailbox_thread_messages_meta.rb +0 -199
  132. data/lib/sendmux_mailbox_generated/models/mailbox_thread_summary.rb +0 -349
  133. data/lib/sendmux_mailbox_generated/models/mailbox_thread_summary_cursor_list_response.rb +0 -251
  134. data/lib/sendmux_mailbox_generated/models/mailbox_thread_summary_states.rb +0 -162
  135. data/lib/sendmux_mailbox_generated/models/mailbox_typed_changes.rb +0 -164
  136. data/lib/sendmux_mailbox_generated/models/mailbox_typed_changes_response.rb +0 -223
  137. data/lib/sendmux_mailbox_generated/models/mailbox_typed_changes_types.rb +0 -192
  138. data/lib/sendmux_mailbox_generated/models/mailbox_usage.rb +0 -192
  139. data/lib/sendmux_mailbox_generated/models/mailbox_usage_resource.rb +0 -408
  140. data/lib/sendmux_mailbox_generated/models/mailbox_usage_response.rb +0 -223
  141. data/lib/sendmux_mailbox_generated/models/mailbox_usage_states.rb +0 -150
  142. data/lib/sendmux_mailbox_generated/models/patch_mailbox_folder_body.rb +0 -166
  143. data/lib/sendmux_mailbox_generated/models/patch_mailbox_message_body.rb +0 -168
  144. data/lib/sendmux_mailbox_generated/models/response_meta.rb +0 -164
  145. data/lib/sendmux_mailbox_generated/models/send_mailbox_message_body.rb +0 -293
  146. data/lib/sendmux_mailbox_generated/models/send_mailbox_message_body_attachments_inner.rb +0 -103
  147. data/lib/sendmux_mailbox_generated/models/send_mailbox_message_body_attachments_inner_any_of.rb +0 -217
  148. data/lib/sendmux_mailbox_generated/models/send_mailbox_message_body_attachments_inner_any_of1.rb +0 -217
  149. data/lib/sendmux_mailbox_generated/models/send_mailbox_message_result.rb +0 -214
  150. data/lib/sendmux_mailbox_generated/models/success_envelope.rb +0 -192
  151. data/lib/sendmux_mailbox_generated/models/update_mailbox_identity_body.rb +0 -216
  152. data/lib/sendmux_mailbox_generated/version.rb +0 -15
  153. data/lib/sendmux_mailbox_generated.rb +0 -185
@@ -1,451 +0,0 @@
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