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,206 @@
|
|
|
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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module RelentlessIdentity
|
|
17
|
+
# Queue a background Finder workload that can wait for capacity and complete asynchronously.
|
|
18
|
+
class FinderBatchJobRequest < ApiModelBase
|
|
19
|
+
# 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.
|
|
20
|
+
attr_accessor :deadline
|
|
21
|
+
|
|
22
|
+
attr_accessor :callback_url
|
|
23
|
+
|
|
24
|
+
# One or more Finder-style inputs that will be processed asynchronously.
|
|
25
|
+
attr_accessor :inputs
|
|
26
|
+
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
def self.attribute_map
|
|
29
|
+
{
|
|
30
|
+
:'deadline' => :'deadline',
|
|
31
|
+
:'callback_url' => :'callback_url',
|
|
32
|
+
:'inputs' => :'inputs'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Returns attribute mapping this model knows about
|
|
37
|
+
def self.acceptable_attribute_map
|
|
38
|
+
attribute_map
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Returns all the JSON keys this model knows about
|
|
42
|
+
def self.acceptable_attributes
|
|
43
|
+
acceptable_attribute_map.values
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Attribute type mapping.
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'deadline' => :'Time',
|
|
50
|
+
:'callback_url' => :'String',
|
|
51
|
+
:'inputs' => :'Array<FinderBatchJobRequestInputsInner>'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# List of attributes with nullable: true
|
|
56
|
+
def self.openapi_nullable
|
|
57
|
+
Set.new([
|
|
58
|
+
:'callback_url',
|
|
59
|
+
])
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Initializes the object
|
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
|
+
def initialize(attributes = {})
|
|
65
|
+
if (!attributes.is_a?(Hash))
|
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `RelentlessIdentity::FinderBatchJobRequest` initialize method"
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
71
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
72
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `RelentlessIdentity::FinderBatchJobRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
74
|
+
end
|
|
75
|
+
h[k.to_sym] = v
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'deadline')
|
|
79
|
+
self.deadline = attributes[:'deadline']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'callback_url')
|
|
83
|
+
self.callback_url = attributes[:'callback_url']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'inputs')
|
|
87
|
+
if (value = attributes[:'inputs']).is_a?(Array)
|
|
88
|
+
self.inputs = value
|
|
89
|
+
end
|
|
90
|
+
else
|
|
91
|
+
self.inputs = nil
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
96
|
+
# @return Array for valid properties with the reasons
|
|
97
|
+
def list_invalid_properties
|
|
98
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
99
|
+
invalid_properties = Array.new
|
|
100
|
+
if @inputs.nil?
|
|
101
|
+
invalid_properties.push('invalid value for "inputs", inputs cannot be nil.')
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if @inputs.length > 100
|
|
105
|
+
invalid_properties.push('invalid value for "inputs", number of items must be less than or equal to 100.')
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if @inputs.length < 1
|
|
109
|
+
invalid_properties.push('invalid value for "inputs", number of items must be greater than or equal to 1.')
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
invalid_properties
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Check to see if the all the properties in the model are valid
|
|
116
|
+
# @return true if the model is valid
|
|
117
|
+
def valid?
|
|
118
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
119
|
+
return false if @inputs.nil?
|
|
120
|
+
return false if @inputs.length > 100
|
|
121
|
+
return false if @inputs.length < 1
|
|
122
|
+
true
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Custom attribute writer method with validation
|
|
126
|
+
# @param [Object] inputs Value to be assigned
|
|
127
|
+
def inputs=(inputs)
|
|
128
|
+
if inputs.nil?
|
|
129
|
+
fail ArgumentError, 'inputs cannot be nil'
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if inputs.length > 100
|
|
133
|
+
fail ArgumentError, 'invalid value for "inputs", number of items must be less than or equal to 100.'
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if inputs.length < 1
|
|
137
|
+
fail ArgumentError, 'invalid value for "inputs", number of items must be greater than or equal to 1.'
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
@inputs = inputs
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Checks equality by comparing each attribute.
|
|
144
|
+
# @param [Object] Object to be compared
|
|
145
|
+
def ==(o)
|
|
146
|
+
return true if self.equal?(o)
|
|
147
|
+
self.class == o.class &&
|
|
148
|
+
deadline == o.deadline &&
|
|
149
|
+
callback_url == o.callback_url &&
|
|
150
|
+
inputs == o.inputs
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# @see the `==` method
|
|
154
|
+
# @param [Object] Object to be compared
|
|
155
|
+
def eql?(o)
|
|
156
|
+
self == o
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Calculates hash code according to all attributes.
|
|
160
|
+
# @return [Integer] Hash code
|
|
161
|
+
def hash
|
|
162
|
+
[deadline, callback_url, inputs].hash
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Builds the object from hash
|
|
166
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
167
|
+
# @return [Object] Returns the model itself
|
|
168
|
+
def self.build_from_hash(attributes)
|
|
169
|
+
return nil unless attributes.is_a?(Hash)
|
|
170
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
171
|
+
transformed_hash = {}
|
|
172
|
+
openapi_types.each_pair do |key, type|
|
|
173
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
174
|
+
transformed_hash["#{key}"] = nil
|
|
175
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
176
|
+
# check to ensure the input is an array given that the attribute
|
|
177
|
+
# is documented as an array but the input is not
|
|
178
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
179
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
180
|
+
end
|
|
181
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
182
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
new(transformed_hash)
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Returns the object in the form of hash
|
|
189
|
+
# @return [Hash] Returns the object in the form of hash
|
|
190
|
+
def to_hash
|
|
191
|
+
hash = {}
|
|
192
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
193
|
+
value = self.send(attr)
|
|
194
|
+
if value.nil?
|
|
195
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
196
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
hash[param] = _to_hash(value)
|
|
200
|
+
end
|
|
201
|
+
hash
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
end
|
|
@@ -0,0 +1,192 @@
|
|
|
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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module RelentlessIdentity
|
|
17
|
+
class FinderBatchJobRequestInputsInner < ApiModelBase
|
|
18
|
+
# The real person's full name.
|
|
19
|
+
attr_accessor :full_name
|
|
20
|
+
|
|
21
|
+
# The company website or mailbox domain.
|
|
22
|
+
attr_accessor :email_domain
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
:'full_name' => :'full_name',
|
|
28
|
+
:'email_domain' => :'email_domain'
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns attribute mapping this model knows about
|
|
33
|
+
def self.acceptable_attribute_map
|
|
34
|
+
attribute_map
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Returns all the JSON keys this model knows about
|
|
38
|
+
def self.acceptable_attributes
|
|
39
|
+
acceptable_attribute_map.values
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Attribute type mapping.
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'full_name' => :'String',
|
|
46
|
+
:'email_domain' => :'String'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# List of attributes with nullable: true
|
|
51
|
+
def self.openapi_nullable
|
|
52
|
+
Set.new([
|
|
53
|
+
])
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Initializes the object
|
|
57
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
58
|
+
def initialize(attributes = {})
|
|
59
|
+
if (!attributes.is_a?(Hash))
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `RelentlessIdentity::FinderBatchJobRequestInputsInner` initialize method"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
64
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `RelentlessIdentity::FinderBatchJobRequestInputsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
68
|
+
end
|
|
69
|
+
h[k.to_sym] = v
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'full_name')
|
|
73
|
+
self.full_name = attributes[:'full_name']
|
|
74
|
+
else
|
|
75
|
+
self.full_name = nil
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'email_domain')
|
|
79
|
+
self.email_domain = attributes[:'email_domain']
|
|
80
|
+
else
|
|
81
|
+
self.email_domain = nil
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
86
|
+
# @return Array for valid properties with the reasons
|
|
87
|
+
def list_invalid_properties
|
|
88
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
89
|
+
invalid_properties = Array.new
|
|
90
|
+
if @full_name.nil?
|
|
91
|
+
invalid_properties.push('invalid value for "full_name", full_name cannot be nil.')
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if @email_domain.nil?
|
|
95
|
+
invalid_properties.push('invalid value for "email_domain", email_domain cannot be nil.')
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
invalid_properties
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Check to see if the all the properties in the model are valid
|
|
102
|
+
# @return true if the model is valid
|
|
103
|
+
def valid?
|
|
104
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
105
|
+
return false if @full_name.nil?
|
|
106
|
+
return false if @email_domain.nil?
|
|
107
|
+
true
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Custom attribute writer method with validation
|
|
111
|
+
# @param [Object] full_name Value to be assigned
|
|
112
|
+
def full_name=(full_name)
|
|
113
|
+
if full_name.nil?
|
|
114
|
+
fail ArgumentError, 'full_name cannot be nil'
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
@full_name = full_name
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Custom attribute writer method with validation
|
|
121
|
+
# @param [Object] email_domain Value to be assigned
|
|
122
|
+
def email_domain=(email_domain)
|
|
123
|
+
if email_domain.nil?
|
|
124
|
+
fail ArgumentError, 'email_domain cannot be nil'
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
@email_domain = email_domain
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Checks equality by comparing each attribute.
|
|
131
|
+
# @param [Object] Object to be compared
|
|
132
|
+
def ==(o)
|
|
133
|
+
return true if self.equal?(o)
|
|
134
|
+
self.class == o.class &&
|
|
135
|
+
full_name == o.full_name &&
|
|
136
|
+
email_domain == o.email_domain
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# @see the `==` method
|
|
140
|
+
# @param [Object] Object to be compared
|
|
141
|
+
def eql?(o)
|
|
142
|
+
self == o
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Calculates hash code according to all attributes.
|
|
146
|
+
# @return [Integer] Hash code
|
|
147
|
+
def hash
|
|
148
|
+
[full_name, email_domain].hash
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Builds the object from hash
|
|
152
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
153
|
+
# @return [Object] Returns the model itself
|
|
154
|
+
def self.build_from_hash(attributes)
|
|
155
|
+
return nil unless attributes.is_a?(Hash)
|
|
156
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
157
|
+
transformed_hash = {}
|
|
158
|
+
openapi_types.each_pair do |key, type|
|
|
159
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
160
|
+
transformed_hash["#{key}"] = nil
|
|
161
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
162
|
+
# check to ensure the input is an array given that the attribute
|
|
163
|
+
# is documented as an array but the input is not
|
|
164
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
165
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
166
|
+
end
|
|
167
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
168
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
new(transformed_hash)
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Returns the object in the form of hash
|
|
175
|
+
# @return [Hash] Returns the object in the form of hash
|
|
176
|
+
def to_hash
|
|
177
|
+
hash = {}
|
|
178
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
179
|
+
value = self.send(attr)
|
|
180
|
+
if value.nil?
|
|
181
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
182
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
hash[param] = _to_hash(value)
|
|
186
|
+
end
|
|
187
|
+
hash
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
end
|
|
@@ -0,0 +1,193 @@
|
|
|
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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module RelentlessIdentity
|
|
17
|
+
# Resolve the most likely verified work email for one person at one company domain.
|
|
18
|
+
class FinderRequest < ApiModelBase
|
|
19
|
+
# The real person's full name. Include middle names or initials when known.
|
|
20
|
+
attr_accessor :full_name
|
|
21
|
+
|
|
22
|
+
# The company's public website or mailbox domain.
|
|
23
|
+
attr_accessor :email_domain
|
|
24
|
+
|
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
26
|
+
def self.attribute_map
|
|
27
|
+
{
|
|
28
|
+
:'full_name' => :'full_name',
|
|
29
|
+
:'email_domain' => :'email_domain'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Returns attribute mapping this model knows about
|
|
34
|
+
def self.acceptable_attribute_map
|
|
35
|
+
attribute_map
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Returns all the JSON keys this model knows about
|
|
39
|
+
def self.acceptable_attributes
|
|
40
|
+
acceptable_attribute_map.values
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute type mapping.
|
|
44
|
+
def self.openapi_types
|
|
45
|
+
{
|
|
46
|
+
:'full_name' => :'String',
|
|
47
|
+
:'email_domain' => :'String'
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# List of attributes with nullable: true
|
|
52
|
+
def self.openapi_nullable
|
|
53
|
+
Set.new([
|
|
54
|
+
])
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Initializes the object
|
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
59
|
+
def initialize(attributes = {})
|
|
60
|
+
if (!attributes.is_a?(Hash))
|
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `RelentlessIdentity::FinderRequest` initialize method"
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
67
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
68
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `RelentlessIdentity::FinderRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
69
|
+
end
|
|
70
|
+
h[k.to_sym] = v
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'full_name')
|
|
74
|
+
self.full_name = attributes[:'full_name']
|
|
75
|
+
else
|
|
76
|
+
self.full_name = nil
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.key?(:'email_domain')
|
|
80
|
+
self.email_domain = attributes[:'email_domain']
|
|
81
|
+
else
|
|
82
|
+
self.email_domain = nil
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
87
|
+
# @return Array for valid properties with the reasons
|
|
88
|
+
def list_invalid_properties
|
|
89
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
90
|
+
invalid_properties = Array.new
|
|
91
|
+
if @full_name.nil?
|
|
92
|
+
invalid_properties.push('invalid value for "full_name", full_name cannot be nil.')
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if @email_domain.nil?
|
|
96
|
+
invalid_properties.push('invalid value for "email_domain", email_domain cannot be nil.')
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
invalid_properties
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Check to see if the all the properties in the model are valid
|
|
103
|
+
# @return true if the model is valid
|
|
104
|
+
def valid?
|
|
105
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
106
|
+
return false if @full_name.nil?
|
|
107
|
+
return false if @email_domain.nil?
|
|
108
|
+
true
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Custom attribute writer method with validation
|
|
112
|
+
# @param [Object] full_name Value to be assigned
|
|
113
|
+
def full_name=(full_name)
|
|
114
|
+
if full_name.nil?
|
|
115
|
+
fail ArgumentError, 'full_name cannot be nil'
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
@full_name = full_name
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Custom attribute writer method with validation
|
|
122
|
+
# @param [Object] email_domain Value to be assigned
|
|
123
|
+
def email_domain=(email_domain)
|
|
124
|
+
if email_domain.nil?
|
|
125
|
+
fail ArgumentError, 'email_domain cannot be nil'
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
@email_domain = email_domain
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Checks equality by comparing each attribute.
|
|
132
|
+
# @param [Object] Object to be compared
|
|
133
|
+
def ==(o)
|
|
134
|
+
return true if self.equal?(o)
|
|
135
|
+
self.class == o.class &&
|
|
136
|
+
full_name == o.full_name &&
|
|
137
|
+
email_domain == o.email_domain
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# @see the `==` method
|
|
141
|
+
# @param [Object] Object to be compared
|
|
142
|
+
def eql?(o)
|
|
143
|
+
self == o
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Calculates hash code according to all attributes.
|
|
147
|
+
# @return [Integer] Hash code
|
|
148
|
+
def hash
|
|
149
|
+
[full_name, email_domain].hash
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Builds the object from hash
|
|
153
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
154
|
+
# @return [Object] Returns the model itself
|
|
155
|
+
def self.build_from_hash(attributes)
|
|
156
|
+
return nil unless attributes.is_a?(Hash)
|
|
157
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
158
|
+
transformed_hash = {}
|
|
159
|
+
openapi_types.each_pair do |key, type|
|
|
160
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
161
|
+
transformed_hash["#{key}"] = nil
|
|
162
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
163
|
+
# check to ensure the input is an array given that the attribute
|
|
164
|
+
# is documented as an array but the input is not
|
|
165
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
166
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
167
|
+
end
|
|
168
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
169
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
new(transformed_hash)
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Returns the object in the form of hash
|
|
176
|
+
# @return [Hash] Returns the object in the form of hash
|
|
177
|
+
def to_hash
|
|
178
|
+
hash = {}
|
|
179
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
180
|
+
value = self.send(attr)
|
|
181
|
+
if value.nil?
|
|
182
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
183
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
hash[param] = _to_hash(value)
|
|
187
|
+
end
|
|
188
|
+
hash
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
end
|