huaweicloudsdkivs 3.1.160__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.
Files changed (58) hide show
  1. huaweicloudsdkivs/__init__.py +0 -0
  2. huaweicloudsdkivs/v2/__init__.py +54 -0
  3. huaweicloudsdkivs/v2/ivs_async_client.py +485 -0
  4. huaweicloudsdkivs/v2/ivs_client.py +482 -0
  5. huaweicloudsdkivs/v2/model/__init__.py +51 -0
  6. huaweicloudsdkivs/v2/model/actions_list.py +142 -0
  7. huaweicloudsdkivs/v2/model/detect_extention_by_id_card_image_request.py +140 -0
  8. huaweicloudsdkivs/v2/model/detect_extention_by_id_card_image_response.py +162 -0
  9. huaweicloudsdkivs/v2/model/detect_extention_by_name_and_id_request.py +140 -0
  10. huaweicloudsdkivs/v2/model/detect_extention_by_name_and_id_response.py +162 -0
  11. huaweicloudsdkivs/v2/model/detect_standard_by_id_card_image_request.py +140 -0
  12. huaweicloudsdkivs/v2/model/detect_standard_by_id_card_image_response.py +162 -0
  13. huaweicloudsdkivs/v2/model/detect_standard_by_name_and_id_request.py +140 -0
  14. huaweicloudsdkivs/v2/model/detect_standard_by_name_and_id_response.py +162 -0
  15. huaweicloudsdkivs/v2/model/detect_standard_by_video_and_id_card_image_request.py +140 -0
  16. huaweicloudsdkivs/v2/model/detect_standard_by_video_and_id_card_image_response.py +162 -0
  17. huaweicloudsdkivs/v2/model/detect_standard_by_video_and_name_and_id_request.py +140 -0
  18. huaweicloudsdkivs/v2/model/detect_standard_by_video_and_name_and_id_response.py +162 -0
  19. huaweicloudsdkivs/v2/model/extention_req_data_by_id_card_image.py +143 -0
  20. huaweicloudsdkivs/v2/model/extention_req_data_by_name_and_id.py +142 -0
  21. huaweicloudsdkivs/v2/model/extention_resp_data_by_id_card_image.py +198 -0
  22. huaweicloudsdkivs/v2/model/extention_resp_data_by_name_and_id.py +173 -0
  23. huaweicloudsdkivs/v2/model/idcard_result.py +341 -0
  24. huaweicloudsdkivs/v2/model/ivs_extention_by_id_card_image_request_body.py +134 -0
  25. huaweicloudsdkivs/v2/model/ivs_extention_by_id_card_image_request_body_data.py +115 -0
  26. huaweicloudsdkivs/v2/model/ivs_extention_by_id_card_image_response_body_result.py +173 -0
  27. huaweicloudsdkivs/v2/model/ivs_extention_by_name_and_id_request_body.py +134 -0
  28. huaweicloudsdkivs/v2/model/ivs_extention_by_name_and_id_request_body_data.py +115 -0
  29. huaweicloudsdkivs/v2/model/ivs_extention_by_name_and_id_response_body_result.py +173 -0
  30. huaweicloudsdkivs/v2/model/ivs_standard_by_id_card_image_request_body.py +134 -0
  31. huaweicloudsdkivs/v2/model/ivs_standard_by_id_card_image_request_body_data.py +115 -0
  32. huaweicloudsdkivs/v2/model/ivs_standard_by_id_card_image_response_body_result.py +170 -0
  33. huaweicloudsdkivs/v2/model/ivs_standard_by_name_and_id_request_body.py +134 -0
  34. huaweicloudsdkivs/v2/model/ivs_standard_by_name_and_id_request_body_data.py +115 -0
  35. huaweicloudsdkivs/v2/model/ivs_standard_by_name_and_id_response_body_result.py +170 -0
  36. huaweicloudsdkivs/v2/model/ivs_standard_by_video_and_id_card_image_request_body.py +134 -0
  37. huaweicloudsdkivs/v2/model/ivs_standard_by_video_and_id_card_image_request_body_data.py +115 -0
  38. huaweicloudsdkivs/v2/model/ivs_standard_by_video_and_id_card_image_response_body_result.py +170 -0
  39. huaweicloudsdkivs/v2/model/ivs_standard_by_video_and_name_and_id_request_body.py +134 -0
  40. huaweicloudsdkivs/v2/model/ivs_standard_by_video_and_name_and_id_request_body_data.py +115 -0
  41. huaweicloudsdkivs/v2/model/ivs_standard_by_video_and_name_and_id_response_body_result.py +170 -0
  42. huaweicloudsdkivs/v2/model/meta.py +115 -0
  43. huaweicloudsdkivs/v2/model/req_data_by_id_card_image.py +229 -0
  44. huaweicloudsdkivs/v2/model/req_data_by_video_and_id_card_image.py +257 -0
  45. huaweicloudsdkivs/v2/model/resp_data_by_id_card_image.py +222 -0
  46. huaweicloudsdkivs/v2/model/resp_data_by_video_and_id_card_image.py +246 -0
  47. huaweicloudsdkivs/v2/model/standard_req_data_by_name_and_id.py +228 -0
  48. huaweicloudsdkivs/v2/model/standard_req_data_by_video_and_name_and_id.py +256 -0
  49. huaweicloudsdkivs/v2/model/standard_resp_data_by_name_and_id.py +198 -0
  50. huaweicloudsdkivs/v2/model/standard_resp_data_by_video_and_name_and_id.py +222 -0
  51. huaweicloudsdkivs/v2/model/video_result.py +170 -0
  52. huaweicloudsdkivs/v2/region/__init__.py +0 -0
  53. huaweicloudsdkivs/v2/region/ivs_region.py +34 -0
  54. huaweicloudsdkivs-3.1.160.dist-info/LICENSE +13 -0
  55. huaweicloudsdkivs-3.1.160.dist-info/METADATA +26 -0
  56. huaweicloudsdkivs-3.1.160.dist-info/RECORD +58 -0
  57. huaweicloudsdkivs-3.1.160.dist-info/WHEEL +5 -0
  58. huaweicloudsdkivs-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,229 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ReqDataByIdCardImage:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'idcard_image1': 'str',
