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.

Files changed (133) hide show
  1. regula/__init__.py +0 -0
  2. regula/facesdk/__init__.py +0 -0
  3. regula/facesdk/webclient/__init__.py +15 -0
  4. regula/facesdk/webclient/ext/__init__.py +5 -0
  5. regula/facesdk/webclient/ext/api/__init__.py +3 -0
  6. regula/facesdk/webclient/ext/api/group_api.py +36 -0
  7. regula/facesdk/webclient/ext/api/match_api.py +46 -0
  8. regula/facesdk/webclient/ext/api/person_api.py +46 -0
  9. regula/facesdk/webclient/ext/api/sdk.py +28 -0
  10. regula/facesdk/webclient/ext/api/search_api.py +17 -0
  11. regula/facesdk/webclient/ext/common.py +7 -0
  12. regula/facesdk/webclient/ext/models/__init__.py +6 -0
  13. regula/facesdk/webclient/ext/models/detect_request.py +32 -0
  14. regula/facesdk/webclient/ext/models/match_image.py +19 -0
  15. regula/facesdk/webclient/ext/models/match_request.py +34 -0
  16. regula/facesdk/webclient/gen/__init__.py +27 -0
  17. regula/facesdk/webclient/gen/api/__init__.py +3 -0
  18. regula/facesdk/webclient/gen/api/diagnostics_api.py +162 -0
  19. regula/facesdk/webclient/gen/api/group_api.py +1040 -0
  20. regula/facesdk/webclient/gen/api/healthcheck_api.py +283 -0
  21. regula/facesdk/webclient/gen/api/liveness_2_0_api.py +168 -0
  22. regula/facesdk/webclient/gen/api/liveness_api.py +424 -0
  23. regula/facesdk/webclient/gen/api/match_api.py +463 -0
  24. regula/facesdk/webclient/gen/api/person_api.py +1345 -0
  25. regula/facesdk/webclient/gen/api/search_api.py +177 -0
  26. regula/facesdk/webclient/gen/api_client.py +695 -0
  27. regula/facesdk/webclient/gen/apis/__init__.py +22 -0
  28. regula/facesdk/webclient/gen/configuration.py +446 -0
  29. regula/facesdk/webclient/gen/exceptions.py +159 -0
  30. regula/facesdk/webclient/gen/model/__init__.py +5 -0
  31. regula/facesdk/webclient/gen/model/add_image_to_person_request.py +205 -0
  32. regula/facesdk/webclient/gen/model/add_image_to_person_request_image.py +204 -0
  33. regula/facesdk/webclient/gen/model/add_image_to_person_response.py +262 -0
  34. regula/facesdk/webclient/gen/model/attribute_config.py +120 -0
  35. regula/facesdk/webclient/gen/model/attribute_config_list.py +92 -0
  36. regula/facesdk/webclient/gen/model/crop.py +208 -0
  37. regula/facesdk/webclient/gen/model/detect_request.py +204 -0
  38. regula/facesdk/webclient/gen/model/detect_request_attributes.py +120 -0
  39. regula/facesdk/webclient/gen/model/detect_response.py +147 -0
  40. regula/facesdk/webclient/gen/model/detect_response_all_of.py +120 -0
  41. regula/facesdk/webclient/gen/model/detect_result.py +231 -0
  42. regula/facesdk/webclient/gen/model/detection.py +258 -0
  43. regula/facesdk/webclient/gen/model/detection_attributes.py +148 -0
  44. regula/facesdk/webclient/gen/model/detection_face.py +260 -0
  45. regula/facesdk/webclient/gen/model/detection_quality.py +234 -0
  46. regula/facesdk/webclient/gen/model/device_info.py +231 -0
  47. regula/facesdk/webclient/gen/model/face_align_type_quality.py +109 -0
  48. regula/facesdk/webclient/gen/model/face_attribute.py +133 -0
  49. regula/facesdk/webclient/gen/model/face_image_quality_align_type.py +109 -0
  50. regula/facesdk/webclient/gen/model/face_image_quality_groups.py +118 -0
  51. regula/facesdk/webclient/gen/model/face_image_quality_groups_strings.py +118 -0
  52. regula/facesdk/webclient/gen/model/face_image_quality_status.py +103 -0
  53. regula/facesdk/webclient/gen/model/face_quality_config_name.py +238 -0
  54. regula/facesdk/webclient/gen/model/face_quality_scenarios.py +121 -0
  55. regula/facesdk/webclient/gen/model/face_quality_status.py +103 -0
  56. regula/facesdk/webclient/gen/model/face_rectangular.py +92 -0
  57. regula/facesdk/webclient/gen/model/face_sdk_result.py +121 -0
  58. regula/facesdk/webclient/gen/model/face_sdk_result_code.py +217 -0
  59. regula/facesdk/webclient/gen/model/faces_response.py +286 -0
  60. regula/facesdk/webclient/gen/model/faces_response_all_of.py +148 -0
  61. regula/facesdk/webclient/gen/model/filter_op.py +100 -0
  62. regula/facesdk/webclient/gen/model/filter_search_request.py +176 -0
  63. regula/facesdk/webclient/gen/model/group.py +206 -0
  64. regula/facesdk/webclient/gen/model/group_all_of.py +150 -0
  65. regula/facesdk/webclient/gen/model/group_page.py +178 -0
  66. regula/facesdk/webclient/gen/model/group_page_all_of.py +122 -0
  67. regula/facesdk/webclient/gen/model/group_response.py +150 -0
  68. regula/facesdk/webclient/gen/model/group_to_create.py +180 -0
  69. regula/facesdk/webclient/gen/model/image.py +290 -0
  70. regula/facesdk/webclient/gen/model/image_fields.py +258 -0
  71. regula/facesdk/webclient/gen/model/image_fields_image.py +204 -0
  72. regula/facesdk/webclient/gen/model/image_page.py +176 -0
  73. regula/facesdk/webclient/gen/model/image_page_all_of.py +120 -0
  74. regula/facesdk/webclient/gen/model/image_source.py +115 -0
  75. regula/facesdk/webclient/gen/model/liveness_transaction.py +334 -0
  76. regula/facesdk/webclient/gen/model/liveness_type.py +100 -0
  77. regula/facesdk/webclient/gen/model/match_and_search_request.py +178 -0
  78. regula/facesdk/webclient/gen/model/match_and_search_request_all_of.py +178 -0
  79. regula/facesdk/webclient/gen/model/match_and_search_request_all_of_images.py +148 -0
  80. regula/facesdk/webclient/gen/model/match_and_search_response.py +233 -0
  81. regula/facesdk/webclient/gen/model/match_and_search_response_all_of.py +206 -0
  82. regula/facesdk/webclient/gen/model/match_and_search_response_all_of_detections.py +176 -0
  83. regula/facesdk/webclient/gen/model/match_image.py +205 -0
  84. regula/facesdk/webclient/gen/model/match_image_detection.py +178 -0
  85. regula/facesdk/webclient/gen/model/match_image_result.py +316 -0
  86. regula/facesdk/webclient/gen/model/match_request.py +204 -0
  87. regula/facesdk/webclient/gen/model/match_request_output_image_params.py +148 -0
  88. regula/facesdk/webclient/gen/model/match_request_output_image_params_crop.py +212 -0
  89. regula/facesdk/webclient/gen/model/match_response.py +205 -0
  90. regula/facesdk/webclient/gen/model/match_response_all_of.py +178 -0
  91. regula/facesdk/webclient/gen/model/operation_log.py +206 -0
  92. regula/facesdk/webclient/gen/model/output_image_params.py +146 -0
  93. regula/facesdk/webclient/gen/model/page.py +150 -0
  94. regula/facesdk/webclient/gen/model/person.py +318 -0
  95. regula/facesdk/webclient/gen/model/person_all_of.py +206 -0
  96. regula/facesdk/webclient/gen/model/person_created_response.py +178 -0
  97. regula/facesdk/webclient/gen/model/person_fields.py +234 -0
  98. regula/facesdk/webclient/gen/model/person_to_update_fields.py +206 -0
  99. regula/facesdk/webclient/gen/model/person_with_images.py +346 -0
  100. regula/facesdk/webclient/gen/model/person_with_images_all_of.py +122 -0
  101. regula/facesdk/webclient/gen/model/persons_page.py +176 -0
  102. regula/facesdk/webclient/gen/model/persons_page_all_of.py +120 -0
  103. regula/facesdk/webclient/gen/model/process_param.py +226 -0
  104. regula/facesdk/webclient/gen/model/process_param_attributes.py +120 -0
  105. regula/facesdk/webclient/gen/model/quality_config.py +154 -0
  106. regula/facesdk/webclient/gen/model/quality_config_list.py +92 -0
  107. regula/facesdk/webclient/gen/model/quality_detail.py +234 -0
  108. regula/facesdk/webclient/gen/model/quality_details_groups.py +202 -0
  109. regula/facesdk/webclient/gen/model/quality_request.py +146 -0
  110. regula/facesdk/webclient/gen/model/recognize_image.py +346 -0
  111. regula/facesdk/webclient/gen/model/recognize_image_all_of.py +150 -0
  112. regula/facesdk/webclient/gen/model/resize_options.py +178 -0
  113. regula/facesdk/webclient/gen/model/rgb.py +92 -0
  114. regula/facesdk/webclient/gen/model/search_bad_params.py +172 -0
  115. regula/facesdk/webclient/gen/model/search_detection.py +398 -0
  116. regula/facesdk/webclient/gen/model/search_parameters.py +174 -0
  117. regula/facesdk/webclient/gen/model/search_parameters_create_person.py +177 -0
  118. regula/facesdk/webclient/gen/model/search_person.py +372 -0
  119. regula/facesdk/webclient/gen/model/search_person_all_of.py +148 -0
  120. regula/facesdk/webclient/gen/model/search_request.py +338 -0
  121. regula/facesdk/webclient/gen/model/search_request_all_of.py +178 -0
  122. regula/facesdk/webclient/gen/model/search_result.py +313 -0
  123. regula/facesdk/webclient/gen/model/search_result_all_of.py +122 -0
  124. regula/facesdk/webclient/gen/model/transaction_config.py +92 -0
  125. regula/facesdk/webclient/gen/model/transaction_info.py +344 -0
  126. regula/facesdk/webclient/gen/model/update_group.py +150 -0
  127. regula/facesdk/webclient/gen/model_utils.py +2037 -0
  128. regula/facesdk/webclient/gen/models/__init__.py +96 -0
  129. regula/facesdk/webclient/gen/rest.py +346 -0
  130. regula_facesdk_webclient-6.4.198.dev0.dist-info/METADATA +73 -0
  131. regula_facesdk_webclient-6.4.198.dev0.dist-info/RECORD +133 -0
  132. regula_facesdk_webclient-6.4.198.dev0.dist-info/WHEEL +5 -0
  133. regula_facesdk_webclient-6.4.198.dev0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,205 @@
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 AddImageToPersonRequest(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
+ 'tag': 'str',
37
+ 'image': 'AddImageToPersonRequestImage',
38
+ 'threshold': 'float',
39
+ 'limit': 'int',
40
+ }
41
+
42
+ attribute_map = {
43
+ 'tag': 'tag',
44
+ 'image': 'image',
45
+ 'threshold': 'threshold',
46
+ 'limit': 'limit',
47
+ }
48
+
49
+ def __init__(self, tag=None, image=None, threshold=None, limit=None, local_vars_configuration=None): # noqa: E501
50
+ """AddImageToPersonRequest - a model defined in OpenAPI""" # noqa: E501
51
+ if local_vars_configuration is None:
52
+ local_vars_configuration = Configuration()
53
+ self.local_vars_configuration = local_vars_configuration
54
+
55
+ self._tag = None
56
+ self._image = None
57
+ self._threshold = None
58
+ self._limit = None
59
+ self.discriminator = None
60
+
61
+ if tag is not None:
62
+ self.tag = tag
63
+ self.image = image
64
+ if threshold is not None:
65
+ self.threshold = threshold
66
+ if limit is not None:
67
+ self.limit = limit
68
+
69
+ @property
70
+ def tag(self):
71
+ """Gets the tag of this AddImageToPersonRequest. # noqa: E501
72
+
73
+ Session identificator. # noqa: E501
74
+
75
+ :return: The tag of this AddImageToPersonRequest. # noqa: E501
76
+ :rtype: str
77
+ """
78
+ return self._tag
79
+
80
+ @tag.setter
81
+ def tag(self, tag):
82
+ """Sets the tag of this AddImageToPersonRequest.
83
+
84
+ Session identificator. # noqa: E501
85
+
86
+ :param tag: The tag of this AddImageToPersonRequest. # noqa: E501
87
+ :type tag: str
88
+ """
89
+
90
+ self._tag = tag
91
+
92
+ @property
93
+ def image(self):
94
+ """Gets the image of this AddImageToPersonRequest. # noqa: E501
95
+
96
+
97
+ :return: The image of this AddImageToPersonRequest. # noqa: E501
98
+ :rtype: AddImageToPersonRequestImage
99
+ """
100
+ return self._image
101
+
102
+ @image.setter
103
+ def image(self, image):
104
+ """Sets the image of this AddImageToPersonRequest.
105
+
106
+
107
+ :param image: The image of this AddImageToPersonRequest. # noqa: E501
108
+ :type image: AddImageToPersonRequestImage
109
+ """
110
+ if self.local_vars_configuration.client_side_validation and image is None: # noqa: E501
111
+ raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501
112
+
113
+ self._image = image
114
+
115
+ @property
116
+ def threshold(self):
117
+ """Gets the threshold of this AddImageToPersonRequest. # noqa: E501
118
+
119
+ The similarity threshold. # noqa: E501
120
+
121
+ :return: The threshold of this AddImageToPersonRequest. # noqa: E501
122
+ :rtype: float
123
+ """
124
+ return self._threshold
125
+
126
+ @threshold.setter
127
+ def threshold(self, threshold):
128
+ """Sets the threshold of this AddImageToPersonRequest.
129
+
130
+ The similarity threshold. # noqa: E501
131
+
132
+ :param threshold: The threshold of this AddImageToPersonRequest. # noqa: E501
133
+ :type threshold: float
134
+ """
135
+
136
+ self._threshold = threshold
137
+
138
+ @property
139
+ def limit(self):
140
+ """Gets the limit of this AddImageToPersonRequest. # noqa: E501
141
+
142
+ The maximum number of results to be returned. # noqa: E501
143
+
144
+ :return: The limit of this AddImageToPersonRequest. # noqa: E501
145
+ :rtype: int
146
+ """
147
+ return self._limit
148
+
149
+ @limit.setter
150
+ def limit(self, limit):
151
+ """Sets the limit of this AddImageToPersonRequest.
152
+
153
+ The maximum number of results to be returned. # noqa: E501
154
+
155
+ :param limit: The limit of this AddImageToPersonRequest. # noqa: E501
156
+ :type limit: int
157
+ """
158
+
159
+ self._limit = limit
160
+
161
+ def to_dict(self):
162
+ """Returns the model properties as a dict"""
163
+ result = {}
164
+
165
+ for attr, _ in six.iteritems(self.openapi_types):
166
+ value = getattr(self, attr)
167
+ if isinstance(value, list):
168
+ result[attr] = list(map(
169
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
170
+ value
171
+ ))
172
+ elif hasattr(value, "to_dict"):
173
+ result[attr] = value.to_dict()
174
+ elif isinstance(value, dict):
175
+ result[attr] = dict(map(
176
+ lambda item: (item[0], item[1].to_dict())
177
+ if hasattr(item[1], "to_dict") else item,
178
+ value.items()
179
+ ))
180
+ else:
181
+ result[attr] = value
182
+
183
+ return result
184
+
185
+ def to_str(self):
186
+ """Returns the string representation of the model"""
187
+ return pprint.pformat(self.to_dict())
188
+
189
+ def __repr__(self):
190
+ """For `print` and `pprint`"""
191
+ return self.to_str()
192
+
193
+ def __eq__(self, other):
194
+ """Returns true if both objects are equal"""
195
+ if not isinstance(other, AddImageToPersonRequest):
196
+ return False
197
+
198
+ return self.to_dict() == other.to_dict()
199
+
200
+ def __ne__(self, other):
201
+ """Returns true if both objects are not equal"""
202
+ if not isinstance(other, AddImageToPersonRequest):
203
+ return True
204
+
205
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,204 @@
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 AddImageToPersonRequestImage(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_type': 'str',
37
+ 'content': 'str',
38
+ 'image_url': 'str',
39
+ 'resize_options': 'ResizeOptions',
40
+ }
41
+
42
+ attribute_map = {
43
+ 'content_type': 'contentType',
44
+ 'content': 'content',
45
+ 'image_url': 'imageUrl',
46
+ 'resize_options': 'resizeOptions',
47
+ }
48
+
49
+ def __init__(self, content_type=None, content=None, image_url=None, resize_options=None, local_vars_configuration=None): # noqa: E501
50
+ """AddImageToPersonRequestImage - a model defined in OpenAPI""" # noqa: E501
51
+ if local_vars_configuration is None:
52
+ local_vars_configuration = Configuration()
53
+ self.local_vars_configuration = local_vars_configuration
54
+
55
+ self._content_type = None
56
+ self._content = None
57
+ self._image_url = None
58
+ self._resize_options = None
59
+ self.discriminator = None
60
+
61
+ if content_type is not None:
62
+ self.content_type = content_type
63
+ if content is not None:
64
+ self.content = content
65
+ if image_url is not None:
66
+ self.image_url = image_url
67
+ if resize_options is not None:
68
+ self.resize_options = resize_options
69
+
70
+ @property
71
+ def content_type(self):
72
+ """Gets the content_type of this AddImageToPersonRequestImage. # noqa: E501
73
+
74
+ Original media type of the uploaded image. # noqa: E501
75
+
76
+ :return: The content_type of this AddImageToPersonRequestImage. # noqa: E501
77
+ :rtype: str
78
+ """
79
+ return self._content_type
80
+
81
+ @content_type.setter
82
+ def content_type(self, content_type):
83
+ """Sets the content_type of this AddImageToPersonRequestImage.
84
+
85
+ Original media type of the uploaded image. # noqa: E501
86
+
87
+ :param content_type: The content_type of this AddImageToPersonRequestImage. # noqa: E501
88
+ :type content_type: str
89
+ """
90
+
91
+ self._content_type = content_type
92
+
93
+ @property
94
+ def content(self):
95
+ """Gets the content of this AddImageToPersonRequestImage. # noqa: E501
96
+
97
+ Base64-encoded image. # noqa: E501
98
+
99
+ :return: The content of this AddImageToPersonRequestImage. # noqa: E501
100
+ :rtype: str
101
+ """
102
+ return self._content
103
+
104
+ @content.setter
105
+ def content(self, content):
106
+ """Sets the content of this AddImageToPersonRequestImage.
107
+
108
+ Base64-encoded image. # noqa: E501
109
+
110
+ :param content: The content of this AddImageToPersonRequestImage. # noqa: E501
111
+ :type content: str
112
+ """
113
+
114
+ self._content = content
115
+
116
+ @property
117
+ def image_url(self):
118
+ """Gets the image_url of this AddImageToPersonRequestImage. # noqa: E501
119
+
120
+ Image URL. # noqa: E501
121
+
122
+ :return: The image_url of this AddImageToPersonRequestImage. # noqa: E501
123
+ :rtype: str
124
+ """
125
+ return self._image_url
126
+
127
+ @image_url.setter
128
+ def image_url(self, image_url):
129
+ """Sets the image_url of this AddImageToPersonRequestImage.
130
+
131
+ Image URL. # noqa: E501
132
+
133
+ :param image_url: The image_url of this AddImageToPersonRequestImage. # noqa: E501
134
+ :type image_url: str
135
+ """
136
+
137
+ self._image_url = image_url
138
+
139
+ @property
140
+ def resize_options(self):
141
+ """Gets the resize_options of this AddImageToPersonRequestImage. # noqa: E501
142
+
143
+
144
+ :return: The resize_options of this AddImageToPersonRequestImage. # noqa: E501
145
+ :rtype: ResizeOptions
146
+ """
147
+ return self._resize_options
148
+
149
+ @resize_options.setter
150
+ def resize_options(self, resize_options):
151
+ """Sets the resize_options of this AddImageToPersonRequestImage.
152
+
153
+
154
+ :param resize_options: The resize_options of this AddImageToPersonRequestImage. # noqa: E501
155
+ :type resize_options: ResizeOptions
156
+ """
157
+
158
+ self._resize_options = resize_options
159
+
160
+ def to_dict(self):
161
+ """Returns the model properties as a dict"""
162
+ result = {}
163
+
164
+ for attr, _ in six.iteritems(self.openapi_types):
165
+ value = getattr(self, attr)
166
+ if isinstance(value, list):
167
+ result[attr] = list(map(
168
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
169
+ value
170
+ ))
171
+ elif hasattr(value, "to_dict"):
172
+ result[attr] = value.to_dict()
173
+ elif isinstance(value, dict):
174
+ result[attr] = dict(map(
175
+ lambda item: (item[0], item[1].to_dict())
176
+ if hasattr(item[1], "to_dict") else item,
177
+ value.items()
178
+ ))
179
+ else:
180
+ result[attr] = value
181
+
182
+ return result
183
+
184
+ def to_str(self):
185
+ """Returns the string representation of the model"""
186
+ return pprint.pformat(self.to_dict())
187
+
188
+ def __repr__(self):
189
+ """For `print` and `pprint`"""
190
+ return self.to_str()
191
+
192
+ def __eq__(self, other):
193
+ """Returns true if both objects are equal"""
194
+ if not isinstance(other, AddImageToPersonRequestImage):
195
+ return False
196
+
197
+ return self.to_dict() == other.to_dict()
198
+
199
+ def __ne__(self, other):
200
+ """Returns true if both objects are not equal"""
201
+ if not isinstance(other, AddImageToPersonRequestImage):
202
+ return True
203
+
204
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,262 @@
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 AddImageToPersonResponse(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
+ 'id': 'str',
37
+ 'content_type': 'str',
38
+ 'created_at': 'str',
39
+ 'path': 'str',
40
+ 'url': 'str',
41
+ 'metadata': '{str: (bool, date, datetime, dict, float, int, list, str, none_type)}',
42
+ }
43
+
44
+ attribute_map = {
45
+ 'id': 'id',
46
+ 'content_type': 'contentType',
47
+ 'created_at': 'createdAt',
48
+ 'path': 'path',
49
+ 'url': 'url',
50
+ 'metadata': 'metadata',
51
+ }
52
+
53
+ def __init__(self, id=None, content_type=None, created_at=None, path=None, url=None, metadata=None, local_vars_configuration=None): # noqa: E501
54
+ """AddImageToPersonResponse - a model defined in OpenAPI""" # noqa: E501
55
+ if local_vars_configuration is None:
56
+ local_vars_configuration = Configuration()
57
+ self.local_vars_configuration = local_vars_configuration
58
+
59
+ self._id = None
60
+ self._content_type = None
61
+ self._created_at = None
62
+ self._path = None
63
+ self._url = None
64
+ self._metadata = None
65
+ self.discriminator = None
66
+
67
+ if id is not None:
68
+ self.id = id
69
+ if content_type is not None:
70
+ self.content_type = content_type
71
+ if created_at is not None:
72
+ self.created_at = created_at
73
+ if path is not None:
74
+ self.path = path
75
+ if url is not None:
76
+ self.url = url
77
+ if metadata is not None:
78
+ self.metadata = metadata
79
+
80
+ @property
81
+ def id(self):
82
+ """Gets the id of this AddImageToPersonResponse. # noqa: E501
83
+
84
+ Response image ID. The list is sorted by decreasing ID value. # noqa: E501
85
+
86
+ :return: The id of this AddImageToPersonResponse. # noqa: E501
87
+ :rtype: str
88
+ """
89
+ return self._id
90
+
91
+ @id.setter
92
+ def id(self, id):
93
+ """Sets the id of this AddImageToPersonResponse.
94
+
95
+ Response image ID. The list is sorted by decreasing ID value. # noqa: E501
96
+
97
+ :param id: The id of this AddImageToPersonResponse. # noqa: E501
98
+ :type id: str
99
+ """
100
+
101
+ self._id = id
102
+
103
+ @property
104
+ def content_type(self):
105
+ """Gets the content_type of this AddImageToPersonResponse. # noqa: E501
106
+
107
+ Original media type of the returned image. # noqa: E501
108
+
109
+ :return: The content_type of this AddImageToPersonResponse. # noqa: E501
110
+ :rtype: str
111
+ """
112
+ return self._content_type
113
+
114
+ @content_type.setter
115
+ def content_type(self, content_type):
116
+ """Sets the content_type of this AddImageToPersonResponse.
117
+
118
+ Original media type of the returned image. # noqa: E501
119
+
120
+ :param content_type: The content_type of this AddImageToPersonResponse. # noqa: E501
121
+ :type content_type: str
122
+ """
123
+
124
+ self._content_type = content_type
125
+
126
+ @property
127
+ def created_at(self):
128
+ """Gets the created_at of this AddImageToPersonResponse. # noqa: E501
129
+
130
+ Returned image creation date. # noqa: E501
131
+
132
+ :return: The created_at of this AddImageToPersonResponse. # noqa: E501
133
+ :rtype: str
134
+ """
135
+ return self._created_at
136
+
137
+ @created_at.setter
138
+ def created_at(self, created_at):
139
+ """Sets the created_at of this AddImageToPersonResponse.
140
+
141
+ Returned image creation date. # noqa: E501
142
+
143
+ :param created_at: The created_at of this AddImageToPersonResponse. # noqa: E501
144
+ :type created_at: str
145
+ """
146
+
147
+ self._created_at = created_at
148
+
149
+ @property
150
+ def path(self):
151
+ """Gets the path of this AddImageToPersonResponse. # noqa: E501
152
+
153
+ Returned image path. # noqa: E501
154
+
155
+ :return: The path of this AddImageToPersonResponse. # noqa: E501
156
+ :rtype: str
157
+ """
158
+ return self._path
159
+
160
+ @path.setter
161
+ def path(self, path):
162
+ """Sets the path of this AddImageToPersonResponse.
163
+
164
+ Returned image path. # noqa: E501
165
+
166
+ :param path: The path of this AddImageToPersonResponse. # noqa: E501
167
+ :type path: str
168
+ """
169
+
170
+ self._path = path
171
+
172
+ @property
173
+ def url(self):
174
+ """Gets the url of this AddImageToPersonResponse. # noqa: E501
175
+
176
+ Returned image URL. # noqa: E501
177
+
178
+ :return: The url of this AddImageToPersonResponse. # noqa: E501
179
+ :rtype: str
180
+ """
181
+ return self._url
182
+
183
+ @url.setter
184
+ def url(self, url):
185
+ """Sets the url of this AddImageToPersonResponse.
186
+
187
+ Returned image URL. # noqa: E501
188
+
189
+ :param url: The url of this AddImageToPersonResponse. # noqa: E501
190
+ :type url: str
191
+ """
192
+
193
+ self._url = url
194
+
195
+ @property
196
+ def metadata(self):
197
+ """Gets the metadata of this AddImageToPersonResponse. # noqa: E501
198
+
199
+ A free-form object containing person's extended attributes. # noqa: E501
200
+
201
+ :return: The metadata of this AddImageToPersonResponse. # noqa: E501
202
+ :rtype: {str: (bool, date, datetime, dict, float, int, list, str, none_type)}
203
+ """
204
+ return self._metadata
205
+
206
+ @metadata.setter
207
+ def metadata(self, metadata):
208
+ """Sets the metadata of this AddImageToPersonResponse.
209
+
210
+ A free-form object containing person's extended attributes. # noqa: E501
211
+
212
+ :param metadata: The metadata of this AddImageToPersonResponse. # noqa: E501
213
+ :type metadata: {str: (bool, date, datetime, dict, float, int, list, str, none_type)}
214
+ """
215
+
216
+ self._metadata = metadata
217
+
218
+ def to_dict(self):
219
+ """Returns the model properties as a dict"""
220
+ result = {}
221
+
222
+ for attr, _ in six.iteritems(self.openapi_types):
223
+ value = getattr(self, attr)
224
+ if isinstance(value, list):
225
+ result[attr] = list(map(
226
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
227
+ value
228
+ ))
229
+ elif hasattr(value, "to_dict"):
230
+ result[attr] = value.to_dict()
231
+ elif isinstance(value, dict):
232
+ result[attr] = dict(map(
233
+ lambda item: (item[0], item[1].to_dict())
234
+ if hasattr(item[1], "to_dict") else item,
235
+ value.items()
236
+ ))
237
+ else:
238
+ result[attr] = value
239
+
240
+ return result
241
+
242
+ def to_str(self):
243
+ """Returns the string representation of the model"""
244
+ return pprint.pformat(self.to_dict())
245
+
246
+ def __repr__(self):
247
+ """For `print` and `pprint`"""
248
+ return self.to_str()
249
+
250
+ def __eq__(self, other):
251
+ """Returns true if both objects are equal"""
252
+ if not isinstance(other, AddImageToPersonResponse):
253
+ return False
254
+
255
+ return self.to_dict() == other.to_dict()
256
+
257
+ def __ne__(self, other):
258
+ """Returns true if both objects are not equal"""
259
+ if not isinstance(other, AddImageToPersonResponse):
260
+ return True
261
+
262
+ return self.to_dict() != other.to_dict()