sendmux-management 1.3.0 → 2.0.1

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 (24) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +43 -0
  3. data/README.md +37 -1
  4. data/lib/sendmux/management/version.rb +1 -1
  5. data/lib/sendmux_management_generated/api/sending_accounts_api.rb +2 -2
  6. data/lib/sendmux_management_generated/models/delivery_log_detail.rb +54 -15
  7. data/lib/sendmux_management_generated/models/delivery_log_item.rb +52 -13
  8. data/lib/sendmux_management_generated/models/mailbox_app_password_result.rb +1 -1
  9. data/lib/sendmux_management_generated/models/mailbox_create_result.rb +1 -0
  10. data/lib/sendmux_management_generated/models/mailbox_credential.rb +0 -1
  11. data/lib/sendmux_management_generated/models/provider_allowed_actions.rb +30 -4
  12. data/lib/sendmux_management_generated/models/provider_create_body.rb +36 -5
  13. data/lib/sendmux_management_generated/models/provider_create_body_quotas_per_day.rb +1 -1
  14. data/lib/sendmux_management_generated/models/provider_item.rb +42 -4
  15. data/lib/sendmux_management_generated/models/provider_item_cursor_list_response.rb +1 -1
  16. data/lib/sendmux_management_generated/models/provider_list_item.rb +695 -0
  17. data/lib/sendmux_management_generated/models/provider_update_body.rb +36 -5
  18. data/lib/sendmux_management_generated/models/shared_amazon_ses_limit.rb +4 -4
  19. data/lib/sendmux_management_generated/models/shared_amazon_ses_limit_request.rb +2 -2
  20. data/lib/sendmux_management_generated/models/webhook_subscription_with_secret.rb +31 -38
  21. data/lib/sendmux_management_generated.rb +9 -2
  22. metadata +3 -4
  23. data/lib/sendmux_management_generated/models/mailbox_app_password_result_credential.rb +0 -359
  24. data/lib/sendmux_management_generated/models/provider_create_body_quotas_per_day_any_of.rb +0 -215
