mailsafepro 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.
Files changed (159) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +21 -0
  4. data/README.md +256 -0
  5. data/Rakefile +10 -0
  6. data/docs/APIKeyCreateRequest.md +20 -0
  7. data/docs/APIKeyListResponse.md +22 -0
  8. data/docs/APIKeyMeta.md +34 -0
  9. data/docs/APIKeysApi.md +1241 -0
  10. data/docs/AuthenticationApi.md +1171 -0
  11. data/docs/BatchEmailResponse.md +28 -0
  12. data/docs/BatchValidationRequest.md +26 -0
  13. data/docs/BillingApi.md +689 -0
  14. data/docs/BodyChangePlanBillingBillingChangePlanPost.md +18 -0
  15. data/docs/CheckoutRequest.md +18 -0
  16. data/docs/CheckoutSessionResponse.md +18 -0
  17. data/docs/DNSInfo.md +26 -0
  18. data/docs/DNSRecordDKIM.md +26 -0
  19. data/docs/DNSRecordDMARC.md +24 -0
  20. data/docs/DNSRecordSPF.md +24 -0
  21. data/docs/DefaultApi.md +141 -0
  22. data/docs/DeveloperToolsApi.md +154 -0
  23. data/docs/EmailResponse.md +46 -0
  24. data/docs/EmailValidationApi.md +479 -0
  25. data/docs/EmailValidationRequest.md +26 -0
  26. data/docs/HTTPValidationError.md +18 -0
  27. data/docs/HealthApi.md +937 -0
  28. data/docs/JobCreateRequest.md +32 -0
  29. data/docs/JobCreateResponse.md +22 -0
  30. data/docs/JobResultEntry.md +34 -0
  31. data/docs/JobResultsPage.md +26 -0
  32. data/docs/JobStatusResponse.md +28 -0
  33. data/docs/JobsApi.md +433 -0
  34. data/docs/KeyRotationRequest.md +22 -0
  35. data/docs/LogsApi.md +154 -0
  36. data/docs/PlanEnum.md +15 -0
  37. data/docs/PriorityEnum.md +15 -0
  38. data/docs/RegisterEndpoint.md +18 -0
  39. data/docs/ResponseTestNotificationBillingBillingTestNotificationPostValue.md +15 -0
  40. data/docs/RiskLevelEnum.md +15 -0
  41. data/docs/RotateSecret.md +18 -0
  42. data/docs/SMTPInfo.md +26 -0
  43. data/docs/SubscriptionResponse.md +24 -0
  44. data/docs/UserLogin.md +20 -0
  45. data/docs/UserRegister.md +22 -0
  46. data/docs/ValidationApi.md +479 -0
  47. data/docs/ValidationError.md +22 -0
  48. data/docs/ValidationErrorLocInner.md +15 -0
  49. data/docs/WebhookCreate.md +24 -0
  50. data/docs/WebhookResponse.md +22 -0
  51. data/docs/WebhookUpdate.md +24 -0
  52. data/docs/WebhooksApi.md +776 -0
  53. data/docs/WebhooksManagementApi.md +500 -0
  54. data/git_push.sh +57 -0
  55. data/lib/mailsafepro/api/api_keys_api.rb +1148 -0
  56. data/lib/mailsafepro/api/authentication_api.rb +1114 -0
  57. data/lib/mailsafepro/api/billing_api.rb +670 -0
  58. data/lib/mailsafepro/api/default_api.rb +149 -0
  59. data/lib/mailsafepro/api/developer_tools_api.rb +155 -0
  60. data/lib/mailsafepro/api/email_validation_api.rb +486 -0
  61. data/lib/mailsafepro/api/health_api.rb +877 -0
  62. data/lib/mailsafepro/api/jobs_api.rb +452 -0
  63. data/lib/mailsafepro/api/logs_api.rb +155 -0
  64. data/lib/mailsafepro/api/validation_api.rb +486 -0
  65. data/lib/mailsafepro/api/webhooks_api.rb +768 -0
  66. data/lib/mailsafepro/api/webhooks_management_api.rb +480 -0
  67. data/lib/mailsafepro/api_client.rb +397 -0
  68. data/lib/mailsafepro/api_error.rb +58 -0
  69. data/lib/mailsafepro/api_model_base.rb +88 -0
  70. data/lib/mailsafepro/configuration.rb +316 -0
  71. data/lib/mailsafepro/models/api_key_create_request.rb +185 -0
  72. data/lib/mailsafepro/models/api_key_list_response.rb +240 -0
  73. data/lib/mailsafepro/models/api_key_meta.rb +338 -0
  74. data/lib/mailsafepro/models/batch_email_response.rb +348 -0
  75. data/lib/mailsafepro/models/batch_validation_request.rb +290 -0
  76. data/lib/mailsafepro/models/body_change_plan_billing_billing_change_plan_post.rb +164 -0
  77. data/lib/mailsafepro/models/checkout_request.rb +166 -0
  78. data/lib/mailsafepro/models/checkout_session_response.rb +165 -0
  79. data/lib/mailsafepro/models/dns_info.rb +193 -0
  80. data/lib/mailsafepro/models/dns_record_dkim.rb +189 -0
  81. data/lib/mailsafepro/models/dns_record_dmarc.rb +179 -0
  82. data/lib/mailsafepro/models/dns_record_spf.rb +179 -0
  83. data/lib/mailsafepro/models/email_response.rb +454 -0
  84. data/lib/mailsafepro/models/email_validation_request.rb +252 -0
  85. data/lib/mailsafepro/models/http_validation_error.rb +149 -0
  86. data/lib/mailsafepro/models/job_create_request.rb +251 -0
  87. data/lib/mailsafepro/models/job_create_response.rb +216 -0
  88. data/lib/mailsafepro/models/job_result_entry.rb +257 -0
  89. data/lib/mailsafepro/models/job_results_page.rb +270 -0
  90. data/lib/mailsafepro/models/job_status_response.rb +231 -0
  91. data/lib/mailsafepro/models/key_rotation_request.rb +269 -0
  92. data/lib/mailsafepro/models/plan_enum.rb +41 -0
  93. data/lib/mailsafepro/models/priority_enum.rb +41 -0
  94. data/lib/mailsafepro/models/register_endpoint.rb +173 -0
  95. data/lib/mailsafepro/models/response_test_notification_billing_billing_test_notification_post_value.rb +103 -0
  96. data/lib/mailsafepro/models/risk_level_enum.rb +42 -0
  97. data/lib/mailsafepro/models/rotate_secret.rb +164 -0
  98. data/lib/mailsafepro/models/smtp_info.rb +206 -0
  99. data/lib/mailsafepro/models/subscription_response.rb +196 -0
  100. data/lib/mailsafepro/models/user_login.rb +211 -0
  101. data/lib/mailsafepro/models/user_register.rb +243 -0
  102. data/lib/mailsafepro/models/validation_error.rb +218 -0
  103. data/lib/mailsafepro/models/validation_error_loc_inner.rb +103 -0
  104. data/lib/mailsafepro/models/webhook_create.rb +213 -0
  105. data/lib/mailsafepro/models/webhook_response.rb +185 -0
  106. data/lib/mailsafepro/models/webhook_update.rb +204 -0
  107. data/lib/mailsafepro/version.rb +15 -0
  108. data/lib/mailsafepro.rb +88 -0
  109. data/mailsafepro.gemspec +39 -0
  110. data/spec/api/api_keys_api_spec.rb +245 -0
  111. data/spec/api/authentication_api_spec.rb +239 -0
  112. data/spec/api/billing_api_spec.rb +155 -0
  113. data/spec/api/default_api_spec.rb +60 -0
  114. data/spec/api/developer_tools_api_spec.rb +62 -0
  115. data/spec/api/email_validation_api_spec.rb +125 -0
  116. data/spec/api/health_api_spec.rb +200 -0
  117. data/spec/api/jobs_api_spec.rb +119 -0
  118. data/spec/api/logs_api_spec.rb +62 -0
  119. data/spec/api/validation_api_spec.rb +125 -0
  120. data/spec/api/webhooks_api_spec.rb +172 -0
  121. data/spec/api/webhooks_management_api_spec.rb +120 -0
  122. data/spec/models/api_key_create_request_spec.rb +42 -0
  123. data/spec/models/api_key_list_response_spec.rb +48 -0
  124. data/spec/models/api_key_meta_spec.rb +84 -0
  125. data/spec/models/batch_email_response_spec.rb +66 -0
  126. data/spec/models/batch_validation_request_spec.rb +60 -0
  127. data/spec/models/body_change_plan_billing_billing_change_plan_post_spec.rb +36 -0
  128. data/spec/models/checkout_request_spec.rb +36 -0
  129. data/spec/models/checkout_session_response_spec.rb +36 -0
  130. data/spec/models/dns_info_spec.rb +60 -0
  131. data/spec/models/dns_record_dkim_spec.rb +60 -0
  132. data/spec/models/dns_record_dmarc_spec.rb +54 -0
  133. data/spec/models/dns_record_spf_spec.rb +54 -0
  134. data/spec/models/email_response_spec.rb +120 -0
  135. data/spec/models/email_validation_request_spec.rb +60 -0
  136. data/spec/models/http_validation_error_spec.rb +36 -0
  137. data/spec/models/job_create_request_spec.rb +78 -0
  138. data/spec/models/job_create_response_spec.rb +48 -0
  139. data/spec/models/job_result_entry_spec.rb +84 -0
  140. data/spec/models/job_results_page_spec.rb +60 -0
  141. data/spec/models/job_status_response_spec.rb +66 -0
  142. data/spec/models/key_rotation_request_spec.rb +48 -0
  143. data/spec/models/plan_enum_spec.rb +30 -0
  144. data/spec/models/priority_enum_spec.rb +30 -0
  145. data/spec/models/register_endpoint_spec.rb +36 -0
  146. data/spec/models/response_test_notification_billing_billing_test_notification_post_value_spec.rb +21 -0
  147. data/spec/models/risk_level_enum_spec.rb +30 -0
  148. data/spec/models/rotate_secret_spec.rb +36 -0
  149. data/spec/models/smtp_info_spec.rb +60 -0
  150. data/spec/models/subscription_response_spec.rb +54 -0
  151. data/spec/models/user_login_spec.rb +42 -0
  152. data/spec/models/user_register_spec.rb +48 -0
  153. data/spec/models/validation_error_loc_inner_spec.rb +21 -0
  154. data/spec/models/validation_error_spec.rb +48 -0
  155. data/spec/models/webhook_create_spec.rb +54 -0
  156. data/spec/models/webhook_response_spec.rb +48 -0
  157. data/spec/models/webhook_update_spec.rb +54 -0
  158. data/spec/spec_helper.rb +111 -0
  159. metadata +291 -0
