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,398 +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
- class MailboxSessionLimits < ApiModelBase
18
- attr_accessor :attachment_upload_bytes_max
19
-
20
- attr_accessor :batch_ids_max
21
-
22
- attr_accessor :body_chars_max
23
-
24
- attr_accessor :changes_limit_max
25
-
26
- attr_accessor :inline_attachment_bytes_max
27
-
28
- attr_accessor :keywords_per_update_max
29
-
30
- attr_accessor :list_limit_max
31
-
32
- attr_accessor :message_body_chars_default
33
-
34
- attr_accessor :outbound_raw_message_bytes_max
35
-
36
- attr_accessor :thread_body_chars_default
37
-
38
- # Attribute mapping from ruby-style variable name to JSON key.
39
- def self.attribute_map
40
- {
41
- :'attachment_upload_bytes_max' => :'attachment_upload_bytes_max',
42
- :'batch_ids_max' => :'batch_ids_max',
43
- :'body_chars_max' => :'body_chars_max',
44
- :'changes_limit_max' => :'changes_limit_max',
45
- :'inline_attachment_bytes_max' => :'inline_attachment_bytes_max',
46
- :'keywords_per_update_max' => :'keywords_per_update_max',
47
- :'list_limit_max' => :'list_limit_max',
48
- :'message_body_chars_default' => :'message_body_chars_default',
49
- :'outbound_raw_message_bytes_max' => :'outbound_raw_message_bytes_max',
50
- :'thread_body_chars_default' => :'thread_body_chars_default'
51
- }
52
- end
53
-
54
- # Returns attribute mapping this model knows about
55
- def self.acceptable_attribute_map
56
- attribute_map
57
- end
58
-
59
- # Returns all the JSON keys this model knows about
60
- def self.acceptable_attributes
61
- acceptable_attribute_map.values
62
- end
63
-
64
- # Attribute type mapping.
65
- def self.openapi_types
66
- {
67
- :'attachment_upload_bytes_max' => :'Integer',
68
- :'batch_ids_max' => :'Integer',
69
- :'body_chars_max' => :'Integer',
70
- :'changes_limit_max' => :'Integer',
71
- :'inline_attachment_bytes_max' => :'Integer',
72
- :'keywords_per_update_max' => :'Integer',
73
- :'list_limit_max' => :'Integer',
74
- :'message_body_chars_default' => :'Integer',
75
- :'outbound_raw_message_bytes_max' => :'Integer',
76
- :'thread_body_chars_default' => :'Integer'
77
- }
78
- end
79
-
80
- # List of attributes with nullable: true
81
- def self.openapi_nullable
82
- Set.new([
83
- ])
84
- end
85
-
86
- # Initializes the object
87
- # @param [Hash] attributes Model attributes in the form of hash
88
- def initialize(attributes = {})
89
- if (!attributes.is_a?(Hash))
90
- fail ArgumentError, "The input argument (attributes) must be a hash in `Sendmux::Mailbox::Generated::MailboxSessionLimits` initialize method"
91
- end
92
-
93
- # check to see if the attribute exists and convert string to symbol for hash key
94
- acceptable_attribute_map = self.class.acceptable_attribute_map
95
- attributes = attributes.each_with_object({}) { |(k, v), h|
96
- if (!acceptable_attribute_map.key?(k.to_sym))
97
- fail ArgumentError, "`#{k}` is not a valid attribute in `Sendmux::Mailbox::Generated::MailboxSessionLimits`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
98
- end
99
- h[k.to_sym] = v
100
- }
101
-
102
- if attributes.key?(:'attachment_upload_bytes_max')
103
- self.attachment_upload_bytes_max = attributes[:'attachment_upload_bytes_max']
104
- else
105
- self.attachment_upload_bytes_max = nil
106
- end
107
-
108
- if attributes.key?(:'batch_ids_max')
109
- self.batch_ids_max = attributes[:'batch_ids_max']
110
- else
111
- self.batch_ids_max = nil
112
- end
113
-
114
- if attributes.key?(:'body_chars_max')
115
- self.body_chars_max = attributes[:'body_chars_max']
116
- else
117
- self.body_chars_max = nil
118
- end
119
-
120
- if attributes.key?(:'changes_limit_max')
121
- self.changes_limit_max = attributes[:'changes_limit_max']
122
- else
123
- self.changes_limit_max = nil
124
- end
125
-
126
- if attributes.key?(:'inline_attachment_bytes_max')
127
- self.inline_attachment_bytes_max = attributes[:'inline_attachment_bytes_max']
128
- else
129
- self.inline_attachment_bytes_max = nil
130
- end
131
-
132
- if attributes.key?(:'keywords_per_update_max')
133
- self.keywords_per_update_max = attributes[:'keywords_per_update_max']
134
- else
135
- self.keywords_per_update_max = nil
136
- end
137
-
138
- if attributes.key?(:'list_limit_max')
139
- self.list_limit_max = attributes[:'list_limit_max']
140
- else
141
- self.list_limit_max = nil
142
- end
143
-
144
- if attributes.key?(:'message_body_chars_default')
145
- self.message_body_chars_default = attributes[:'message_body_chars_default']
146
- else
147
- self.message_body_chars_default = nil
148
- end
149
-
150
- if attributes.key?(:'outbound_raw_message_bytes_max')
151
- self.outbound_raw_message_bytes_max = attributes[:'outbound_raw_message_bytes_max']
152
- else
153
- self.outbound_raw_message_bytes_max = nil
154
- end
155
-
156
- if attributes.key?(:'thread_body_chars_default')
157
- self.thread_body_chars_default = attributes[:'thread_body_chars_default']
158
- else
159
- self.thread_body_chars_default = nil
160
- end
161
- end
162
-
163
- # Show invalid properties with the reasons. Usually used together with valid?
164
- # @return Array for valid properties with the reasons
165
- def list_invalid_properties
166
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
167
- invalid_properties = Array.new
168
- if @attachment_upload_bytes_max.nil?
169
- invalid_properties.push('invalid value for "attachment_upload_bytes_max", attachment_upload_bytes_max cannot be nil.')
170
- end
171
-
172
- if @batch_ids_max.nil?
173
- invalid_properties.push('invalid value for "batch_ids_max", batch_ids_max cannot be nil.')
174
- end
175
-
176
- if @body_chars_max.nil?
177
- invalid_properties.push('invalid value for "body_chars_max", body_chars_max cannot be nil.')
178
- end
179
-
180
- if @changes_limit_max.nil?
181
- invalid_properties.push('invalid value for "changes_limit_max", changes_limit_max cannot be nil.')
182
- end
183
-
184
- if @inline_attachment_bytes_max.nil?
185
- invalid_properties.push('invalid value for "inline_attachment_bytes_max", inline_attachment_bytes_max cannot be nil.')
186
- end
187
-
188
- if @keywords_per_update_max.nil?
189
- invalid_properties.push('invalid value for "keywords_per_update_max", keywords_per_update_max cannot be nil.')
190
- end
191
-
192
- if @list_limit_max.nil?
193
- invalid_properties.push('invalid value for "list_limit_max", list_limit_max cannot be nil.')
194
- end
195
-
196
- if @message_body_chars_default.nil?
197
- invalid_properties.push('invalid value for "message_body_chars_default", message_body_chars_default cannot be nil.')
198
- end
199
-
200
- if @outbound_raw_message_bytes_max.nil?
201
- invalid_properties.push('invalid value for "outbound_raw_message_bytes_max", outbound_raw_message_bytes_max cannot be nil.')
202
- end
203
-
204
- if @thread_body_chars_default.nil?
205
- invalid_properties.push('invalid value for "thread_body_chars_default", thread_body_chars_default cannot be nil.')
206
- end
207
-
208
- invalid_properties
209
- end
210
-
211
- # Check to see if the all the properties in the model are valid
212
- # @return true if the model is valid
213
- def valid?
214
- warn '[DEPRECATED] the `valid?` method is obsolete'
215
- return false if @attachment_upload_bytes_max.nil?
216
- return false if @batch_ids_max.nil?
217
- return false if @body_chars_max.nil?
218
- return false if @changes_limit_max.nil?
219
- return false if @inline_attachment_bytes_max.nil?
220
- return false if @keywords_per_update_max.nil?
221
- return false if @list_limit_max.nil?
222
- return false if @message_body_chars_default.nil?
223
- return false if @outbound_raw_message_bytes_max.nil?
224
- return false if @thread_body_chars_default.nil?
225
- true
226
- end
227
-
228
- # Custom attribute writer method with validation
229
- # @param [Object] attachment_upload_bytes_max Value to be assigned
230
- def attachment_upload_bytes_max=(attachment_upload_bytes_max)
231
- if attachment_upload_bytes_max.nil?
232
- fail ArgumentError, 'attachment_upload_bytes_max cannot be nil'
233
- end
234
-
235
- @attachment_upload_bytes_max = attachment_upload_bytes_max
236
- end
237
-
238
- # Custom attribute writer method with validation
239
- # @param [Object] batch_ids_max Value to be assigned
240
- def batch_ids_max=(batch_ids_max)
241
- if batch_ids_max.nil?
242
- fail ArgumentError, 'batch_ids_max cannot be nil'
243
- end
244
-
245
- @batch_ids_max = batch_ids_max
246
- end
247
-
248
- # Custom attribute writer method with validation
249
- # @param [Object] body_chars_max Value to be assigned
250
- def body_chars_max=(body_chars_max)
251
- if body_chars_max.nil?
252
- fail ArgumentError, 'body_chars_max cannot be nil'
253
- end
254
-
255
- @body_chars_max = body_chars_max
256
- end
257
-
258
- # Custom attribute writer method with validation
259
- # @param [Object] changes_limit_max Value to be assigned
260
- def changes_limit_max=(changes_limit_max)
261
- if changes_limit_max.nil?
262
- fail ArgumentError, 'changes_limit_max cannot be nil'
263
- end
264
-
265
- @changes_limit_max = changes_limit_max
266
- end
267
-
268
- # Custom attribute writer method with validation
269
- # @param [Object] inline_attachment_bytes_max Value to be assigned
270
- def inline_attachment_bytes_max=(inline_attachment_bytes_max)
271
- if inline_attachment_bytes_max.nil?
272
- fail ArgumentError, 'inline_attachment_bytes_max cannot be nil'
273
- end
274
-
275
- @inline_attachment_bytes_max = inline_attachment_bytes_max
276
- end
277
-
278
- # Custom attribute writer method with validation
279
- # @param [Object] keywords_per_update_max Value to be assigned
280
- def keywords_per_update_max=(keywords_per_update_max)
281
- if keywords_per_update_max.nil?
282
- fail ArgumentError, 'keywords_per_update_max cannot be nil'
283
- end
284
-
285
- @keywords_per_update_max = keywords_per_update_max
286
- end
287
-
288
- # Custom attribute writer method with validation
289
- # @param [Object] list_limit_max Value to be assigned
290
- def list_limit_max=(list_limit_max)
291
- if list_limit_max.nil?
292
- fail ArgumentError, 'list_limit_max cannot be nil'
293
- end
294
-
295
- @list_limit_max = list_limit_max
296
- end
297
-
298
- # Custom attribute writer method with validation
299
- # @param [Object] message_body_chars_default Value to be assigned
300
- def message_body_chars_default=(message_body_chars_default)
301
- if message_body_chars_default.nil?
302
- fail ArgumentError, 'message_body_chars_default cannot be nil'
303
- end
304
-
305
- @message_body_chars_default = message_body_chars_default
306
- end
307
-
308
- # Custom attribute writer method with validation
309
- # @param [Object] outbound_raw_message_bytes_max Value to be assigned
310
- def outbound_raw_message_bytes_max=(outbound_raw_message_bytes_max)
311
- if outbound_raw_message_bytes_max.nil?
312
- fail ArgumentError, 'outbound_raw_message_bytes_max cannot be nil'
313
- end
314
-
315
- @outbound_raw_message_bytes_max = outbound_raw_message_bytes_max
316
- end
317
-
318
- # Custom attribute writer method with validation
319
- # @param [Object] thread_body_chars_default Value to be assigned
320
- def thread_body_chars_default=(thread_body_chars_default)
321
- if thread_body_chars_default.nil?
322
- fail ArgumentError, 'thread_body_chars_default cannot be nil'
323
- end
324
-
325
- @thread_body_chars_default = thread_body_chars_default
326
- end
327
-
328
- # Checks equality by comparing each attribute.
329
- # @param [Object] Object to be compared
330
- def ==(o)
331
- return true if self.equal?(o)
332
- self.class == o.class &&
333
- attachment_upload_bytes_max == o.attachment_upload_bytes_max &&
334
- batch_ids_max == o.batch_ids_max &&
335
- body_chars_max == o.body_chars_max &&
336
- changes_limit_max == o.changes_limit_max &&
337
- inline_attachment_bytes_max == o.inline_attachment_bytes_max &&
338
- keywords_per_update_max == o.keywords_per_update_max &&
339
- list_limit_max == o.list_limit_max &&
340
- message_body_chars_default == o.message_body_chars_default &&
341
- outbound_raw_message_bytes_max == o.outbound_raw_message_bytes_max &&
342
- thread_body_chars_default == o.thread_body_chars_default
343
- end
344
-
345
- # @see the `==` method
346
- # @param [Object] Object to be compared
347
- def eql?(o)
348
- self == o
349
- end
350
-
351
- # Calculates hash code according to all attributes.
352
- # @return [Integer] Hash code
353
- def hash
354
- [attachment_upload_bytes_max, batch_ids_max, body_chars_max, changes_limit_max, inline_attachment_bytes_max, keywords_per_update_max, list_limit_max, message_body_chars_default, outbound_raw_message_bytes_max, thread_body_chars_default].hash
355
- end
356
-
357
- # Builds the object from hash
358
- # @param [Hash] attributes Model attributes in the form of hash
359
- # @return [Object] Returns the model itself
360
- def self.build_from_hash(attributes)
361
- return nil unless attributes.is_a?(Hash)
362
- attributes = attributes.transform_keys(&:to_sym)
363
- transformed_hash = {}
364
- openapi_types.each_pair do |key, type|
365
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
366
- transformed_hash["#{key}"] = nil
367
- elsif type =~ /\AArray<(.*)>/i
368
- # check to ensure the input is an array given that the attribute
369
- # is documented as an array but the input is not
370
- if attributes[attribute_map[key]].is_a?(Array)
371
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
372
- end
373
- elsif !attributes[attribute_map[key]].nil?
374
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
375
- end
376
- end
377
- new(transformed_hash)
378
- end
379
-
380
- # Returns the object in the form of hash
381
- # @return [Hash] Returns the object in the form of hash
382
- def to_hash
383
- hash = {}
384
- self.class.attribute_map.each_pair do |attr, param|
385
- value = self.send(attr)
386
- if value.nil?
387
- is_nullable = self.class.openapi_nullable.include?(attr)
388
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
389
- end
390
-
391
- hash[param] = _to_hash(value)
392
- end
393
- hash
394
- end
395
-
396
- end
397
-
398
- end
@@ -1,203 +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
- class MailboxSessionMailbox < ApiModelBase
18
- attr_accessor :display_name
19
-
20
- attr_accessor :email
21
-
22
- # Mailbox public ID
23
- attr_accessor :id
24
-
25
- # Attribute mapping from ruby-style variable name to JSON key.
26
- def self.attribute_map
27
- {
28
- :'display_name' => :'display_name',
29
- :'email' => :'email',
30
- :'id' => :'id'
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
- :'display_name' => :'String',
48
- :'email' => :'String',
49
- :'id' => :'String'
50
- }
51
- end
52
-
53
- # List of attributes with nullable: true
54
- def self.openapi_nullable
55
- Set.new([
56
- :'display_name',
57
- ])
58
- end
59
-
60
- # Initializes the object
61
- # @param [Hash] attributes Model attributes in the form of hash
62
- def initialize(attributes = {})
63
- if (!attributes.is_a?(Hash))
64
- fail ArgumentError, "The input argument (attributes) must be a hash in `Sendmux::Mailbox::Generated::MailboxSessionMailbox` initialize method"
65
- end
66
-
67
- # check to see if the attribute exists and convert string to symbol for hash key
68
- acceptable_attribute_map = self.class.acceptable_attribute_map
69
- attributes = attributes.each_with_object({}) { |(k, v), h|
70
- if (!acceptable_attribute_map.key?(k.to_sym))
71
- fail ArgumentError, "`#{k}` is not a valid attribute in `Sendmux::Mailbox::Generated::MailboxSessionMailbox`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
72
- end
73
- h[k.to_sym] = v
74
- }
75
-
76
- if attributes.key?(:'display_name')
77
- self.display_name = attributes[:'display_name']
78
- else
79
- self.display_name = nil
80
- end
81
-
82
- if attributes.key?(:'email')
83
- self.email = attributes[:'email']
84
- else
85
- self.email = nil
86
- end
87
-
88
- if attributes.key?(:'id')
89
- self.id = attributes[:'id']
90
- else
91
- self.id = nil
92
- end
93
- end
94
-
95
- # Show invalid properties with the reasons. Usually used together with valid?
96
- # @return Array for valid properties with the reasons
97
- def list_invalid_properties
98
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
99
- invalid_properties = Array.new
100
- if @email.nil?
101
- invalid_properties.push('invalid value for "email", email cannot be nil.')
102
- end
103
-
104
- if @id.nil?
105
- invalid_properties.push('invalid value for "id", id cannot be nil.')
106
- end
107
-
108
- invalid_properties
109
- end
110
-
111
- # Check to see if the all the properties in the model are valid
112
- # @return true if the model is valid
113
- def valid?
114
- warn '[DEPRECATED] the `valid?` method is obsolete'
115
- return false if @email.nil?
116
- return false if @id.nil?
117
- true
118
- end
119
-
120
- # Custom attribute writer method with validation
121
- # @param [Object] email Value to be assigned
122
- def email=(email)
123
- if email.nil?
124
- fail ArgumentError, 'email cannot be nil'
125
- end
126
-
127
- @email = email
128
- end
129
-
130
- # Custom attribute writer method with validation
131
- # @param [Object] id Value to be assigned
132
- def id=(id)
133
- if id.nil?
134
- fail ArgumentError, 'id cannot be nil'
135
- end
136
-
137
- @id = id
138
- end
139
-
140
- # Checks equality by comparing each attribute.
141
- # @param [Object] Object to be compared
142
- def ==(o)
143
- return true if self.equal?(o)
144
- self.class == o.class &&
145
- display_name == o.display_name &&
146
- email == o.email &&
147
- id == o.id
148
- end
149
-
150
- # @see the `==` method
151
- # @param [Object] Object to be compared
152
- def eql?(o)
153
- self == o
154
- end
155
-
156
- # Calculates hash code according to all attributes.
157
- # @return [Integer] Hash code
158
- def hash
159
- [display_name, email, id].hash
160
- end
161
-
162
- # Builds the object from hash
163
- # @param [Hash] attributes Model attributes in the form of hash
164
- # @return [Object] Returns the model itself
165
- def self.build_from_hash(attributes)
166
- return nil unless attributes.is_a?(Hash)
167
- attributes = attributes.transform_keys(&:to_sym)
168
- transformed_hash = {}
169
- openapi_types.each_pair do |key, type|
170
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
171
- transformed_hash["#{key}"] = nil
172
- elsif type =~ /\AArray<(.*)>/i
173
- # check to ensure the input is an array given that the attribute
174
- # is documented as an array but the input is not
175
- if attributes[attribute_map[key]].is_a?(Array)
176
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
177
- end
178
- elsif !attributes[attribute_map[key]].nil?
179
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
180
- end
181
- end
182
- new(transformed_hash)
183
- end
184
-
185
- # Returns the object in the form of hash
186
- # @return [Hash] Returns the object in the form of hash
187
- def to_hash
188
- hash = {}
189
- self.class.attribute_map.each_pair do |attr, param|
190
- value = self.send(attr)
191
- if value.nil?
192
- is_nullable = self.class.openapi_nullable.include?(attr)
193
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
194
- end
195
-
196
- hash[param] = _to_hash(value)
197
- end
198
- hash
199
- end
200
-
201
- end
202
-
203
- end