@@ -1,359 +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::Management::Generated
17
- class MailboxAppPasswordResultCredential < ApiModelBase
18
- # IMAP retrieval port
19
- attr_accessor :imap_port
20
-
21
- attr_accessor :key_prefix
22
-
23
- attr_accessor :key_suffix
24
-
25
- # Credential public ID
26
- attr_accessor :public_id
27
-
28
- # Mailbox credential — shown exactly once. Use as a Bearer token on the HTTP API and as the password for IMAP retrieval and SMTP submission.
29
- attr_accessor :secret
30
-
31
- # Mailbox server name
32
- attr_accessor :server
33
-
34
- # SMTP submission port
35
- attr_accessor :smtp_port
36
-
37
- # Mailbox email address used as the login
38
- attr_accessor :username
39
-
40
- # Attribute mapping from ruby-style variable name to JSON key.
41
- def self.attribute_map
42
- {
43
- :'imap_port' => :'imap_port',
44
- :'key_prefix' => :'key_prefix',
45
- :'key_suffix' => :'key_suffix',
46
- :'public_id' => :'public_id',
47
- :'secret' => :'secret',
48
- :'server' => :'server',
49
- :'smtp_port' => :'smtp_port',
50
- :'username' => :'username'
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
- :'imap_port' => :'Integer',
68
- :'key_prefix' => :'String',
69
- :'key_suffix' => :'String',
70
- :'public_id' => :'String',
71
- :'secret' => :'String',
72
- :'server' => :'String',
73
- :'smtp_port' => :'Integer',
74
- :'username' => :'String'
75
- }
76
- end
77
-
78
- # List of attributes with nullable: true
79
- def self.openapi_nullable
80
- Set.new([
81
- ])
82
- end
83
-
84
- # List of class defined in allOf (OpenAPI v3)
85
- def self.openapi_all_of
86
- [
87
- :'MailboxCredential'
88
- ]
89
- end
90
-
91
- # Initializes the object
92
- # @param [Hash] attributes Model attributes in the form of hash
93
- def initialize(attributes = {})
94
- if (!attributes.is_a?(Hash))
95
- fail ArgumentError, "The input argument (attributes) must be a hash in `Sendmux::Management::Generated::MailboxAppPasswordResultCredential` initialize method"
96
- end
97
-
98
- # check to see if the attribute exists and convert string to symbol for hash key
99
- acceptable_attribute_map = self.class.acceptable_attribute_map
100
- attributes = attributes.each_with_object({}) { |(k, v), h|
101
- if (!acceptable_attribute_map.key?(k.to_sym))
102
- fail ArgumentError, "`#{k}` is not a valid attribute in `Sendmux::Management::Generated::MailboxAppPasswordResultCredential`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
103
- end
104
- h[k.to_sym] = v
105
- }
106
-
107
- if attributes.key?(:'imap_port')
108
- self.imap_port = attributes[:'imap_port']
109
- else
110
- self.imap_port = nil
111
- end
112
-
113
- if attributes.key?(:'key_prefix')
114
- self.key_prefix = attributes[:'key_prefix']
115
- else
116
- self.key_prefix = nil
117
- end
118
-
119
- if attributes.key?(:'key_suffix')
120
- self.key_suffix = attributes[:'key_suffix']
121
- else
122
- self.key_suffix = nil
123
- end
124
-
125
- if attributes.key?(:'public_id')
126
- self.public_id = attributes[:'public_id']
127
- else
128
- self.public_id = nil
129
- end
130
-
131
- if attributes.key?(:'secret')
132
- self.secret = attributes[:'secret']
133
- else
134
- self.secret = nil
135
- end
136
-
137
- if attributes.key?(:'server')
138
- self.server = attributes[:'server']
139
- else
140
- self.server = nil
141
- end
142
-
143
- if attributes.key?(:'smtp_port')
144
- self.smtp_port = attributes[:'smtp_port']
145
- else
146
- self.smtp_port = nil
147
- end
148
-
149
- if attributes.key?(:'username')
150
- self.username = attributes[:'username']
151
- else
152
- self.username = nil
153
- end
154
- end
155
-
156
- # Show invalid properties with the reasons. Usually used together with valid?
157
- # @return Array for valid properties with the reasons
158
- def list_invalid_properties
159
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
160
- invalid_properties = Array.new
161
- if @imap_port.nil?
162
- invalid_properties.push('invalid value for "imap_port", imap_port cannot be nil.')
163
- end
164
-
165
- if @key_prefix.nil?
166
- invalid_properties.push('invalid value for "key_prefix", key_prefix cannot be nil.')
167
- end
168
-
169
- if @key_suffix.nil?
170
- invalid_properties.push('invalid value for "key_suffix", key_suffix cannot be nil.')
171
- end
172
-
173
- if @public_id.nil?
174
- invalid_properties.push('invalid value for "public_id", public_id cannot be nil.')
175
- end
176
-
177
- if @secret.nil?
178
- invalid_properties.push('invalid value for "secret", secret cannot be nil.')
179
- end
180
-
181
- if @server.nil?
182
- invalid_properties.push('invalid value for "server", server cannot be nil.')
183
- end
184
-
185
- if @smtp_port.nil?
186
- invalid_properties.push('invalid value for "smtp_port", smtp_port cannot be nil.')
187
- end
188
-
189
- if @username.nil?
190
- invalid_properties.push('invalid value for "username", username cannot be nil.')
191
- end
192
-
193
- invalid_properties
194
- end
195
-
196
- # Check to see if the all the properties in the model are valid
197
- # @return true if the model is valid
198
- def valid?
199
- warn '[DEPRECATED] the `valid?` method is obsolete'
200
- return false if @imap_port.nil?
201
- return false if @key_prefix.nil?
202
- return false if @key_suffix.nil?
203
- return false if @public_id.nil?
204
- return false if @secret.nil?
205
- return false if @server.nil?
206
- return false if @smtp_port.nil?
207
- return false if @username.nil?
208
- true
209
- end
210
-
211
- # Custom attribute writer method with validation
212
- # @param [Object] imap_port Value to be assigned
213
- def imap_port=(imap_port)
214
- if imap_port.nil?
215
- fail ArgumentError, 'imap_port cannot be nil'
216
- end
217
-
218
- @imap_port = imap_port
219
- end
220
-
221
- # Custom attribute writer method with validation
222
- # @param [Object] key_prefix Value to be assigned
223
- def key_prefix=(key_prefix)
224
- if key_prefix.nil?
225
- fail ArgumentError, 'key_prefix cannot be nil'
226
- end
227
-
228
- @key_prefix = key_prefix
229
- end
230
-
231
- # Custom attribute writer method with validation
232
- # @param [Object] key_suffix Value to be assigned
233
- def key_suffix=(key_suffix)
234
- if key_suffix.nil?
235
- fail ArgumentError, 'key_suffix cannot be nil'
236
- end
237
-
238
- @key_suffix = key_suffix
239
- end
240
-
241
- # Custom attribute writer method with validation
242
- # @param [Object] public_id Value to be assigned
243
- def public_id=(public_id)
244
- if public_id.nil?
245
- fail ArgumentError, 'public_id cannot be nil'
246
- end
247
-
248
- @public_id = public_id
249
- end
250
-
251
- # Custom attribute writer method with validation
252
- # @param [Object] secret Value to be assigned
253
- def secret=(secret)
254
- if secret.nil?
255
- fail ArgumentError, 'secret cannot be nil'
256
- end
257
-
258
- @secret = secret
259
- end
260
-
261
- # Custom attribute writer method with validation
262
- # @param [Object] server Value to be assigned
263
- def server=(server)
264
- if server.nil?
265
- fail ArgumentError, 'server cannot be nil'
266
- end
267
-
268
- @server = server
269
- end
270
-
271
- # Custom attribute writer method with validation
272
- # @param [Object] smtp_port Value to be assigned
273
- def smtp_port=(smtp_port)
274
- if smtp_port.nil?
275
- fail ArgumentError, 'smtp_port cannot be nil'
276
- end
277
-
278
- @smtp_port = smtp_port
279
- end
280
-
281
- # Custom attribute writer method with validation
282
- # @param [Object] username Value to be assigned
283
- def username=(username)
284
- if username.nil?
285
- fail ArgumentError, 'username cannot be nil'
286
- end
287
-
288
- @username = username
289
- end
290
-
291
- # Checks equality by comparing each attribute.
292
- # @param [Object] Object to be compared
293
- def ==(o)
294
- return true if self.equal?(o)
295
- self.class == o.class &&
296
- imap_port == o.imap_port &&
297
- key_prefix == o.key_prefix &&
298
- key_suffix == o.key_suffix &&
299
- public_id == o.public_id &&
300
- secret == o.secret &&
301
- server == o.server &&
302
- smtp_port == o.smtp_port &&
303
- username == o.username
304
- end
305
-
306
- # @see the `==` method
307
- # @param [Object] Object to be compared
308
- def eql?(o)
309
- self == o
310
- end
311
-
312
- # Calculates hash code according to all attributes.
313
- # @return [Integer] Hash code
314
- def hash
315
- [imap_port, key_prefix, key_suffix, public_id, secret, server, smtp_port, username].hash
316
- end
317
-
318
- # Builds the object from hash
319
- # @param [Hash] attributes Model attributes in the form of hash
320
- # @return [Object] Returns the model itself
321
- def self.build_from_hash(attributes)
322
- return nil unless attributes.is_a?(Hash)
323
- attributes = attributes.transform_keys(&:to_sym)
324
- transformed_hash = {}
325
- openapi_types.each_pair do |key, type|
326
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
327
- transformed_hash["#{key}"] = nil
328
- elsif type =~ /\AArray<(.*)>/i
329
- # check to ensure the input is an array given that the attribute
330
- # is documented as an array but the input is not
331
- if attributes[attribute_map[key]].is_a?(Array)
332
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
333
- end
334
- elsif !attributes[attribute_map[key]].nil?
335
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
336
- end
337
- end
338
- new(transformed_hash)
339
- end
340
-
341
- # Returns the object in the form of hash
342
- # @return [Hash] Returns the object in the form of hash
343
- def to_hash
344
- hash = {}
345
- self.class.attribute_map.each_pair do |attr, param|
346
- value = self.send(attr)
347
- if value.nil?
348
- is_nullable = self.class.openapi_nullable.include?(attr)
349
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
350
- end
351
-
352
- hash[param] = _to_hash(value)
353
- end
354
- hash
355
- end
356
-
357
- end
358
-
359
- end
@@ -1,215 +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::Management::Generated
17
- class ProviderCreateBodyQuotasPerDayAnyOf < ApiModelBase
18
- attr_accessor :max
19
-
20
- attr_accessor :min
21
-
22
- # Attribute mapping from ruby-style variable name to JSON key.
23
- def self.attribute_map
24
- {
25
- :'max' => :'max',
26
- :'min' => :'min'
27
- }
28
- end
29
-
30
- # Returns attribute mapping this model knows about
31
- def self.acceptable_attribute_map
32
- attribute_map
33
- end
34
-
35
- # Returns all the JSON keys this model knows about
36
- def self.acceptable_attributes
37
- acceptable_attribute_map.values
38
- end
39
-
40
- # Attribute type mapping.
41
- def self.openapi_types
42
- {
43
- :'max' => :'Integer',
44
- :'min' => :'Integer'
45
- }
46
- end
47
-
48
- # List of attributes with nullable: true
49
- def self.openapi_nullable
50
- Set.new([
51
- ])
52
- end
53
-
54
- # List of class defined in allOf (OpenAPI v3)
55
- def self.openapi_all_of
56
- [
57
- :'ProviderQuotaRange'
58
- ]
59
- end
60
-
61
- # Initializes the object
62
- # @param [Hash] attributes Model attributes in the form of hash
63
- def initialize(attributes = {})
64
- if (!attributes.is_a?(Hash))
65
- fail ArgumentError, "The input argument (attributes) must be a hash in `Sendmux::Management::Generated::ProviderCreateBodyQuotasPerDayAnyOf` initialize method"
66
- end
67
-
68
- # check to see if the attribute exists and convert string to symbol for hash key
69
- acceptable_attribute_map = self.class.acceptable_attribute_map
70
- attributes = attributes.each_with_object({}) { |(k, v), h|
71
- if (!acceptable_attribute_map.key?(k.to_sym))
72
- fail ArgumentError, "`#{k}` is not a valid attribute in `Sendmux::Management::Generated::ProviderCreateBodyQuotasPerDayAnyOf`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
73
- end
74
- h[k.to_sym] = v
75
- }
76
-
77
- if attributes.key?(:'max')
78
- self.max = attributes[:'max']
79
- else
80
- self.max = nil
81
- end
82
-
83
- if attributes.key?(:'min')
84
- self.min = attributes[:'min']
85
- else
86
- self.min = nil
87
- end
88
- end
89
-
90
- # Show invalid properties with the reasons. Usually used together with valid?
91
- # @return Array for valid properties with the reasons
92
- def list_invalid_properties
93
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
94
- invalid_properties = Array.new
95
- if @max.nil?
96
- invalid_properties.push('invalid value for "max", max cannot be nil.')
97
- end
98
-
99
- if @max <= 0
100
- invalid_properties.push('invalid value for "max", must be greater than 0.')
101
- end
102
-
103
- if @min.nil?
104
- invalid_properties.push('invalid value for "min", min cannot be nil.')
105
- end
106
-
107
- if @min <= 0
108
- invalid_properties.push('invalid value for "min", must be greater than 0.')
109
- end
110
-
111
- invalid_properties
112
- end
113
-
114
- # Check to see if the all the properties in the model are valid
115
- # @return true if the model is valid
116
- def valid?
117
- warn '[DEPRECATED] the `valid?` method is obsolete'
118
- return false if @max.nil?
119
- return false if @max <= 0
120
- return false if @min.nil?
121
- return false if @min <= 0
122
- true
123
- end
124
-
125
- # Custom attribute writer method with validation
126
- # @param [Object] max Value to be assigned
127
- def max=(max)
128
- if max.nil?
129
- fail ArgumentError, 'max cannot be nil'
130
- end
131
-
132
- if max <= 0
133
- fail ArgumentError, 'invalid value for "max", must be greater than 0.'
134
- end
135
-
136
- @max = max
137
- end
138
-
139
- # Custom attribute writer method with validation
140
- # @param [Object] min Value to be assigned
141
- def min=(min)
142
- if min.nil?
143
- fail ArgumentError, 'min cannot be nil'
144
- end
145
-
146
- if min <= 0
147
- fail ArgumentError, 'invalid value for "min", must be greater than 0.'
148
- end
149
-
150
- @min = min
151
- end
152
-
153
- # Checks equality by comparing each attribute.
154
- # @param [Object] Object to be compared
155
- def ==(o)
156
- return true if self.equal?(o)
157
- self.class == o.class &&
158
- max == o.max &&
159
- min == o.min
160
- end
161
-
162
- # @see the `==` method
163
- # @param [Object] Object to be compared
164
- def eql?(o)
165
- self == o
166
- end
167
-
168
- # Calculates hash code according to all attributes.
169
- # @return [Integer] Hash code
170
- def hash
171
- [max, min].hash
172
- end
173
-
174
- # Builds the object from hash
175
- # @param [Hash] attributes Model attributes in the form of hash
176
- # @return [Object] Returns the model itself
177
- def self.build_from_hash(attributes)
178
- return nil unless attributes.is_a?(Hash)
179
- attributes = attributes.transform_keys(&:to_sym)
180
- transformed_hash = {}
181
- openapi_types.each_pair do |key, type|
182
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
183
- transformed_hash["#{key}"] = nil
184
- elsif type =~ /\AArray<(.*)>/i
185
- # check to ensure the input is an array given that the attribute
186
- # is documented as an array but the input is not
187
- if attributes[attribute_map[key]].is_a?(Array)
188
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
189
- end
190
- elsif !attributes[attribute_map[key]].nil?
191
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
192
- end
193
- end
194
- new(transformed_hash)
195
- end
196
-
197
- # Returns the object in the form of hash
198
- # @return [Hash] Returns the object in the form of hash
199
- def to_hash
200
- hash = {}
201
- self.class.attribute_map.each_pair do |attr, param|
202
- value = self.send(attr)
203
- if value.nil?
204
- is_nullable = self.class.openapi_nullable.include?(attr)
205
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
206
- end
207
-
208
- hash[param] = _to_hash(value)
209
- end
210
- hash
211
- end
212
-
213
- end
214
-
215
- end