@@ -0,0 +1,32 @@
1
+ # MailSafePro::JobCreateRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **source** | **String** | Origen de los datos | |
8
+ | **emails** | **Array<String>** | | [optional] |
9
+ | **file_token** | **String** | | [optional] |
10
+ | **checksmtp** | **Boolean** | | [optional][default to false] |
11
+ | **includerawdns** | **Boolean** | | [optional][default to false] |
12
+ | **callback_url** | **String** | | [optional] |
13
+ | **sandbox** | **Boolean** | | [optional][default to false] |
14
+ | **metadata** | **Object** | | [optional] |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'mailsafepro'
20
+
21
+ instance = MailSafePro::JobCreateRequest.new(
22
+ source: null,
23
+ emails: null,
24
+ file_token: null,
25
+ checksmtp: null,
26
+ includerawdns: null,
27
+ callback_url: null,
28
+ sandbox: null,
29
+ metadata: null
30
+ )
31
+ ```
32
+
@@ -0,0 +1,22 @@
1
+ # MailSafePro::JobCreateResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **job_id** | **String** | | |
8
+ | **status** | **String** | | |
9
+ | **created_at** | **String** | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'mailsafepro'
15
+
16
+ instance = MailSafePro::JobCreateResponse.new(
17
+ job_id: null,
18
+ status: null,
19
+ created_at: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,34 @@
1
+ # MailSafePro::JobResultEntry
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **email** | **String** | | |
8
+ | **valid** | **Boolean** | | |
9
+ | **riskscore** | **Float** | | [optional] |
10
+ | **qualityscore** | **Float** | | [optional] |
11
+ | **provider** | **String** | | [optional] |
12
+ | **reputation** | **Float** | | [optional] |
13
+ | **smtp** | **Object** | | [optional] |
14
+ | **dns** | **Object** | | [optional] |
15
+ | **metadata** | **Object** | | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'mailsafepro'
21
+
22
+ instance = MailSafePro::JobResultEntry.new(
23
+ email: null,
24
+ valid: null,
25
+ riskscore: null,
26
+ qualityscore: null,
27
+ provider: null,
28
+ reputation: null,
29
+ smtp: null,
30
+ dns: null,
31
+ metadata: null
32
+ )
33
+ ```
34
+
@@ -0,0 +1,26 @@
1
+ # MailSafePro::JobResultsPage
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **job_id** | **String** | | |
8
+ | **page** | **Integer** | | |
9
+ | **size** | **Integer** | | |
10
+ | **total_pages** | **Integer** | | |
11
+ | **results** | [**Array<JobResultEntry>**](JobResultEntry.md) | | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'mailsafepro'
17
+
18
+ instance = MailSafePro::JobResultsPage.new(
19
+ job_id: null,
20
+ page: null,
21
+ size: null,
22
+ total_pages: null,
23
+ results: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,28 @@
1
+ # MailSafePro::JobStatusResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **job_id** | **String** | | |
8
+ | **status** | **String** | | |
9
+ | **counts** | **Hash<String, Integer>** | | [optional] |
10
+ | **started_at** | **String** | | [optional] |
11
+ | **finished_at** | **String** | | [optional] |
12
+ | **error** | **String** | | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'mailsafepro'
18
+
19
+ instance = MailSafePro::JobStatusResponse.new(
20
+ job_id: null,
21
+ status: null,
22
+ counts: null,
23
+ started_at: null,
24
+ finished_at: null,
25
+ error: null
26
+ )
27
+ ```
28
+
data/docs/JobsApi.md ADDED
@@ -0,0 +1,433 @@
1
+ # MailSafePro::JobsApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_job_jobs_v1_jobs_post**](JobsApi.md#create_job_jobs_v1_jobs_post) | **POST** /jobs/v1/jobs | Create validation job |
8
+ | [**create_job_jobs_v1_jobs_post_0**](JobsApi.md#create_job_jobs_v1_jobs_post_0) | **POST** /jobs/v1/jobs | Create validation job |
9
+ | [**get_job_results_jobs_v1_jobs_job_id_results_get**](JobsApi.md#get_job_results_jobs_v1_jobs_job_id_results_get) | **GET** /jobs/v1/jobs/{job_id}/results | Get job results (paged) |
10
+ | [**get_job_results_jobs_v1_jobs_job_id_results_get_0**](JobsApi.md#get_job_results_jobs_v1_jobs_job_id_results_get_0) | **GET** /jobs/v1/jobs/{job_id}/results | Get job results (paged) |
11
+ | [**get_job_status_jobs_v1_jobs_job_id_get**](JobsApi.md#get_job_status_jobs_v1_jobs_job_id_get) | **GET** /jobs/v1/jobs/{job_id} | Get job status |
12
+ | [**get_job_status_jobs_v1_jobs_job_id_get_0**](JobsApi.md#get_job_status_jobs_v1_jobs_job_id_get_0) | **GET** /jobs/v1/jobs/{job_id} | Get job status |
13
+
14
+
15
+ ## create_job_jobs_v1_jobs_post
16
+
17
+ > <JobCreateResponse> create_job_jobs_v1_jobs_post(job_create_request, opts)
18
+
19
+ Create validation job
20
+
21
+ ### Examples
22
+
23
+ ```ruby
24
+ require 'time'
25
+ require 'mailsafepro'
26
+
27
+ api_instance = MailSafePro::JobsApi.new
28
+ job_create_request = MailSafePro::JobCreateRequest.new({source: 'source_example'}) # JobCreateRequest |
29
+ opts = {
30
+ x_idempotency_key: 'x_idempotency_key_example', # String |
31
+ x_api_key: 'x_api_key_example', # String |
32
+ authorization: 'authorization_example' # String |
33
+ }
34
+
35
+ begin
36
+ # Create validation job
37
+ result = api_instance.create_job_jobs_v1_jobs_post(job_create_request, opts)
38
+ p result
39
+ rescue MailSafePro::ApiError => e
40
+ puts "Error when calling JobsApi->create_job_jobs_v1_jobs_post: #{e}"
41
+ end
42
+ ```
43
+
44
+ #### Using the create_job_jobs_v1_jobs_post_with_http_info variant
45
+
46
+ This returns an Array which contains the response data, status code and headers.
47
+
48
+ > <Array(<JobCreateResponse>, Integer, Hash)> create_job_jobs_v1_jobs_post_with_http_info(job_create_request, opts)
49
+
50
+ ```ruby
51
+ begin
52
+ # Create validation job
53
+ data, status_code, headers = api_instance.create_job_jobs_v1_jobs_post_with_http_info(job_create_request, opts)
54
+ p status_code # => 2xx
55
+ p headers # => { ... }
56
+ p data # => <JobCreateResponse>
57
+ rescue MailSafePro::ApiError => e
58
+ puts "Error when calling JobsApi->create_job_jobs_v1_jobs_post_with_http_info: #{e}"
59
+ end
60
+ ```
61
+
62
+ ### Parameters
63
+
64
+ | Name | Type | Description | Notes |
65
+ | ---- | ---- | ----------- | ----- |
66
+ | **job_create_request** | [**JobCreateRequest**](JobCreateRequest.md) | | |
67
+ | **x_idempotency_key** | **String** | | [optional] |
68
+ | **x_api_key** | **String** | | [optional] |
69
+ | **authorization** | **String** | | [optional] |
70
+
71
+ ### Return type
72
+
73
+ [**JobCreateResponse**](JobCreateResponse.md)
74
+
75
+ ### Authorization
76
+
77
+ No authorization required
78
+
79
+ ### HTTP request headers
80
+
81
+ - **Content-Type**: application/json
82
+ - **Accept**: application/json
83
+
84
+
85
+ ## create_job_jobs_v1_jobs_post_0
86
+
87
+ > <JobCreateResponse> create_job_jobs_v1_jobs_post_0(job_create_request, opts)
88
+
89
+ Create validation job
90
+
91
+ ### Examples
92
+
93
+ ```ruby
94
+ require 'time'
95
+ require 'mailsafepro'
96
+
97
+ api_instance = MailSafePro::JobsApi.new
98
+ job_create_request = MailSafePro::JobCreateRequest.new({source: 'source_example'}) # JobCreateRequest |
99
+ opts = {
100
+ x_idempotency_key: 'x_idempotency_key_example', # String |
101
+ x_api_key: 'x_api_key_example', # String |
102
+ authorization: 'authorization_example' # String |
103
+ }
104
+
105
+ begin
106
+ # Create validation job
107
+ result = api_instance.create_job_jobs_v1_jobs_post_0(job_create_request, opts)
108
+ p result
109
+ rescue MailSafePro::ApiError => e
110
+ puts "Error when calling JobsApi->create_job_jobs_v1_jobs_post_0: #{e}"
111
+ end
112
+ ```
113
+
114
+ #### Using the create_job_jobs_v1_jobs_post_0_with_http_info variant
115
+
116
+ This returns an Array which contains the response data, status code and headers.
117
+
118
+ > <Array(<JobCreateResponse>, Integer, Hash)> create_job_jobs_v1_jobs_post_0_with_http_info(job_create_request, opts)
119
+
120
+ ```ruby
121
+ begin
122
+ # Create validation job
123
+ data, status_code, headers = api_instance.create_job_jobs_v1_jobs_post_0_with_http_info(job_create_request, opts)
124
+ p status_code # => 2xx
125
+ p headers # => { ... }
126
+ p data # => <JobCreateResponse>
127
+ rescue MailSafePro::ApiError => e
128
+ puts "Error when calling JobsApi->create_job_jobs_v1_jobs_post_0_with_http_info: #{e}"
129
+ end
130
+ ```
131
+
132
+ ### Parameters
133
+
134
+ | Name | Type | Description | Notes |
135
+ | ---- | ---- | ----------- | ----- |
136
+ | **job_create_request** | [**JobCreateRequest**](JobCreateRequest.md) | | |
137
+ | **x_idempotency_key** | **String** | | [optional] |
138
+ | **x_api_key** | **String** | | [optional] |
139
+ | **authorization** | **String** | | [optional] |
140
+
141
+ ### Return type
142
+
143
+ [**JobCreateResponse**](JobCreateResponse.md)
144
+
145
+ ### Authorization
146
+
147
+ No authorization required
148
+
149
+ ### HTTP request headers
150
+
151
+ - **Content-Type**: application/json
152
+ - **Accept**: application/json
153
+
154
+
155
+ ## get_job_results_jobs_v1_jobs_job_id_results_get
156
+
157
+ > <JobResultsPage> get_job_results_jobs_v1_jobs_job_id_results_get(job_id, opts)
158
+
159
+ Get job results (paged)
160
+
161
+ ### Examples
162
+
163
+ ```ruby
164
+ require 'time'
165
+ require 'mailsafepro'
166
+
167
+ api_instance = MailSafePro::JobsApi.new
168
+ job_id = 'job_id_example' # String |
169
+ opts = {
170
+ page: 56, # Integer |
171
+ size: 56, # Integer |
172
+ x_api_key: 'x_api_key_example', # String |
173
+ authorization: 'authorization_example' # String |
174
+ }
175
+
176
+ begin
177
+ # Get job results (paged)
178
+ result = api_instance.get_job_results_jobs_v1_jobs_job_id_results_get(job_id, opts)
179
+ p result
180
+ rescue MailSafePro::ApiError => e
181
+ puts "Error when calling JobsApi->get_job_results_jobs_v1_jobs_job_id_results_get: #{e}"
182
+ end
183
+ ```
184
+
185
+ #### Using the get_job_results_jobs_v1_jobs_job_id_results_get_with_http_info variant
186
+
187
+ This returns an Array which contains the response data, status code and headers.
188
+
189
+ > <Array(<JobResultsPage>, Integer, Hash)> get_job_results_jobs_v1_jobs_job_id_results_get_with_http_info(job_id, opts)
190
+
191
+ ```ruby
192
+ begin
193
+ # Get job results (paged)
194
+ data, status_code, headers = api_instance.get_job_results_jobs_v1_jobs_job_id_results_get_with_http_info(job_id, opts)
195
+ p status_code # => 2xx
196
+ p headers # => { ... }
197
+ p data # => <JobResultsPage>
198
+ rescue MailSafePro::ApiError => e
199
+ puts "Error when calling JobsApi->get_job_results_jobs_v1_jobs_job_id_results_get_with_http_info: #{e}"
200
+ end
201
+ ```
202
+
203
+ ### Parameters
204
+
205
+ | Name | Type | Description | Notes |
206
+ | ---- | ---- | ----------- | ----- |
207
+ | **job_id** | **String** | | |
208
+ | **page** | **Integer** | | [optional][default to 1] |
209
+ | **size** | **Integer** | | [optional][default to 500] |
210
+ | **x_api_key** | **String** | | [optional] |
211
+ | **authorization** | **String** | | [optional] |
212
+
213
+ ### Return type
214
+
215
+ [**JobResultsPage**](JobResultsPage.md)
216
+
217
+ ### Authorization
218
+
219
+ No authorization required
220
+
221
+ ### HTTP request headers
222
+
223
+ - **Content-Type**: Not defined
224
+ - **Accept**: application/json
225
+
226
+
227
+ ## get_job_results_jobs_v1_jobs_job_id_results_get_0
228
+
229
+ > <JobResultsPage> get_job_results_jobs_v1_jobs_job_id_results_get_0(job_id, opts)
230
+
231
+ Get job results (paged)
232
+
233
+ ### Examples
234
+
235
+ ```ruby
236
+ require 'time'
237
+ require 'mailsafepro'
238
+
239
+ api_instance = MailSafePro::JobsApi.new
240
+ job_id = 'job_id_example' # String |
241
+ opts = {
242
+ page: 56, # Integer |
243
+ size: 56, # Integer |
244
+ x_api_key: 'x_api_key_example', # String |
245
+ authorization: 'authorization_example' # String |
246
+ }
247
+
248
+ begin
249
+ # Get job results (paged)
250
+ result = api_instance.get_job_results_jobs_v1_jobs_job_id_results_get_0(job_id, opts)
251
+ p result
252
+ rescue MailSafePro::ApiError => e
253
+ puts "Error when calling JobsApi->get_job_results_jobs_v1_jobs_job_id_results_get_0: #{e}"
254
+ end
255
+ ```
256
+
257
+ #### Using the get_job_results_jobs_v1_jobs_job_id_results_get_0_with_http_info variant
258
+
259
+ This returns an Array which contains the response data, status code and headers.
260
+
261
+ > <Array(<JobResultsPage>, Integer, Hash)> get_job_results_jobs_v1_jobs_job_id_results_get_0_with_http_info(job_id, opts)
262
+
263
+ ```ruby
264
+ begin
265
+ # Get job results (paged)
266
+ data, status_code, headers = api_instance.get_job_results_jobs_v1_jobs_job_id_results_get_0_with_http_info(job_id, opts)
267
+ p status_code # => 2xx
268
+ p headers # => { ... }
269
+ p data # => <JobResultsPage>
270
+ rescue MailSafePro::ApiError => e
271
+ puts "Error when calling JobsApi->get_job_results_jobs_v1_jobs_job_id_results_get_0_with_http_info: #{e}"
272
+ end
273
+ ```
274
+
275
+ ### Parameters
276
+
277
+ | Name | Type | Description | Notes |
278
+ | ---- | ---- | ----------- | ----- |
279
+ | **job_id** | **String** | | |
280
+ | **page** | **Integer** | | [optional][default to 1] |
281
+ | **size** | **Integer** | | [optional][default to 500] |
282
+ | **x_api_key** | **String** | | [optional] |
283
+ | **authorization** | **String** | | [optional] |
284
+
285
+ ### Return type
286
+
287
+ [**JobResultsPage**](JobResultsPage.md)
288
+
289
+ ### Authorization
290
+
291
+ No authorization required
292
+
293
+ ### HTTP request headers
294
+
295
+ - **Content-Type**: Not defined
296
+ - **Accept**: application/json
297
+
298
+
299
+ ## get_job_status_jobs_v1_jobs_job_id_get
300
+
301
+ > <JobStatusResponse> get_job_status_jobs_v1_jobs_job_id_get(job_id, opts)
302
+
303
+ Get job status
304
+
305
+ ### Examples
306
+
307
+ ```ruby
308
+ require 'time'
309
+ require 'mailsafepro'
310
+
311
+ api_instance = MailSafePro::JobsApi.new
312
+ job_id = 'job_id_example' # String |
313
+ opts = {
314
+ x_api_key: 'x_api_key_example', # String |
315
+ authorization: 'authorization_example' # String |
316
+ }
317
+
318
+ begin
319
+ # Get job status
320
+ result = api_instance.get_job_status_jobs_v1_jobs_job_id_get(job_id, opts)
321
+ p result
322
+ rescue MailSafePro::ApiError => e
323
+ puts "Error when calling JobsApi->get_job_status_jobs_v1_jobs_job_id_get: #{e}"
324
+ end
325
+ ```
326
+
327
+ #### Using the get_job_status_jobs_v1_jobs_job_id_get_with_http_info variant
328
+
329
+ This returns an Array which contains the response data, status code and headers.
330
+
331
+ > <Array(<JobStatusResponse>, Integer, Hash)> get_job_status_jobs_v1_jobs_job_id_get_with_http_info(job_id, opts)
332
+
333
+ ```ruby
334
+ begin
335
+ # Get job status
336
+ data, status_code, headers = api_instance.get_job_status_jobs_v1_jobs_job_id_get_with_http_info(job_id, opts)
337
+ p status_code # => 2xx
338
+ p headers # => { ... }
339
+ p data # => <JobStatusResponse>
340
+ rescue MailSafePro::ApiError => e
341
+ puts "Error when calling JobsApi->get_job_status_jobs_v1_jobs_job_id_get_with_http_info: #{e}"
342
+ end
343
+ ```
344
+
345
+ ### Parameters
346
+
347
+ | Name | Type | Description | Notes |
348
+ | ---- | ---- | ----------- | ----- |
349
+ | **job_id** | **String** | | |
350
+ | **x_api_key** | **String** | | [optional] |
351
+ | **authorization** | **String** | | [optional] |
352
+
353
+ ### Return type
354
+
355
+ [**JobStatusResponse**](JobStatusResponse.md)
356
+
357
+ ### Authorization
358
+
359
+ No authorization required
360
+
361
+ ### HTTP request headers
362
+
363
+ - **Content-Type**: Not defined
364
+ - **Accept**: application/json
365
+
366
+
367
+ ## get_job_status_jobs_v1_jobs_job_id_get_0
368
+
369
+ > <JobStatusResponse> get_job_status_jobs_v1_jobs_job_id_get_0(job_id, opts)
370
+
371
+ Get job status
372
+
373
+ ### Examples
374
+
375
+ ```ruby
376
+ require 'time'
377
+ require 'mailsafepro'
378
+
379
+ api_instance = MailSafePro::JobsApi.new
380
+ job_id = 'job_id_example' # String |
381
+ opts = {
382
+ x_api_key: 'x_api_key_example', # String |
383
+ authorization: 'authorization_example' # String |
384
+ }
385
+
386
+ begin
387
+ # Get job status
388
+ result = api_instance.get_job_status_jobs_v1_jobs_job_id_get_0(job_id, opts)
389
+ p result
390
+ rescue MailSafePro::ApiError => e
391
+ puts "Error when calling JobsApi->get_job_status_jobs_v1_jobs_job_id_get_0: #{e}"
392
+ end
393
+ ```
394
+
395
+ #### Using the get_job_status_jobs_v1_jobs_job_id_get_0_with_http_info variant
396
+
397
+ This returns an Array which contains the response data, status code and headers.
398
+
399
+ > <Array(<JobStatusResponse>, Integer, Hash)> get_job_status_jobs_v1_jobs_job_id_get_0_with_http_info(job_id, opts)
400
+
401
+ ```ruby
402
+ begin
403
+ # Get job status
404
+ data, status_code, headers = api_instance.get_job_status_jobs_v1_jobs_job_id_get_0_with_http_info(job_id, opts)
405
+ p status_code # => 2xx
406
+ p headers # => { ... }
407
+ p data # => <JobStatusResponse>
408
+ rescue MailSafePro::ApiError => e
409
+ puts "Error when calling JobsApi->get_job_status_jobs_v1_jobs_job_id_get_0_with_http_info: #{e}"
410
+ end
411
+ ```
412
+
413
+ ### Parameters
414
+
415
+ | Name | Type | Description | Notes |
416
+ | ---- | ---- | ----------- | ----- |
417
+ | **job_id** | **String** | | |
418
+ | **x_api_key** | **String** | | [optional] |
419
+ | **authorization** | **String** | | [optional] |
420
+
421
+ ### Return type
422
+
423
+ [**JobStatusResponse**](JobStatusResponse.md)
424
+
425
+ ### Authorization
426
+
427
+ No authorization required
428
+
429
+ ### HTTP request headers
430
+
431
+ - **Content-Type**: Not defined
432
+ - **Accept**: application/json
433
+
@@ -0,0 +1,22 @@
1
+ # MailSafePro::KeyRotationRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **old_key** | **String** | Current API key to rotate from | |
8
+ | **new_key** | **String** | New API key to rotate to | |
9
+ | **grace_period** | **Integer** | Grace period in seconds (max 30 days) | [optional][default to 86400] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'mailsafepro'
15
+
16
+ instance = MailSafePro::KeyRotationRequest.new(
17
+ old_key: null,
18
+ new_key: null,
19
+ grace_period: null
20
+ )
21
+ ```
22
+