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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +12 -0
- data/README.md +3 -0
- data/lib/sendmux/mailbox/client.rb +34 -0
- data/lib/sendmux/mailbox/version.rb +7 -0
- data/lib/sendmux/mailbox.rb +12 -0
- data/lib/sendmux_mailbox_generated/api/mailbox_api_api.rb +3226 -0
- data/lib/sendmux_mailbox_generated/api_client.rb +441 -0
- data/lib/sendmux_mailbox_generated/api_error.rb +58 -0
- data/lib/sendmux_mailbox_generated/api_model_base.rb +88 -0
- data/lib/sendmux_mailbox_generated/configuration.rb +393 -0
- data/lib/sendmux_mailbox_generated/models/api_error_detail.rb +219 -0
- data/lib/sendmux_mailbox_generated/models/api_error_error.rb +275 -0
- data/lib/sendmux_mailbox_generated/models/api_error_meta.rb +164 -0
- data/lib/sendmux_mailbox_generated/models/api_error_response.rb +216 -0
- data/lib/sendmux_mailbox_generated/models/batch_delete_mailbox_messages_body.rb +204 -0
- data/lib/sendmux_mailbox_generated/models/batch_update_mailbox_messages_body.rb +224 -0
- data/lib/sendmux_mailbox_generated/models/create_mailbox_folder_body.rb +183 -0
- data/lib/sendmux_mailbox_generated/models/cursor_pagination.rb +173 -0
- data/lib/sendmux_mailbox_generated/models/mailbox.rb +284 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_address.rb +176 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_attachment.rb +248 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_attachment_upload_result.rb +243 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_attachment_upload_result_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_batch_delete_messages_result.rb +248 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_batch_delete_messages_result_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_batch_get_body.rb +363 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_batch_get_item.rb +188 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_batch_get_result.rb +220 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_batch_get_result_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_batch_get_result_states.rb +150 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_batch_message_failure.rb +216 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_batch_message_states.rb +162 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_batch_update_messages_result.rb +248 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_batch_update_messages_result_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_changes.rb +297 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_changes_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_content_headers.rb +214 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_content_headers_full_inner.rb +190 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_content_headers_selected.rb +234 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_folder.rb +307 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_folder_cursor_list_response.rb +251 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_folder_deleted_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_folder_deleted_response_all_of_data.rb +190 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_folder_query_changes.rb +270 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_folder_query_changes_added_inner.rb +190 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_folder_query_changes_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_folder_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_get_changes200_response.rb +103 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_identity.rb +352 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_identity_cursor_list_response.rb +251 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_identity_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_me.rb +301 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_me_item_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_message.rb +515 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_message_content.rb +348 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_message_content_body.rb +327 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_message_content_dates.rb +162 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_message_content_participants.rb +276 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_message_content_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_message_content_response_all_of_data.rb +355 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_message_content_states.rb +176 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_message_count.rb +176 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_message_count_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_message_deleted_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_message_detail_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_message_flags.rb +242 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_message_query_changes.rb +270 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_message_query_changes_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_message_summary.rb +456 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_message_summary_cursor_list_response.rb +251 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_message_summary_from.rb +183 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_quota.rb +359 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_quota_cursor_list_response.rb +251 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_raw_body.rb +279 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_raw_body_body.rb +200 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_raw_body_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_raw_body_response_all_of_data.rb +286 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_realtime_event.rb +380 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_realtime_message.rb +529 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_realtime_message_all_of_body.rb +214 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_search_snippet.rb +190 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_search_snippets_result.rb +206 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_search_snippets_result_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_send_result_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_send_scope.rb +213 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_session.rb +294 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities.rb +346 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_attachments.rb +294 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_folders.rb +320 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_identities.rb +268 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_messages.rb +516 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_quotas.rb +242 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_submissions.rb +242 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_sync.rb +222 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_session_capabilities_threads.rb +268 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_session_endpoints.rb +334 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_session_gated.rb +451 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_session_limits.rb +398 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_session_mailbox.rb +203 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_session_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_session_states.rb +294 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_submission.rb +321 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_submission_cursor_list_response.rb +251 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_submission_delivery_status.rb +200 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_submission_envelope.rb +178 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_submission_envelope_address.rb +178 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_submission_envelope_rcpt_to_inner.rb +185 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_submission_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_thread.rb +398 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_thread_content_meta.rb +244 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_thread_content_meta_states.rb +188 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_thread_content_response.rb +251 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_thread_content_response_all_of_data.rb +355 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_thread_detail_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_thread_summary.rb +363 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_thread_summary_cursor_list_response.rb +251 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_thread_summary_last_message.rb +463 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_thread_summary_states.rb +162 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_typed_changes.rb +164 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_typed_changes_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_typed_changes_types.rb +192 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_usage.rb +192 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_usage_resource.rb +408 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_usage_response.rb +223 -0
- data/lib/sendmux_mailbox_generated/models/mailbox_usage_states.rb +150 -0
- data/lib/sendmux_mailbox_generated/models/patch_mailbox_folder_body.rb +166 -0
- data/lib/sendmux_mailbox_generated/models/patch_mailbox_message_body.rb +168 -0
- data/lib/sendmux_mailbox_generated/models/response_meta.rb +164 -0
- data/lib/sendmux_mailbox_generated/models/send_mailbox_message_body.rb +283 -0
- data/lib/sendmux_mailbox_generated/models/send_mailbox_message_body_attachments_inner.rb +103 -0
- data/lib/sendmux_mailbox_generated/models/send_mailbox_message_body_attachments_inner_any_of.rb +217 -0
- data/lib/sendmux_mailbox_generated/models/send_mailbox_message_body_attachments_inner_any_of1.rb +217 -0
- data/lib/sendmux_mailbox_generated/models/send_mailbox_message_result.rb +214 -0
- data/lib/sendmux_mailbox_generated/models/success_envelope.rb +192 -0
- data/lib/sendmux_mailbox_generated/models/update_mailbox_identity_body.rb +216 -0
- data/lib/sendmux_mailbox_generated/version.rb +15 -0
- data/lib/sendmux_mailbox_generated.rb +166 -0
- metadata +255 -0
|
@@ -0,0 +1,398 @@
|
|
|
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
|
|
@@ -0,0 +1,203 @@
|
|
|
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
|