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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +43 -0
- data/README.md +37 -1
- data/lib/sendmux/management/version.rb +1 -1
- data/lib/sendmux_management_generated/api/sending_accounts_api.rb +2 -2
- data/lib/sendmux_management_generated/models/delivery_log_detail.rb +54 -15
- data/lib/sendmux_management_generated/models/delivery_log_item.rb +52 -13
- data/lib/sendmux_management_generated/models/mailbox_app_password_result.rb +1 -1
- data/lib/sendmux_management_generated/models/mailbox_create_result.rb +1 -0
- data/lib/sendmux_management_generated/models/mailbox_credential.rb +0 -1
- data/lib/sendmux_management_generated/models/provider_allowed_actions.rb +30 -4
- data/lib/sendmux_management_generated/models/provider_create_body.rb +36 -5
- data/lib/sendmux_management_generated/models/provider_create_body_quotas_per_day.rb +1 -1
- data/lib/sendmux_management_generated/models/provider_item.rb +42 -4
- data/lib/sendmux_management_generated/models/provider_item_cursor_list_response.rb +1 -1
- data/lib/sendmux_management_generated/models/provider_list_item.rb +695 -0
- data/lib/sendmux_management_generated/models/provider_update_body.rb +36 -5
- data/lib/sendmux_management_generated/models/shared_amazon_ses_limit.rb +4 -4
- data/lib/sendmux_management_generated/models/shared_amazon_ses_limit_request.rb +2 -2
- data/lib/sendmux_management_generated/models/webhook_subscription_with_secret.rb +31 -38
- data/lib/sendmux_management_generated.rb +9 -2
- metadata +3 -4
- data/lib/sendmux_management_generated/models/mailbox_app_password_result_credential.rb +0 -359
- data/lib/sendmux_management_generated/models/provider_create_body_quotas_per_day_any_of.rb +0 -215
|
@@ -42,6 +42,9 @@ module Sendmux::Management::Generated
|
|
|
42
42
|
|
|
43
43
|
attr_accessor :tracking_domain
|
|
44
44
|
|
|
45
|
+
# Per-account string variables. PATCH omission preserves the current map, a supplied map replaces it, and an empty map clears it. Detail responses return an empty map when no variables are set.
|
|
46
|
+
attr_accessor :variables
|
|
47
|
+
|
|
45
48
|
class EnumAttributeValidator
|
|
46
49
|
attr_reader :datatype
|
|
47
50
|
attr_reader :allowable_values
|
|
@@ -79,7 +82,8 @@ module Sendmux::Management::Generated
|
|
|
79
82
|
:'smtp_port' => :'smtp_port',
|
|
80
83
|
:'smtp_protocol' => :'smtp_protocol',
|
|
81
84
|
:'smtp_username' => :'smtp_username',
|
|
82
|
-
:'tracking_domain' => :'tracking_domain'
|
|
85
|
+
:'tracking_domain' => :'tracking_domain',
|
|
86
|
+
:'variables' => :'variables'
|
|
83
87
|
}
|
|
84
88
|
end
|
|
85
89
|
|
|
@@ -108,7 +112,8 @@ module Sendmux::Management::Generated
|
|
|
108
112
|
:'smtp_port' => :'Integer',
|
|
109
113
|
:'smtp_protocol' => :'String',
|
|
110
114
|
:'smtp_username' => :'String',
|
|
111
|
-
:'tracking_domain' => :'String'
|
|
115
|
+
:'tracking_domain' => :'String',
|
|
116
|
+
:'variables' => :'Hash<String, String>'
|
|
112
117
|
}
|
|
113
118
|
end
|
|
114
119
|
|
|
@@ -119,7 +124,7 @@ module Sendmux::Management::Generated
|
|
|
119
124
|
:'from_name',
|
|
120
125
|
:'reply_to_email',
|
|
121
126
|
:'reply_to_name',
|
|
122
|
-
:'tracking_domain'
|
|
127
|
+
:'tracking_domain',
|
|
123
128
|
])
|
|
124
129
|
end
|
|
125
130
|
|
|
@@ -202,6 +207,12 @@ module Sendmux::Management::Generated
|
|
|
202
207
|
if attributes.key?(:'tracking_domain')
|
|
203
208
|
self.tracking_domain = attributes[:'tracking_domain']
|
|
204
209
|
end
|
|
210
|
+
|
|
211
|
+
if attributes.key?(:'variables')
|
|
212
|
+
if (value = attributes[:'variables']).is_a?(Hash)
|
|
213
|
+
self.variables = value
|
|
214
|
+
end
|
|
215
|
+
end
|
|
205
216
|
end
|
|
206
217
|
|
|
207
218
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -301,6 +312,10 @@ module Sendmux::Management::Generated
|
|
|
301
312
|
invalid_properties.push('invalid value for "tracking_domain", the character length must be smaller than or equal to 255.')
|
|
302
313
|
end
|
|
303
314
|
|
|
315
|
+
if !@variables.nil? && @variables.length > 50
|
|
316
|
+
invalid_properties.push('invalid value for "variables", number of items must be less than or equal to 50.')
|
|
317
|
+
end
|
|
318
|
+
|
|
304
319
|
invalid_properties
|
|
305
320
|
end
|
|
306
321
|
|
|
@@ -333,6 +348,7 @@ module Sendmux::Management::Generated
|
|
|
333
348
|
return false if @smtp_username.to_s.length > 255
|
|
334
349
|
return false if @smtp_username.to_s.length < 1
|
|
335
350
|
return false if !@tracking_domain.nil? && @tracking_domain.to_s.length > 255
|
|
351
|
+
return false if !@variables.nil? && @variables.length > 50
|
|
336
352
|
true
|
|
337
353
|
end
|
|
338
354
|
|
|
@@ -504,6 +520,20 @@ module Sendmux::Management::Generated
|
|
|
504
520
|
@tracking_domain = tracking_domain
|
|
505
521
|
end
|
|
506
522
|
|
|
523
|
+
# Custom attribute writer method with validation
|
|
524
|
+
# @param [Object] variables Value to be assigned
|
|
525
|
+
def variables=(variables)
|
|
526
|
+
if variables.nil?
|
|
527
|
+
fail ArgumentError, 'variables cannot be nil'
|
|
528
|
+
end
|
|
529
|
+
|
|
530
|
+
if variables.length > 50
|
|
531
|
+
fail ArgumentError, 'invalid value for "variables", number of items must be less than or equal to 50.'
|
|
532
|
+
end
|
|
533
|
+
|
|
534
|
+
@variables = variables
|
|
535
|
+
end
|
|
536
|
+
|
|
507
537
|
# Checks equality by comparing each attribute.
|
|
508
538
|
# @param [Object] Object to be compared
|
|
509
539
|
def ==(o)
|
|
@@ -521,7 +551,8 @@ module Sendmux::Management::Generated
|
|
|
521
551
|
smtp_port == o.smtp_port &&
|
|
522
552
|
smtp_protocol == o.smtp_protocol &&
|
|
523
553
|
smtp_username == o.smtp_username &&
|
|
524
|
-
tracking_domain == o.tracking_domain
|
|
554
|
+
tracking_domain == o.tracking_domain &&
|
|
555
|
+
variables == o.variables
|
|
525
556
|
end
|
|
526
557
|
|
|
527
558
|
# @see the `==` method
|
|
@@ -533,7 +564,7 @@ module Sendmux::Management::Generated
|
|
|
533
564
|
# Calculates hash code according to all attributes.
|
|
534
565
|
# @return [Integer] Hash code
|
|
535
566
|
def hash
|
|
536
|
-
[from_email, from_name, name, percentage, quotas, reply_to_email, reply_to_name, smtp_host, smtp_password, smtp_port, smtp_protocol, smtp_username, tracking_domain].hash
|
|
567
|
+
[from_email, from_name, name, percentage, quotas, reply_to_email, reply_to_name, smtp_host, smtp_password, smtp_port, smtp_protocol, smtp_username, tracking_domain, variables].hash
|
|
537
568
|
end
|
|
538
569
|
|
|
539
570
|
# Builds the object from hash
|
|
@@ -94,6 +94,9 @@ module Sendmux::Management::Generated
|
|
|
94
94
|
# ISO 8601 last update timestamp
|
|
95
95
|
attr_accessor :updated_at
|
|
96
96
|
|
|
97
|
+
# Per-account string variables. PATCH omission preserves the current map, a supplied map replaces it, and an empty map clears it. Detail responses return an empty map when no variables are set.
|
|
98
|
+
attr_accessor :variables
|
|
99
|
+
|
|
97
100
|
class EnumAttributeValidator
|
|
98
101
|
attr_reader :datatype
|
|
99
102
|
attr_reader :allowable_values
|
|
@@ -145,7 +148,8 @@ module Sendmux::Management::Generated
|
|
|
145
148
|
:'status_reason' => :'status_reason',
|
|
146
149
|
:'tracking_domain' => :'tracking_domain',
|
|
147
150
|
:'type' => :'type',
|
|
148
|
-
:'updated_at' => :'updated_at'
|
|
151
|
+
:'updated_at' => :'updated_at',
|
|
152
|
+
:'variables' => :'variables'
|
|
149
153
|
}
|
|
150
154
|
end
|
|
151
155
|
|
|
@@ -188,7 +192,8 @@ module Sendmux::Management::Generated
|
|
|
188
192
|
:'status_reason' => :'String',
|
|
189
193
|
:'tracking_domain' => :'String',
|
|
190
194
|
:'type' => :'String',
|
|
191
|
-
:'updated_at' => :'String'
|
|
195
|
+
:'updated_at' => :'String',
|
|
196
|
+
:'variables' => :'Hash<String, String>'
|
|
192
197
|
}
|
|
193
198
|
end
|
|
194
199
|
|
|
@@ -389,6 +394,14 @@ module Sendmux::Management::Generated
|
|
|
389
394
|
else
|
|
390
395
|
self.updated_at = nil
|
|
391
396
|
end
|
|
397
|
+
|
|
398
|
+
if attributes.key?(:'variables')
|
|
399
|
+
if (value = attributes[:'variables']).is_a?(Hash)
|
|
400
|
+
self.variables = value
|
|
401
|
+
end
|
|
402
|
+
else
|
|
403
|
+
self.variables = nil
|
|
404
|
+
end
|
|
392
405
|
end
|
|
393
406
|
|
|
394
407
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -448,6 +461,14 @@ module Sendmux::Management::Generated
|
|
|
448
461
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
|
449
462
|
end
|
|
450
463
|
|
|
464
|
+
if @variables.nil?
|
|
465
|
+
invalid_properties.push('invalid value for "variables", variables cannot be nil.')
|
|
466
|
+
end
|
|
467
|
+
|
|
468
|
+
if !@variables.nil? && @variables.length > 50
|
|
469
|
+
invalid_properties.push('invalid value for "variables", number of items must be less than or equal to 50.')
|
|
470
|
+
end
|
|
471
|
+
|
|
451
472
|
invalid_properties
|
|
452
473
|
end
|
|
453
474
|
|
|
@@ -472,6 +493,8 @@ module Sendmux::Management::Generated
|
|
|
472
493
|
type_validator = EnumAttributeValidator.new('String', ["smtp", "gmail_api", "outlook_api", "amazon_ses", "unknown_default_open_api"])
|
|
473
494
|
return false unless type_validator.valid?(@type)
|
|
474
495
|
return false if @updated_at.nil?
|
|
496
|
+
return false if @variables.nil?
|
|
497
|
+
return false if !@variables.nil? && @variables.length > 50
|
|
475
498
|
true
|
|
476
499
|
end
|
|
477
500
|
|
|
@@ -605,6 +628,20 @@ module Sendmux::Management::Generated
|
|
|
605
628
|
@updated_at = updated_at
|
|
606
629
|
end
|
|
607
630
|
|
|
631
|
+
# Custom attribute writer method with validation
|
|
632
|
+
# @param [Object] variables Value to be assigned
|
|
633
|
+
def variables=(variables)
|
|
634
|
+
if variables.nil?
|
|
635
|
+
fail ArgumentError, 'variables cannot be nil'
|
|
636
|
+
end
|
|
637
|
+
|
|
638
|
+
if variables.length > 50
|
|
639
|
+
fail ArgumentError, 'invalid value for "variables", number of items must be less than or equal to 50.'
|
|
640
|
+
end
|
|
641
|
+
|
|
642
|
+
@variables = variables
|
|
643
|
+
end
|
|
644
|
+
|
|
608
645
|
# Checks equality by comparing each attribute.
|
|
609
646
|
# @param [Object] Object to be compared
|
|
610
647
|
def ==(o)
|
|
@@ -636,7 +673,8 @@ module Sendmux::Management::Generated
|
|
|
636
673
|
status_reason == o.status_reason &&
|
|
637
674
|
tracking_domain == o.tracking_domain &&
|
|
638
675
|
type == o.type &&
|
|
639
|
-
updated_at == o.updated_at
|
|
676
|
+
updated_at == o.updated_at &&
|
|
677
|
+
variables == o.variables
|
|
640
678
|
end
|
|
641
679
|
|
|
642
680
|
# @see the `==` method
|
|
@@ -648,7 +686,7 @@ module Sendmux::Management::Generated
|
|
|
648
686
|
# Calculates hash code according to all attributes.
|
|
649
687
|
# @return [Integer] Hash code
|
|
650
688
|
def hash
|
|
651
|
-
[allowed_actions, created_at, from_email, from_name, has_refresh_token, has_smtp_password, id, is_active, is_editable, is_shared, last_tested_at, last_used_at, name, oauth_email, percentage, quotas, reply_to_email, reply_to_name, smtp_host, smtp_port, smtp_protocol, smtp_username, status, status_reason, tracking_domain, type, updated_at].hash
|
|
689
|
+
[allowed_actions, created_at, from_email, from_name, has_refresh_token, has_smtp_password, id, is_active, is_editable, is_shared, last_tested_at, last_used_at, name, oauth_email, percentage, quotas, reply_to_email, reply_to_name, smtp_host, smtp_port, smtp_protocol, smtp_username, status, status_reason, tracking_domain, type, updated_at, variables].hash
|
|
652
690
|
end
|
|
653
691
|
|
|
654
692
|
# Builds the object from hash
|