relentless_identity 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 (101) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +143 -0
  4. data/Rakefile +10 -0
  5. data/docs/AccountApi.md +219 -0
  6. data/docs/AliasInfo.md +20 -0
  7. data/docs/BatchSummary.md +26 -0
  8. data/docs/ClientBackgroundJobDetailResponse.md +30 -0
  9. data/docs/ClientBackgroundJobItemResponse.md +48 -0
  10. data/docs/ClientBackgroundJobPageResponse.md +26 -0
  11. data/docs/ClientBackgroundJobResponse.md +76 -0
  12. data/docs/ClientBatchIdentityResponse.md +20 -0
  13. data/docs/ClientFinderResponse.md +34 -0
  14. data/docs/ClientFinderResponseAlias.md +20 -0
  15. data/docs/ClientIdentityResponse.md +34 -0
  16. data/docs/ClientRequestHistoryItem.md +52 -0
  17. data/docs/ClientRequestHistoryPageResponse.md +26 -0
  18. data/docs/ClientTokenStatusResponse.md +28 -0
  19. data/docs/ClientUsageResponse.md +54 -0
  20. data/docs/ErrorResponse.md +24 -0
  21. data/docs/FinderApi.md +77 -0
  22. data/docs/FinderBatchJobRequest.md +22 -0
  23. data/docs/FinderBatchJobRequestInputsInner.md +20 -0
  24. data/docs/FinderRequest.md +20 -0
  25. data/docs/HTTPValidationError.md +18 -0
  26. data/docs/IdentityProvider.md +20 -0
  27. data/docs/JobsApi.md +529 -0
  28. data/docs/LocationInner.md +15 -0
  29. data/docs/ProbeApi.md +147 -0
  30. data/docs/ProbeBatchJobBackgroundRequest.md +22 -0
  31. data/docs/ProbeBatchRequest.md +18 -0
  32. data/docs/ProbeRequest.md +18 -0
  33. data/docs/ValidationError.md +26 -0
  34. data/git_push.sh +57 -0
  35. data/lib/relentless_identity/api/account_api.rb +225 -0
  36. data/lib/relentless_identity/api/finder_api.rb +90 -0
  37. data/lib/relentless_identity/api/jobs_api.rb +535 -0
  38. data/lib/relentless_identity/api/probe_api.rb +158 -0
  39. data/lib/relentless_identity/api_client.rb +397 -0
  40. data/lib/relentless_identity/api_error.rb +58 -0
  41. data/lib/relentless_identity/api_model_base.rb +88 -0
  42. data/lib/relentless_identity/configuration.rb +309 -0
  43. data/lib/relentless_identity/models/alias_info.rb +159 -0
  44. data/lib/relentless_identity/models/batch_summary.rb +318 -0
  45. data/lib/relentless_identity/models/client_background_job_detail_response.rb +307 -0
  46. data/lib/relentless_identity/models/client_background_job_item_response.rb +455 -0
  47. data/lib/relentless_identity/models/client_background_job_page_response.rb +271 -0
  48. data/lib/relentless_identity/models/client_background_job_response.rb +745 -0
  49. data/lib/relentless_identity/models/client_batch_identity_response.rb +194 -0
  50. data/lib/relentless_identity/models/client_finder_response.rb +285 -0
  51. data/lib/relentless_identity/models/client_finder_response_alias.rb +104 -0
  52. data/lib/relentless_identity/models/client_identity_response.rb +285 -0
  53. data/lib/relentless_identity/models/client_request_history_item.rb +450 -0
  54. data/lib/relentless_identity/models/client_request_history_page_response.rb +271 -0
  55. data/lib/relentless_identity/models/client_token_status_response.rb +259 -0
  56. data/lib/relentless_identity/models/client_usage_response.rb +506 -0
  57. data/lib/relentless_identity/models/error_response.rb +178 -0
  58. data/lib/relentless_identity/models/finder_batch_job_request.rb +206 -0
  59. data/lib/relentless_identity/models/finder_batch_job_request_inputs_inner.rb +192 -0
  60. data/lib/relentless_identity/models/finder_request.rb +193 -0
  61. data/lib/relentless_identity/models/http_validation_error.rb +149 -0
  62. data/lib/relentless_identity/models/identity_provider.rb +157 -0
  63. data/lib/relentless_identity/models/location_inner.rb +103 -0
  64. data/lib/relentless_identity/models/probe_batch_job_background_request.rb +206 -0
  65. data/lib/relentless_identity/models/probe_batch_request.rb +186 -0
  66. data/lib/relentless_identity/models/probe_request.rb +166 -0
  67. data/lib/relentless_identity/models/validation_error.rb +237 -0
  68. data/lib/relentless_identity/version.rb +15 -0
  69. data/lib/relentless_identity.rb +69 -0
  70. data/relentless_identity.gemspec +39 -0
  71. data/spec/api/account_api_spec.rb +72 -0
  72. data/spec/api/finder_api_spec.rb +47 -0
  73. data/spec/api/jobs_api_spec.rb +130 -0
  74. data/spec/api/probe_api_spec.rb +59 -0
  75. data/spec/models/alias_info_spec.rb +42 -0
  76. data/spec/models/batch_summary_spec.rb +60 -0
  77. data/spec/models/client_background_job_detail_response_spec.rb +72 -0
  78. data/spec/models/client_background_job_item_response_spec.rb +138 -0
  79. data/spec/models/client_background_job_page_response_spec.rb +60 -0
  80. data/spec/models/client_background_job_response_spec.rb +222 -0
  81. data/spec/models/client_batch_identity_response_spec.rb +42 -0
  82. data/spec/models/client_finder_response_alias_spec.rb +21 -0
  83. data/spec/models/client_finder_response_spec.rb +92 -0
  84. data/spec/models/client_identity_response_spec.rb +92 -0
  85. data/spec/models/client_request_history_item_spec.rb +150 -0
  86. data/spec/models/client_request_history_page_response_spec.rb +60 -0
  87. data/spec/models/client_token_status_response_spec.rb +70 -0
  88. data/spec/models/client_usage_response_spec.rb +144 -0
  89. data/spec/models/error_response_spec.rb +54 -0
  90. data/spec/models/finder_batch_job_request_inputs_inner_spec.rb +42 -0
  91. data/spec/models/finder_batch_job_request_spec.rb +48 -0
  92. data/spec/models/finder_request_spec.rb +42 -0
  93. data/spec/models/http_validation_error_spec.rb +36 -0
  94. data/spec/models/identity_provider_spec.rb +42 -0
  95. data/spec/models/location_inner_spec.rb +21 -0
  96. data/spec/models/probe_batch_job_background_request_spec.rb +48 -0
  97. data/spec/models/probe_batch_request_spec.rb +36 -0
  98. data/spec/models/probe_request_spec.rb +36 -0
  99. data/spec/models/validation_error_spec.rb +60 -0
  100. data/spec/spec_helper.rb +111 -0
  101. metadata +213 -0
