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
@@ -0,0 +1,535 @@
1
+ =begin
2
+ #Relentless Identity API
3
+
4
+ #Public client API for Finder and Probe workflows. This spec is generated from the FastAPI app, then narrowed to the supported bearer-authenticated routes used by SDKs and the API reference.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.21.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module RelentlessIdentity
16
+ class JobsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get background job
23
+ # Return the current status and paginated results for one background job.
24
+ # @param job_id [String]
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [Integer] :page (default to 1)
27
+ # @option opts [Integer] :page_size (default to 50)
28
+ # @return [ClientBackgroundJobDetailResponse]
29
+ def get_job(job_id, opts = {})
30
+ data, _status_code, _headers = get_job_with_http_info(job_id, opts)
31
+ data
32
+ end
33
+
34
+ # Get background job
35
+ # Return the current status and paginated results for one background job.
36
+ # @param job_id [String]
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [Integer] :page (default to 1)
39
+ # @option opts [Integer] :page_size (default to 50)
40
+ # @return [Array<(ClientBackgroundJobDetailResponse, Integer, Hash)>] ClientBackgroundJobDetailResponse data, response status code and response headers
41
+ def get_job_with_http_info(job_id, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: JobsApi.get_job ...'
44
+ end
45
+ # verify the required parameter 'job_id' is set
46
+ if @api_client.config.client_side_validation && job_id.nil?
47
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.get_job"
48
+ end
49
+ if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
50
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling JobsApi.get_job, must be greater than or equal to 1.'
51
+ end
52
+
53
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 100
54
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling JobsApi.get_job, must be smaller than or equal to 100.'
55
+ end
56
+
57
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
58
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling JobsApi.get_job, must be greater than or equal to 1.'
59
+ end
60
+
61
+ # resource path
62
+ local_var_path = '/client/jobs/{job_id}'.sub('{' + 'job_id' + '}', CGI.escape(job_id.to_s))
63
+
64
+ # query parameters
65
+ query_params = opts[:query_params] || {}
66
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
67
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
68
+
69
+ # header parameters
70
+ header_params = opts[:header_params] || {}
71
+ # HTTP header 'Accept' (if needed)
72
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
73
+
74
+ # form parameters
75
+ form_params = opts[:form_params] || {}
76
+
77
+ # http body (model)
78
+ post_body = opts[:debug_body]
79
+
80
+ # return_type
81
+ return_type = opts[:debug_return_type] || 'ClientBackgroundJobDetailResponse'
82
+
83
+ # auth_names
84
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
85
+
86
+ new_options = opts.merge(
87
+ :operation => :"JobsApi.get_job",
88
+ :header_params => header_params,
89
+ :query_params => query_params,
90
+ :form_params => form_params,
91
+ :body => post_body,
92
+ :auth_names => auth_names,
93
+ :return_type => return_type
94
+ )
95
+
96
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
97
+ if @api_client.config.debugging
98
+ @api_client.config.logger.debug "API called: JobsApi#get_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
99
+ end
100
+ return data, status_code, headers
101
+ end
102
+
103
+ # Download job inputs
104
+ # Return the original background job inputs as plain text when the payload is still retained.
105
+ # @param job_id [String]
106
+ # @param [Hash] opts the optional parameters
107
+ # @option opts [String] :if_none_match
108
+ # @option opts [String] :if_modified_since
109
+ # @return [String]
110
+ def get_job_inputs_text(job_id, opts = {})
111
+ data, _status_code, _headers = get_job_inputs_text_with_http_info(job_id, opts)
112
+ data
113
+ end
114
+
115
+ # Download job inputs
116
+ # Return the original background job inputs as plain text when the payload is still retained.
117
+ # @param job_id [String]
118
+ # @param [Hash] opts the optional parameters
119
+ # @option opts [String] :if_none_match
120
+ # @option opts [String] :if_modified_since
121
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
122
+ def get_job_inputs_text_with_http_info(job_id, opts = {})
123
+ if @api_client.config.debugging
124
+ @api_client.config.logger.debug 'Calling API: JobsApi.get_job_inputs_text ...'
125
+ end
126
+ # verify the required parameter 'job_id' is set
127
+ if @api_client.config.client_side_validation && job_id.nil?
128
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.get_job_inputs_text"
129
+ end
130
+ # resource path
131
+ local_var_path = '/client/jobs/{job_id}/inputs.txt'.sub('{' + 'job_id' + '}', CGI.escape(job_id.to_s))
132
+
133
+ # query parameters
134
+ query_params = opts[:query_params] || {}
135
+
136
+ # header parameters
137
+ header_params = opts[:header_params] || {}
138
+ # HTTP header 'Accept' (if needed)
139
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json']) unless header_params['Accept']
140
+ header_params[:'if-none-match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil?
141
+ header_params[:'if-modified-since'] = opts[:'if_modified_since'] if !opts[:'if_modified_since'].nil?
142
+
143
+ # form parameters
144
+ form_params = opts[:form_params] || {}
145
+
146
+ # http body (model)
147
+ post_body = opts[:debug_body]
148
+
149
+ # return_type
150
+ return_type = opts[:debug_return_type] || 'String'
151
+
152
+ # auth_names
153
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
154
+
155
+ new_options = opts.merge(
156
+ :operation => :"JobsApi.get_job_inputs_text",
157
+ :header_params => header_params,
158
+ :query_params => query_params,
159
+ :form_params => form_params,
160
+ :body => post_body,
161
+ :auth_names => auth_names,
162
+ :return_type => return_type
163
+ )
164
+
165
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
166
+ if @api_client.config.debugging
167
+ @api_client.config.logger.debug "API called: JobsApi#get_job_inputs_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
168
+ end
169
+ return data, status_code, headers
170
+ end
171
+
172
+ # Download job results as JSON
173
+ # Return the canonical immutable background job results artifact as JSON.
174
+ # @param job_id [String]
175
+ # @param [Hash] opts the optional parameters
176
+ # @option opts [String] :if_none_match
177
+ # @option opts [String] :if_modified_since
178
+ # @return [Object]
179
+ def get_job_results_json(job_id, opts = {})
180
+ data, _status_code, _headers = get_job_results_json_with_http_info(job_id, opts)
181
+ data
182
+ end
183
+
184
+ # Download job results as JSON
185
+ # Return the canonical immutable background job results artifact as JSON.
186
+ # @param job_id [String]
187
+ # @param [Hash] opts the optional parameters
188
+ # @option opts [String] :if_none_match
189
+ # @option opts [String] :if_modified_since
190
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
191
+ def get_job_results_json_with_http_info(job_id, opts = {})
192
+ if @api_client.config.debugging
193
+ @api_client.config.logger.debug 'Calling API: JobsApi.get_job_results_json ...'
194
+ end
195
+ # verify the required parameter 'job_id' is set
196
+ if @api_client.config.client_side_validation && job_id.nil?
197
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.get_job_results_json"
198
+ end
199
+ # resource path
200
+ local_var_path = '/client/jobs/{job_id}/results.json'.sub('{' + 'job_id' + '}', CGI.escape(job_id.to_s))
201
+
202
+ # query parameters
203
+ query_params = opts[:query_params] || {}
204
+
205
+ # header parameters
206
+ header_params = opts[:header_params] || {}
207
+ # HTTP header 'Accept' (if needed)
208
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
209
+ header_params[:'if-none-match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil?
210
+ header_params[:'if-modified-since'] = opts[:'if_modified_since'] if !opts[:'if_modified_since'].nil?
211
+
212
+ # form parameters
213
+ form_params = opts[:form_params] || {}
214
+
215
+ # http body (model)
216
+ post_body = opts[:debug_body]
217
+
218
+ # return_type
219
+ return_type = opts[:debug_return_type] || 'Object'
220
+
221
+ # auth_names
222
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
223
+
224
+ new_options = opts.merge(
225
+ :operation => :"JobsApi.get_job_results_json",
226
+ :header_params => header_params,
227
+ :query_params => query_params,
228
+ :form_params => form_params,
229
+ :body => post_body,
230
+ :auth_names => auth_names,
231
+ :return_type => return_type
232
+ )
233
+
234
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
235
+ if @api_client.config.debugging
236
+ @api_client.config.logger.debug "API called: JobsApi#get_job_results_json\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
237
+ end
238
+ return data, status_code, headers
239
+ end
240
+
241
+ # Download job results as text
242
+ # Return the canonical background job results in a readable plain-text format.
243
+ # @param job_id [String]
244
+ # @param [Hash] opts the optional parameters
245
+ # @option opts [String] :if_none_match
246
+ # @option opts [String] :if_modified_since
247
+ # @return [String]
248
+ def get_job_results_text(job_id, opts = {})
249
+ data, _status_code, _headers = get_job_results_text_with_http_info(job_id, opts)
250
+ data
251
+ end
252
+
253
+ # Download job results as text
254
+ # Return the canonical background job results in a readable plain-text format.
255
+ # @param job_id [String]
256
+ # @param [Hash] opts the optional parameters
257
+ # @option opts [String] :if_none_match
258
+ # @option opts [String] :if_modified_since
259
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
260
+ def get_job_results_text_with_http_info(job_id, opts = {})
261
+ if @api_client.config.debugging
262
+ @api_client.config.logger.debug 'Calling API: JobsApi.get_job_results_text ...'
263
+ end
264
+ # verify the required parameter 'job_id' is set
265
+ if @api_client.config.client_side_validation && job_id.nil?
266
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling JobsApi.get_job_results_text"
267
+ end
268
+ # resource path
269
+ local_var_path = '/client/jobs/{job_id}/results.txt'.sub('{' + 'job_id' + '}', CGI.escape(job_id.to_s))
270
+
271
+ # query parameters
272
+ query_params = opts[:query_params] || {}
273
+
274
+ # header parameters
275
+ header_params = opts[:header_params] || {}
276
+ # HTTP header 'Accept' (if needed)
277
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json']) unless header_params['Accept']
278
+ header_params[:'if-none-match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil?
279
+ header_params[:'if-modified-since'] = opts[:'if_modified_since'] if !opts[:'if_modified_since'].nil?
280
+
281
+ # form parameters
282
+ form_params = opts[:form_params] || {}
283
+
284
+ # http body (model)
285
+ post_body = opts[:debug_body]
286
+
287
+ # return_type
288
+ return_type = opts[:debug_return_type] || 'String'
289
+
290
+ # auth_names
291
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
292
+
293
+ new_options = opts.merge(
294
+ :operation => :"JobsApi.get_job_results_text",
295
+ :header_params => header_params,
296
+ :query_params => query_params,
297
+ :form_params => form_params,
298
+ :body => post_body,
299
+ :auth_names => auth_names,
300
+ :return_type => return_type
301
+ )
302
+
303
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
304
+ if @api_client.config.debugging
305
+ @api_client.config.logger.debug "API called: JobsApi#get_job_results_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
306
+ end
307
+ return data, status_code, headers
308
+ end
309
+
310
+ # List background jobs
311
+ # Return the authenticated user's paginated background job history.
312
+ # @param [Hash] opts the optional parameters
313
+ # @option opts [Integer] :page (default to 1)
314
+ # @option opts [Integer] :page_size (default to 25)
315
+ # @option opts [String] :job_type
316
+ # @option opts [String] :status
317
+ # @return [ClientBackgroundJobPageResponse]
318
+ def list_jobs(opts = {})
319
+ data, _status_code, _headers = list_jobs_with_http_info(opts)
320
+ data
321
+ end
322
+
323
+ # List background jobs
324
+ # Return the authenticated user&#39;s paginated background job history.
325
+ # @param [Hash] opts the optional parameters
326
+ # @option opts [Integer] :page (default to 1)
327
+ # @option opts [Integer] :page_size (default to 25)
328
+ # @option opts [String] :job_type
329
+ # @option opts [String] :status
330
+ # @return [Array<(ClientBackgroundJobPageResponse, Integer, Hash)>] ClientBackgroundJobPageResponse data, response status code and response headers
331
+ def list_jobs_with_http_info(opts = {})
332
+ if @api_client.config.debugging
333
+ @api_client.config.logger.debug 'Calling API: JobsApi.list_jobs ...'
334
+ end
335
+ if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
336
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling JobsApi.list_jobs, must be greater than or equal to 1.'
337
+ end
338
+
339
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 100
340
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling JobsApi.list_jobs, must be smaller than or equal to 100.'
341
+ end
342
+
343
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
344
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling JobsApi.list_jobs, must be greater than or equal to 1.'
345
+ end
346
+
347
+ allowable_values = ["finder_batch", "probe_batch"]
348
+ if @api_client.config.client_side_validation && opts[:'job_type'] && !allowable_values.include?(opts[:'job_type'])
349
+ fail ArgumentError, "invalid value for \"job_type\", must be one of #{allowable_values}"
350
+ end
351
+ allowable_values = ["queued", "processing", "completed", "failed", "canceled"]
352
+ if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
353
+ fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
354
+ end
355
+ # resource path
356
+ local_var_path = '/client/jobs'
357
+
358
+ # query parameters
359
+ query_params = opts[:query_params] || {}
360
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
361
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
362
+ query_params[:'job_type'] = opts[:'job_type'] if !opts[:'job_type'].nil?
363
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
364
+
365
+ # header parameters
366
+ header_params = opts[:header_params] || {}
367
+ # HTTP header 'Accept' (if needed)
368
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
369
+
370
+ # form parameters
371
+ form_params = opts[:form_params] || {}
372
+
373
+ # http body (model)
374
+ post_body = opts[:debug_body]
375
+
376
+ # return_type
377
+ return_type = opts[:debug_return_type] || 'ClientBackgroundJobPageResponse'
378
+
379
+ # auth_names
380
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
381
+
382
+ new_options = opts.merge(
383
+ :operation => :"JobsApi.list_jobs",
384
+ :header_params => header_params,
385
+ :query_params => query_params,
386
+ :form_params => form_params,
387
+ :body => post_body,
388
+ :auth_names => auth_names,
389
+ :return_type => return_type
390
+ )
391
+
392
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
393
+ if @api_client.config.debugging
394
+ @api_client.config.logger.debug "API called: JobsApi#list_jobs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
395
+ end
396
+ return data, status_code, headers
397
+ end
398
+
399
+ # Schedule a finder batch
400
+ # Queue a background finder batch job with an optional deadline and callback URL.
401
+ # @param finder_batch_job_request [FinderBatchJobRequest]
402
+ # @param [Hash] opts the optional parameters
403
+ # @return [ClientBackgroundJobResponse]
404
+ def schedule_finder_batch(finder_batch_job_request, opts = {})
405
+ data, _status_code, _headers = schedule_finder_batch_with_http_info(finder_batch_job_request, opts)
406
+ data
407
+ end
408
+
409
+ # Schedule a finder batch
410
+ # Queue a background finder batch job with an optional deadline and callback URL.
411
+ # @param finder_batch_job_request [FinderBatchJobRequest]
412
+ # @param [Hash] opts the optional parameters
413
+ # @return [Array<(ClientBackgroundJobResponse, Integer, Hash)>] ClientBackgroundJobResponse data, response status code and response headers
414
+ def schedule_finder_batch_with_http_info(finder_batch_job_request, opts = {})
415
+ if @api_client.config.debugging
416
+ @api_client.config.logger.debug 'Calling API: JobsApi.schedule_finder_batch ...'
417
+ end
418
+ # verify the required parameter 'finder_batch_job_request' is set
419
+ if @api_client.config.client_side_validation && finder_batch_job_request.nil?
420
+ fail ArgumentError, "Missing the required parameter 'finder_batch_job_request' when calling JobsApi.schedule_finder_batch"
421
+ end
422
+ # resource path
423
+ local_var_path = '/client/jobs/finder'
424
+
425
+ # query parameters
426
+ query_params = opts[:query_params] || {}
427
+
428
+ # header parameters
429
+ header_params = opts[:header_params] || {}
430
+ # HTTP header 'Accept' (if needed)
431
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
432
+ # HTTP header 'Content-Type'
433
+ content_type = @api_client.select_header_content_type(['application/json'])
434
+ if !content_type.nil?
435
+ header_params['Content-Type'] = content_type
436
+ end
437
+
438
+ # form parameters
439
+ form_params = opts[:form_params] || {}
440
+
441
+ # http body (model)
442
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(finder_batch_job_request)
443
+
444
+ # return_type
445
+ return_type = opts[:debug_return_type] || 'ClientBackgroundJobResponse'
446
+
447
+ # auth_names
448
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
449
+
450
+ new_options = opts.merge(
451
+ :operation => :"JobsApi.schedule_finder_batch",
452
+ :header_params => header_params,
453
+ :query_params => query_params,
454
+ :form_params => form_params,
455
+ :body => post_body,
456
+ :auth_names => auth_names,
457
+ :return_type => return_type
458
+ )
459
+
460
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
461
+ if @api_client.config.debugging
462
+ @api_client.config.logger.debug "API called: JobsApi#schedule_finder_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
463
+ end
464
+ return data, status_code, headers
465
+ end
466
+
467
+ # Schedule a probe batch
468
+ # Queue a background probe batch job with an optional deadline and callback URL.
469
+ # @param probe_batch_job_background_request [ProbeBatchJobBackgroundRequest]
470
+ # @param [Hash] opts the optional parameters
471
+ # @return [ClientBackgroundJobResponse]
472
+ def schedule_probe_batch(probe_batch_job_background_request, opts = {})
473
+ data, _status_code, _headers = schedule_probe_batch_with_http_info(probe_batch_job_background_request, opts)
474
+ data
475
+ end
476
+
477
+ # Schedule a probe batch
478
+ # Queue a background probe batch job with an optional deadline and callback URL.
479
+ # @param probe_batch_job_background_request [ProbeBatchJobBackgroundRequest]
480
+ # @param [Hash] opts the optional parameters
481
+ # @return [Array<(ClientBackgroundJobResponse, Integer, Hash)>] ClientBackgroundJobResponse data, response status code and response headers
482
+ def schedule_probe_batch_with_http_info(probe_batch_job_background_request, opts = {})
483
+ if @api_client.config.debugging
484
+ @api_client.config.logger.debug 'Calling API: JobsApi.schedule_probe_batch ...'
485
+ end
486
+ # verify the required parameter 'probe_batch_job_background_request' is set
487
+ if @api_client.config.client_side_validation && probe_batch_job_background_request.nil?
488
+ fail ArgumentError, "Missing the required parameter 'probe_batch_job_background_request' when calling JobsApi.schedule_probe_batch"
489
+ end
490
+ # resource path
491
+ local_var_path = '/client/jobs/probe-batch'
492
+
493
+ # query parameters
494
+ query_params = opts[:query_params] || {}
495
+
496
+ # header parameters
497
+ header_params = opts[:header_params] || {}
498
+ # HTTP header 'Accept' (if needed)
499
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
500
+ # HTTP header 'Content-Type'
501
+ content_type = @api_client.select_header_content_type(['application/json'])
502
+ if !content_type.nil?
503
+ header_params['Content-Type'] = content_type
504
+ end
505
+
506
+ # form parameters
507
+ form_params = opts[:form_params] || {}
508
+
509
+ # http body (model)
510
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(probe_batch_job_background_request)
511
+
512
+ # return_type
513
+ return_type = opts[:debug_return_type] || 'ClientBackgroundJobResponse'
514
+
515
+ # auth_names
516
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
517
+
518
+ new_options = opts.merge(
519
+ :operation => :"JobsApi.schedule_probe_batch",
520
+ :header_params => header_params,
521
+ :query_params => query_params,
522
+ :form_params => form_params,
523
+ :body => post_body,
524
+ :auth_names => auth_names,
525
+ :return_type => return_type
526
+ )
527
+
528
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
529
+ if @api_client.config.debugging
530
+ @api_client.config.logger.debug "API called: JobsApi#schedule_probe_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
531
+ end
532
+ return data, status_code, headers
533
+ end
534
+ end
535
+ end
@@ -0,0 +1,158 @@
1
+ =begin
2
+ #Relentless Identity API
3
+
4
+ #Public client API for Finder and Probe workflows. This spec is generated from the FastAPI app, then narrowed to the supported bearer-authenticated routes used by SDKs and the API reference.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.21.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module RelentlessIdentity
16
+ class ProbeApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Verify many email addresses
23
+ # Send many known email addresses and receive compact per-item identity results plus a batch summary.
24
+ # @param probe_batch_request [ProbeBatchRequest]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [ClientBatchIdentityResponse]
27
+ def probe_batch(probe_batch_request, opts = {})
28
+ data, _status_code, _headers = probe_batch_with_http_info(probe_batch_request, opts)
29
+ data
30
+ end
31
+
32
+ # Verify many email addresses
33
+ # Send many known email addresses and receive compact per-item identity results plus a batch summary.
34
+ # @param probe_batch_request [ProbeBatchRequest]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(ClientBatchIdentityResponse, Integer, Hash)>] ClientBatchIdentityResponse data, response status code and response headers
37
+ def probe_batch_with_http_info(probe_batch_request, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: ProbeApi.probe_batch ...'
40
+ end
41
+ # verify the required parameter 'probe_batch_request' is set
42
+ if @api_client.config.client_side_validation && probe_batch_request.nil?
43
+ fail ArgumentError, "Missing the required parameter 'probe_batch_request' when calling ProbeApi.probe_batch"
44
+ end
45
+ # resource path
46
+ local_var_path = '/client/probe/batch'
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
55
+ # HTTP header 'Content-Type'
56
+ content_type = @api_client.select_header_content_type(['application/json'])
57
+ if !content_type.nil?
58
+ header_params['Content-Type'] = content_type
59
+ end
60
+
61
+ # form parameters
62
+ form_params = opts[:form_params] || {}
63
+
64
+ # http body (model)
65
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(probe_batch_request)
66
+
67
+ # return_type
68
+ return_type = opts[:debug_return_type] || 'ClientBatchIdentityResponse'
69
+
70
+ # auth_names
71
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
72
+
73
+ new_options = opts.merge(
74
+ :operation => :"ProbeApi.probe_batch",
75
+ :header_params => header_params,
76
+ :query_params => query_params,
77
+ :form_params => form_params,
78
+ :body => post_body,
79
+ :auth_names => auth_names,
80
+ :return_type => return_type
81
+ )
82
+
83
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug "API called: ProbeApi#probe_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ end
87
+ return data, status_code, headers
88
+ end
89
+
90
+ # Verify an email address
91
+ # Send a single email address to verify it directly.
92
+ # @param probe_request [ProbeRequest]
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [ClientIdentityResponse]
95
+ def probe_email(probe_request, opts = {})
96
+ data, _status_code, _headers = probe_email_with_http_info(probe_request, opts)
97
+ data
98
+ end
99
+
100
+ # Verify an email address
101
+ # Send a single email address to verify it directly.
102
+ # @param probe_request [ProbeRequest]
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [Array<(ClientIdentityResponse, Integer, Hash)>] ClientIdentityResponse data, response status code and response headers
105
+ def probe_email_with_http_info(probe_request, opts = {})
106
+ if @api_client.config.debugging
107
+ @api_client.config.logger.debug 'Calling API: ProbeApi.probe_email ...'
108
+ end
109
+ # verify the required parameter 'probe_request' is set
110
+ if @api_client.config.client_side_validation && probe_request.nil?
111
+ fail ArgumentError, "Missing the required parameter 'probe_request' when calling ProbeApi.probe_email"
112
+ end
113
+ # resource path
114
+ local_var_path = '/client/probe'
115
+
116
+ # query parameters
117
+ query_params = opts[:query_params] || {}
118
+
119
+ # header parameters
120
+ header_params = opts[:header_params] || {}
121
+ # HTTP header 'Accept' (if needed)
122
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
123
+ # HTTP header 'Content-Type'
124
+ content_type = @api_client.select_header_content_type(['application/json'])
125
+ if !content_type.nil?
126
+ header_params['Content-Type'] = content_type
127
+ end
128
+
129
+ # form parameters
130
+ form_params = opts[:form_params] || {}
131
+
132
+ # http body (model)
133
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(probe_request)
134
+
135
+ # return_type
136
+ return_type = opts[:debug_return_type] || 'ClientIdentityResponse'
137
+
138
+ # auth_names
139
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
140
+
141
+ new_options = opts.merge(
142
+ :operation => :"ProbeApi.probe_email",
143
+ :header_params => header_params,
144
+ :query_params => query_params,
145
+ :form_params => form_params,
146
+ :body => post_body,
147
+ :auth_names => auth_names,
148
+ :return_type => return_type
149
+ )
150
+
151
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
152
+ if @api_client.config.debugging
153
+ @api_client.config.logger.debug "API called: ProbeApi#probe_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
154
+ end
155
+ return data, status_code, headers
156
+ end
157
+ end
158
+ end