regula-facesdk-webclient 6.4.198.dev0__py3-none-any.whl
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.
Potentially problematic release.
This version of regula-facesdk-webclient might be problematic. Click here for more details.
- regula/__init__.py +0 -0
- regula/facesdk/__init__.py +0 -0
- regula/facesdk/webclient/__init__.py +15 -0
- regula/facesdk/webclient/ext/__init__.py +5 -0
- regula/facesdk/webclient/ext/api/__init__.py +3 -0
- regula/facesdk/webclient/ext/api/group_api.py +36 -0
- regula/facesdk/webclient/ext/api/match_api.py +46 -0
- regula/facesdk/webclient/ext/api/person_api.py +46 -0
- regula/facesdk/webclient/ext/api/sdk.py +28 -0
- regula/facesdk/webclient/ext/api/search_api.py +17 -0
- regula/facesdk/webclient/ext/common.py +7 -0
- regula/facesdk/webclient/ext/models/__init__.py +6 -0
- regula/facesdk/webclient/ext/models/detect_request.py +32 -0
- regula/facesdk/webclient/ext/models/match_image.py +19 -0
- regula/facesdk/webclient/ext/models/match_request.py +34 -0
- regula/facesdk/webclient/gen/__init__.py +27 -0
- regula/facesdk/webclient/gen/api/__init__.py +3 -0
- regula/facesdk/webclient/gen/api/diagnostics_api.py +162 -0
- regula/facesdk/webclient/gen/api/group_api.py +1040 -0
- regula/facesdk/webclient/gen/api/healthcheck_api.py +283 -0
- regula/facesdk/webclient/gen/api/liveness_2_0_api.py +168 -0
- regula/facesdk/webclient/gen/api/liveness_api.py +424 -0
- regula/facesdk/webclient/gen/api/match_api.py +463 -0
- regula/facesdk/webclient/gen/api/person_api.py +1345 -0
- regula/facesdk/webclient/gen/api/search_api.py +177 -0
- regula/facesdk/webclient/gen/api_client.py +695 -0
- regula/facesdk/webclient/gen/apis/__init__.py +22 -0
- regula/facesdk/webclient/gen/configuration.py +446 -0
- regula/facesdk/webclient/gen/exceptions.py +159 -0
- regula/facesdk/webclient/gen/model/__init__.py +5 -0
- regula/facesdk/webclient/gen/model/add_image_to_person_request.py +205 -0
- regula/facesdk/webclient/gen/model/add_image_to_person_request_image.py +204 -0
- regula/facesdk/webclient/gen/model/add_image_to_person_response.py +262 -0
- regula/facesdk/webclient/gen/model/attribute_config.py +120 -0
- regula/facesdk/webclient/gen/model/attribute_config_list.py +92 -0
- regula/facesdk/webclient/gen/model/crop.py +208 -0
- regula/facesdk/webclient/gen/model/detect_request.py +204 -0
- regula/facesdk/webclient/gen/model/detect_request_attributes.py +120 -0
- regula/facesdk/webclient/gen/model/detect_response.py +147 -0
- regula/facesdk/webclient/gen/model/detect_response_all_of.py +120 -0
- regula/facesdk/webclient/gen/model/detect_result.py +231 -0
- regula/facesdk/webclient/gen/model/detection.py +258 -0
- regula/facesdk/webclient/gen/model/detection_attributes.py +148 -0
- regula/facesdk/webclient/gen/model/detection_face.py +260 -0
- regula/facesdk/webclient/gen/model/detection_quality.py +234 -0
- regula/facesdk/webclient/gen/model/device_info.py +231 -0
- regula/facesdk/webclient/gen/model/face_align_type_quality.py +109 -0
- regula/facesdk/webclient/gen/model/face_attribute.py +133 -0
- regula/facesdk/webclient/gen/model/face_image_quality_align_type.py +109 -0
- regula/facesdk/webclient/gen/model/face_image_quality_groups.py +118 -0
- regula/facesdk/webclient/gen/model/face_image_quality_groups_strings.py +118 -0
- regula/facesdk/webclient/gen/model/face_image_quality_status.py +103 -0
- regula/facesdk/webclient/gen/model/face_quality_config_name.py +238 -0
- regula/facesdk/webclient/gen/model/face_quality_scenarios.py +121 -0
- regula/facesdk/webclient/gen/model/face_quality_status.py +103 -0
- regula/facesdk/webclient/gen/model/face_rectangular.py +92 -0
- regula/facesdk/webclient/gen/model/face_sdk_result.py +121 -0
- regula/facesdk/webclient/gen/model/face_sdk_result_code.py +217 -0
- regula/facesdk/webclient/gen/model/faces_response.py +286 -0
- regula/facesdk/webclient/gen/model/faces_response_all_of.py +148 -0
- regula/facesdk/webclient/gen/model/filter_op.py +100 -0
- regula/facesdk/webclient/gen/model/filter_search_request.py +176 -0
- regula/facesdk/webclient/gen/model/group.py +206 -0
- regula/facesdk/webclient/gen/model/group_all_of.py +150 -0
- regula/facesdk/webclient/gen/model/group_page.py +178 -0
- regula/facesdk/webclient/gen/model/group_page_all_of.py +122 -0
- regula/facesdk/webclient/gen/model/group_response.py +150 -0
- regula/facesdk/webclient/gen/model/group_to_create.py +180 -0
- regula/facesdk/webclient/gen/model/image.py +290 -0
- regula/facesdk/webclient/gen/model/image_fields.py +258 -0
- regula/facesdk/webclient/gen/model/image_fields_image.py +204 -0
- regula/facesdk/webclient/gen/model/image_page.py +176 -0
- regula/facesdk/webclient/gen/model/image_page_all_of.py +120 -0
- regula/facesdk/webclient/gen/model/image_source.py +115 -0
- regula/facesdk/webclient/gen/model/liveness_transaction.py +334 -0
- regula/facesdk/webclient/gen/model/liveness_type.py +100 -0
- regula/facesdk/webclient/gen/model/match_and_search_request.py +178 -0
- regula/facesdk/webclient/gen/model/match_and_search_request_all_of.py +178 -0
- regula/facesdk/webclient/gen/model/match_and_search_request_all_of_images.py +148 -0
- regula/facesdk/webclient/gen/model/match_and_search_response.py +233 -0
- regula/facesdk/webclient/gen/model/match_and_search_response_all_of.py +206 -0
- regula/facesdk/webclient/gen/model/match_and_search_response_all_of_detections.py +176 -0
- regula/facesdk/webclient/gen/model/match_image.py +205 -0
- regula/facesdk/webclient/gen/model/match_image_detection.py +178 -0
- regula/facesdk/webclient/gen/model/match_image_result.py +316 -0
- regula/facesdk/webclient/gen/model/match_request.py +204 -0
- regula/facesdk/webclient/gen/model/match_request_output_image_params.py +148 -0
- regula/facesdk/webclient/gen/model/match_request_output_image_params_crop.py +212 -0
- regula/facesdk/webclient/gen/model/match_response.py +205 -0
- regula/facesdk/webclient/gen/model/match_response_all_of.py +178 -0
- regula/facesdk/webclient/gen/model/operation_log.py +206 -0
- regula/facesdk/webclient/gen/model/output_image_params.py +146 -0
- regula/facesdk/webclient/gen/model/page.py +150 -0
- regula/facesdk/webclient/gen/model/person.py +318 -0
- regula/facesdk/webclient/gen/model/person_all_of.py +206 -0
- regula/facesdk/webclient/gen/model/person_created_response.py +178 -0
- regula/facesdk/webclient/gen/model/person_fields.py +234 -0
- regula/facesdk/webclient/gen/model/person_to_update_fields.py +206 -0
- regula/facesdk/webclient/gen/model/person_with_images.py +346 -0
- regula/facesdk/webclient/gen/model/person_with_images_all_of.py +122 -0
- regula/facesdk/webclient/gen/model/persons_page.py +176 -0
- regula/facesdk/webclient/gen/model/persons_page_all_of.py +120 -0
- regula/facesdk/webclient/gen/model/process_param.py +226 -0
- regula/facesdk/webclient/gen/model/process_param_attributes.py +120 -0
- regula/facesdk/webclient/gen/model/quality_config.py +154 -0
- regula/facesdk/webclient/gen/model/quality_config_list.py +92 -0
- regula/facesdk/webclient/gen/model/quality_detail.py +234 -0
- regula/facesdk/webclient/gen/model/quality_details_groups.py +202 -0
- regula/facesdk/webclient/gen/model/quality_request.py +146 -0
- regula/facesdk/webclient/gen/model/recognize_image.py +346 -0
- regula/facesdk/webclient/gen/model/recognize_image_all_of.py +150 -0
- regula/facesdk/webclient/gen/model/resize_options.py +178 -0
- regula/facesdk/webclient/gen/model/rgb.py +92 -0
- regula/facesdk/webclient/gen/model/search_bad_params.py +172 -0
- regula/facesdk/webclient/gen/model/search_detection.py +398 -0
- regula/facesdk/webclient/gen/model/search_parameters.py +174 -0
- regula/facesdk/webclient/gen/model/search_parameters_create_person.py +177 -0
- regula/facesdk/webclient/gen/model/search_person.py +372 -0
- regula/facesdk/webclient/gen/model/search_person_all_of.py +148 -0
- regula/facesdk/webclient/gen/model/search_request.py +338 -0
- regula/facesdk/webclient/gen/model/search_request_all_of.py +178 -0
- regula/facesdk/webclient/gen/model/search_result.py +313 -0
- regula/facesdk/webclient/gen/model/search_result_all_of.py +122 -0
- regula/facesdk/webclient/gen/model/transaction_config.py +92 -0
- regula/facesdk/webclient/gen/model/transaction_info.py +344 -0
- regula/facesdk/webclient/gen/model/update_group.py +150 -0
- regula/facesdk/webclient/gen/model_utils.py +2037 -0
- regula/facesdk/webclient/gen/models/__init__.py +96 -0
- regula/facesdk/webclient/gen/rest.py +346 -0
- regula_facesdk_webclient-6.4.198.dev0.dist-info/METADATA +73 -0
- regula_facesdk_webclient-6.4.198.dev0.dist-info/RECORD +133 -0
- regula_facesdk_webclient-6.4.198.dev0.dist-info/WHEEL +5 -0
- regula_facesdk_webclient-6.4.198.dev0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Regula Face SDK Web API
|
|
5
|
+
|
|
6
|
+
<a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core # noqa: E501
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 6.2.0
|
|
9
|
+
Generated by: https://openapi-generator.tech
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
import pprint
|
|
14
|
+
import re # noqa: F401
|
|
15
|
+
|
|
16
|
+
import six
|
|
17
|
+
|
|
18
|
+
from regula.facesdk.webclient.gen.configuration import Configuration
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class SearchRequest(object):
|
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
23
|
+
Ref: https://openapi-generator.tech
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
openapi_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
openapi_types = {
|
|
36
|
+
'create_person': 'SearchParametersCreatePerson',
|
|
37
|
+
'group_ids': '[str]',
|
|
38
|
+
'filter': 'FilterSearchRequest',
|
|
39
|
+
'tag': 'str',
|
|
40
|
+
'image': 'AddImageToPersonRequestImage',
|
|
41
|
+
'output_image_params': 'OutputImageParams',
|
|
42
|
+
'detect_all': 'bool',
|
|
43
|
+
'threshold': 'float',
|
|
44
|
+
'limit': 'int',
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'create_person': 'createPerson',
|
|
49
|
+
'group_ids': 'groupIds',
|
|
50
|
+
'filter': 'filter',
|
|
51
|
+
'tag': 'tag',
|
|
52
|
+
'image': 'image',
|
|
53
|
+
'output_image_params': 'outputImageParams',
|
|
54
|
+
'detect_all': 'detectAll',
|
|
55
|
+
'threshold': 'threshold',
|
|
56
|
+
'limit': 'limit',
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
def __init__(self, create_person=None, group_ids=None, filter=None, tag=None, image=None, output_image_params=None, detect_all=False, threshold=None, limit=None, local_vars_configuration=None): # noqa: E501
|
|
60
|
+
"""SearchRequest - a model defined in OpenAPI""" # noqa: E501
|
|
61
|
+
if local_vars_configuration is None:
|
|
62
|
+
local_vars_configuration = Configuration()
|
|
63
|
+
self.local_vars_configuration = local_vars_configuration
|
|
64
|
+
|
|
65
|
+
self._create_person = None
|
|
66
|
+
self._group_ids = None
|
|
67
|
+
self._filter = None
|
|
68
|
+
self._tag = None
|
|
69
|
+
self._image = None
|
|
70
|
+
self._output_image_params = None
|
|
71
|
+
self._detect_all = None
|
|
72
|
+
self._threshold = None
|
|
73
|
+
self._limit = None
|
|
74
|
+
self.discriminator = None
|
|
75
|
+
|
|
76
|
+
if create_person is not None:
|
|
77
|
+
self.create_person = create_person
|
|
78
|
+
if group_ids is not None:
|
|
79
|
+
self.group_ids = group_ids
|
|
80
|
+
if filter is not None:
|
|
81
|
+
self.filter = filter
|
|
82
|
+
if tag is not None:
|
|
83
|
+
self.tag = tag
|
|
84
|
+
if image is not None:
|
|
85
|
+
self.image = image
|
|
86
|
+
if output_image_params is not None:
|
|
87
|
+
self.output_image_params = output_image_params
|
|
88
|
+
if detect_all is not None:
|
|
89
|
+
self.detect_all = detect_all
|
|
90
|
+
if threshold is not None:
|
|
91
|
+
self.threshold = threshold
|
|
92
|
+
if limit is not None:
|
|
93
|
+
self.limit = limit
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
def create_person(self):
|
|
97
|
+
"""Gets the create_person of this SearchRequest. # noqa: E501
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
:return: The create_person of this SearchRequest. # noqa: E501
|
|
101
|
+
:rtype: SearchParametersCreatePerson
|
|
102
|
+
"""
|
|
103
|
+
return self._create_person
|
|
104
|
+
|
|
105
|
+
@create_person.setter
|
|
106
|
+
def create_person(self, create_person):
|
|
107
|
+
"""Sets the create_person of this SearchRequest.
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
:param create_person: The create_person of this SearchRequest. # noqa: E501
|
|
111
|
+
:type create_person: SearchParametersCreatePerson
|
|
112
|
+
"""
|
|
113
|
+
|
|
114
|
+
self._create_person = create_person
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def group_ids(self):
|
|
118
|
+
"""Gets the group_ids of this SearchRequest. # noqa: E501
|
|
119
|
+
|
|
120
|
+
IDs of the groups in which the search is performed. # noqa: E501
|
|
121
|
+
|
|
122
|
+
:return: The group_ids of this SearchRequest. # noqa: E501
|
|
123
|
+
:rtype: [str]
|
|
124
|
+
"""
|
|
125
|
+
return self._group_ids
|
|
126
|
+
|
|
127
|
+
@group_ids.setter
|
|
128
|
+
def group_ids(self, group_ids):
|
|
129
|
+
"""Sets the group_ids of this SearchRequest.
|
|
130
|
+
|
|
131
|
+
IDs of the groups in which the search is performed. # noqa: E501
|
|
132
|
+
|
|
133
|
+
:param group_ids: The group_ids of this SearchRequest. # noqa: E501
|
|
134
|
+
:type group_ids: [str]
|
|
135
|
+
"""
|
|
136
|
+
|
|
137
|
+
self._group_ids = group_ids
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
def filter(self):
|
|
141
|
+
"""Gets the filter of this SearchRequest. # noqa: E501
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
:return: The filter of this SearchRequest. # noqa: E501
|
|
145
|
+
:rtype: FilterSearchRequest
|
|
146
|
+
"""
|
|
147
|
+
return self._filter
|
|
148
|
+
|
|
149
|
+
@filter.setter
|
|
150
|
+
def filter(self, filter):
|
|
151
|
+
"""Sets the filter of this SearchRequest.
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
:param filter: The filter of this SearchRequest. # noqa: E501
|
|
155
|
+
:type filter: FilterSearchRequest
|
|
156
|
+
"""
|
|
157
|
+
|
|
158
|
+
self._filter = filter
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
def tag(self):
|
|
162
|
+
"""Gets the tag of this SearchRequest. # noqa: E501
|
|
163
|
+
|
|
164
|
+
Session identificator, should be unique for each session. # noqa: E501
|
|
165
|
+
|
|
166
|
+
:return: The tag of this SearchRequest. # noqa: E501
|
|
167
|
+
:rtype: str
|
|
168
|
+
"""
|
|
169
|
+
return self._tag
|
|
170
|
+
|
|
171
|
+
@tag.setter
|
|
172
|
+
def tag(self, tag):
|
|
173
|
+
"""Sets the tag of this SearchRequest.
|
|
174
|
+
|
|
175
|
+
Session identificator, should be unique for each session. # noqa: E501
|
|
176
|
+
|
|
177
|
+
:param tag: The tag of this SearchRequest. # noqa: E501
|
|
178
|
+
:type tag: str
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
self._tag = tag
|
|
182
|
+
|
|
183
|
+
@property
|
|
184
|
+
def image(self):
|
|
185
|
+
"""Gets the image of this SearchRequest. # noqa: E501
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
:return: The image of this SearchRequest. # noqa: E501
|
|
189
|
+
:rtype: AddImageToPersonRequestImage
|
|
190
|
+
"""
|
|
191
|
+
return self._image
|
|
192
|
+
|
|
193
|
+
@image.setter
|
|
194
|
+
def image(self, image):
|
|
195
|
+
"""Sets the image of this SearchRequest.
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
:param image: The image of this SearchRequest. # noqa: E501
|
|
199
|
+
:type image: AddImageToPersonRequestImage
|
|
200
|
+
"""
|
|
201
|
+
|
|
202
|
+
self._image = image
|
|
203
|
+
|
|
204
|
+
@property
|
|
205
|
+
def output_image_params(self):
|
|
206
|
+
"""Gets the output_image_params of this SearchRequest. # noqa: E501
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
:return: The output_image_params of this SearchRequest. # noqa: E501
|
|
210
|
+
:rtype: OutputImageParams
|
|
211
|
+
"""
|
|
212
|
+
return self._output_image_params
|
|
213
|
+
|
|
214
|
+
@output_image_params.setter
|
|
215
|
+
def output_image_params(self, output_image_params):
|
|
216
|
+
"""Sets the output_image_params of this SearchRequest.
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
:param output_image_params: The output_image_params of this SearchRequest. # noqa: E501
|
|
220
|
+
:type output_image_params: OutputImageParams
|
|
221
|
+
"""
|
|
222
|
+
|
|
223
|
+
self._output_image_params = output_image_params
|
|
224
|
+
|
|
225
|
+
@property
|
|
226
|
+
def detect_all(self):
|
|
227
|
+
"""Gets the detect_all of this SearchRequest. # noqa: E501
|
|
228
|
+
|
|
229
|
+
Whether to detect all faces in the image. If set to `false`, only the most central face is detected. # noqa: E501
|
|
230
|
+
|
|
231
|
+
:return: The detect_all of this SearchRequest. # noqa: E501
|
|
232
|
+
:rtype: bool
|
|
233
|
+
"""
|
|
234
|
+
return self._detect_all
|
|
235
|
+
|
|
236
|
+
@detect_all.setter
|
|
237
|
+
def detect_all(self, detect_all):
|
|
238
|
+
"""Sets the detect_all of this SearchRequest.
|
|
239
|
+
|
|
240
|
+
Whether to detect all faces in the image. If set to `false`, only the most central face is detected. # noqa: E501
|
|
241
|
+
|
|
242
|
+
:param detect_all: The detect_all of this SearchRequest. # noqa: E501
|
|
243
|
+
:type detect_all: bool
|
|
244
|
+
"""
|
|
245
|
+
|
|
246
|
+
self._detect_all = detect_all
|
|
247
|
+
|
|
248
|
+
@property
|
|
249
|
+
def threshold(self):
|
|
250
|
+
"""Gets the threshold of this SearchRequest. # noqa: E501
|
|
251
|
+
|
|
252
|
+
The similarity threshold. # noqa: E501
|
|
253
|
+
|
|
254
|
+
:return: The threshold of this SearchRequest. # noqa: E501
|
|
255
|
+
:rtype: float
|
|
256
|
+
"""
|
|
257
|
+
return self._threshold
|
|
258
|
+
|
|
259
|
+
@threshold.setter
|
|
260
|
+
def threshold(self, threshold):
|
|
261
|
+
"""Sets the threshold of this SearchRequest.
|
|
262
|
+
|
|
263
|
+
The similarity threshold. # noqa: E501
|
|
264
|
+
|
|
265
|
+
:param threshold: The threshold of this SearchRequest. # noqa: E501
|
|
266
|
+
:type threshold: float
|
|
267
|
+
"""
|
|
268
|
+
|
|
269
|
+
self._threshold = threshold
|
|
270
|
+
|
|
271
|
+
@property
|
|
272
|
+
def limit(self):
|
|
273
|
+
"""Gets the limit of this SearchRequest. # noqa: E501
|
|
274
|
+
|
|
275
|
+
The maximum number of results to be returned. # noqa: E501
|
|
276
|
+
|
|
277
|
+
:return: The limit of this SearchRequest. # noqa: E501
|
|
278
|
+
:rtype: int
|
|
279
|
+
"""
|
|
280
|
+
return self._limit
|
|
281
|
+
|
|
282
|
+
@limit.setter
|
|
283
|
+
def limit(self, limit):
|
|
284
|
+
"""Sets the limit of this SearchRequest.
|
|
285
|
+
|
|
286
|
+
The maximum number of results to be returned. # noqa: E501
|
|
287
|
+
|
|
288
|
+
:param limit: The limit of this SearchRequest. # noqa: E501
|
|
289
|
+
:type limit: int
|
|
290
|
+
"""
|
|
291
|
+
|
|
292
|
+
self._limit = limit
|
|
293
|
+
|
|
294
|
+
def to_dict(self):
|
|
295
|
+
"""Returns the model properties as a dict"""
|
|
296
|
+
result = {}
|
|
297
|
+
|
|
298
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
299
|
+
value = getattr(self, attr)
|
|
300
|
+
if isinstance(value, list):
|
|
301
|
+
result[attr] = list(map(
|
|
302
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
303
|
+
value
|
|
304
|
+
))
|
|
305
|
+
elif hasattr(value, "to_dict"):
|
|
306
|
+
result[attr] = value.to_dict()
|
|
307
|
+
elif isinstance(value, dict):
|
|
308
|
+
result[attr] = dict(map(
|
|
309
|
+
lambda item: (item[0], item[1].to_dict())
|
|
310
|
+
if hasattr(item[1], "to_dict") else item,
|
|
311
|
+
value.items()
|
|
312
|
+
))
|
|
313
|
+
else:
|
|
314
|
+
result[attr] = value
|
|
315
|
+
|
|
316
|
+
return result
|
|
317
|
+
|
|
318
|
+
def to_str(self):
|
|
319
|
+
"""Returns the string representation of the model"""
|
|
320
|
+
return pprint.pformat(self.to_dict())
|
|
321
|
+
|
|
322
|
+
def __repr__(self):
|
|
323
|
+
"""For `print` and `pprint`"""
|
|
324
|
+
return self.to_str()
|
|
325
|
+
|
|
326
|
+
def __eq__(self, other):
|
|
327
|
+
"""Returns true if both objects are equal"""
|
|
328
|
+
if not isinstance(other, SearchRequest):
|
|
329
|
+
return False
|
|
330
|
+
|
|
331
|
+
return self.to_dict() == other.to_dict()
|
|
332
|
+
|
|
333
|
+
def __ne__(self, other):
|
|
334
|
+
"""Returns true if both objects are not equal"""
|
|
335
|
+
if not isinstance(other, SearchRequest):
|
|
336
|
+
return True
|
|
337
|
+
|
|
338
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Regula FaceSDK Web API
|
|
5
|
+
|
|
6
|
+
Regula FaceSDK Web API # Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core # noqa: E501
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 4.1.3
|
|
9
|
+
Generated by: https://openapi-generator.tech
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
import pprint
|
|
14
|
+
import re # noqa: F401
|
|
15
|
+
|
|
16
|
+
import six
|
|
17
|
+
|
|
18
|
+
from regula.facesdk.webclient.gen.configuration import Configuration
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class SearchRequestAllOf(object):
|
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
23
|
+
Ref: https://openapi-generator.tech
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
openapi_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
openapi_types = {
|
|
36
|
+
'limit': 'int',
|
|
37
|
+
'threshold': 'float',
|
|
38
|
+
'group_ids': '[int]',
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
attribute_map = {
|
|
42
|
+
'limit': 'limit',
|
|
43
|
+
'threshold': 'threshold',
|
|
44
|
+
'group_ids': 'group_ids',
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, limit=100, threshold=None, group_ids=None, local_vars_configuration=None): # noqa: E501
|
|
48
|
+
"""SearchRequestAllOf - a model defined in OpenAPI""" # noqa: E501
|
|
49
|
+
if local_vars_configuration is None:
|
|
50
|
+
local_vars_configuration = Configuration()
|
|
51
|
+
self.local_vars_configuration = local_vars_configuration
|
|
52
|
+
|
|
53
|
+
self._limit = None
|
|
54
|
+
self._threshold = None
|
|
55
|
+
self._group_ids = None
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
|
|
58
|
+
if limit is not None:
|
|
59
|
+
self.limit = limit
|
|
60
|
+
if threshold is not None:
|
|
61
|
+
self.threshold = threshold
|
|
62
|
+
if group_ids is not None:
|
|
63
|
+
self.group_ids = group_ids
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def limit(self):
|
|
67
|
+
"""Gets the limit of this SearchRequestAllOf. # noqa: E501
|
|
68
|
+
|
|
69
|
+
The number of returned Persons limit. # noqa: E501
|
|
70
|
+
|
|
71
|
+
:return: The limit of this SearchRequestAllOf. # noqa: E501
|
|
72
|
+
:rtype: int
|
|
73
|
+
"""
|
|
74
|
+
return self._limit
|
|
75
|
+
|
|
76
|
+
@limit.setter
|
|
77
|
+
def limit(self, limit):
|
|
78
|
+
"""Sets the limit of this SearchRequestAllOf.
|
|
79
|
+
|
|
80
|
+
The number of returned Persons limit. # noqa: E501
|
|
81
|
+
|
|
82
|
+
:param limit: The limit of this SearchRequestAllOf. # noqa: E501
|
|
83
|
+
:type limit: int
|
|
84
|
+
"""
|
|
85
|
+
|
|
86
|
+
self._limit = limit
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
def threshold(self):
|
|
90
|
+
"""Gets the threshold of this SearchRequestAllOf. # noqa: E501
|
|
91
|
+
|
|
92
|
+
Similarity threshold. # noqa: E501
|
|
93
|
+
|
|
94
|
+
:return: The threshold of this SearchRequestAllOf. # noqa: E501
|
|
95
|
+
:rtype: float
|
|
96
|
+
"""
|
|
97
|
+
return self._threshold
|
|
98
|
+
|
|
99
|
+
@threshold.setter
|
|
100
|
+
def threshold(self, threshold):
|
|
101
|
+
"""Sets the threshold of this SearchRequestAllOf.
|
|
102
|
+
|
|
103
|
+
Similarity threshold. # noqa: E501
|
|
104
|
+
|
|
105
|
+
:param threshold: The threshold of this SearchRequestAllOf. # noqa: E501
|
|
106
|
+
:type threshold: float
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
self._threshold = threshold
|
|
110
|
+
|
|
111
|
+
@property
|
|
112
|
+
def group_ids(self):
|
|
113
|
+
"""Gets the group_ids of this SearchRequestAllOf. # noqa: E501
|
|
114
|
+
|
|
115
|
+
The IDs of the groups in which the search is performed. # noqa: E501
|
|
116
|
+
|
|
117
|
+
:return: The group_ids of this SearchRequestAllOf. # noqa: E501
|
|
118
|
+
:rtype: [int]
|
|
119
|
+
"""
|
|
120
|
+
return self._group_ids
|
|
121
|
+
|
|
122
|
+
@group_ids.setter
|
|
123
|
+
def group_ids(self, group_ids):
|
|
124
|
+
"""Sets the group_ids of this SearchRequestAllOf.
|
|
125
|
+
|
|
126
|
+
The IDs of the groups in which the search is performed. # noqa: E501
|
|
127
|
+
|
|
128
|
+
:param group_ids: The group_ids of this SearchRequestAllOf. # noqa: E501
|
|
129
|
+
:type group_ids: [int]
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
self._group_ids = group_ids
|
|
133
|
+
|
|
134
|
+
def to_dict(self):
|
|
135
|
+
"""Returns the model properties as a dict"""
|
|
136
|
+
result = {}
|
|
137
|
+
|
|
138
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
139
|
+
value = getattr(self, attr)
|
|
140
|
+
if isinstance(value, list):
|
|
141
|
+
result[attr] = list(map(
|
|
142
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
143
|
+
value
|
|
144
|
+
))
|
|
145
|
+
elif hasattr(value, "to_dict"):
|
|
146
|
+
result[attr] = value.to_dict()
|
|
147
|
+
elif isinstance(value, dict):
|
|
148
|
+
result[attr] = dict(map(
|
|
149
|
+
lambda item: (item[0], item[1].to_dict())
|
|
150
|
+
if hasattr(item[1], "to_dict") else item,
|
|
151
|
+
value.items()
|
|
152
|
+
))
|
|
153
|
+
else:
|
|
154
|
+
result[attr] = value
|
|
155
|
+
|
|
156
|
+
return result
|
|
157
|
+
|
|
158
|
+
def to_str(self):
|
|
159
|
+
"""Returns the string representation of the model"""
|
|
160
|
+
return pprint.pformat(self.to_dict())
|
|
161
|
+
|
|
162
|
+
def __repr__(self):
|
|
163
|
+
"""For `print` and `pprint`"""
|
|
164
|
+
return self.to_str()
|
|
165
|
+
|
|
166
|
+
def __eq__(self, other):
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, SearchRequestAllOf):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.to_dict() == other.to_dict()
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other):
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
if not isinstance(other, SearchRequestAllOf):
|
|
176
|
+
return True
|
|
177
|
+
|
|
178
|
+
return self.to_dict() != other.to_dict()
|