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,146 @@
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 OutputImageParams(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
+ 'background_color': 'RGB',
37
+ 'crop': 'Crop',
38
+ }
39
+
40
+ attribute_map = {
41
+ 'background_color': 'backgroundColor',
42
+ 'crop': 'crop',
43
+ }
44
+
45
+ def __init__(self, background_color=None, crop=None, local_vars_configuration=None): # noqa: E501
46
+ """OutputImageParams - a model defined in OpenAPI""" # noqa: E501
47
+ if local_vars_configuration is None:
48
+ local_vars_configuration = Configuration()
49
+ self.local_vars_configuration = local_vars_configuration
50
+
51
+ self._background_color = None
52
+ self._crop = None
53
+ self.discriminator = None
54
+
55
+ if background_color is not None:
56
+ self.background_color = background_color
57
+ if crop is not None:
58
+ self.crop = crop
59
+
60
+ @property
61
+ def background_color(self):
62
+ """Gets the background_color of this OutputImageParams. # noqa: E501
63
+
64
+
65
+ :return: The background_color of this OutputImageParams. # noqa: E501
66
+ :rtype: RGB
67
+ """
68
+ return self._background_color
69
+
70
+ @background_color.setter
71
+ def background_color(self, background_color):
72
+ """Sets the background_color of this OutputImageParams.
73
+
74
+
75
+ :param background_color: The background_color of this OutputImageParams. # noqa: E501
76
+ :type background_color: RGB
77
+ """
78
+
79
+ self._background_color = background_color
80
+
81
+ @property
82
+ def crop(self):
83
+ """Gets the crop of this OutputImageParams. # noqa: E501
84
+
85
+
86
+ :return: The crop of this OutputImageParams. # noqa: E501
87
+ :rtype: Crop
88
+ """
89
+ return self._crop
90
+
91
+ @crop.setter
92
+ def crop(self, crop):
93
+ """Sets the crop of this OutputImageParams.
94
+
95
+
96
+ :param crop: The crop of this OutputImageParams. # noqa: E501
97
+ :type crop: Crop
98
+ """
99
+
100
+ self._crop = crop
101
+
102
+ def to_dict(self):
103
+ """Returns the model properties as a dict"""
104
+ result = {}
105
+
106
+ for attr, _ in six.iteritems(self.openapi_types):
107
+ value = getattr(self, attr)
108
+ if isinstance(value, list):
109
+ result[attr] = list(map(
110
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
111
+ value
112
+ ))
113
+ elif hasattr(value, "to_dict"):
114
+ result[attr] = value.to_dict()
115
+ elif isinstance(value, dict):
116
+ result[attr] = dict(map(
117
+ lambda item: (item[0], item[1].to_dict())
118
+ if hasattr(item[1], "to_dict") else item,
119
+ value.items()
120
+ ))
121
+ else:
122
+ result[attr] = value
123
+
124
+ return result
125
+
126
+ def to_str(self):
127
+ """Returns the string representation of the model"""
128
+ return pprint.pformat(self.to_dict())
129
+
130
+ def __repr__(self):
131
+ """For `print` and `pprint`"""
132
+ return self.to_str()
133
+
134
+ def __eq__(self, other):
135
+ """Returns true if both objects are equal"""
136
+ if not isinstance(other, OutputImageParams):
137
+ return False
138
+
139
+ return self.to_dict() == other.to_dict()
140
+
141
+ def __ne__(self, other):
142
+ """Returns true if both objects are not equal"""
143
+ if not isinstance(other, OutputImageParams):
144
+ return True
145
+
146
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,150 @@
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 Page(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
+ }
39
+
40
+ attribute_map = {
41
+ 'page': 'page',
42
+ 'total_pages': 'totalPages',
43
+ }
44
+
45
+ def __init__(self, page=None, total_pages=None, local_vars_configuration=None): # noqa: E501
46
+ """Page - a model defined in OpenAPI""" # noqa: E501
47
+ if local_vars_configuration is None:
48
+ local_vars_configuration = Configuration()
49
+ self.local_vars_configuration = local_vars_configuration
50
+
51
+ self._page = None
52
+ self._total_pages = None
53
+ self.discriminator = None
54
+
55
+ if page is not None:
56
+ self.page = page
57
+ if total_pages is not None:
58
+ self.total_pages = total_pages
59
+
60
+ @property
61
+ def page(self):
62
+ """Gets the page of this Page. # noqa: E501
63
+
64
+ Current page number. # noqa: E501
65
+
66
+ :return: The page of this Page. # noqa: E501
67
+ :rtype: int
68
+ """
69
+ return self._page
70
+
71
+ @page.setter
72
+ def page(self, page):
73
+ """Sets the page of this Page.
74
+
75
+ Current page number. # noqa: E501
76
+
77
+ :param page: The page of this Page. # noqa: E501
78
+ :type page: int
79
+ """
80
+
81
+ self._page = page
82
+
83
+ @property
84
+ def total_pages(self):
85
+ """Gets the total_pages of this Page. # noqa: E501
86
+
87
+ Total number of pages. # noqa: E501
88
+
89
+ :return: The total_pages of this Page. # noqa: E501
90
+ :rtype: int
91
+ """
92
+ return self._total_pages
93
+
94
+ @total_pages.setter
95
+ def total_pages(self, total_pages):
96
+ """Sets the total_pages of this Page.
97
+
98
+ Total number of pages. # noqa: E501
99
+
100
+ :param total_pages: The total_pages of this Page. # noqa: E501
101
+ :type total_pages: int
102
+ """
103
+
104
+ self._total_pages = total_pages
105
+
106
+ def to_dict(self):
107
+ """Returns the model properties as a dict"""
108
+ result = {}
109
+
110
+ for attr, _ in six.iteritems(self.openapi_types):
111
+ value = getattr(self, attr)
112
+ if isinstance(value, list):
113
+ result[attr] = list(map(
114
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
115
+ value
116
+ ))
117
+ elif hasattr(value, "to_dict"):
118
+ result[attr] = value.to_dict()
119
+ elif isinstance(value, dict):
120
+ result[attr] = dict(map(
121
+ lambda item: (item[0], item[1].to_dict())
122
+ if hasattr(item[1], "to_dict") else item,
123
+ value.items()
124
+ ))
125
+ else:
126
+ result[attr] = value
127
+
128
+ return result
129
+
130
+ def to_str(self):
131
+ """Returns the string representation of the model"""
132
+ return pprint.pformat(self.to_dict())
133
+
134
+ def __repr__(self):
135
+ """For `print` and `pprint`"""
136
+ return self.to_str()
137
+
138
+ def __eq__(self, other):
139
+ """Returns true if both objects are equal"""
140
+ if not isinstance(other, Page):
141
+ return False
142
+
143
+ return self.to_dict() == other.to_dict()
144
+
145
+ def __ne__(self, other):
146
+ """Returns true if both objects are not equal"""
147
+ if not isinstance(other, Page):
148
+ return True
149
+
150
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,318 @@
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 Person(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
+ 'name': 'str',
37
+ 'external_id': 'str',
38
+ 'metadata': '{str: (bool, date, datetime, dict, float, int, list, str, none_type)}',
39
+ 'groups': '[str]',
40
+ 'ttl': 'int, none_type',
41
+ 'id': 'str',
42
+ 'created_at': 'str',
43
+ 'updated_at': 'str',
44
+ }
45
+
46
+ attribute_map = {
47
+ 'name': 'name',
48
+ 'external_id': 'externalId',
49
+ 'metadata': 'metadata',
50
+ 'groups': 'groups',
51
+ 'ttl': 'ttl',
52
+ 'id': 'id',
53
+ 'created_at': 'createdAt',
54
+ 'updated_at': 'updatedAt',
55
+ }
56
+
57
+ def __init__(self, name=None, external_id=None, metadata=None, groups=None, ttl=None, id=None, created_at=None, updated_at=None, local_vars_configuration=None): # noqa: E501
58
+ """Person - a model defined in OpenAPI""" # noqa: E501
59
+ if local_vars_configuration is None:
60
+ local_vars_configuration = Configuration()
61
+ self.local_vars_configuration = local_vars_configuration
62
+
63
+ self._name = None
64
+ self._external_id = None
65
+ self._metadata = None
66
+ self._groups = None
67
+ self._ttl = None
68
+ self._id = None
69
+ self._created_at = None
70
+ self._updated_at = None
71
+ self.discriminator = None
72
+
73
+ self.name = name
74
+ if external_id is not None:
75
+ self.external_id = external_id
76
+ if metadata is not None:
77
+ self.metadata = metadata
78
+ if groups is not None:
79
+ self.groups = groups
80
+ self.ttl = ttl
81
+ if id is not None:
82
+ self.id = id
83
+ if created_at is not None:
84
+ self.created_at = created_at
85
+ if updated_at is not None:
86
+ self.updated_at = updated_at
87
+
88
+ @property
89
+ def name(self):
90
+ """Gets the name of this Person. # noqa: E501
91
+
92
+ Person's name. # noqa: E501
93
+
94
+ :return: The name of this Person. # noqa: E501
95
+ :rtype: str
96
+ """
97
+ return self._name
98
+
99
+ @name.setter
100
+ def name(self, name):
101
+ """Sets the name of this Person.
102
+
103
+ Person's name. # noqa: E501
104
+
105
+ :param name: The name of this Person. # noqa: E501
106
+ :type name: str
107
+ """
108
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
109
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
110
+
111
+ self._name = name
112
+
113
+ @property
114
+ def external_id(self):
115
+ """Gets the external_id of this Person. # noqa: E501
116
+
117
+ Person's ID, used for linking search results to an ID in an external system. Can be set when creating a Person, stored in the database, and included in the search to return only Persons with the specified ID. Optional. # noqa: E501
118
+
119
+ :return: The external_id of this Person. # noqa: E501
120
+ :rtype: str
121
+ """
122
+ return self._external_id
123
+
124
+ @external_id.setter
125
+ def external_id(self, external_id):
126
+ """Sets the external_id of this Person.
127
+
128
+ Person's ID, used for linking search results to an ID in an external system. Can be set when creating a Person, stored in the database, and included in the search to return only Persons with the specified ID. Optional. # noqa: E501
129
+
130
+ :param external_id: The external_id of this Person. # noqa: E501
131
+ :type external_id: str
132
+ """
133
+
134
+ self._external_id = external_id
135
+
136
+ @property
137
+ def metadata(self):
138
+ """Gets the metadata of this Person. # noqa: E501
139
+
140
+ A free-form object containing person's extended attributes. # noqa: E501
141
+
142
+ :return: The metadata of this Person. # noqa: E501
143
+ :rtype: {str: (bool, date, datetime, dict, float, int, list, str, none_type)}
144
+ """
145
+ return self._metadata
146
+
147
+ @metadata.setter
148
+ def metadata(self, metadata):
149
+ """Sets the metadata of this Person.
150
+
151
+ A free-form object containing person's extended attributes. # noqa: E501
152
+
153
+ :param metadata: The metadata of this Person. # noqa: E501
154
+ :type metadata: {str: (bool, date, datetime, dict, float, int, list, str, none_type)}
155
+ """
156
+
157
+ self._metadata = metadata
158
+
159
+ @property
160
+ def groups(self):
161
+ """Gets the groups of this Person. # noqa: E501
162
+
163
+ List of groups this person belongs to. # noqa: E501
164
+
165
+ :return: The groups of this Person. # noqa: E501
166
+ :rtype: [str]
167
+ """
168
+ return self._groups
169
+
170
+ @groups.setter
171
+ def groups(self, groups):
172
+ """Sets the groups of this Person.
173
+
174
+ List of groups this person belongs to. # noqa: E501
175
+
176
+ :param groups: The groups of this Person. # noqa: E501
177
+ :type groups: [str]
178
+ """
179
+
180
+ self._groups = groups
181
+
182
+ @property
183
+ def ttl(self):
184
+ """Gets the ttl of this Person. # noqa: E501
185
+
186
+ The lifespan of the Person's records, seconds. Optional. # noqa: E501
187
+
188
+ :return: The ttl of this Person. # noqa: E501
189
+ :rtype: int, none_type
190
+ """
191
+ return self._ttl
192
+
193
+ @ttl.setter
194
+ def ttl(self, ttl):
195
+ """Sets the ttl of this Person.
196
+
197
+ The lifespan of the Person's records, seconds. Optional. # noqa: E501
198
+
199
+ :param ttl: The ttl of this Person. # noqa: E501
200
+ :type ttl: int, none_type
201
+ """
202
+
203
+ self._ttl = ttl
204
+
205
+ @property
206
+ def id(self):
207
+ """Gets the id of this Person. # noqa: E501
208
+
209
+ Person ID. The list of persons is sorted by decreasing ID value. # noqa: E501
210
+
211
+ :return: The id of this Person. # noqa: E501
212
+ :rtype: str
213
+ """
214
+ return self._id
215
+
216
+ @id.setter
217
+ def id(self, id):
218
+ """Sets the id of this Person.
219
+
220
+ Person ID. The list of persons is sorted by decreasing ID value. # noqa: E501
221
+
222
+ :param id: The id of this Person. # noqa: E501
223
+ :type id: str
224
+ """
225
+
226
+ self._id = id
227
+
228
+ @property
229
+ def created_at(self):
230
+ """Gets the created_at of this Person. # noqa: E501
231
+
232
+ Person creation date. # noqa: E501
233
+
234
+ :return: The created_at of this Person. # noqa: E501
235
+ :rtype: str
236
+ """
237
+ return self._created_at
238
+
239
+ @created_at.setter
240
+ def created_at(self, created_at):
241
+ """Sets the created_at of this Person.
242
+
243
+ Person creation date. # noqa: E501
244
+
245
+ :param created_at: The created_at of this Person. # noqa: E501
246
+ :type created_at: str
247
+ """
248
+
249
+ self._created_at = created_at
250
+
251
+ @property
252
+ def updated_at(self):
253
+ """Gets the updated_at of this Person. # noqa: E501
254
+
255
+ Person update date. # noqa: E501
256
+
257
+ :return: The updated_at of this Person. # noqa: E501
258
+ :rtype: str
259
+ """
260
+ return self._updated_at
261
+
262
+ @updated_at.setter
263
+ def updated_at(self, updated_at):
264
+ """Sets the updated_at of this Person.
265
+
266
+ Person update date. # noqa: E501
267
+
268
+ :param updated_at: The updated_at of this Person. # noqa: E501
269
+ :type updated_at: str
270
+ """
271
+
272
+ self._updated_at = updated_at
273
+
274
+ def to_dict(self):
275
+ """Returns the model properties as a dict"""
276
+ result = {}
277
+
278
+ for attr, _ in six.iteritems(self.openapi_types):
279
+ value = getattr(self, attr)
280
+ if isinstance(value, list):
281
+ result[attr] = list(map(
282
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
283
+ value
284
+ ))
285
+ elif hasattr(value, "to_dict"):
286
+ result[attr] = value.to_dict()
287
+ elif isinstance(value, dict):
288
+ result[attr] = dict(map(
289
+ lambda item: (item[0], item[1].to_dict())
290
+ if hasattr(item[1], "to_dict") else item,
291
+ value.items()
292
+ ))
293
+ else:
294
+ result[attr] = value
295
+
296
+ return result
297
+
298
+ def to_str(self):
299
+ """Returns the string representation of the model"""
300
+ return pprint.pformat(self.to_dict())
301
+
302
+ def __repr__(self):
303
+ """For `print` and `pprint`"""
304
+ return self.to_str()
305
+
306
+ def __eq__(self, other):
307
+ """Returns true if both objects are equal"""
308
+ if not isinstance(other, Person):
309
+ return False
310
+
311
+ return self.to_dict() == other.to_dict()
312
+
313
+ def __ne__(self, other):
314
+ """Returns true if both objects are not equal"""
315
+ if not isinstance(other, Person):
316
+ return True
317
+
318
+ return self.to_dict() != other.to_dict()