sendmux-management 1.3.0 → 2.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 +4 -4
- data/CHANGELOG.md +24 -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/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_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.rb +1 -0
- metadata +3 -2
|
@@ -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
|