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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +143 -0
- data/Rakefile +10 -0
- data/docs/AccountApi.md +219 -0
- data/docs/AliasInfo.md +20 -0
- data/docs/BatchSummary.md +26 -0
- data/docs/ClientBackgroundJobDetailResponse.md +30 -0
- data/docs/ClientBackgroundJobItemResponse.md +48 -0
- data/docs/ClientBackgroundJobPageResponse.md +26 -0
- data/docs/ClientBackgroundJobResponse.md +76 -0
- data/docs/ClientBatchIdentityResponse.md +20 -0
- data/docs/ClientFinderResponse.md +34 -0
- data/docs/ClientFinderResponseAlias.md +20 -0
- data/docs/ClientIdentityResponse.md +34 -0
- data/docs/ClientRequestHistoryItem.md +52 -0
- data/docs/ClientRequestHistoryPageResponse.md +26 -0
- data/docs/ClientTokenStatusResponse.md +28 -0
- data/docs/ClientUsageResponse.md +54 -0
- data/docs/ErrorResponse.md +24 -0
- data/docs/FinderApi.md +77 -0
- data/docs/FinderBatchJobRequest.md +22 -0
- data/docs/FinderBatchJobRequestInputsInner.md +20 -0
- data/docs/FinderRequest.md +20 -0
- data/docs/HTTPValidationError.md +18 -0
- data/docs/IdentityProvider.md +20 -0
- data/docs/JobsApi.md +529 -0
- data/docs/LocationInner.md +15 -0
- data/docs/ProbeApi.md +147 -0
- data/docs/ProbeBatchJobBackgroundRequest.md +22 -0
- data/docs/ProbeBatchRequest.md +18 -0
- data/docs/ProbeRequest.md +18 -0
- data/docs/ValidationError.md +26 -0
- data/git_push.sh +57 -0
- data/lib/relentless_identity/api/account_api.rb +225 -0
- data/lib/relentless_identity/api/finder_api.rb +90 -0
- data/lib/relentless_identity/api/jobs_api.rb +535 -0
- data/lib/relentless_identity/api/probe_api.rb +158 -0
- data/lib/relentless_identity/api_client.rb +397 -0
- data/lib/relentless_identity/api_error.rb +58 -0
- data/lib/relentless_identity/api_model_base.rb +88 -0
- data/lib/relentless_identity/configuration.rb +309 -0
- data/lib/relentless_identity/models/alias_info.rb +159 -0
- data/lib/relentless_identity/models/batch_summary.rb +318 -0
- data/lib/relentless_identity/models/client_background_job_detail_response.rb +307 -0
- data/lib/relentless_identity/models/client_background_job_item_response.rb +455 -0
- data/lib/relentless_identity/models/client_background_job_page_response.rb +271 -0
- data/lib/relentless_identity/models/client_background_job_response.rb +745 -0
- data/lib/relentless_identity/models/client_batch_identity_response.rb +194 -0
- data/lib/relentless_identity/models/client_finder_response.rb +285 -0
- data/lib/relentless_identity/models/client_finder_response_alias.rb +104 -0
- data/lib/relentless_identity/models/client_identity_response.rb +285 -0
- data/lib/relentless_identity/models/client_request_history_item.rb +450 -0
- data/lib/relentless_identity/models/client_request_history_page_response.rb +271 -0
- data/lib/relentless_identity/models/client_token_status_response.rb +259 -0
- data/lib/relentless_identity/models/client_usage_response.rb +506 -0
- data/lib/relentless_identity/models/error_response.rb +178 -0
- data/lib/relentless_identity/models/finder_batch_job_request.rb +206 -0
- data/lib/relentless_identity/models/finder_batch_job_request_inputs_inner.rb +192 -0
- data/lib/relentless_identity/models/finder_request.rb +193 -0
- data/lib/relentless_identity/models/http_validation_error.rb +149 -0
- data/lib/relentless_identity/models/identity_provider.rb +157 -0
- data/lib/relentless_identity/models/location_inner.rb +103 -0
- data/lib/relentless_identity/models/probe_batch_job_background_request.rb +206 -0
- data/lib/relentless_identity/models/probe_batch_request.rb +186 -0
- data/lib/relentless_identity/models/probe_request.rb +166 -0
- data/lib/relentless_identity/models/validation_error.rb +237 -0
- data/lib/relentless_identity/version.rb +15 -0
- data/lib/relentless_identity.rb +69 -0
- data/relentless_identity.gemspec +39 -0
- data/spec/api/account_api_spec.rb +72 -0
- data/spec/api/finder_api_spec.rb +47 -0
- data/spec/api/jobs_api_spec.rb +130 -0
- data/spec/api/probe_api_spec.rb +59 -0
- data/spec/models/alias_info_spec.rb +42 -0
- data/spec/models/batch_summary_spec.rb +60 -0
- data/spec/models/client_background_job_detail_response_spec.rb +72 -0
- data/spec/models/client_background_job_item_response_spec.rb +138 -0
- data/spec/models/client_background_job_page_response_spec.rb +60 -0
- data/spec/models/client_background_job_response_spec.rb +222 -0
- data/spec/models/client_batch_identity_response_spec.rb +42 -0
- data/spec/models/client_finder_response_alias_spec.rb +21 -0
- data/spec/models/client_finder_response_spec.rb +92 -0
- data/spec/models/client_identity_response_spec.rb +92 -0
- data/spec/models/client_request_history_item_spec.rb +150 -0
- data/spec/models/client_request_history_page_response_spec.rb +60 -0
- data/spec/models/client_token_status_response_spec.rb +70 -0
- data/spec/models/client_usage_response_spec.rb +144 -0
- data/spec/models/error_response_spec.rb +54 -0
- data/spec/models/finder_batch_job_request_inputs_inner_spec.rb +42 -0
- data/spec/models/finder_batch_job_request_spec.rb +48 -0
- data/spec/models/finder_request_spec.rb +42 -0
- data/spec/models/http_validation_error_spec.rb +36 -0
- data/spec/models/identity_provider_spec.rb +42 -0
- data/spec/models/location_inner_spec.rb +21 -0
- data/spec/models/probe_batch_job_background_request_spec.rb +48 -0
- data/spec/models/probe_batch_request_spec.rb +36 -0
- data/spec/models/probe_request_spec.rb +36 -0
- data/spec/models/validation_error_spec.rb +60 -0
- data/spec/spec_helper.rb +111 -0
- metadata +213 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# RelentlessIdentity::ProbeBatchRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **emails** | **Array<String>** | One or more exact mailbox addresses to verify. | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'relentless_identity'
|
|
13
|
+
|
|
14
|
+
instance = RelentlessIdentity::ProbeBatchRequest.new(
|
|
15
|
+
emails: ["jane.doe@acme.com","john.smith@acme.com"]
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# RelentlessIdentity::ProbeRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **email** | **String** | The email address you want to verify. | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'relentless_identity'
|
|
13
|
+
|
|
14
|
+
instance = RelentlessIdentity::ProbeRequest.new(
|
|
15
|
+
email: jane.doe@acme.com
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# RelentlessIdentity::ValidationError
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **loc** | [**Array<LocationInner>**](LocationInner.md) | | |
|
|
8
|
+
| **msg** | **String** | | |
|
|
9
|
+
| **type** | **String** | | |
|
|
10
|
+
| **input** | **Object** | | [optional] |
|
|
11
|
+
| **ctx** | **Object** | | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'relentless_identity'
|
|
17
|
+
|
|
18
|
+
instance = RelentlessIdentity::ValidationError.new(
|
|
19
|
+
loc: null,
|
|
20
|
+
msg: null,
|
|
21
|
+
type: null,
|
|
22
|
+
input: null,
|
|
23
|
+
ctx: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
data/git_push.sh
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
+
#
|
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
|
5
|
+
|
|
6
|
+
git_user_id=$1
|
|
7
|
+
git_repo_id=$2
|
|
8
|
+
release_note=$3
|
|
9
|
+
git_host=$4
|
|
10
|
+
|
|
11
|
+
if [ "$git_host" = "" ]; then
|
|
12
|
+
git_host="github.com"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
|
17
|
+
git_user_id="GIT_USER_ID"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
if [ "$release_note" = "" ]; then
|
|
27
|
+
release_note="Minor update"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# Initialize the local directory as a Git repository
|
|
32
|
+
git init
|
|
33
|
+
|
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
|
35
|
+
git add .
|
|
36
|
+
|
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
+
git commit -m "$release_note"
|
|
39
|
+
|
|
40
|
+
# Sets the new remote
|
|
41
|
+
git_remote=$(git remote)
|
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
+
|
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
+
else
|
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
git pull origin master
|
|
54
|
+
|
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
|
@@ -0,0 +1,225 @@
|
|
|
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 AccountApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Get paginated request history
|
|
23
|
+
# Return the authenticated user's latest request history with pagination and optional filters.
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [Integer] :page Page number starting at 1. (default to 1)
|
|
26
|
+
# @option opts [Integer] :page_size Number of history rows per page. Maximum 25. (default to 25)
|
|
27
|
+
# @option opts [String] :request_type Optional request-type filter.
|
|
28
|
+
# @option opts [String] :state Optional deliverability-state filter.
|
|
29
|
+
# @return [ClientRequestHistoryPageResponse]
|
|
30
|
+
def get_request_history(opts = {})
|
|
31
|
+
data, _status_code, _headers = get_request_history_with_http_info(opts)
|
|
32
|
+
data
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Get paginated request history
|
|
36
|
+
# Return the authenticated user's latest request history with pagination and optional filters.
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @option opts [Integer] :page Page number starting at 1. (default to 1)
|
|
39
|
+
# @option opts [Integer] :page_size Number of history rows per page. Maximum 25. (default to 25)
|
|
40
|
+
# @option opts [String] :request_type Optional request-type filter.
|
|
41
|
+
# @option opts [String] :state Optional deliverability-state filter.
|
|
42
|
+
# @return [Array<(ClientRequestHistoryPageResponse, Integer, Hash)>] ClientRequestHistoryPageResponse data, response status code and response headers
|
|
43
|
+
def get_request_history_with_http_info(opts = {})
|
|
44
|
+
if @api_client.config.debugging
|
|
45
|
+
@api_client.config.logger.debug 'Calling API: AccountApi.get_request_history ...'
|
|
46
|
+
end
|
|
47
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
48
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling AccountApi.get_request_history, must be greater than or equal to 1.'
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 25
|
|
52
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling AccountApi.get_request_history, must be smaller than or equal to 25.'
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
|
|
56
|
+
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling AccountApi.get_request_history, must be greater than or equal to 1.'
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
allowable_values = ["finder", "probe"]
|
|
60
|
+
if @api_client.config.client_side_validation && opts[:'request_type'] && !allowable_values.include?(opts[:'request_type'])
|
|
61
|
+
fail ArgumentError, "invalid value for \"request_type\", must be one of #{allowable_values}"
|
|
62
|
+
end
|
|
63
|
+
allowable_values = ["deliverable", "undeliverable"]
|
|
64
|
+
if @api_client.config.client_side_validation && opts[:'state'] && !allowable_values.include?(opts[:'state'])
|
|
65
|
+
fail ArgumentError, "invalid value for \"state\", must be one of #{allowable_values}"
|
|
66
|
+
end
|
|
67
|
+
# resource path
|
|
68
|
+
local_var_path = '/client/history'
|
|
69
|
+
|
|
70
|
+
# query parameters
|
|
71
|
+
query_params = opts[:query_params] || {}
|
|
72
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
73
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
74
|
+
query_params[:'request_type'] = opts[:'request_type'] if !opts[:'request_type'].nil?
|
|
75
|
+
query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
|
|
76
|
+
|
|
77
|
+
# header parameters
|
|
78
|
+
header_params = opts[:header_params] || {}
|
|
79
|
+
# HTTP header 'Accept' (if needed)
|
|
80
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
81
|
+
|
|
82
|
+
# form parameters
|
|
83
|
+
form_params = opts[:form_params] || {}
|
|
84
|
+
|
|
85
|
+
# http body (model)
|
|
86
|
+
post_body = opts[:debug_body]
|
|
87
|
+
|
|
88
|
+
# return_type
|
|
89
|
+
return_type = opts[:debug_return_type] || 'ClientRequestHistoryPageResponse'
|
|
90
|
+
|
|
91
|
+
# auth_names
|
|
92
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
93
|
+
|
|
94
|
+
new_options = opts.merge(
|
|
95
|
+
:operation => :"AccountApi.get_request_history",
|
|
96
|
+
:header_params => header_params,
|
|
97
|
+
:query_params => query_params,
|
|
98
|
+
:form_params => form_params,
|
|
99
|
+
:body => post_body,
|
|
100
|
+
:auth_names => auth_names,
|
|
101
|
+
:return_type => return_type
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
105
|
+
if @api_client.config.debugging
|
|
106
|
+
@api_client.config.logger.debug "API called: AccountApi#get_request_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
107
|
+
end
|
|
108
|
+
return data, status_code, headers
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Inspect the current bearer token
|
|
112
|
+
# Validate the current bearer token and return its active claims.
|
|
113
|
+
# @param [Hash] opts the optional parameters
|
|
114
|
+
# @return [ClientTokenStatusResponse]
|
|
115
|
+
def get_token_status(opts = {})
|
|
116
|
+
data, _status_code, _headers = get_token_status_with_http_info(opts)
|
|
117
|
+
data
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Inspect the current bearer token
|
|
121
|
+
# Validate the current bearer token and return its active claims.
|
|
122
|
+
# @param [Hash] opts the optional parameters
|
|
123
|
+
# @return [Array<(ClientTokenStatusResponse, Integer, Hash)>] ClientTokenStatusResponse data, response status code and response headers
|
|
124
|
+
def get_token_status_with_http_info(opts = {})
|
|
125
|
+
if @api_client.config.debugging
|
|
126
|
+
@api_client.config.logger.debug 'Calling API: AccountApi.get_token_status ...'
|
|
127
|
+
end
|
|
128
|
+
# resource path
|
|
129
|
+
local_var_path = '/client/token'
|
|
130
|
+
|
|
131
|
+
# query parameters
|
|
132
|
+
query_params = opts[:query_params] || {}
|
|
133
|
+
|
|
134
|
+
# header parameters
|
|
135
|
+
header_params = opts[:header_params] || {}
|
|
136
|
+
# HTTP header 'Accept' (if needed)
|
|
137
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
138
|
+
|
|
139
|
+
# form parameters
|
|
140
|
+
form_params = opts[:form_params] || {}
|
|
141
|
+
|
|
142
|
+
# http body (model)
|
|
143
|
+
post_body = opts[:debug_body]
|
|
144
|
+
|
|
145
|
+
# return_type
|
|
146
|
+
return_type = opts[:debug_return_type] || 'ClientTokenStatusResponse'
|
|
147
|
+
|
|
148
|
+
# auth_names
|
|
149
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
150
|
+
|
|
151
|
+
new_options = opts.merge(
|
|
152
|
+
:operation => :"AccountApi.get_token_status",
|
|
153
|
+
:header_params => header_params,
|
|
154
|
+
:query_params => query_params,
|
|
155
|
+
:form_params => form_params,
|
|
156
|
+
:body => post_body,
|
|
157
|
+
:auth_names => auth_names,
|
|
158
|
+
:return_type => return_type
|
|
159
|
+
)
|
|
160
|
+
|
|
161
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
162
|
+
if @api_client.config.debugging
|
|
163
|
+
@api_client.config.logger.debug "API called: AccountApi#get_token_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
164
|
+
end
|
|
165
|
+
return data, status_code, headers
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Get current usage and limits
|
|
169
|
+
# Return the current account usage, free-tier limits, and paid capacity details for the authenticated user.
|
|
170
|
+
# @param [Hash] opts the optional parameters
|
|
171
|
+
# @return [ClientUsageResponse]
|
|
172
|
+
def get_usage(opts = {})
|
|
173
|
+
data, _status_code, _headers = get_usage_with_http_info(opts)
|
|
174
|
+
data
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Get current usage and limits
|
|
178
|
+
# Return the current account usage, free-tier limits, and paid capacity details for the authenticated user.
|
|
179
|
+
# @param [Hash] opts the optional parameters
|
|
180
|
+
# @return [Array<(ClientUsageResponse, Integer, Hash)>] ClientUsageResponse data, response status code and response headers
|
|
181
|
+
def get_usage_with_http_info(opts = {})
|
|
182
|
+
if @api_client.config.debugging
|
|
183
|
+
@api_client.config.logger.debug 'Calling API: AccountApi.get_usage ...'
|
|
184
|
+
end
|
|
185
|
+
# resource path
|
|
186
|
+
local_var_path = '/client/usage'
|
|
187
|
+
|
|
188
|
+
# query parameters
|
|
189
|
+
query_params = opts[:query_params] || {}
|
|
190
|
+
|
|
191
|
+
# header parameters
|
|
192
|
+
header_params = opts[:header_params] || {}
|
|
193
|
+
# HTTP header 'Accept' (if needed)
|
|
194
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
195
|
+
|
|
196
|
+
# form parameters
|
|
197
|
+
form_params = opts[:form_params] || {}
|
|
198
|
+
|
|
199
|
+
# http body (model)
|
|
200
|
+
post_body = opts[:debug_body]
|
|
201
|
+
|
|
202
|
+
# return_type
|
|
203
|
+
return_type = opts[:debug_return_type] || 'ClientUsageResponse'
|
|
204
|
+
|
|
205
|
+
# auth_names
|
|
206
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
207
|
+
|
|
208
|
+
new_options = opts.merge(
|
|
209
|
+
:operation => :"AccountApi.get_usage",
|
|
210
|
+
:header_params => header_params,
|
|
211
|
+
:query_params => query_params,
|
|
212
|
+
:form_params => form_params,
|
|
213
|
+
:body => post_body,
|
|
214
|
+
:auth_names => auth_names,
|
|
215
|
+
:return_type => return_type
|
|
216
|
+
)
|
|
217
|
+
|
|
218
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
219
|
+
if @api_client.config.debugging
|
|
220
|
+
@api_client.config.logger.debug "API called: AccountApi#get_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
221
|
+
end
|
|
222
|
+
return data, status_code, headers
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
end
|
|
@@ -0,0 +1,90 @@
|
|
|
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 FinderApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Find a work email
|
|
23
|
+
# Send a full name and company domain to resolve the most likely verified work email.
|
|
24
|
+
# @param finder_request [FinderRequest]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [ClientFinderResponse]
|
|
27
|
+
def finder_attempt(finder_request, opts = {})
|
|
28
|
+
data, _status_code, _headers = finder_attempt_with_http_info(finder_request, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Find a work email
|
|
33
|
+
# Send a full name and company domain to resolve the most likely verified work email.
|
|
34
|
+
# @param finder_request [FinderRequest]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(ClientFinderResponse, Integer, Hash)>] ClientFinderResponse data, response status code and response headers
|
|
37
|
+
def finder_attempt_with_http_info(finder_request, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: FinderApi.finder_attempt ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'finder_request' is set
|
|
42
|
+
if @api_client.config.client_side_validation && finder_request.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'finder_request' when calling FinderApi.finder_attempt"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/client/attempt'
|
|
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(finder_request)
|
|
66
|
+
|
|
67
|
+
# return_type
|
|
68
|
+
return_type = opts[:debug_return_type] || 'ClientFinderResponse'
|
|
69
|
+
|
|
70
|
+
# auth_names
|
|
71
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
72
|
+
|
|
73
|
+
new_options = opts.merge(
|
|
74
|
+
:operation => :"FinderApi.finder_attempt",
|
|
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: FinderApi#finder_attempt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
+
end
|
|
87
|
+
return data, status_code, headers
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|