mailslurp_client 17.2.0 → 17.3.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/lib/mailslurp_client/api/campaign_probe_controller_api.rb +138 -0
- data/lib/mailslurp_client/api/domain_monitor_controller_api.rb +264 -0
- data/lib/mailslurp_client/api/email_audit_controller_api.rb +334 -0
- data/lib/mailslurp_client/api/email_controller_api.rb +124 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +4 -4
- data/lib/mailslurp_client/api/phone_controller_api.rb +1312 -81
- data/lib/mailslurp_client/api/sms_controller_api.rb +125 -0
- data/lib/mailslurp_client/api/tools_controller_api.rb +806 -0
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +15 -15
- data/lib/mailslurp_client/models/acquire_phone_pool_lease_options.rb +233 -0
- data/lib/mailslurp_client/models/add_phone_pool_numbers_options.rb +213 -0
- data/lib/mailslurp_client/models/ai_transform_mapping_projection.rb +27 -27
- data/lib/mailslurp_client/models/ai_transform_projection.rb +28 -28
- data/lib/mailslurp_client/models/alias_projection.rb +45 -45
- data/lib/mailslurp_client/models/alias_thread_projection.rb +42 -42
- data/lib/mailslurp_client/models/analyze_dmarc_report_options.rb +248 -0
- data/lib/mailslurp_client/models/analyze_dmarc_report_results.rb +386 -0
- data/lib/mailslurp_client/models/analyze_email_headers_options.rb +240 -0
- data/lib/mailslurp_client/models/analyze_email_headers_results.rb +275 -0
- data/lib/mailslurp_client/models/attachment_projection.rb +50 -50
- data/lib/mailslurp_client/models/available_phone_number_dto.rb +325 -0
- data/lib/mailslurp_client/models/available_phone_numbers_result.rb +236 -0
- data/lib/mailslurp_client/models/bounce_projection.rb +28 -28
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +10 -10
- data/lib/mailslurp_client/models/campaign_probe_run_comparison_dto.rb +397 -0
- data/lib/mailslurp_client/models/check_campaign_probe_options.rb +371 -0
- data/lib/mailslurp_client/models/check_campaign_probe_results.rb +482 -0
- data/lib/mailslurp_client/models/check_dns_propagation_options.rb +297 -0
- data/lib/mailslurp_client/models/check_dns_propagation_results.rb +361 -0
- data/lib/mailslurp_client/models/check_domain_monitor_options.rb +243 -0
- data/lib/mailslurp_client/models/check_domain_monitor_results.rb +398 -0
- data/lib/mailslurp_client/models/check_email_audit_options.rb +405 -0
- data/lib/mailslurp_client/models/check_email_auth_stack_options.rb +248 -0
- data/lib/mailslurp_client/models/check_email_auth_stack_results.rb +462 -0
- data/lib/mailslurp_client/models/check_email_blacklist_options.rb +241 -0
- data/lib/mailslurp_client/models/check_email_blacklist_results.rb +366 -0
- data/lib/mailslurp_client/models/connector_event_projection.rb +42 -42
- data/lib/mailslurp_client/models/connector_projection.rb +42 -42
- data/lib/mailslurp_client/models/contact_projection.rb +15 -15
- data/lib/mailslurp_client/models/create_email_audit_options.rb +394 -0
- data/lib/mailslurp_client/models/create_phone_number_options.rb +25 -4
- data/lib/mailslurp_client/models/create_phone_pool_options.rb +220 -0
- data/lib/mailslurp_client/models/create_phone_provisioning_job_item_options.rb +256 -0
- data/lib/mailslurp_client/models/create_phone_provisioning_job_options.rb +284 -0
- data/lib/mailslurp_client/models/dmarc_report_metadata.rb +308 -0
- data/lib/mailslurp_client/models/dmarc_report_source_summary.rb +274 -0
- data/lib/mailslurp_client/models/dns_propagation_resolver_result.rb +252 -0
- data/lib/mailslurp_client/models/domain_monitor_run_comparison_dto.rb +369 -0
- data/lib/mailslurp_client/models/domain_monitor_summary_dto.rb +248 -0
- data/lib/mailslurp_client/models/email_audit_analysis_result.rb +620 -0
- data/lib/mailslurp_client/models/email_audit_comparison_dto.rb +411 -0
- data/lib/mailslurp_client/models/email_audit_dto.rb +308 -0
- data/lib/mailslurp_client/models/email_audit_spelling_issue.rb +276 -0
- data/lib/mailslurp_client/models/email_audit_url_issue.rb +236 -0
- data/lib/mailslurp_client/models/email_blacklist_ip_result.rb +242 -0
- data/lib/mailslurp_client/models/email_blacklist_listing_result.rb +258 -0
- data/lib/mailslurp_client/models/email_header_analysis_summary.rb +242 -0
- data/lib/mailslurp_client/models/email_header_received_hop.rb +242 -0
- data/lib/mailslurp_client/models/email_projection.rb +88 -88
- data/lib/mailslurp_client/models/email_thread_projection.rb +54 -54
- data/lib/mailslurp_client/models/entity_automation_item_projection.rb +33 -33
- data/lib/mailslurp_client/models/entity_event_item_projection.rb +42 -42
- data/lib/mailslurp_client/models/entity_favourite_item_projection.rb +29 -29
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +27 -27
- data/lib/mailslurp_client/models/generate_spf_record_options.rb +357 -0
- data/lib/mailslurp_client/models/generate_spf_record_results.rb +318 -0
- data/lib/mailslurp_client/models/get_or_create_phone_pool_options.rb +220 -0
- data/lib/mailslurp_client/models/group_projection.rb +15 -15
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +47 -47
- data/lib/mailslurp_client/models/imap_email_projection.rb +18 -18
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +21 -21
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +33 -33
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +19 -19
- data/lib/mailslurp_client/models/lookup_dkim_domain_options.rb +275 -0
- data/lib/mailslurp_client/models/lookup_dkim_domain_results.rb +304 -0
- data/lib/mailslurp_client/models/lookup_ptr_options.rb +241 -0
- data/lib/mailslurp_client/models/lookup_ptr_results.rb +305 -0
- data/lib/mailslurp_client/models/lookup_spf_domain_options.rb +240 -0
- data/lib/mailslurp_client/models/lookup_spf_domain_results.rb +305 -0
- data/lib/mailslurp_client/models/missed_email_projection.rb +28 -28
- data/lib/mailslurp_client/models/missed_sms_projection.rb +32 -32
- data/lib/mailslurp_client/models/opt_in_identity_projection.rb +18 -18
- data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_ai_transform_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_alias.rb +19 -19
- data/lib/mailslurp_client/models/page_alias_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
- data/lib/mailslurp_client/models/page_complaint.rb +19 -19
- data/lib/mailslurp_client/models/page_connector.rb +19 -19
- data/lib/mailslurp_client/models/page_connector_events.rb +19 -19
- data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_delivery_status.rb +19 -19
- data/lib/mailslurp_client/models/page_device_preview_run_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
- data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
- data/lib/mailslurp_client/models/page_entity_automation_items.rb +19 -19
- data/lib/mailslurp_client/models/page_entity_event_items.rb +19 -19
- data/lib/mailslurp_client/models/page_entity_favourite_items.rb +19 -19
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_guest_portal_users.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_tags.rb +19 -19
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +19 -19
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_missed_sms_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_number_release_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_plus_address_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_reputation_items.rb +19 -19
- data/lib/mailslurp_client/models/page_ruleset_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +19 -19
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_sent_sms_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_sms_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
- data/lib/mailslurp_client/models/pageable_object.rb +22 -22
- data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +18 -18
- data/lib/mailslurp_client/models/phone_number_dto.rb +49 -4
- data/lib/mailslurp_client/models/phone_number_line_type_intelligence_dto.rb +242 -0
- data/lib/mailslurp_client/models/phone_number_line_type_lookup_dto.rb +286 -0
- data/lib/mailslurp_client/models/phone_number_projection.rb +80 -35
- data/lib/mailslurp_client/models/phone_number_release_projection.rb +39 -39
- data/lib/mailslurp_client/models/phone_pool_detail_dto.rb +334 -0
- data/lib/mailslurp_client/models/phone_pool_dto.rb +318 -0
- data/lib/mailslurp_client/models/phone_pool_lease_dto.rb +351 -0
- data/lib/mailslurp_client/models/phone_pool_member_dto.rb +333 -0
- data/lib/mailslurp_client/models/phone_provider_capabilities_result.rb +284 -0
- data/lib/mailslurp_client/models/phone_provisioning_job_dto.rb +434 -0
- data/lib/mailslurp_client/models/phone_provisioning_job_item_dto.rb +336 -0
- data/lib/mailslurp_client/models/phone_sms_prepaid_credit_dto.rb +340 -0
- data/lib/mailslurp_client/models/phone_sms_prepaid_credits_dto.rb +241 -0
- data/lib/mailslurp_client/models/plus_address_projection.rb +27 -27
- data/lib/mailslurp_client/models/recipient_projection.rb +13 -13
- data/lib/mailslurp_client/models/reputation_item_projection.rb +41 -41
- data/lib/mailslurp_client/models/search_available_phone_numbers_options.rb +377 -0
- data/lib/mailslurp_client/models/sender_projection.rb +13 -13
- data/lib/mailslurp_client/models/sent_email_projection.rb +63 -63
- data/lib/mailslurp_client/models/sent_sms_projection.rb +18 -18
- data/lib/mailslurp_client/models/sms_projection.rb +18 -18
- data/lib/mailslurp_client/models/smtp_auth_diagnostic_result.rb +235 -0
- data/lib/mailslurp_client/models/smtp_diagnostic_step.rb +236 -0
- data/lib/mailslurp_client/models/smtp_tls_diagnostic_result.rb +245 -0
- data/lib/mailslurp_client/models/sort_object.rb +10 -10
- data/lib/mailslurp_client/models/spf_mechanism_result.rb +229 -0
- data/lib/mailslurp_client/models/template_projection.rb +41 -41
- data/lib/mailslurp_client/models/test_smtp_server_options.rb +337 -0
- data/lib/mailslurp_client/models/test_smtp_server_results.rb +297 -0
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +27 -27
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +27 -27
- data/lib/mailslurp_client/models/update_phone_pool_options.rb +215 -0
- data/lib/mailslurp_client/models/validation_dto.rb +1 -5
- data/lib/mailslurp_client/models/webhook_projection.rb +45 -45
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +67 -0
- metadata +69 -2
|
@@ -14,14 +14,14 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module MailSlurpClient
|
|
16
16
|
class EntityFavouriteItemProjection
|
|
17
|
-
attr_accessor :created_at
|
|
18
|
-
|
|
19
|
-
attr_accessor :entity_type
|
|
20
|
-
|
|
21
17
|
attr_accessor :name
|
|
22
18
|
|
|
23
19
|
attr_accessor :id
|
|
24
20
|
|
|
21
|
+
attr_accessor :created_at
|
|
22
|
+
|
|
23
|
+
attr_accessor :entity_type
|
|
24
|
+
|
|
25
25
|
attr_accessor :description
|
|
26
26
|
|
|
27
27
|
class EnumAttributeValidator
|
|
@@ -49,10 +49,10 @@ module MailSlurpClient
|
|
|
49
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
50
50
|
def self.attribute_map
|
|
51
51
|
{
|
|
52
|
-
:'created_at' => :'createdAt',
|
|
53
|
-
:'entity_type' => :'entityType',
|
|
54
52
|
:'name' => :'name',
|
|
55
53
|
:'id' => :'id',
|
|
54
|
+
:'created_at' => :'createdAt',
|
|
55
|
+
:'entity_type' => :'entityType',
|
|
56
56
|
:'description' => :'description'
|
|
57
57
|
}
|
|
58
58
|
end
|
|
@@ -60,10 +60,10 @@ module MailSlurpClient
|
|
|
60
60
|
# Attribute type mapping.
|
|
61
61
|
def self.openapi_types
|
|
62
62
|
{
|
|
63
|
-
:'created_at' => :'DateTime',
|
|
64
|
-
:'entity_type' => :'String',
|
|
65
63
|
:'name' => :'String',
|
|
66
64
|
:'id' => :'String',
|
|
65
|
+
:'created_at' => :'DateTime',
|
|
66
|
+
:'entity_type' => :'String',
|
|
67
67
|
:'description' => :'String'
|
|
68
68
|
}
|
|
69
69
|
end
|
|
@@ -89,14 +89,6 @@ module MailSlurpClient
|
|
|
89
89
|
h[k.to_sym] = v
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
if attributes.key?(:'created_at')
|
|
93
|
-
self.created_at = attributes[:'created_at']
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
if attributes.key?(:'entity_type')
|
|
97
|
-
self.entity_type = attributes[:'entity_type']
|
|
98
|
-
end
|
|
99
|
-
|
|
100
92
|
if attributes.key?(:'name')
|
|
101
93
|
self.name = attributes[:'name']
|
|
102
94
|
end
|
|
@@ -105,6 +97,14 @@ module MailSlurpClient
|
|
|
105
97
|
self.id = attributes[:'id']
|
|
106
98
|
end
|
|
107
99
|
|
|
100
|
+
if attributes.key?(:'created_at')
|
|
101
|
+
self.created_at = attributes[:'created_at']
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'entity_type')
|
|
105
|
+
self.entity_type = attributes[:'entity_type']
|
|
106
|
+
end
|
|
107
|
+
|
|
108
108
|
if attributes.key?(:'description')
|
|
109
109
|
self.description = attributes[:'description']
|
|
110
110
|
end
|
|
@@ -114,14 +114,6 @@ module MailSlurpClient
|
|
|
114
114
|
# @return Array for valid properties with the reasons
|
|
115
115
|
def list_invalid_properties
|
|
116
116
|
invalid_properties = Array.new
|
|
117
|
-
if @created_at.nil?
|
|
118
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
if @entity_type.nil?
|
|
122
|
-
invalid_properties.push('invalid value for "entity_type", entity_type cannot be nil.')
|
|
123
|
-
end
|
|
124
|
-
|
|
125
117
|
if @name.nil?
|
|
126
118
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
127
119
|
end
|
|
@@ -130,18 +122,26 @@ module MailSlurpClient
|
|
|
130
122
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
131
123
|
end
|
|
132
124
|
|
|
125
|
+
if @created_at.nil?
|
|
126
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if @entity_type.nil?
|
|
130
|
+
invalid_properties.push('invalid value for "entity_type", entity_type cannot be nil.')
|
|
131
|
+
end
|
|
132
|
+
|
|
133
133
|
invalid_properties
|
|
134
134
|
end
|
|
135
135
|
|
|
136
136
|
# Check to see if the all the properties in the model are valid
|
|
137
137
|
# @return true if the model is valid
|
|
138
138
|
def valid?
|
|
139
|
+
return false if @name.nil?
|
|
140
|
+
return false if @id.nil?
|
|
139
141
|
return false if @created_at.nil?
|
|
140
142
|
return false if @entity_type.nil?
|
|
141
143
|
entity_type_validator = EnumAttributeValidator.new('String', ["INBOX", "EMAIL", "ATTACHMENT", "PHONE", "SMS"])
|
|
142
144
|
return false unless entity_type_validator.valid?(@entity_type)
|
|
143
|
-
return false if @name.nil?
|
|
144
|
-
return false if @id.nil?
|
|
145
145
|
true
|
|
146
146
|
end
|
|
147
147
|
|
|
@@ -160,10 +160,10 @@ module MailSlurpClient
|
|
|
160
160
|
def ==(o)
|
|
161
161
|
return true if self.equal?(o)
|
|
162
162
|
self.class == o.class &&
|
|
163
|
-
created_at == o.created_at &&
|
|
164
|
-
entity_type == o.entity_type &&
|
|
165
163
|
name == o.name &&
|
|
166
164
|
id == o.id &&
|
|
165
|
+
created_at == o.created_at &&
|
|
166
|
+
entity_type == o.entity_type &&
|
|
167
167
|
description == o.description
|
|
168
168
|
end
|
|
169
169
|
|
|
@@ -176,7 +176,7 @@ module MailSlurpClient
|
|
|
176
176
|
# Calculates hash code according to all attributes.
|
|
177
177
|
# @return [Integer] Hash code
|
|
178
178
|
def hash
|
|
179
|
-
[
|
|
179
|
+
[name, id, created_at, entity_type, description].hash
|
|
180
180
|
end
|
|
181
181
|
|
|
182
182
|
# Builds the object from hash
|
|
@@ -15,31 +15,31 @@ require 'date'
|
|
|
15
15
|
module MailSlurpClient
|
|
16
16
|
# Record of inbox expiration
|
|
17
17
|
class ExpiredInboxRecordProjection
|
|
18
|
-
attr_accessor :
|
|
18
|
+
attr_accessor :id
|
|
19
19
|
|
|
20
20
|
attr_accessor :email_address
|
|
21
21
|
|
|
22
|
-
attr_accessor :
|
|
22
|
+
attr_accessor :user_id
|
|
23
23
|
|
|
24
|
-
attr_accessor :
|
|
24
|
+
attr_accessor :created_at
|
|
25
25
|
|
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
27
|
def self.attribute_map
|
|
28
28
|
{
|
|
29
|
-
:'
|
|
29
|
+
:'id' => :'id',
|
|
30
30
|
:'email_address' => :'emailAddress',
|
|
31
|
-
:'
|
|
32
|
-
:'
|
|
31
|
+
:'user_id' => :'userId',
|
|
32
|
+
:'created_at' => :'createdAt'
|
|
33
33
|
}
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
# Attribute type mapping.
|
|
37
37
|
def self.openapi_types
|
|
38
38
|
{
|
|
39
|
-
:'
|
|
39
|
+
:'id' => :'String',
|
|
40
40
|
:'email_address' => :'String',
|
|
41
|
-
:'
|
|
42
|
-
:'
|
|
41
|
+
:'user_id' => :'String',
|
|
42
|
+
:'created_at' => :'DateTime'
|
|
43
43
|
}
|
|
44
44
|
end
|
|
45
45
|
|
|
@@ -64,20 +64,20 @@ module MailSlurpClient
|
|
|
64
64
|
h[k.to_sym] = v
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
if attributes.key?(:'
|
|
68
|
-
self.
|
|
67
|
+
if attributes.key?(:'id')
|
|
68
|
+
self.id = attributes[:'id']
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
if attributes.key?(:'email_address')
|
|
72
72
|
self.email_address = attributes[:'email_address']
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
-
if attributes.key?(:'
|
|
76
|
-
self.
|
|
75
|
+
if attributes.key?(:'user_id')
|
|
76
|
+
self.user_id = attributes[:'user_id']
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
-
if attributes.key?(:'
|
|
80
|
-
self.
|
|
79
|
+
if attributes.key?(:'created_at')
|
|
80
|
+
self.created_at = attributes[:'created_at']
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
83
|
|
|
@@ -85,20 +85,20 @@ module MailSlurpClient
|
|
|
85
85
|
# @return Array for valid properties with the reasons
|
|
86
86
|
def list_invalid_properties
|
|
87
87
|
invalid_properties = Array.new
|
|
88
|
-
if @
|
|
89
|
-
invalid_properties.push('invalid value for "
|
|
88
|
+
if @id.nil?
|
|
89
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
if @email_address.nil?
|
|
93
93
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
-
if @
|
|
97
|
-
invalid_properties.push('invalid value for "
|
|
96
|
+
if @user_id.nil?
|
|
97
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
|
98
98
|
end
|
|
99
99
|
|
|
100
|
-
if @
|
|
101
|
-
invalid_properties.push('invalid value for "
|
|
100
|
+
if @created_at.nil?
|
|
101
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
102
102
|
end
|
|
103
103
|
|
|
104
104
|
invalid_properties
|
|
@@ -107,10 +107,10 @@ module MailSlurpClient
|
|
|
107
107
|
# Check to see if the all the properties in the model are valid
|
|
108
108
|
# @return true if the model is valid
|
|
109
109
|
def valid?
|
|
110
|
-
return false if @
|
|
110
|
+
return false if @id.nil?
|
|
111
111
|
return false if @email_address.nil?
|
|
112
|
+
return false if @user_id.nil?
|
|
112
113
|
return false if @created_at.nil?
|
|
113
|
-
return false if @id.nil?
|
|
114
114
|
true
|
|
115
115
|
end
|
|
116
116
|
|
|
@@ -119,10 +119,10 @@ module MailSlurpClient
|
|
|
119
119
|
def ==(o)
|
|
120
120
|
return true if self.equal?(o)
|
|
121
121
|
self.class == o.class &&
|
|
122
|
-
|
|
122
|
+
id == o.id &&
|
|
123
123
|
email_address == o.email_address &&
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
user_id == o.user_id &&
|
|
125
|
+
created_at == o.created_at
|
|
126
126
|
end
|
|
127
127
|
|
|
128
128
|
# @see the `==` method
|
|
@@ -134,7 +134,7 @@ module MailSlurpClient
|
|
|
134
134
|
# Calculates hash code according to all attributes.
|
|
135
135
|
# @return [Integer] Hash code
|
|
136
136
|
def hash
|
|
137
|
-
[
|
|
137
|
+
[id, email_address, user_id, created_at].hash
|
|
138
138
|
end
|
|
139
139
|
|
|
140
140
|
# Builds the object from hash
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#MailSlurp API
|
|
3
|
+
|
|
4
|
+
#MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 6.5.2
|
|
7
|
+
Contact: contact@mailslurp.dev
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.3.1
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module MailSlurpClient
|
|
16
|
+
class GenerateSpfRecordOptions
|
|
17
|
+
# Domain the SPF record applies to
|
|
18
|
+
attr_accessor :domain
|
|
19
|
+
|
|
20
|
+
# Optional include domains
|
|
21
|
+
attr_accessor :include_domains
|
|
22
|
+
|
|
23
|
+
# Optional IPv4 CIDRs or hosts
|
|
24
|
+
attr_accessor :ip4
|
|
25
|
+
|
|
26
|
+
# Optional IPv6 CIDRs or hosts
|
|
27
|
+
attr_accessor :ip6
|
|
28
|
+
|
|
29
|
+
# Whether to include the MX mechanism
|
|
30
|
+
attr_accessor :mx
|
|
31
|
+
|
|
32
|
+
# Whether to include the A mechanism
|
|
33
|
+
attr_accessor :a
|
|
34
|
+
|
|
35
|
+
attr_accessor :all_policy
|
|
36
|
+
|
|
37
|
+
class EnumAttributeValidator
|
|
38
|
+
attr_reader :datatype
|
|
39
|
+
attr_reader :allowable_values
|
|
40
|
+
|
|
41
|
+
def initialize(datatype, allowable_values)
|
|
42
|
+
@allowable_values = allowable_values.map do |value|
|
|
43
|
+
case datatype.to_s
|
|
44
|
+
when /Integer/i
|
|
45
|
+
value.to_i
|
|
46
|
+
when /Float/i
|
|
47
|
+
value.to_f
|
|
48
|
+
else
|
|
49
|
+
value
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def valid?(value)
|
|
55
|
+
!value || allowable_values.include?(value)
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
60
|
+
def self.attribute_map
|
|
61
|
+
{
|
|
62
|
+
:'domain' => :'domain',
|
|
63
|
+
:'include_domains' => :'includeDomains',
|
|
64
|
+
:'ip4' => :'ip4',
|
|
65
|
+
:'ip6' => :'ip6',
|
|
66
|
+
:'mx' => :'mx',
|
|
67
|
+
:'a' => :'a',
|
|
68
|
+
:'all_policy' => :'allPolicy'
|
|
69
|
+
}
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Attribute type mapping.
|
|
73
|
+
def self.openapi_types
|
|
74
|
+
{
|
|
75
|
+
:'domain' => :'String',
|
|
76
|
+
:'include_domains' => :'Array<String>',
|
|
77
|
+
:'ip4' => :'Array<String>',
|
|
78
|
+
:'ip6' => :'Array<String>',
|
|
79
|
+
:'mx' => :'Boolean',
|
|
80
|
+
:'a' => :'Boolean',
|
|
81
|
+
:'all_policy' => :'String'
|
|
82
|
+
}
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# List of attributes with nullable: true
|
|
86
|
+
def self.openapi_nullable
|
|
87
|
+
Set.new([
|
|
88
|
+
:'include_domains',
|
|
89
|
+
:'ip4',
|
|
90
|
+
:'ip6',
|
|
91
|
+
])
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Initializes the object
|
|
95
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
96
|
+
def initialize(attributes = {})
|
|
97
|
+
if (!attributes.is_a?(Hash))
|
|
98
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::GenerateSpfRecordOptions` initialize method"
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
102
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
103
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
104
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::GenerateSpfRecordOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
105
|
+
end
|
|
106
|
+
h[k.to_sym] = v
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'domain')
|
|
110
|
+
self.domain = attributes[:'domain']
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
if attributes.key?(:'include_domains')
|
|
114
|
+
if (value = attributes[:'include_domains']).is_a?(Array)
|
|
115
|
+
self.include_domains = value
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
if attributes.key?(:'ip4')
|
|
120
|
+
if (value = attributes[:'ip4']).is_a?(Array)
|
|
121
|
+
self.ip4 = value
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if attributes.key?(:'ip6')
|
|
126
|
+
if (value = attributes[:'ip6']).is_a?(Array)
|
|
127
|
+
self.ip6 = value
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
if attributes.key?(:'mx')
|
|
132
|
+
self.mx = attributes[:'mx']
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if attributes.key?(:'a')
|
|
136
|
+
self.a = attributes[:'a']
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
if attributes.key?(:'all_policy')
|
|
140
|
+
self.all_policy = attributes[:'all_policy']
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
145
|
+
# @return Array for valid properties with the reasons
|
|
146
|
+
def list_invalid_properties
|
|
147
|
+
invalid_properties = Array.new
|
|
148
|
+
if @domain.nil?
|
|
149
|
+
invalid_properties.push('invalid value for "domain", domain cannot be nil.')
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
if @domain.to_s.length > 253
|
|
153
|
+
invalid_properties.push('invalid value for "domain", the character length must be smaller than or equal to 253.')
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
if @domain.to_s.length < 0
|
|
157
|
+
invalid_properties.push('invalid value for "domain", the character length must be great than or equal to 0.')
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if @mx.nil?
|
|
161
|
+
invalid_properties.push('invalid value for "mx", mx cannot be nil.')
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if @a.nil?
|
|
165
|
+
invalid_properties.push('invalid value for "a", a cannot be nil.')
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if @all_policy.nil?
|
|
169
|
+
invalid_properties.push('invalid value for "all_policy", all_policy cannot be nil.')
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
invalid_properties
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Check to see if the all the properties in the model are valid
|
|
176
|
+
# @return true if the model is valid
|
|
177
|
+
def valid?
|
|
178
|
+
return false if @domain.nil?
|
|
179
|
+
return false if @domain.to_s.length > 253
|
|
180
|
+
return false if @domain.to_s.length < 0
|
|
181
|
+
return false if @mx.nil?
|
|
182
|
+
return false if @a.nil?
|
|
183
|
+
return false if @all_policy.nil?
|
|
184
|
+
all_policy_validator = EnumAttributeValidator.new('String', ["FAIL", "SOFTFAIL", "NEUTRAL"])
|
|
185
|
+
return false unless all_policy_validator.valid?(@all_policy)
|
|
186
|
+
true
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# Custom attribute writer method with validation
|
|
190
|
+
# @param [Object] domain Value to be assigned
|
|
191
|
+
def domain=(domain)
|
|
192
|
+
if domain.nil?
|
|
193
|
+
fail ArgumentError, 'domain cannot be nil'
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
if domain.to_s.length > 253
|
|
197
|
+
fail ArgumentError, 'invalid value for "domain", the character length must be smaller than or equal to 253.'
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
if domain.to_s.length < 0
|
|
201
|
+
fail ArgumentError, 'invalid value for "domain", the character length must be great than or equal to 0.'
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
@domain = domain
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
208
|
+
# @param [Object] all_policy Object to be assigned
|
|
209
|
+
def all_policy=(all_policy)
|
|
210
|
+
validator = EnumAttributeValidator.new('String', ["FAIL", "SOFTFAIL", "NEUTRAL"])
|
|
211
|
+
unless validator.valid?(all_policy)
|
|
212
|
+
fail ArgumentError, "invalid value for \"all_policy\", must be one of #{validator.allowable_values}."
|
|
213
|
+
end
|
|
214
|
+
@all_policy = all_policy
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Checks equality by comparing each attribute.
|
|
218
|
+
# @param [Object] Object to be compared
|
|
219
|
+
def ==(o)
|
|
220
|
+
return true if self.equal?(o)
|
|
221
|
+
self.class == o.class &&
|
|
222
|
+
domain == o.domain &&
|
|
223
|
+
include_domains == o.include_domains &&
|
|
224
|
+
ip4 == o.ip4 &&
|
|
225
|
+
ip6 == o.ip6 &&
|
|
226
|
+
mx == o.mx &&
|
|
227
|
+
a == o.a &&
|
|
228
|
+
all_policy == o.all_policy
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# @see the `==` method
|
|
232
|
+
# @param [Object] Object to be compared
|
|
233
|
+
def eql?(o)
|
|
234
|
+
self == o
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# Calculates hash code according to all attributes.
|
|
238
|
+
# @return [Integer] Hash code
|
|
239
|
+
def hash
|
|
240
|
+
[domain, include_domains, ip4, ip6, mx, a, all_policy].hash
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# Builds the object from hash
|
|
244
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
245
|
+
# @return [Object] Returns the model itself
|
|
246
|
+
def self.build_from_hash(attributes)
|
|
247
|
+
new.build_from_hash(attributes)
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Builds the object from hash
|
|
251
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
252
|
+
# @return [Object] Returns the model itself
|
|
253
|
+
def build_from_hash(attributes)
|
|
254
|
+
return nil unless attributes.is_a?(Hash)
|
|
255
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
256
|
+
if type =~ /\AArray<(.*)>/i
|
|
257
|
+
# check to ensure the input is an array given that the attribute
|
|
258
|
+
# is documented as an array but the input is not
|
|
259
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
260
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
261
|
+
end
|
|
262
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
263
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
264
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
self
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
# Deserializes the data based on type
|
|
271
|
+
# @param string type Data type
|
|
272
|
+
# @param string value Value to be deserialized
|
|
273
|
+
# @return [Object] Deserialized data
|
|
274
|
+
def _deserialize(type, value)
|
|
275
|
+
case type.to_sym
|
|
276
|
+
when :DateTime
|
|
277
|
+
DateTime.parse(value)
|
|
278
|
+
when :Date
|
|
279
|
+
Date.parse(value)
|
|
280
|
+
when :String
|
|
281
|
+
value.to_s
|
|
282
|
+
when :Integer
|
|
283
|
+
value.to_i
|
|
284
|
+
when :Float
|
|
285
|
+
value.to_f
|
|
286
|
+
when :Boolean
|
|
287
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
288
|
+
true
|
|
289
|
+
else
|
|
290
|
+
false
|
|
291
|
+
end
|
|
292
|
+
when :Object
|
|
293
|
+
# generic object (usually a Hash), return directly
|
|
294
|
+
value
|
|
295
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
296
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
297
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
298
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
299
|
+
k_type = Regexp.last_match[:k_type]
|
|
300
|
+
v_type = Regexp.last_match[:v_type]
|
|
301
|
+
{}.tap do |hash|
|
|
302
|
+
value.each do |k, v|
|
|
303
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
304
|
+
end
|
|
305
|
+
end
|
|
306
|
+
else # model
|
|
307
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
|
308
|
+
end
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
# Returns the string representation of the object
|
|
312
|
+
# @return [String] String presentation of the object
|
|
313
|
+
def to_s
|
|
314
|
+
to_hash.to_s
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
318
|
+
# @return [Hash] Returns the object in the form of hash
|
|
319
|
+
def to_body
|
|
320
|
+
to_hash
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
# Returns the object in the form of hash
|
|
324
|
+
# @return [Hash] Returns the object in the form of hash
|
|
325
|
+
def to_hash
|
|
326
|
+
hash = {}
|
|
327
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
328
|
+
value = self.send(attr)
|
|
329
|
+
if value.nil?
|
|
330
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
331
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
hash[param] = _to_hash(value)
|
|
335
|
+
end
|
|
336
|
+
hash
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
# Outputs non-array value in the form of hash
|
|
340
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
341
|
+
# @param [Object] value Any valid value
|
|
342
|
+
# @return [Hash] Returns the value in the form of hash
|
|
343
|
+
def _to_hash(value)
|
|
344
|
+
if value.is_a?(Array)
|
|
345
|
+
value.compact.map { |v| _to_hash(v) }
|
|
346
|
+
elsif value.is_a?(Hash)
|
|
347
|
+
{}.tap do |hash|
|
|
348
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
349
|
+
end
|
|
350
|
+
elsif value.respond_to? :to_hash
|
|
351
|
+
value.to_hash
|
|
352
|
+
else
|
|
353
|
+
value
|
|
354
|
+
end
|
|
355
|
+
end
|
|
356
|
+
end
|
|
357
|
+
end
|