Skip to content

Commit aa8d9ba

Browse files
committed
Update clients
1 parent 9a8e10f commit aa8d9ba

File tree

4 files changed

+238
-8
lines changed

4 files changed

+238
-8
lines changed

.openapi-generator/FILES

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ regula/facesdk/webclient/gen/model/image_page_all_of.py
5757
regula/facesdk/webclient/gen/model/image_source.py
5858
regula/facesdk/webclient/gen/model/liveness_type.py
5959
regula/facesdk/webclient/gen/model/match_and_search_request.py
60-
regula/facesdk/webclient/gen/model/match_and_search_request_all_of.py
61-
regula/facesdk/webclient/gen/model/match_and_search_request_all_of_images.py
60+
regula/facesdk/webclient/gen/model/match_and_search_request_images.py
6261
regula/facesdk/webclient/gen/model/match_and_search_response.py
6362
regula/facesdk/webclient/gen/model/match_and_search_response_all_of.py
6463
regula/facesdk/webclient/gen/model/match_and_search_response_all_of_detections.py

regula/facesdk/webclient/gen/model/match_and_search_request.py

Lines changed: 60 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ class MatchAndSearchRequest(object):
3434
"""
3535
openapi_types = {
3636
'tag': 'str',
37-
'images': '[MatchAndSearchRequestAllOfImages]',
37+
'images': '[MatchAndSearchRequestImages]',
3838
'group_ids': '[str]',
39+
'threshold': 'float',
40+
'limit': 'int',
3941
'tenant': 'str',
4042
'env': 'str',
4143
}
@@ -44,11 +46,13 @@ class MatchAndSearchRequest(object):
4446
'tag': 'tag',
4547
'images': 'images',
4648
'group_ids': 'groupIds',
49+
'threshold': 'threshold',
50+
'limit': 'limit',
4751
'tenant': 'tenant',
4852
'env': 'env',
4953
}
5054

51-
def __init__(self, tag=None, images=None, group_ids=None, tenant=None, env=None, local_vars_configuration=None): # noqa: E501
55+
def __init__(self, tag=None, images=None, group_ids=None, threshold=None, limit=None, tenant=None, env=None, local_vars_configuration=None): # noqa: E501
5256
"""MatchAndSearchRequest - a model defined in OpenAPI""" # noqa: E501
5357
if local_vars_configuration is None:
5458
local_vars_configuration = Configuration()
@@ -57,6 +61,8 @@ def __init__(self, tag=None, images=None, group_ids=None, tenant=None, env=None,
5761
self._tag = None
5862
self._images = None
5963
self._group_ids = None
64+
self._threshold = None
65+
self._limit = None
6066
self._tenant = None
6167
self._env = None
6268
self.discriminator = None
@@ -67,6 +73,10 @@ def __init__(self, tag=None, images=None, group_ids=None, tenant=None, env=None,
6773
self.images = images
6874
if group_ids is not None:
6975
self.group_ids = group_ids
76+
if threshold is not None:
77+
self.threshold = threshold
78+
if limit is not None:
79+
self.limit = limit
7080
if tenant is not None:
7181
self.tenant = tenant
7282
if env is not None:
@@ -102,7 +112,7 @@ def images(self):
102112
Person's images. # noqa: E501
103113
104114
:return: The images of this MatchAndSearchRequest. # noqa: E501
105-
:rtype: [MatchAndSearchRequestAllOfImages]
115+
:rtype: [MatchAndSearchRequestImages]
106116
"""
107117
return self._images
108118