data/docs/JobsApi.md ADDED
@@ -0,0 +1,529 @@
1
+ # RelentlessIdentity::JobsApi
2
+
3
+ All URIs are relative to *https://api.relentlessidentity.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_job**](JobsApi.md#get_job) | **GET** /client/jobs/{job_id} | Get background job |
8
+ | [**get_job_inputs_text**](JobsApi.md#get_job_inputs_text) | **GET** /client/jobs/{job_id}/inputs.txt | Download job inputs |
9
+ | [**get_job_results_json**](JobsApi.md#get_job_results_json) | **GET** /client/jobs/{job_id}/results.json | Download job results as JSON |
10
+ | [**get_job_results_text**](JobsApi.md#get_job_results_text) | **GET** /client/jobs/{job_id}/results.txt | Download job results as text |
11
+ | [**list_jobs**](JobsApi.md#list_jobs) | **GET** /client/jobs | List background jobs |
12
+ | [**schedule_finder_batch**](JobsApi.md#schedule_finder_batch) | **POST** /client/jobs/finder | Schedule a finder batch |
13
+ | [**schedule_probe_batch**](JobsApi.md#schedule_probe_batch) | **POST** /client/jobs/probe-batch | Schedule a probe batch |
14
+
15
+
16
+ ## get_job
17
+
18
+ > <ClientBackgroundJobDetailResponse> get_job(job_id, opts)
19
+
20
+ Get background job
21
+
22
+ Return the current status and paginated results for one background job.
23
+
24
+ ### Examples
25
+
26
+ ```ruby
27
+ require 'time'
28
+ require 'relentless_identity'
29
+ # setup authorization
30
+ RelentlessIdentity.configure do |config|
31
+ # Configure Bearer authorization (PAT): bearerAuth
32
+ config.access_token = 'YOUR_BEARER_TOKEN'
33
+ end
34
+
35
+ api_instance = RelentlessIdentity::JobsApi.new
36
+ job_id = 'job_id_example' # String |
37
+ opts = {
38
+ page: 56, # Integer |
39
+ page_size: 56 # Integer |
40
+ }
41
+
42
+ begin
43
+ # Get background job
44
+ result = api_instance.get_job(job_id, opts)
45
+ p result
46
+ rescue RelentlessIdentity::ApiError => e
47
+ puts "Error when calling JobsApi->get_job: #{e}"
48
+ end
49
+ ```
50
+
51
+ #### Using the get_job_with_http_info variant
52
+
53
+ This returns an Array which contains the response data, status code and headers.
54
+
55
+ > <Array(<ClientBackgroundJobDetailResponse>, Integer, Hash)> get_job_with_http_info(job_id, opts)
56
+
57
+ ```ruby
58
+ begin
59
+ # Get background job
60
+ data, status_code, headers = api_instance.get_job_with_http_info(job_id, opts)
61
+ p status_code # => 2xx
62
+ p headers # => { ... }
63
+ p data # => <ClientBackgroundJobDetailResponse>
64
+ rescue RelentlessIdentity::ApiError => e
65
+ puts "Error when calling JobsApi->get_job_with_http_info: #{e}"
66
+ end
67
+ ```
68
+
69
+ ### Parameters
70
+
71
+ | Name | Type | Description | Notes |
72
+ | ---- | ---- | ----------- | ----- |
73
+ | **job_id** | **String** | | |
74
+ | **page** | **Integer** | | [optional][default to 1] |
75
+ | **page_size** | **Integer** | | [optional][default to 50] |
76
+
77
+ ### Return type
78
+
79
+ [**ClientBackgroundJobDetailResponse**](ClientBackgroundJobDetailResponse.md)
80
+
81
+ ### Authorization
82
+
83
+ [bearerAuth](../README.md#bearerAuth)
84
+
85
+ ### HTTP request headers
86
+
87
+ - **Content-Type**: Not defined
88
+ - **Accept**: application/json
89
+
90
+
91
+ ## get_job_inputs_text
92
+
93
+ > String get_job_inputs_text(job_id, opts)
94
+
95
+ Download job inputs
96
+
97
+ Return the original background job inputs as plain text when the payload is still retained.
98
+
99
+ ### Examples
100
+
101
+ ```ruby
102
+ require 'time'
103
+ require 'relentless_identity'
104
+ # setup authorization
105
+ RelentlessIdentity.configure do |config|
106
+ # Configure Bearer authorization (PAT): bearerAuth
107
+ config.access_token = 'YOUR_BEARER_TOKEN'
108
+ end
109
+
110
+ api_instance = RelentlessIdentity::JobsApi.new
111
+ job_id = 'job_id_example' # String |
112
+ opts = {
113
+ if_none_match: 'if_none_match_example', # String |
114
+ if_modified_since: 'if_modified_since_example' # String |
115
+ }
116
+
117
+ begin
118
+ # Download job inputs
119
+ result = api_instance.get_job_inputs_text(job_id, opts)
120
+ p result
121
+ rescue RelentlessIdentity::ApiError => e
122
+ puts "Error when calling JobsApi->get_job_inputs_text: #{e}"
123
+ end
124
+ ```
125
+
126
+ #### Using the get_job_inputs_text_with_http_info variant
127
+
128
+ This returns an Array which contains the response data, status code and headers.
129
+
130
+ > <Array(String, Integer, Hash)> get_job_inputs_text_with_http_info(job_id, opts)
131
+
132
+ ```ruby
133
+ begin
134
+ # Download job inputs
135
+ data, status_code, headers = api_instance.get_job_inputs_text_with_http_info(job_id, opts)
136
+ p status_code # => 2xx
137
+ p headers # => { ... }
138
+ p data # => String
139
+ rescue RelentlessIdentity::ApiError => e
140
+ puts "Error when calling JobsApi->get_job_inputs_text_with_http_info: #{e}"
141
+ end
142
+ ```
143
+
144
+ ### Parameters
145
+
146
+ | Name | Type | Description | Notes |
147
+ | ---- | ---- | ----------- | ----- |
148
+ | **job_id** | **String** | | |
149
+ | **if_none_match** | **String** | | [optional] |
150
+ | **if_modified_since** | **String** | | [optional] |
151
+
152
+ ### Return type
153
+
154
+ **String**
155
+
156
+ ### Authorization
157
+
158
+ [bearerAuth](../README.md#bearerAuth)
159
+
160
+ ### HTTP request headers
161
+
162
+ - **Content-Type**: Not defined
163
+ - **Accept**: text/plain, application/json
164
+
165
+
166
+ ## get_job_results_json
167
+
168
+ > Object get_job_results_json(job_id, opts)
169
+
170
+ Download job results as JSON
171
+
172
+ Return the canonical immutable background job results artifact as JSON.
173
+
174
+ ### Examples
175
+
176
+ ```ruby
177
+ require 'time'
178
+ require 'relentless_identity'
179
+ # setup authorization
180
+ RelentlessIdentity.configure do |config|
181
+ # Configure Bearer authorization (PAT): bearerAuth
182
+ config.access_token = 'YOUR_BEARER_TOKEN'
183
+ end
184
+
185
+ api_instance = RelentlessIdentity::JobsApi.new
186
+ job_id = 'job_id_example' # String |
187
+ opts = {
188
+ if_none_match: 'if_none_match_example', # String |
189
+ if_modified_since: 'if_modified_since_example' # String |
190
+ }
191
+
192
+ begin
193
+ # Download job results as JSON
194
+ result = api_instance.get_job_results_json(job_id, opts)
195
+ p result
196
+ rescue RelentlessIdentity::ApiError => e
197
+ puts "Error when calling JobsApi->get_job_results_json: #{e}"
198
+ end
199
+ ```
200
+
201
+ #### Using the get_job_results_json_with_http_info variant
202
+
203
+ This returns an Array which contains the response data, status code and headers.
204
+
205
+ > <Array(Object, Integer, Hash)> get_job_results_json_with_http_info(job_id, opts)
206
+
207
+ ```ruby
208
+ begin
209
+ # Download job results as JSON
210
+ data, status_code, headers = api_instance.get_job_results_json_with_http_info(job_id, opts)
211
+ p status_code # => 2xx
212
+ p headers # => { ... }
213
+ p data # => Object
214
+ rescue RelentlessIdentity::ApiError => e
215
+ puts "Error when calling JobsApi->get_job_results_json_with_http_info: #{e}"
216
+ end
217
+ ```
218
+
219
+ ### Parameters
220
+
221
+ | Name | Type | Description | Notes |
222
+ | ---- | ---- | ----------- | ----- |
223
+ | **job_id** | **String** | | |
224
+ | **if_none_match** | **String** | | [optional] |
225
+ | **if_modified_since** | **String** | | [optional] |
226
+
227
+ ### Return type
228
+
229
+ **Object**
230
+
231
+ ### Authorization
232
+
233
+ [bearerAuth](../README.md#bearerAuth)
234
+
235
+ ### HTTP request headers
236
+
237
+ - **Content-Type**: Not defined
238
+ - **Accept**: application/json
239
+
240
+
241
+ ## get_job_results_text
242
+
243
+ > String get_job_results_text(job_id, opts)
244
+
245
+ Download job results as text
246
+
247
+ Return the canonical background job results in a readable plain-text format.
248
+
249
+ ### Examples
250
+
251
+ ```ruby
252
+ require 'time'
253
+ require 'relentless_identity'
254
+ # setup authorization
255
+ RelentlessIdentity.configure do |config|
256
+ # Configure Bearer authorization (PAT): bearerAuth
257
+ config.access_token = 'YOUR_BEARER_TOKEN'
258
+ end
259
+
260
+ api_instance = RelentlessIdentity::JobsApi.new
261
+ job_id = 'job_id_example' # String |
262
+ opts = {
263
+ if_none_match: 'if_none_match_example', # String |
264
+ if_modified_since: 'if_modified_since_example' # String |
265
+ }
266
+
267
+ begin
268
+ # Download job results as text
269
+ result = api_instance.get_job_results_text(job_id, opts)
270
+ p result
271
+ rescue RelentlessIdentity::ApiError => e
272
+ puts "Error when calling JobsApi->get_job_results_text: #{e}"
273
+ end
274
+ ```
275
+
276
+ #### Using the get_job_results_text_with_http_info variant
277
+
278
+ This returns an Array which contains the response data, status code and headers.
279
+
280
+ > <Array(String, Integer, Hash)> get_job_results_text_with_http_info(job_id, opts)
281
+
282
+ ```ruby
283
+ begin
284
+ # Download job results as text
285
+ data, status_code, headers = api_instance.get_job_results_text_with_http_info(job_id, opts)
286
+ p status_code # => 2xx
287
+ p headers # => { ... }
288
+ p data # => String
289
+ rescue RelentlessIdentity::ApiError => e
290
+ puts "Error when calling JobsApi->get_job_results_text_with_http_info: #{e}"
291
+ end
292
+ ```
293
+
294
+ ### Parameters
295
+
296
+ | Name | Type | Description | Notes |
297
+ | ---- | ---- | ----------- | ----- |
298
+ | **job_id** | **String** | | |
299
+ | **if_none_match** | **String** | | [optional] |
300
+ | **if_modified_since** | **String** | | [optional] |
301
+
302
+ ### Return type
303
+
304
+ **String**
305
+
306
+ ### Authorization
307
+
308
+ [bearerAuth](../README.md#bearerAuth)
309
+
310
+ ### HTTP request headers
311
+
312
+ - **Content-Type**: Not defined
313
+ - **Accept**: text/plain, application/json
314
+
315
+
316
+ ## list_jobs
317
+
318
+ > <ClientBackgroundJobPageResponse> list_jobs(opts)
319
+
320
+ List background jobs
321
+
322
+ Return the authenticated user's paginated background job history.
323
+
324
+ ### Examples
325
+
326
+ ```ruby
327
+ require 'time'
328
+ require 'relentless_identity'
329
+ # setup authorization
330
+ RelentlessIdentity.configure do |config|
331
+ # Configure Bearer authorization (PAT): bearerAuth
332
+ config.access_token = 'YOUR_BEARER_TOKEN'
333
+ end
334
+
335
+ api_instance = RelentlessIdentity::JobsApi.new
336
+ opts = {
337
+ page: 56, # Integer |
338
+ page_size: 56, # Integer |
339
+ job_type: 'finder_batch', # String |
340
+ status: 'queued' # String |
341
+ }
342
+
343
+ begin
344
+ # List background jobs
345
+ result = api_instance.list_jobs(opts)
346
+ p result
347
+ rescue RelentlessIdentity::ApiError => e
348
+ puts "Error when calling JobsApi->list_jobs: #{e}"
349
+ end
350
+ ```
351
+
352
+ #### Using the list_jobs_with_http_info variant
353
+
354
+ This returns an Array which contains the response data, status code and headers.
355
+
356
+ > <Array(<ClientBackgroundJobPageResponse>, Integer, Hash)> list_jobs_with_http_info(opts)
357
+
358
+ ```ruby
359
+ begin
360
+ # List background jobs
361
+ data, status_code, headers = api_instance.list_jobs_with_http_info(opts)
362
+ p status_code # => 2xx
363
+ p headers # => { ... }
364
+ p data # => <ClientBackgroundJobPageResponse>
365
+ rescue RelentlessIdentity::ApiError => e
366
+ puts "Error when calling JobsApi->list_jobs_with_http_info: #{e}"
367
+ end
368
+ ```
369
+
370
+ ### Parameters
371
+
372
+ | Name | Type | Description | Notes |
373
+ | ---- | ---- | ----------- | ----- |
374
+ | **page** | **Integer** | | [optional][default to 1] |
375
+ | **page_size** | **Integer** | | [optional][default to 25] |
376
+ | **job_type** | **String** | | [optional] |
377
+ | **status** | **String** | | [optional] |
378
+
379
+ ### Return type
380
+
381
+ [**ClientBackgroundJobPageResponse**](ClientBackgroundJobPageResponse.md)
382
+
383
+ ### Authorization
384
+
385
+ [bearerAuth](../README.md#bearerAuth)
386
+
387
+ ### HTTP request headers
388
+
389
+ - **Content-Type**: Not defined
390
+ - **Accept**: application/json
391
+
392
+
393
+ ## schedule_finder_batch
394
+
395
+ > <ClientBackgroundJobResponse> schedule_finder_batch(finder_batch_job_request)
396
+
397
+ Schedule a finder batch
398
+
399
+ Queue a background finder batch job with an optional deadline and callback URL.
400
+
401
+ ### Examples
402
+
403
+ ```ruby
404
+ require 'time'
405
+ require 'relentless_identity'
406
+ # setup authorization
407
+ RelentlessIdentity.configure do |config|
408
+ # Configure Bearer authorization (PAT): bearerAuth
409
+ config.access_token = 'YOUR_BEARER_TOKEN'
410
+ end
411
+
412
+ api_instance = RelentlessIdentity::JobsApi.new
413
+ finder_batch_job_request = RelentlessIdentity::FinderBatchJobRequest.new({inputs: [RelentlessIdentity::FinderBatchJobRequestInputsInner.new({full_name: 'Jane Doe', email_domain: 'acme.com'})]}) # FinderBatchJobRequest |
414
+
415
+ begin
416
+ # Schedule a finder batch
417
+ result = api_instance.schedule_finder_batch(finder_batch_job_request)
418
+ p result
419
+ rescue RelentlessIdentity::ApiError => e
420
+ puts "Error when calling JobsApi->schedule_finder_batch: #{e}"
421
+ end
422
+ ```
423
+
424
+ #### Using the schedule_finder_batch_with_http_info variant
425
+
426
+ This returns an Array which contains the response data, status code and headers.
427
+
428
+ > <Array(<ClientBackgroundJobResponse>, Integer, Hash)> schedule_finder_batch_with_http_info(finder_batch_job_request)
429
+
430
+ ```ruby
431
+ begin
432
+ # Schedule a finder batch
433
+ data, status_code, headers = api_instance.schedule_finder_batch_with_http_info(finder_batch_job_request)
434
+ p status_code # => 2xx
435
+ p headers # => { ... }
436
+ p data # => <ClientBackgroundJobResponse>
437
+ rescue RelentlessIdentity::ApiError => e
438
+ puts "Error when calling JobsApi->schedule_finder_batch_with_http_info: #{e}"
439
+ end
440
+ ```
441
+
442
+ ### Parameters
443
+
444
+ | Name | Type | Description | Notes |
445
+ | ---- | ---- | ----------- | ----- |
446
+ | **finder_batch_job_request** | [**FinderBatchJobRequest**](FinderBatchJobRequest.md) | | |
447
+
448
+ ### Return type
449
+
450
+ [**ClientBackgroundJobResponse**](ClientBackgroundJobResponse.md)
451
+
452
+ ### Authorization
453
+
454
+ [bearerAuth](../README.md#bearerAuth)
455
+
456
+ ### HTTP request headers
457
+
458
+ - **Content-Type**: application/json
459
+ - **Accept**: application/json
460
+
461
+
462
+ ## schedule_probe_batch
463
+
464
+ > <ClientBackgroundJobResponse> schedule_probe_batch(probe_batch_job_background_request)
465
+
466
+ Schedule a probe batch
467
+
468
+ Queue a background probe batch job with an optional deadline and callback URL.
469
+
470
+ ### Examples
471
+
472
+ ```ruby
473
+ require 'time'
474
+ require 'relentless_identity'
475
+ # setup authorization
476
+ RelentlessIdentity.configure do |config|
477
+ # Configure Bearer authorization (PAT): bearerAuth
478
+ config.access_token = 'YOUR_BEARER_TOKEN'
479
+ end
480
+
481
+ api_instance = RelentlessIdentity::JobsApi.new
482
+ probe_batch_job_background_request = RelentlessIdentity::ProbeBatchJobBackgroundRequest.new({emails: ["jane.doe@acme.com", "john.smith@acme.com"]}) # ProbeBatchJobBackgroundRequest |
483
+
484
+ begin
485
+ # Schedule a probe batch
486
+ result = api_instance.schedule_probe_batch(probe_batch_job_background_request)
487
+ p result
488
+ rescue RelentlessIdentity::ApiError => e
489
+ puts "Error when calling JobsApi->schedule_probe_batch: #{e}"
490
+ end
491
+ ```
492
+
493
+ #### Using the schedule_probe_batch_with_http_info variant
494
+
495
+ This returns an Array which contains the response data, status code and headers.
496
+
497
+ > <Array(<ClientBackgroundJobResponse>, Integer, Hash)> schedule_probe_batch_with_http_info(probe_batch_job_background_request)
498
+
499
+ ```ruby
500
+ begin
501
+ # Schedule a probe batch
502
+ data, status_code, headers = api_instance.schedule_probe_batch_with_http_info(probe_batch_job_background_request)
503
+ p status_code # => 2xx
504
+ p headers # => { ... }
505
+ p data # => <ClientBackgroundJobResponse>
506
+ rescue RelentlessIdentity::ApiError => e
507
+ puts "Error when calling JobsApi->schedule_probe_batch_with_http_info: #{e}"
508
+ end
509
+ ```
510
+
511
+ ### Parameters
512
+
513
+ | Name | Type | Description | Notes |
514
+ | ---- | ---- | ----------- | ----- |
515
+ | **probe_batch_job_background_request** | [**ProbeBatchJobBackgroundRequest**](ProbeBatchJobBackgroundRequest.md) | | |
516
+
517
+ ### Return type
518
+
519
+ [**ClientBackgroundJobResponse**](ClientBackgroundJobResponse.md)
520
+
521
+ ### Authorization
522
+
523
+ [bearerAuth](../README.md#bearerAuth)
524
+
525
+ ### HTTP request headers
526
+
527
+ - **Content-Type**: application/json
528
+ - **Accept**: application/json
529
+
@@ -0,0 +1,15 @@
1
+ # RelentlessIdentity::LocationInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'relentless_identity'
12
+
13
+ instance = RelentlessIdentity::LocationInner.new()
14
+ ```
15
+
data/docs/ProbeApi.md ADDED
@@ -0,0 +1,147 @@
1
+ # RelentlessIdentity::ProbeApi
2
+
3
+ All URIs are relative to *https://api.relentlessidentity.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**probe_batch**](ProbeApi.md#probe_batch) | **POST** /client/probe/batch | Verify many email addresses |
8
+ | [**probe_email**](ProbeApi.md#probe_email) | **POST** /client/probe | Verify an email address |
9
+
10
+
11
+ ## probe_batch
12
+
13
+ > <ClientBatchIdentityResponse> probe_batch(probe_batch_request)
14
+
15
+ Verify many email addresses
16
+
17
+ Send many known email addresses and receive compact per-item identity results plus a batch summary.
18
+
19
+ ### Examples
20
+
21
+ ```ruby
22
+ require 'time'
23
+ require 'relentless_identity'
24
+ # setup authorization
25
+ RelentlessIdentity.configure do |config|
26
+ # Configure Bearer authorization (PAT): bearerAuth
27
+ config.access_token = 'YOUR_BEARER_TOKEN'
28
+ end
29
+
30
+ api_instance = RelentlessIdentity::ProbeApi.new
31
+ probe_batch_request = RelentlessIdentity::ProbeBatchRequest.new({emails: ["jane.doe@acme.com", "john.smith@acme.com"]}) # ProbeBatchRequest |
32
+
33
+ begin
34
+ # Verify many email addresses
35
+ result = api_instance.probe_batch(probe_batch_request)
36
+ p result
37
+ rescue RelentlessIdentity::ApiError => e
38
+ puts "Error when calling ProbeApi->probe_batch: #{e}"
39
+ end
40
+ ```
41
+
42
+ #### Using the probe_batch_with_http_info variant
43
+
44
+ This returns an Array which contains the response data, status code and headers.
45
+
46
+ > <Array(<ClientBatchIdentityResponse>, Integer, Hash)> probe_batch_with_http_info(probe_batch_request)
47
+
48
+ ```ruby
49
+ begin
50
+ # Verify many email addresses
51
+ data, status_code, headers = api_instance.probe_batch_with_http_info(probe_batch_request)
52
+ p status_code # => 2xx
53
+ p headers # => { ... }
54
+ p data # => <ClientBatchIdentityResponse>
55
+ rescue RelentlessIdentity::ApiError => e
56
+ puts "Error when calling ProbeApi->probe_batch_with_http_info: #{e}"
57
+ end
58
+ ```
59
+
60
+ ### Parameters
61
+
62
+ | Name | Type | Description | Notes |
63
+ | ---- | ---- | ----------- | ----- |
64
+ | **probe_batch_request** | [**ProbeBatchRequest**](ProbeBatchRequest.md) | | |
65
+
66
+ ### Return type
67
+
68
+ [**ClientBatchIdentityResponse**](ClientBatchIdentityResponse.md)
69
+
70
+ ### Authorization
71
+
72
+ [bearerAuth](../README.md#bearerAuth)
73
+
74
+ ### HTTP request headers
75
+
76
+ - **Content-Type**: application/json
77
+ - **Accept**: application/json
78
+
79
+
80
+ ## probe_email
81
+
82
+ > <ClientIdentityResponse> probe_email(probe_request)
83
+
84
+ Verify an email address
85
+
86
+ Send a single email address to verify it directly.
87
+
88
+ ### Examples
89
+
90
+ ```ruby
91
+ require 'time'
92
+ require 'relentless_identity'
93
+ # setup authorization
94
+ RelentlessIdentity.configure do |config|
95
+ # Configure Bearer authorization (PAT): bearerAuth
96
+ config.access_token = 'YOUR_BEARER_TOKEN'
97
+ end
98
+
99
+ api_instance = RelentlessIdentity::ProbeApi.new
100
+ probe_request = RelentlessIdentity::ProbeRequest.new({email: 'jane.doe@acme.com'}) # ProbeRequest |
101
+
102
+ begin
103
+ # Verify an email address
104
+ result = api_instance.probe_email(probe_request)
105
+ p result
106
+ rescue RelentlessIdentity::ApiError => e
107
+ puts "Error when calling ProbeApi->probe_email: #{e}"
108
+ end
109
+ ```
110
+
111
+ #### Using the probe_email_with_http_info variant
112
+
113
+ This returns an Array which contains the response data, status code and headers.
114
+
115
+ > <Array(<ClientIdentityResponse>, Integer, Hash)> probe_email_with_http_info(probe_request)
116
+
117
+ ```ruby
118
+ begin
119
+ # Verify an email address
120
+ data, status_code, headers = api_instance.probe_email_with_http_info(probe_request)
121
+ p status_code # => 2xx
122
+ p headers # => { ... }
123
+ p data # => <ClientIdentityResponse>
124
+ rescue RelentlessIdentity::ApiError => e
125
+ puts "Error when calling ProbeApi->probe_email_with_http_info: #{e}"
126
+ end
127
+ ```
128
+
129
+ ### Parameters
130
+
131
+ | Name | Type | Description | Notes |
132
+ | ---- | ---- | ----------- | ----- |
133
+ | **probe_request** | [**ProbeRequest**](ProbeRequest.md) | | |
134
+
135
+ ### Return type
136
+
137
+ [**ClientIdentityResponse**](ClientIdentityResponse.md)
138
+
139
+ ### Authorization
140
+
141
+ [bearerAuth](../README.md#bearerAuth)
142
+
143
+ ### HTTP request headers
144
+
145
+ - **Content-Type**: application/json
146
+ - **Accept**: application/json
147
+
@@ -0,0 +1,22 @@
1
+ # RelentlessIdentity::ProbeBatchJobBackgroundRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **deadline** | **Time** | Optional hard deadline for the job. Omit it to start as soon as capacity allows. If provided, the API returns 422 when the deadline is too tight even with immediate execution. | [optional] |
8
+ | **callback_url** | **String** | | [optional] |
9
+ | **emails** | **Array&lt;String&gt;** | One or more exact mailbox addresses to verify asynchronously. | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'relentless_identity'
15
+
16
+ instance = RelentlessIdentity::ProbeBatchJobBackgroundRequest.new(
17
+ deadline: 2027-01-02T00:00Z,
18
+ callback_url: null,
19
+ emails: [&quot;jane.doe@acme.com&quot;,&quot;john.smith@acme.com&quot;]
20
+ )
21
+ ```
22
+