21
+ 'idcard_image2': 'str',
22
+ 'face_image': 'str',
23
+ 'detail': 'bool',
24
+ 'crop': 'bool'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'idcard_image1': 'idcard_image1',
29
+ 'idcard_image2': 'idcard_image2',
30
+ 'face_image': 'face_image',
31
+ 'detail': 'detail',
32
+ 'crop': 'crop'
33
+ }
34
+
35
+ def __init__(self, idcard_image1=None, idcard_image2=None, face_image=None, detail=None, crop=None):
36
+ r"""ReqDataByIdCardImage
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param idcard_image1: 身份证人像面图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
41
+ :type idcard_image1: str
42
+ :param idcard_image2: 身份证国徽面图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
43
+ :type idcard_image2: str
44
+ :param face_image: 现场人像图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
45
+ :type face_image: str
46
+ :param detail: 响应参数similarity是否详细显示,默认为false。 - true表示响应中的similarity为0~1000的小数。 - false表示响应中的similarity为0~100的整数。
47
+ :type detail: bool
48
+ :param crop: 是否允许对入参face_image进行人脸检测及图片裁剪,默认为true,表示允许。
49
+ :type crop: bool
50
+ """
51
+
52
+
53
+
54
+ self._idcard_image1 = None
55
+ self._idcard_image2 = None
56
+ self._face_image = None
57
+ self._detail = None
58
+ self._crop = None
59
+ self.discriminator = None
60
+
61
+ self.idcard_image1 = idcard_image1
62
+ if idcard_image2 is not None:
63
+ self.idcard_image2 = idcard_image2
64
+ self.face_image = face_image
65
+ if detail is not None:
66
+ self.detail = detail
67
+ if crop is not None:
68
+ self.crop = crop
69
+
70
+ @property
71
+ def idcard_image1(self):
72
+ r"""Gets the idcard_image1 of this ReqDataByIdCardImage.
73
+
74
+ 身份证人像面图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
75
+
76
+ :return: The idcard_image1 of this ReqDataByIdCardImage.
77
+ :rtype: str
78
+ """
79
+ return self._idcard_image1
80
+
81
+ @idcard_image1.setter
82
+ def idcard_image1(self, idcard_image1):
83
+ r"""Sets the idcard_image1 of this ReqDataByIdCardImage.
84
+
85
+ 身份证人像面图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
86
+
87
+ :param idcard_image1: The idcard_image1 of this ReqDataByIdCardImage.
88
+ :type idcard_image1: str
89
+ """
90
+ self._idcard_image1 = idcard_image1
91
+
92
+ @property
93
+ def idcard_image2(self):
94
+ r"""Gets the idcard_image2 of this ReqDataByIdCardImage.
95
+
96
+ 身份证国徽面图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
97
+
98
+ :return: The idcard_image2 of this ReqDataByIdCardImage.
99
+ :rtype: str
100
+ """
101
+ return self._idcard_image2
102
+
103
+ @idcard_image2.setter
104
+ def idcard_image2(self, idcard_image2):
105
+ r"""Sets the idcard_image2 of this ReqDataByIdCardImage.
106
+
107
+ 身份证国徽面图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
108
+
109
+ :param idcard_image2: The idcard_image2 of this ReqDataByIdCardImage.
110
+ :type idcard_image2: str
111
+ """
112
+ self._idcard_image2 = idcard_image2
113
+
114
+ @property
115
+ def face_image(self):
116
+ r"""Gets the face_image of this ReqDataByIdCardImage.
117
+
118
+ 现场人像图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
119
+
120
+ :return: The face_image of this ReqDataByIdCardImage.
121
+ :rtype: str
122
+ """
123
+ return self._face_image
124
+
125
+ @face_image.setter
126
+ def face_image(self, face_image):
127
+ r"""Sets the face_image of this ReqDataByIdCardImage.
128
+
129
+ 现场人像图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
130
+
131
+ :param face_image: The face_image of this ReqDataByIdCardImage.
132
+ :type face_image: str
133
+ """
134
+ self._face_image = face_image
135
+
136
+ @property
137
+ def detail(self):
138
+ r"""Gets the detail of this ReqDataByIdCardImage.
139
+
140
+ 响应参数similarity是否详细显示,默认为false。 - true表示响应中的similarity为0~1000的小数。 - false表示响应中的similarity为0~100的整数。
141
+
142
+ :return: The detail of this ReqDataByIdCardImage.
143
+ :rtype: bool
144
+ """
145
+ return self._detail
146
+
147
+ @detail.setter
148
+ def detail(self, detail):
149
+ r"""Sets the detail of this ReqDataByIdCardImage.
150
+
151
+ 响应参数similarity是否详细显示,默认为false。 - true表示响应中的similarity为0~1000的小数。 - false表示响应中的similarity为0~100的整数。
152
+
153
+ :param detail: The detail of this ReqDataByIdCardImage.
154
+ :type detail: bool
155
+ """
156
+ self._detail = detail
157
+
158
+ @property
159
+ def crop(self):
160
+ r"""Gets the crop of this ReqDataByIdCardImage.
161
+
162
+ 是否允许对入参face_image进行人脸检测及图片裁剪,默认为true,表示允许。
163
+
164
+ :return: The crop of this ReqDataByIdCardImage.
165
+ :rtype: bool
166
+ """
167
+ return self._crop
168
+
169
+ @crop.setter
170
+ def crop(self, crop):
171
+ r"""Sets the crop of this ReqDataByIdCardImage.
172
+
173
+ 是否允许对入参face_image进行人脸检测及图片裁剪,默认为true,表示允许。
174
+
175
+ :param crop: The crop of this ReqDataByIdCardImage.
176
+ :type crop: bool
177
+ """
178
+ self._crop = crop
179
+
180
+ def to_dict(self):
181
+ """Returns the model properties as a dict"""
182
+ result = {}
183
+
184
+ for attr, _ in six.iteritems(self.openapi_types):
185
+ value = getattr(self, attr)
186
+ if isinstance(value, list):
187
+ result[attr] = list(map(
188
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
189
+ value
190
+ ))
191
+ elif hasattr(value, "to_dict"):
192
+ result[attr] = value.to_dict()
193
+ elif isinstance(value, dict):
194
+ result[attr] = dict(map(
195
+ lambda item: (item[0], item[1].to_dict())
196
+ if hasattr(item[1], "to_dict") else item,
197
+ value.items()
198
+ ))
199
+ else:
200
+ if attr in self.sensitive_list:
201
+ result[attr] = "****"
202
+ else:
203
+ result[attr] = value
204
+
205
+ return result
206
+
207
+ def to_str(self):
208
+ """Returns the string representation of the model"""
209
+ import simplejson as json
210
+ if six.PY2:
211
+ import sys
212
+ reload(sys)
213
+ sys.setdefaultencoding("utf-8")
214
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
215
+
216
+ def __repr__(self):
217
+ """For `print`"""
218
+ return self.to_str()
219
+
220
+ def __eq__(self, other):
221
+ """Returns true if both objects are equal"""
222
+ if not isinstance(other, ReqDataByIdCardImage):
223
+ return False
224
+
225
+ return self.__dict__ == other.__dict__
226
+
227
+ def __ne__(self, other):
228
+ """Returns true if both objects are not equal"""
229
+ return not self == other
@@ -0,0 +1,257 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ReqDataByVideoAndIdCardImage:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'idcard_image1': 'str',
21
+ 'idcard_image2': 'str',
22
+ 'video': 'str',
23
+ 'actions': 'str',
24
+ 'nod_threshold': 'float',
25
+ 'detail': 'bool'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'idcard_image1': 'idcard_image1',
30
+ 'idcard_image2': 'idcard_image2',
31
+ 'video': 'video',
32
+ 'actions': 'actions',
33
+ 'nod_threshold': 'nod_threshold',
34
+ 'detail': 'detail'
35
+ }
36
+
37
+ def __init__(self, idcard_image1=None, idcard_image2=None, video=None, actions=None, nod_threshold=None, detail=None):
38
+ r"""ReqDataByVideoAndIdCardImage
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param idcard_image1: 身份证人像面图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
43
+ :type idcard_image1: str
44
+ :param idcard_image2: 身份证国徽面图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
45
+ :type idcard_image2: str
46
+ :param video: 现场拍摄人像视频数据,使用base64编码,要求base64编码后大小不超过10M。
47
+ :type video: str
48
+ :param actions: 动作代码顺序列表,英文逗号(,)分隔。建议单动作,目前支持的动作有: • 1:左摇头 • 2:右摇头 • 3:点头 • 4:嘴部动作
49
+ :type actions: str
50
+ :param nod_threshold: 该参数为点头动作幅度的判断门限,取值范围:[1,90],默认为10,单位为度。该值设置越大,则越难判断为点头。
51
+ :type nod_threshold: float
52
+ :param detail: 响应参数similarity是否详细显示,默认为false。 - true表示响应中的similarity为0~1000的小数。 - false表示响应中的similarity为0~100的整数。
53
+ :type detail: bool
54
+ """
55
+
56
+
57
+
58
+ self._idcard_image1 = None
59
+ self._idcard_image2 = None
60
+ self._video = None
61
+ self._actions = None
62
+ self._nod_threshold = None
63
+ self._detail = None
64
+ self.discriminator = None
65
+
66
+ self.idcard_image1 = idcard_image1
67
+ if idcard_image2 is not None:
68
+ self.idcard_image2 = idcard_image2
69
+ self.video = video
70
+ self.actions = actions
71
+ if nod_threshold is not None:
72
+ self.nod_threshold = nod_threshold
73
+ if detail is not None:
74
+ self.detail = detail
75
+
76
+ @property
77
+ def idcard_image1(self):
78
+ r"""Gets the idcard_image1 of this ReqDataByVideoAndIdCardImage.
79
+
80
+ 身份证人像面图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
81
+
82
+ :return: The idcard_image1 of this ReqDataByVideoAndIdCardImage.
83
+ :rtype: str
84
+ """
85
+ return self._idcard_image1
86
+
87
+ @idcard_image1.setter
88
+ def idcard_image1(self, idcard_image1):
89
+ r"""Sets the idcard_image1 of this ReqDataByVideoAndIdCardImage.
90
+
91
+ 身份证人像面图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
92
+
93
+ :param idcard_image1: The idcard_image1 of this ReqDataByVideoAndIdCardImage.
94
+ :type idcard_image1: str
95
+ """
96
+ self._idcard_image1 = idcard_image1
97
+
98
+ @property
99
+ def idcard_image2(self):
100
+ r"""Gets the idcard_image2 of this ReqDataByVideoAndIdCardImage.
101
+
102
+ 身份证国徽面图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
103
+
104
+ :return: The idcard_image2 of this ReqDataByVideoAndIdCardImage.
105
+ :rtype: str
106
+ """
107
+ return self._idcard_image2
108
+
109
+ @idcard_image2.setter
110
+ def idcard_image2(self, idcard_image2):
111
+ r"""Sets the idcard_image2 of this ReqDataByVideoAndIdCardImage.
112
+
113
+ 身份证国徽面图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
114
+
115
+ :param idcard_image2: The idcard_image2 of this ReqDataByVideoAndIdCardImage.
116
+ :type idcard_image2: str
117
+ """
118
+ self._idcard_image2 = idcard_image2
119
+
120
+ @property
121
+ def video(self):
122
+ r"""Gets the video of this ReqDataByVideoAndIdCardImage.
123
+
124
+ 现场拍摄人像视频数据,使用base64编码,要求base64编码后大小不超过10M。
125
+
126
+ :return: The video of this ReqDataByVideoAndIdCardImage.
127
+ :rtype: str
128
+ """
129
+ return self._video
130
+
131
+ @video.setter
132
+ def video(self, video):
133
+ r"""Sets the video of this ReqDataByVideoAndIdCardImage.
134
+
135
+ 现场拍摄人像视频数据,使用base64编码,要求base64编码后大小不超过10M。
136
+
137
+ :param video: The video of this ReqDataByVideoAndIdCardImage.
138
+ :type video: str
139
+ """
140
+ self._video = video
141
+
142
+ @property
143
+ def actions(self):
144
+ r"""Gets the actions of this ReqDataByVideoAndIdCardImage.
145
+
146
+ 动作代码顺序列表,英文逗号(,)分隔。建议单动作,目前支持的动作有: • 1:左摇头 • 2:右摇头 • 3:点头 • 4:嘴部动作
147
+
148
+ :return: The actions of this ReqDataByVideoAndIdCardImage.
149
+ :rtype: str
150
+ """
151
+ return self._actions
152
+
153
+ @actions.setter
154
+ def actions(self, actions):
155
+ r"""Sets the actions of this ReqDataByVideoAndIdCardImage.
156
+
157
+ 动作代码顺序列表,英文逗号(,)分隔。建议单动作,目前支持的动作有: • 1:左摇头 • 2:右摇头 • 3:点头 • 4:嘴部动作
158
+
159
+ :param actions: The actions of this ReqDataByVideoAndIdCardImage.
160
+ :type actions: str
161
+ """
162
+ self._actions = actions
163
+
164
+ @property
165
+ def nod_threshold(self):
166
+ r"""Gets the nod_threshold of this ReqDataByVideoAndIdCardImage.
167
+
168
+ 该参数为点头动作幅度的判断门限,取值范围:[1,90],默认为10,单位为度。该值设置越大,则越难判断为点头。
169
+
170
+ :return: The nod_threshold of this ReqDataByVideoAndIdCardImage.
171
+ :rtype: float
172
+ """
173
+ return self._nod_threshold
174
+
175
+ @nod_threshold.setter
176
+ def nod_threshold(self, nod_threshold):
177
+ r"""Sets the nod_threshold of this ReqDataByVideoAndIdCardImage.
178
+
179
+ 该参数为点头动作幅度的判断门限,取值范围:[1,90],默认为10,单位为度。该值设置越大,则越难判断为点头。
180
+
181
+ :param nod_threshold: The nod_threshold of this ReqDataByVideoAndIdCardImage.
182
+ :type nod_threshold: float
183
+ """
184
+ self._nod_threshold = nod_threshold
185
+
186
+ @property
187
+ def detail(self):
188
+ r"""Gets the detail of this ReqDataByVideoAndIdCardImage.
189
+
190
+ 响应参数similarity是否详细显示,默认为false。 - true表示响应中的similarity为0~1000的小数。 - false表示响应中的similarity为0~100的整数。
191
+
192
+ :return: The detail of this ReqDataByVideoAndIdCardImage.
193
+ :rtype: bool
194
+ """
195
+ return self._detail
196
+
197
+ @detail.setter
198
+ def detail(self, detail):
199
+ r"""Sets the detail of this ReqDataByVideoAndIdCardImage.
200
+
201
+ 响应参数similarity是否详细显示,默认为false。 - true表示响应中的similarity为0~1000的小数。 - false表示响应中的similarity为0~100的整数。
202
+
203
+ :param detail: The detail of this ReqDataByVideoAndIdCardImage.
204
+ :type detail: bool
205
+ """
206
+ self._detail = detail
207
+
208
+ def to_dict(self):
209
+ """Returns the model properties as a dict"""
210
+ result = {}
211
+
212
+ for attr, _ in six.iteritems(self.openapi_types):
213
+ value = getattr(self, attr)
214
+ if isinstance(value, list):
215
+ result[attr] = list(map(
216
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
217
+ value
218
+ ))
219
+ elif hasattr(value, "to_dict"):
220
+ result[attr] = value.to_dict()
221
+ elif isinstance(value, dict):
222
+ result[attr] = dict(map(
223
+ lambda item: (item[0], item[1].to_dict())
224
+ if hasattr(item[1], "to_dict") else item,
225
+ value.items()
226
+ ))
227
+ else:
228
+ if attr in self.sensitive_list:
229
+ result[attr] = "****"
230
+ else:
231
+ result[attr] = value
232
+
233
+ return result
234
+
235
+ def to_str(self):
236
+ """Returns the string representation of the model"""
237
+ import simplejson as json
238
+ if six.PY2:
239
+ import sys
240
+ reload(sys)
241
+ sys.setdefaultencoding("utf-8")
242
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
243
+
244
+ def __repr__(self):
245
+ """For `print`"""
246
+ return self.to_str()
247
+
248
+ def __eq__(self, other):
249
+ """Returns true if both objects are equal"""
250
+ if not isinstance(other, ReqDataByVideoAndIdCardImage):
251
+ return False
252
+
253
+ return self.__dict__ == other.__dict__
254
+
255
+ def __ne__(self, other):
256
+ """Returns true if both objects are not equal"""
257
+ return not self == other