@@ -113,7 +123,7 @@ def images(self, images):
113123
Person's images. # noqa: E501
114124
115125
:param images: The images of this MatchAndSearchRequest. # noqa: E501
116-
:type images: [MatchAndSearchRequestAllOfImages]
126+
:type images: [MatchAndSearchRequestImages]
117127
"""
118128

119129
self._images = images
@@ -141,6 +151,52 @@ def group_ids(self, group_ids):
141151

142152
self._group_ids = group_ids
143153

154+
@property
155+
def threshold(self):
156+
"""Gets the threshold of this MatchAndSearchRequest. # noqa: E501
157+
158+
The similarity threshold. # noqa: E501
159+
160+
:return: The threshold of this MatchAndSearchRequest. # noqa: E501
161+
:rtype: float
162+
"""
163+
return self._threshold
164+
165+
@threshold.setter
166+
def threshold(self, threshold):
167+
"""Sets the threshold of this MatchAndSearchRequest.
168+
169+
The similarity threshold. # noqa: E501
170+
171+
:param threshold: The threshold of this MatchAndSearchRequest. # noqa: E501
172+
:type threshold: float
173+
"""
174+
175+
self._threshold = threshold
176+
177+
@property
178+
def limit(self):
179+
"""Gets the limit of this MatchAndSearchRequest. # noqa: E501
180+
181+
The maximum number of results to be returned. # noqa: E501
182+
183+
:return: The limit of this MatchAndSearchRequest. # noqa: E501
184+
:rtype: int
185+
"""
186+
return self._limit
187+
188+
@limit.setter
189+
def limit(self, limit):
190+
"""Sets the limit of this MatchAndSearchRequest.
191+
192+
The maximum number of results to be returned. # noqa: E501
193+
194+
:param limit: The limit of this MatchAndSearchRequest. # noqa: E501
195+
:type limit: int
196+
"""
197+
198+
self._limit = limit
199+
144200
@property
145201
def tenant(self):
146202
"""Gets the tenant of this MatchAndSearchRequest. # noqa: E501
Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
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: 7.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 MatchAndSearchRequestImages(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+
'content': 'str',
37+
'image_url': 'str',
38+
'type': 'ImageSource',
39+
}
40+
41+
attribute_map = {
42+
'content': 'content',
43+
'image_url': 'imageUrl',
44+
'type': 'type',
45+
}
46+
47+
def __init__(self, content=None, image_url=None, type=None, local_vars_configuration=None): # noqa: E501
48+
"""MatchAndSearchRequestImages - 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._content = None
54+
self._image_url = None
55+
self._type = None
56+
self.discriminator = None
57+
58+
if content is not None:
59+
self.content = content
60+
if image_url is not None:
61+
self.image_url = image_url
62+
if type is not None:
63+
self.type = type
64+
65+
@property
66+
def content(self):
67+
"""Gets the content of this MatchAndSearchRequestImages. # noqa: E501
68+
69+
Base64-encoded image. # noqa: E501
70+
71+
:return: The content of this MatchAndSearchRequestImages. # noqa: E501
72+
:rtype: str
73+
"""
74+
return self._content
75+
76+
@content.setter
77+
def content(self, content):
78+
"""Sets the content of this MatchAndSearchRequestImages.
79+
80+
Base64-encoded image. # noqa: E501
81+
82+
:param content: The content of this MatchAndSearchRequestImages. # noqa: E501
83+
:type content: str
84+
"""
85+
86+
self._content = content
87+
88+
@property
89+
def image_url(self):
90+
"""Gets the image_url of this MatchAndSearchRequestImages. # noqa: E501
91+
92+
Image URL. # noqa: E501
93+
94+
:return: The image_url of this MatchAndSearchRequestImages. # noqa: E501
95+
:rtype: str
96+
"""
97+
return self._image_url
98+
99+
@image_url.setter
100+
def image_url(self, image_url):
101+
"""Sets the image_url of this MatchAndSearchRequestImages.
102+
103+
Image URL. # noqa: E501
104+
105+
:param image_url: The image_url of this MatchAndSearchRequestImages. # noqa: E501
106+
:type image_url: str
107+
"""
108+
109+
self._image_url = image_url
110+
111+
@property
112+
def type(self):
113+
"""Gets the type of this MatchAndSearchRequestImages. # noqa: E501
114+
115+
116+
:return: The type of this MatchAndSearchRequestImages. # noqa: E501
117+
:rtype: ImageSource
118+
"""
119+
return self._type
120+
121+
@type.setter
122+
def type(self, type):
123+
"""Sets the type of this MatchAndSearchRequestImages.
124+
125+
126+
:param type: The type of this MatchAndSearchRequestImages. # noqa: E501
127+
:type type: ImageSource
128+
"""
129+
130+
self._type = type
131+
132+
def to_dict(self):
133+
"""Returns the model properties as a dict"""
134+
result = {}
135+
136+
for attr, _ in six.iteritems(self.openapi_types):
137+
value = getattr(self, attr)
138+
if isinstance(value, list):
139+
result[attr] = list(map(
140+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
141+
value
142+
))
143+
elif hasattr(value, "to_dict"):
144+
result[attr] = value.to_dict()
145+
elif isinstance(value, dict):
146+
result[attr] = dict(map(
147+
lambda item: (item[0], item[1].to_dict())
148+
if hasattr(item[1], "to_dict") else item,
149+
value.items()
150+
))
151+
else:
152+
result[attr] = value
153+
154+
return result
155+
156+
def to_str(self):
157+
"""Returns the string representation of the model"""
158+
return pprint.pformat(self.to_dict())
159+
160+
def __repr__(self):
161+
"""For `print` and `pprint`"""
162+
return self.to_str()
163+
164+
def __eq__(self, other):
165+
"""Returns true if both objects are equal"""
166+
if not isinstance(other, MatchAndSearchRequestImages):
167+
return False
168+
169+
return self.to_dict() == other.to_dict()
170+
171+
def __ne__(self, other):
172+
"""Returns true if both objects are not equal"""
173+
if not isinstance(other, MatchAndSearchRequestImages):
174+
return True
175+
176+
return self.to_dict() != other.to_dict()

regula/facesdk/webclient/gen/models/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@
5353
from regula.facesdk.webclient.gen.model.image_source import ImageSource
5454
from regula.facesdk.webclient.gen.model.liveness_type import LivenessType
5555
from regula.facesdk.webclient.gen.model.match_and_search_request import MatchAndSearchRequest
56-
from regula.facesdk.webclient.gen.model.match_and_search_request_all_of import MatchAndSearchRequestAllOf
57-
from regula.facesdk.webclient.gen.model.match_and_search_request_all_of_images import MatchAndSearchRequestAllOfImages
56+
from regula.facesdk.webclient.gen.model.match_and_search_request_images import MatchAndSearchRequestImages
5857
from regula.facesdk.webclient.gen.model.match_and_search_response import MatchAndSearchResponse
5958
from regula.facesdk.webclient.gen.model.match_and_search_response_all_of import MatchAndSearchResponseAllOf
6059
from regula.facesdk.webclient.gen.model.match_and_search_response_all_of_detections import MatchAndSearchResponseAllOfDetections

0 commit comments

Comments
 (0)