regula-facesdk-webclient 7.2.388.dev0__py3-none-any.whl → 8.1.433.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.
- regula/facesdk/webclient/__init__.py +5 -5
- regula/facesdk/webclient/ext/api/group_api.py +2 -27
- regula/facesdk/webclient/ext/api/match_api.py +3 -29
- regula/facesdk/webclient/ext/api/person_api.py +8 -34
- regula/facesdk/webclient/ext/api/sdk.py +5 -3
- regula/facesdk/webclient/ext/api/search_api.py +2 -6
- regula/facesdk/webclient/ext/models/detect_request.py +6 -5
- regula/facesdk/webclient/ext/models/match_image.py +3 -3
- regula/facesdk/webclient/ext/models/match_request.py +7 -5
- regula/facesdk/webclient/gen/__init__.py +349 -18
- regula/facesdk/webclient/gen/api/__init__.py +30 -3
- regula/facesdk/webclient/gen/api/group_api.py +1854 -799
- regula/facesdk/webclient/gen/api/healthcheck_api.py +475 -215
- regula/facesdk/webclient/gen/api/liveness20_api.py +565 -0
- regula/facesdk/webclient/gen/api/match_api.py +801 -355
- regula/facesdk/webclient/gen/api/person_api.py +2399 -1039
- regula/facesdk/webclient/gen/api/search_api.py +286 -130
- regula/facesdk/webclient/gen/api_client.py +577 -476
- regula/facesdk/webclient/gen/api_response.py +21 -0
- regula/facesdk/webclient/gen/configuration.py +231 -105
- regula/facesdk/webclient/gen/exceptions.py +82 -33
- regula/facesdk/webclient/gen/models/__init__.py +202 -95
- regula/facesdk/webclient/gen/models/add_image_to_person_request.py +96 -0
- regula/facesdk/webclient/gen/models/add_image_to_person_request_data.py +92 -0
- regula/facesdk/webclient/gen/models/add_image_to_person_request_image.py +92 -0
- regula/facesdk/webclient/gen/models/add_image_to_person_response.py +92 -0
- regula/facesdk/webclient/gen/models/attribute_config.py +83 -0
- regula/facesdk/webclient/gen/models/attributes_data.py +82 -0
- regula/facesdk/webclient/gen/models/crop.py +88 -0
- regula/facesdk/webclient/gen/models/detail_item.py +136 -0
- regula/facesdk/webclient/gen/models/detect_attributes_details.py +84 -0
- regula/facesdk/webclient/gen/models/detect_details_meta.py +86 -0
- regula/facesdk/webclient/gen/models/detect_meta_data.py +84 -0
- regula/facesdk/webclient/gen/models/detect_request.py +94 -0
- regula/facesdk/webclient/gen/models/detect_request_data.py +90 -0
- regula/facesdk/webclient/gen/models/detect_response.py +89 -0
- regula/facesdk/webclient/gen/models/detect_response_results.py +86 -0
- regula/facesdk/webclient/gen/models/detect_result.py +98 -0
- regula/facesdk/webclient/gen/models/detection.py +98 -0
- regula/facesdk/webclient/gen/models/detection_attributes.py +92 -0
- regula/facesdk/webclient/gen/models/detection_attributes_details_inner.py +132 -0
- regula/facesdk/webclient/gen/models/detection_face.py +90 -0
- regula/facesdk/webclient/gen/models/detection_quality.py +107 -0
- regula/facesdk/webclient/gen/models/device_info.py +111 -0
- regula/facesdk/webclient/gen/models/face_attribute.py +40 -0
- regula/facesdk/webclient/gen/models/face_image_quality_align_type.py +32 -0
- regula/facesdk/webclient/gen/models/face_image_quality_groups.py +35 -0
- regula/facesdk/webclient/gen/models/face_image_quality_groups_strings.py +35 -0
- regula/facesdk/webclient/gen/models/face_image_quality_status.py +30 -0
- regula/facesdk/webclient/gen/models/face_quality_config_name.py +75 -0
- regula/facesdk/webclient/gen/models/face_quality_scenarios.py +37 -0
- regula/facesdk/webclient/gen/models/face_sdk_result.py +83 -0
- regula/facesdk/webclient/gen/models/face_sdk_result_code.py +68 -0
- regula/facesdk/webclient/gen/models/faces_response.py +100 -0
- regula/facesdk/webclient/gen/models/faces_response_data.py +90 -0
- regula/facesdk/webclient/gen/models/filter_op.py +29 -0
- regula/facesdk/webclient/gen/models/filter_search_request.py +87 -0
- regula/facesdk/webclient/gen/models/group.py +89 -0
- regula/facesdk/webclient/gen/models/group_data.py +85 -0
- regula/facesdk/webclient/gen/models/group_page.py +94 -0
- regula/facesdk/webclient/gen/models/group_page_items.py +90 -0
- regula/facesdk/webclient/gen/models/group_response.py +84 -0
- regula/facesdk/webclient/gen/models/group_to_create.py +86 -0
- regula/facesdk/webclient/gen/models/image.py +96 -0
- regula/facesdk/webclient/gen/models/image_fields.py +100 -0
- regula/facesdk/webclient/gen/models/image_fields_image.py +92 -0
- regula/facesdk/webclient/gen/models/image_page.py +94 -0
- regula/facesdk/webclient/gen/models/image_page_items.py +90 -0
- regula/facesdk/webclient/gen/models/image_source.py +34 -0
- regula/facesdk/webclient/gen/models/liveness_type.py +29 -0
- regula/facesdk/webclient/gen/models/match_and_search_request.py +103 -0
- regula/facesdk/webclient/gen/models/match_and_search_request_images_item.py +87 -0
- regula/facesdk/webclient/gen/models/match_and_search_response.py +107 -0
- regula/facesdk/webclient/gen/models/match_and_search_response_data.py +104 -0
- regula/facesdk/webclient/gen/models/match_and_search_response_data_detections_item.py +95 -0
- regula/facesdk/webclient/gen/models/match_image.py +89 -0
- regula/facesdk/webclient/gen/models/match_image_detection.py +95 -0
- regula/facesdk/webclient/gen/models/match_image_result.py +97 -0
- regula/facesdk/webclient/gen/models/match_request.py +102 -0
- regula/facesdk/webclient/gen/models/match_request_data.py +98 -0
- regula/facesdk/webclient/gen/models/match_response.py +105 -0
- regula/facesdk/webclient/gen/models/match_response_data.py +102 -0
- regula/facesdk/webclient/gen/models/operation_log.py +88 -0
- regula/facesdk/webclient/gen/models/output_image_params.py +89 -0
- regula/facesdk/webclient/gen/models/page.py +84 -0
- regula/facesdk/webclient/gen/models/person.py +97 -0
- regula/facesdk/webclient/gen/models/person_data.py +87 -0
- regula/facesdk/webclient/gen/models/person_fields.py +91 -0
- regula/facesdk/webclient/gen/models/person_items.py +90 -0
- regula/facesdk/webclient/gen/models/person_to_update_fields.py +89 -0
- regula/facesdk/webclient/gen/models/person_with_images.py +107 -0
- regula/facesdk/webclient/gen/models/person_with_images_data.py +90 -0
- regula/facesdk/webclient/gen/models/persons_page.py +94 -0
- regula/facesdk/webclient/gen/models/process_param.py +103 -0
- regula/facesdk/webclient/gen/models/process_param_attributes.py +90 -0
- regula/facesdk/webclient/gen/models/quality_config.py +86 -0
- regula/facesdk/webclient/gen/models/quality_detail.py +94 -0
- regula/facesdk/webclient/gen/models/quality_details_groups.py +90 -0
- regula/facesdk/webclient/gen/models/quality_request.py +93 -0
- regula/facesdk/webclient/gen/models/recognize_image.py +100 -0
- regula/facesdk/webclient/gen/models/recognize_image_data.py +84 -0
- regula/facesdk/webclient/gen/models/resize_options.py +86 -0
- regula/facesdk/webclient/gen/models/search_bad_params.py +86 -0
- regula/facesdk/webclient/gen/models/search_detection.py +102 -0
- regula/facesdk/webclient/gen/models/search_parameters.py +95 -0
- regula/facesdk/webclient/gen/models/search_parameters_create_person.py +86 -0
- regula/facesdk/webclient/gen/models/search_person.py +113 -0
- regula/facesdk/webclient/gen/models/search_person_data.py +96 -0
- regula/facesdk/webclient/gen/models/search_request.py +119 -0
- regula/facesdk/webclient/gen/models/search_result.py +92 -0
- regula/facesdk/webclient/gen/models/transaction_info.py +99 -0
- regula/facesdk/webclient/gen/models/transaction_labels.py +84 -0
- regula/facesdk/webclient/gen/models/update_group.py +85 -0
- regula/facesdk/webclient/gen/py.typed +0 -0
- regula/facesdk/webclient/gen/rest.py +136 -232
- {regula_facesdk_webclient-7.2.388.dev0.dist-info → regula_facesdk_webclient-8.1.433.dev0.dist-info}/METADATA +7 -4
- regula_facesdk_webclient-8.1.433.dev0.dist-info/RECORD +125 -0
- {regula_facesdk_webclient-7.2.388.dev0.dist-info → regula_facesdk_webclient-8.1.433.dev0.dist-info}/WHEEL +1 -1
- regula/facesdk/webclient/gen/api/diagnostics_api.py +0 -162
- regula/facesdk/webclient/gen/api/liveness_2_0_api.py +0 -306
- regula/facesdk/webclient/gen/api/liveness_api.py +0 -424
- regula/facesdk/webclient/gen/apis/__init__.py +0 -22
- regula/facesdk/webclient/gen/model/__init__.py +0 -5
- regula/facesdk/webclient/gen/model/add_image_to_person_request.py +0 -261
- regula/facesdk/webclient/gen/model/add_image_to_person_request_image.py +0 -204
- regula/facesdk/webclient/gen/model/add_image_to_person_response.py +0 -262
- regula/facesdk/webclient/gen/model/attribute_config.py +0 -120
- regula/facesdk/webclient/gen/model/attribute_config_list.py +0 -92
- regula/facesdk/webclient/gen/model/crop.py +0 -180
- regula/facesdk/webclient/gen/model/detect_attributes_details.py +0 -150
- regula/facesdk/webclient/gen/model/detect_details_meta.py +0 -178
- regula/facesdk/webclient/gen/model/detect_request.py +0 -232
- regula/facesdk/webclient/gen/model/detect_request_attributes.py +0 -120
- regula/facesdk/webclient/gen/model/detect_response.py +0 -147
- regula/facesdk/webclient/gen/model/detect_response_all_of.py +0 -120
- regula/facesdk/webclient/gen/model/detect_result.py +0 -235
- regula/facesdk/webclient/gen/model/detection.py +0 -230
- regula/facesdk/webclient/gen/model/detection_attributes.py +0 -150
- regula/facesdk/webclient/gen/model/detection_face.py +0 -232
- regula/facesdk/webclient/gen/model/detection_quality.py +0 -234
- regula/facesdk/webclient/gen/model/device_info.py +0 -231
- regula/facesdk/webclient/gen/model/face_align_type_quality.py +0 -109
- regula/facesdk/webclient/gen/model/face_attribute.py +0 -133
- regula/facesdk/webclient/gen/model/face_image_quality_align_type.py +0 -109
- regula/facesdk/webclient/gen/model/face_image_quality_groups.py +0 -118
- regula/facesdk/webclient/gen/model/face_image_quality_groups_strings.py +0 -118
- regula/facesdk/webclient/gen/model/face_image_quality_status.py +0 -103
- regula/facesdk/webclient/gen/model/face_quality_config_name.py +0 -238
- regula/facesdk/webclient/gen/model/face_quality_scenarios.py +0 -124
- regula/facesdk/webclient/gen/model/face_quality_status.py +0 -103
- regula/facesdk/webclient/gen/model/face_rectangular.py +0 -92
- regula/facesdk/webclient/gen/model/face_sdk_result.py +0 -121
- regula/facesdk/webclient/gen/model/face_sdk_result_code.py +0 -217
- regula/facesdk/webclient/gen/model/faces_response.py +0 -258
- regula/facesdk/webclient/gen/model/faces_response_all_of.py +0 -148
- regula/facesdk/webclient/gen/model/filter_op.py +0 -100
- regula/facesdk/webclient/gen/model/filter_search_request.py +0 -176
- regula/facesdk/webclient/gen/model/group.py +0 -206
- regula/facesdk/webclient/gen/model/group_all_of.py +0 -150
- regula/facesdk/webclient/gen/model/group_page.py +0 -178
- regula/facesdk/webclient/gen/model/group_page_all_of.py +0 -122
- regula/facesdk/webclient/gen/model/group_response.py +0 -150
- regula/facesdk/webclient/gen/model/group_to_create.py +0 -180
- regula/facesdk/webclient/gen/model/image.py +0 -318
- regula/facesdk/webclient/gen/model/image_fields.py +0 -258
- regula/facesdk/webclient/gen/model/image_fields_image.py +0 -204
- regula/facesdk/webclient/gen/model/image_page.py +0 -176
- regula/facesdk/webclient/gen/model/image_page_all_of.py +0 -120
- regula/facesdk/webclient/gen/model/image_source.py +0 -115
- regula/facesdk/webclient/gen/model/liveness_transaction.py +0 -334
- regula/facesdk/webclient/gen/model/liveness_type.py +0 -100
- regula/facesdk/webclient/gen/model/match_and_search_request.py +0 -290
- regula/facesdk/webclient/gen/model/match_and_search_request_all_of.py +0 -234
- regula/facesdk/webclient/gen/model/match_and_search_request_all_of_images.py +0 -148
- regula/facesdk/webclient/gen/model/match_and_search_request_images.py +0 -176
- regula/facesdk/webclient/gen/model/match_and_search_response.py +0 -233
- regula/facesdk/webclient/gen/model/match_and_search_response_all_of.py +0 -206
- regula/facesdk/webclient/gen/model/match_and_search_response_all_of_detections.py +0 -176
- regula/facesdk/webclient/gen/model/match_image.py +0 -205
- regula/facesdk/webclient/gen/model/match_image_detection.py +0 -178
- regula/facesdk/webclient/gen/model/match_image_result.py +0 -316
- regula/facesdk/webclient/gen/model/match_request.py +0 -233
- regula/facesdk/webclient/gen/model/match_request_output_image_params.py +0 -148
- regula/facesdk/webclient/gen/model/match_request_output_image_params_crop.py +0 -212
- regula/facesdk/webclient/gen/model/match_response.py +0 -205
- regula/facesdk/webclient/gen/model/match_response_all_of.py +0 -178
- regula/facesdk/webclient/gen/model/operation_log.py +0 -206
- regula/facesdk/webclient/gen/model/output_image_params.py +0 -146
- regula/facesdk/webclient/gen/model/page.py +0 -150
- regula/facesdk/webclient/gen/model/person.py +0 -319
- regula/facesdk/webclient/gen/model/person_all_of.py +0 -206
- regula/facesdk/webclient/gen/model/person_created_response.py +0 -178
- regula/facesdk/webclient/gen/model/person_fields.py +0 -235
- regula/facesdk/webclient/gen/model/person_to_update_fields.py +0 -206
- regula/facesdk/webclient/gen/model/person_with_images.py +0 -347
- regula/facesdk/webclient/gen/model/person_with_images_all_of.py +0 -122
- regula/facesdk/webclient/gen/model/persons_page.py +0 -176
- regula/facesdk/webclient/gen/model/persons_page_all_of.py +0 -120
- regula/facesdk/webclient/gen/model/persons_request.py +0 -291
- regula/facesdk/webclient/gen/model/persons_request_all_of.py +0 -150
- regula/facesdk/webclient/gen/model/process_param.py +0 -226
- regula/facesdk/webclient/gen/model/process_param_attributes.py +0 -120
- regula/facesdk/webclient/gen/model/quality_config.py +0 -154
- regula/facesdk/webclient/gen/model/quality_config_list.py +0 -92
- regula/facesdk/webclient/gen/model/quality_detail.py +0 -234
- regula/facesdk/webclient/gen/model/quality_details_groups.py +0 -202
- regula/facesdk/webclient/gen/model/quality_request.py +0 -146
- regula/facesdk/webclient/gen/model/recognize_image.py +0 -374
- regula/facesdk/webclient/gen/model/recognize_image_all_of.py +0 -150
- regula/facesdk/webclient/gen/model/resize_options.py +0 -178
- regula/facesdk/webclient/gen/model/rgb.py +0 -92
- regula/facesdk/webclient/gen/model/search_bad_params.py +0 -172
- regula/facesdk/webclient/gen/model/search_detection.py +0 -398
- regula/facesdk/webclient/gen/model/search_parameters.py +0 -174
- regula/facesdk/webclient/gen/model/search_parameters_create_person.py +0 -177
- regula/facesdk/webclient/gen/model/search_person.py +0 -373
- regula/facesdk/webclient/gen/model/search_person_all_of.py +0 -148
- regula/facesdk/webclient/gen/model/search_request.py +0 -394
- regula/facesdk/webclient/gen/model/search_request_all_of.py +0 -150
- regula/facesdk/webclient/gen/model/search_result.py +0 -150
- regula/facesdk/webclient/gen/model/search_result_all_of.py +0 -122
- regula/facesdk/webclient/gen/model/transaction_config.py +0 -92
- regula/facesdk/webclient/gen/model/transaction_info.py +0 -344
- regula/facesdk/webclient/gen/model/update_group.py +0 -150
- regula/facesdk/webclient/gen/model_utils.py +0 -2037
- regula_facesdk_webclient-7.2.388.dev0.dist-info/RECORD +0 -138
- {regula_facesdk_webclient-7.2.388.dev0.dist-info → regula_facesdk_webclient-8.1.433.dev0.dist-info}/top_level.txt +0 -0
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
Regula FaceSDK Web API
|
|
5
|
-
|
|
6
|
-
[Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### 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.1.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 ImageFieldsImage(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
|
-
"""ImageFieldsImage - 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 ImageFieldsImage. # noqa: E501
|
|
73
|
-
|
|
74
|
-
Original media type of the uploaded image. # noqa: E501
|
|
75
|
-
|
|
76
|
-
:return: The content_type of this ImageFieldsImage. # 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 ImageFieldsImage.
|
|
84
|
-
|
|
85
|
-
Original media type of the uploaded image. # noqa: E501
|
|
86
|
-
|
|
87
|
-
:param content_type: The content_type of this ImageFieldsImage. # 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 ImageFieldsImage. # noqa: E501
|
|
96
|
-
|
|
97
|
-
Base64 encoded image. # noqa: E501
|
|
98
|
-
|
|
99
|
-
:return: The content of this ImageFieldsImage. # 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 ImageFieldsImage.
|
|
107
|
-
|
|
108
|
-
Base64 encoded image. # noqa: E501
|
|
109
|
-
|
|
110
|
-
:param content: The content of this ImageFieldsImage. # 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 ImageFieldsImage. # noqa: E501
|
|
119
|
-
|
|
120
|
-
Image URL. # noqa: E501
|
|
121
|
-
|
|
122
|
-
:return: The image_url of this ImageFieldsImage. # 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 ImageFieldsImage.
|
|
130
|
-
|
|
131
|
-
Image URL. # noqa: E501
|
|
132
|
-
|
|
133
|
-
:param image_url: The image_url of this ImageFieldsImage. # 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 ImageFieldsImage. # noqa: E501
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
:return: The resize_options of this ImageFieldsImage. # 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 ImageFieldsImage.
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
:param resize_options: The resize_options of this ImageFieldsImage. # 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, ImageFieldsImage):
|
|
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, ImageFieldsImage):
|
|
202
|
-
return True
|
|
203
|
-
|
|
204
|
-
return self.to_dict() != other.to_dict()
|
|
@@ -1,176 +0,0 @@
|
|
|
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 ImagePage(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
|
-
'page': 'int',
|
|
37
|
-
'total_pages': 'int',
|
|
38
|
-
'items': '[Image]',
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
attribute_map = {
|
|
42
|
-
'page': 'page',
|
|
43
|
-
'total_pages': 'totalPages',
|
|
44
|
-
'items': 'items',
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
def __init__(self, page=None, total_pages=None, items=None, local_vars_configuration=None): # noqa: E501
|
|
48
|
-
"""ImagePage - 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._page = None
|
|
54
|
-
self._total_pages = None
|
|
55
|
-
self._items = None
|
|
56
|
-
self.discriminator = None
|
|
57
|
-
|
|
58
|
-
if page is not None:
|
|
59
|
-
self.page = page
|
|
60
|
-
if total_pages is not None:
|
|
61
|
-
self.total_pages = total_pages
|
|
62
|
-
if items is not None:
|
|
63
|
-
self.items = items
|
|
64
|
-
|
|
65
|
-
@property
|
|
66
|
-
def page(self):
|
|
67
|
-
"""Gets the page of this ImagePage. # noqa: E501
|
|
68
|
-
|
|
69
|
-
Current page number. # noqa: E501
|
|
70
|
-
|
|
71
|
-
:return: The page of this ImagePage. # noqa: E501
|
|
72
|
-
:rtype: int
|
|
73
|
-
"""
|
|
74
|
-
return self._page
|
|
75
|
-
|
|
76
|
-
@page.setter
|
|
77
|
-
def page(self, page):
|
|
78
|
-
"""Sets the page of this ImagePage.
|
|
79
|
-
|
|
80
|
-
Current page number. # noqa: E501
|
|
81
|
-
|
|
82
|
-
:param page: The page of this ImagePage. # noqa: E501
|
|
83
|
-
:type page: int
|
|
84
|
-
"""
|
|
85
|
-
|
|
86
|
-
self._page = page
|
|
87
|
-
|
|
88
|
-
@property
|
|
89
|
-
def total_pages(self):
|
|
90
|
-
"""Gets the total_pages of this ImagePage. # noqa: E501
|
|
91
|
-
|
|
92
|
-
Total number of pages. # noqa: E501
|
|
93
|
-
|
|
94
|
-
:return: The total_pages of this ImagePage. # noqa: E501
|
|
95
|
-
:rtype: int
|
|
96
|
-
"""
|
|
97
|
-
return self._total_pages
|
|
98
|
-
|
|
99
|
-
@total_pages.setter
|
|
100
|
-
def total_pages(self, total_pages):
|
|
101
|
-
"""Sets the total_pages of this ImagePage.
|
|
102
|
-
|
|
103
|
-
Total number of pages. # noqa: E501
|
|
104
|
-
|
|
105
|
-
:param total_pages: The total_pages of this ImagePage. # noqa: E501
|
|
106
|
-
:type total_pages: int
|
|
107
|
-
"""
|
|
108
|
-
|
|
109
|
-
self._total_pages = total_pages
|
|
110
|
-
|
|
111
|
-
@property
|
|
112
|
-
def items(self):
|
|
113
|
-
"""Gets the items of this ImagePage. # noqa: E501
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
:return: The items of this ImagePage. # noqa: E501
|
|
117
|
-
:rtype: [Image]
|
|
118
|
-
"""
|
|
119
|
-
return self._items
|
|
120
|
-
|
|
121
|
-
@items.setter
|
|
122
|
-
def items(self, items):
|
|
123
|
-
"""Sets the items of this ImagePage.
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
:param items: The items of this ImagePage. # noqa: E501
|
|
127
|
-
:type items: [Image]
|
|
128
|
-
"""
|
|
129
|
-
|
|
130
|
-
self._items = items
|
|
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, ImagePage):
|
|
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, ImagePage):
|
|
174
|
-
return True
|
|
175
|
-
|
|
176
|
-
return self.to_dict() != other.to_dict()
|
|
@@ -1,120 +0,0 @@
|
|
|
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 ImagePageAllOf(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
|
-
'items': '[Image]',
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
attribute_map = {
|
|
40
|
-
'items': 'items',
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
def __init__(self, items=None, local_vars_configuration=None): # noqa: E501
|
|
44
|
-
"""ImagePageAllOf - a model defined in OpenAPI""" # noqa: E501
|
|
45
|
-
if local_vars_configuration is None:
|
|
46
|
-
local_vars_configuration = Configuration()
|
|
47
|
-
self.local_vars_configuration = local_vars_configuration
|
|
48
|
-
|
|
49
|
-
self._items = None
|
|
50
|
-
self.discriminator = None
|
|
51
|
-
|
|
52
|
-
if items is not None:
|
|
53
|
-
self.items = items
|
|
54
|
-
|
|
55
|
-
@property
|
|
56
|
-
def items(self):
|
|
57
|
-
"""Gets the items of this ImagePageAllOf. # noqa: E501
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
:return: The items of this ImagePageAllOf. # noqa: E501
|
|
61
|
-
:rtype: [Image]
|
|
62
|
-
"""
|
|
63
|
-
return self._items
|
|
64
|
-
|
|
65
|
-
@items.setter
|
|
66
|
-
def items(self, items):
|
|
67
|
-
"""Sets the items of this ImagePageAllOf.
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
:param items: The items of this ImagePageAllOf. # noqa: E501
|
|
71
|
-
:type items: [Image]
|
|
72
|
-
"""
|
|
73
|
-
|
|
74
|
-
self._items = items
|
|
75
|
-
|
|
76
|
-
def to_dict(self):
|
|
77
|
-
"""Returns the model properties as a dict"""
|
|
78
|
-
result = {}
|
|
79
|
-
|
|
80
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
81
|
-
value = getattr(self, attr)
|
|
82
|
-
if isinstance(value, list):
|
|
83
|
-
result[attr] = list(map(
|
|
84
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
85
|
-
value
|
|
86
|
-
))
|
|
87
|
-
elif hasattr(value, "to_dict"):
|
|
88
|
-
result[attr] = value.to_dict()
|
|
89
|
-
elif isinstance(value, dict):
|
|
90
|
-
result[attr] = dict(map(
|
|
91
|
-
lambda item: (item[0], item[1].to_dict())
|
|
92
|
-
if hasattr(item[1], "to_dict") else item,
|
|
93
|
-
value.items()
|
|
94
|
-
))
|
|
95
|
-
else:
|
|
96
|
-
result[attr] = value
|
|
97
|
-
|
|
98
|
-
return result
|
|
99
|
-
|
|
100
|
-
def to_str(self):
|
|
101
|
-
"""Returns the string representation of the model"""
|
|
102
|
-
return pprint.pformat(self.to_dict())
|
|
103
|
-
|
|
104
|
-
def __repr__(self):
|
|
105
|
-
"""For `print` and `pprint`"""
|
|
106
|
-
return self.to_str()
|
|
107
|
-
|
|
108
|
-
def __eq__(self, other):
|
|
109
|
-
"""Returns true if both objects are equal"""
|
|
110
|
-
if not isinstance(other, ImagePageAllOf):
|
|
111
|
-
return False
|
|
112
|
-
|
|
113
|
-
return self.to_dict() == other.to_dict()
|
|
114
|
-
|
|
115
|
-
def __ne__(self, other):
|
|
116
|
-
"""Returns true if both objects are not equal"""
|
|
117
|
-
if not isinstance(other, ImagePageAllOf):
|
|
118
|
-
return True
|
|
119
|
-
|
|
120
|
-
return self.to_dict() != other.to_dict()
|
|
@@ -1,115 +0,0 @@
|
|
|
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 ImageSource(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
|
-
DOCUMENT_PRINTED = int(1)
|
|
30
|
-
|
|
31
|
-
""
|
|
32
|
-
DOCUMENT_RFID = int(2)
|
|
33
|
-
|
|
34
|
-
""
|
|
35
|
-
LIVE = int(3)
|
|
36
|
-
|
|
37
|
-
""
|
|
38
|
-
DOCUMENT_WITH_LIVE = int(4)
|
|
39
|
-
|
|
40
|
-
""
|
|
41
|
-
EXTERNAL = int(5)
|
|
42
|
-
|
|
43
|
-
""
|
|
44
|
-
GHOST = int(6)
|
|
45
|
-
|
|
46
|
-
""
|
|
47
|
-
BARCODE = int(7)
|
|
48
|
-
|
|
49
|
-
allowable_values = [DOCUMENT_PRINTED, DOCUMENT_RFID, LIVE, DOCUMENT_WITH_LIVE, EXTERNAL, GHOST, BARCODE] # noqa: E501
|
|
50
|
-
|
|
51
|
-
"""
|
|
52
|
-
Attributes:
|
|
53
|
-
openapi_types (dict): The key is attribute name
|
|
54
|
-
and the value is attribute type.
|
|
55
|
-
attribute_map (dict): The key is attribute name
|
|
56
|
-
and the value is json key in definition.
|
|
57
|
-
"""
|
|
58
|
-
openapi_types = {
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
attribute_map = {
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
def __init__(self, local_vars_configuration=None): # noqa: E501
|
|
65
|
-
"""ImageSource - a model defined in OpenAPI""" # noqa: E501
|
|
66
|
-
if local_vars_configuration is None:
|
|
67
|
-
local_vars_configuration = Configuration()
|
|
68
|
-
self.local_vars_configuration = local_vars_configuration
|
|
69
|
-
self.discriminator = None
|
|
70
|
-
|
|
71
|
-
def to_dict(self):
|
|
72
|
-
"""Returns the model properties as a dict"""
|
|
73
|
-
result = {}
|
|
74
|
-
|
|
75
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
76
|
-
value = getattr(self, attr)
|
|
77
|
-
if isinstance(value, list):
|
|
78
|
-
result[attr] = list(map(
|
|
79
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
80
|
-
value
|
|
81
|
-
))
|
|
82
|
-
elif hasattr(value, "to_dict"):
|
|
83
|
-
result[attr] = value.to_dict()
|
|
84
|
-
elif isinstance(value, dict):
|
|
85
|
-
result[attr] = dict(map(
|
|
86
|
-
lambda item: (item[0], item[1].to_dict())
|
|
87
|
-
if hasattr(item[1], "to_dict") else item,
|
|
88
|
-
value.items()
|
|
89
|
-
))
|
|
90
|
-
else:
|
|
91
|
-
result[attr] = value
|
|
92
|
-
|
|
93
|
-
return result
|
|
94
|
-
|
|
95
|
-
def to_str(self):
|
|
96
|
-
"""Returns the string representation of the model"""
|
|
97
|
-
return pprint.pformat(self.to_dict())
|
|
98
|
-
|
|
99
|
-
def __repr__(self):
|
|
100
|
-
"""For `print` and `pprint`"""
|
|
101
|
-
return self.to_str()
|
|
102
|
-
|
|
103
|
-
def __eq__(self, other):
|
|
104
|
-
"""Returns true if both objects are equal"""
|
|
105
|
-
if not isinstance(other, ImageSource):
|
|
106
|
-
return False
|
|
107
|
-
|
|
108
|
-
return self.to_dict() == other.to_dict()
|
|
109
|
-
|
|
110
|
-
def __ne__(self, other):
|
|
111
|
-
"""Returns true if both objects are not equal"""
|
|
112
|
-
if not isinstance(other, ImageSource):
|
|
113
|
-
return True
|
|
114
|
-
|
|
115
|
-
return self.to_dict() != other.to_dict()
|