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,222 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RespDataByIdCardImage:
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
+ 'verification_result': 'str',
21
+ 'verification_message': 'str',
22
+ 'verification_code': 'int',
23
+ 'similarity': 'str',
24
+ 'idcard_result': 'IdcardResult'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'verification_result': 'verification_result',
29
+ 'verification_message': 'verification_message',
30
+ 'verification_code': 'verification_code',
31
+ 'similarity': 'similarity',
32
+ 'idcard_result': 'idcard_result'
33
+ }
34
+
35
+ def __init__(self, verification_result=None, verification_message=None, verification_code=None, similarity=None, idcard_result=None):
36
+ r"""RespDataByIdCardImage
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param verification_result: 审核校验结果: \"valid\"表示身份审核通过; \"invalid\"表示身份审核不通过; \"nonexistent\"表示数据源没有该身份证号码,这种情况一般是被验证人正在办理户籍迁移,或者被验证人是军人或政要。
41
+ :type verification_result: str
42
+ :param verification_message: 审核校验信息,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
43
+ :type verification_message: str
44
+ :param verification_code: 审核校验代码,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
45
+ :type verification_code: int
46
+ :param similarity: 人像相识度,取值默认范围为[0,100],当入参detail为true时,取值范围为[0,1000]。
47
+ :type similarity: str
48
+ :param idcard_result:
49
+ :type idcard_result: :class:`huaweicloudsdkivs.v2.IdcardResult`
50
+ """
51
+
52
+
53
+
54
+ self._verification_result = None
55
+ self._verification_message = None
56
+ self._verification_code = None
57
+ self._similarity = None
58
+ self._idcard_result = None
59
+ self.discriminator = None
60
+
61
+ self.verification_result = verification_result
62
+ self.verification_message = verification_message
63
+ self.verification_code = verification_code
64
+ self.similarity = similarity
65
+ self.idcard_result = idcard_result
66
+
67
+ @property
68
+ def verification_result(self):
69
+ r"""Gets the verification_result of this RespDataByIdCardImage.
70
+
71
+ 审核校验结果: \"valid\"表示身份审核通过; \"invalid\"表示身份审核不通过; \"nonexistent\"表示数据源没有该身份证号码,这种情况一般是被验证人正在办理户籍迁移,或者被验证人是军人或政要。
72
+
73
+ :return: The verification_result of this RespDataByIdCardImage.
74
+ :rtype: str
75
+ """
76
+ return self._verification_result
77
+
78
+ @verification_result.setter
79
+ def verification_result(self, verification_result):
80
+ r"""Sets the verification_result of this RespDataByIdCardImage.
81
+
82
+ 审核校验结果: \"valid\"表示身份审核通过; \"invalid\"表示身份审核不通过; \"nonexistent\"表示数据源没有该身份证号码,这种情况一般是被验证人正在办理户籍迁移,或者被验证人是军人或政要。
83
+
84
+ :param verification_result: The verification_result of this RespDataByIdCardImage.
85
+ :type verification_result: str
86
+ """
87
+ self._verification_result = verification_result
88
+
89
+ @property
90
+ def verification_message(self):
91
+ r"""Gets the verification_message of this RespDataByIdCardImage.
92
+
93
+ 审核校验信息,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
94
+
95
+ :return: The verification_message of this RespDataByIdCardImage.
96
+ :rtype: str
97
+ """
98
+ return self._verification_message
99
+
100
+ @verification_message.setter
101
+ def verification_message(self, verification_message):
102
+ r"""Sets the verification_message of this RespDataByIdCardImage.
103
+
104
+ 审核校验信息,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
105
+
106
+ :param verification_message: The verification_message of this RespDataByIdCardImage.
107
+ :type verification_message: str
108
+ """
109
+ self._verification_message = verification_message
110
+
111
+ @property
112
+ def verification_code(self):
113
+ r"""Gets the verification_code of this RespDataByIdCardImage.
114
+
115
+ 审核校验代码,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
116
+
117
+ :return: The verification_code of this RespDataByIdCardImage.
118
+ :rtype: int
119
+ """
120
+ return self._verification_code
121
+
122
+ @verification_code.setter
123
+ def verification_code(self, verification_code):
124
+ r"""Sets the verification_code of this RespDataByIdCardImage.
125
+
126
+ 审核校验代码,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
127
+
128
+ :param verification_code: The verification_code of this RespDataByIdCardImage.
129
+ :type verification_code: int
130
+ """
131
+ self._verification_code = verification_code
132
+
133
+ @property
134
+ def similarity(self):
135
+ r"""Gets the similarity of this RespDataByIdCardImage.
136
+
137
+ 人像相识度,取值默认范围为[0,100],当入参detail为true时,取值范围为[0,1000]。
138
+
139
+ :return: The similarity of this RespDataByIdCardImage.
140
+ :rtype: str
141
+ """
142
+ return self._similarity
143
+
144
+ @similarity.setter
145
+ def similarity(self, similarity):
146
+ r"""Sets the similarity of this RespDataByIdCardImage.
147
+
148
+ 人像相识度,取值默认范围为[0,100],当入参detail为true时,取值范围为[0,1000]。
149
+
150
+ :param similarity: The similarity of this RespDataByIdCardImage.
151
+ :type similarity: str
152
+ """
153
+ self._similarity = similarity
154
+
155
+ @property
156
+ def idcard_result(self):
157
+ r"""Gets the idcard_result of this RespDataByIdCardImage.
158
+
159
+ :return: The idcard_result of this RespDataByIdCardImage.
160
+ :rtype: :class:`huaweicloudsdkivs.v2.IdcardResult`
161
+ """
162
+ return self._idcard_result
163
+
164
+ @idcard_result.setter
165
+ def idcard_result(self, idcard_result):
166
+ r"""Sets the idcard_result of this RespDataByIdCardImage.
167
+
168
+ :param idcard_result: The idcard_result of this RespDataByIdCardImage.
169
+ :type idcard_result: :class:`huaweicloudsdkivs.v2.IdcardResult`
170
+ """
171
+ self._idcard_result = idcard_result
172
+
173
+ def to_dict(self):
174
+ """Returns the model properties as a dict"""
175
+ result = {}
176
+
177
+ for attr, _ in six.iteritems(self.openapi_types):
178
+ value = getattr(self, attr)
179
+ if isinstance(value, list):
180
+ result[attr] = list(map(
181
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
182
+ value
183
+ ))
184
+ elif hasattr(value, "to_dict"):
185
+ result[attr] = value.to_dict()
186
+ elif isinstance(value, dict):
187
+ result[attr] = dict(map(
188
+ lambda item: (item[0], item[1].to_dict())
189
+ if hasattr(item[1], "to_dict") else item,
190
+ value.items()
191
+ ))
192
+ else:
193
+ if attr in self.sensitive_list:
194
+ result[attr] = "****"
195
+ else:
196
+ result[attr] = value
197
+
198
+ return result
199
+
200
+ def to_str(self):
201
+ """Returns the string representation of the model"""
202
+ import simplejson as json
203
+ if six.PY2:
204
+ import sys
205
+ reload(sys)
206
+ sys.setdefaultencoding("utf-8")
207
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
208
+
209
+ def __repr__(self):
210
+ """For `print`"""
211
+ return self.to_str()
212
+
213
+ def __eq__(self, other):
214
+ """Returns true if both objects are equal"""
215
+ if not isinstance(other, RespDataByIdCardImage):
216
+ return False
217
+
218
+ return self.__dict__ == other.__dict__
219
+
220
+ def __ne__(self, other):
221
+ """Returns true if both objects are not equal"""
222
+ return not self == other
@@ -0,0 +1,246 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RespDataByVideoAndIdCardImage:
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
+ 'verification_result': 'str',
21
+ 'verification_message': 'str',
22
+ 'verification_code': 'int',
23
+ 'similarity': 'str',
24
+ 'idcard_result': 'IdcardResult',
25
+ 'video_result': 'VideoResult'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'verification_result': 'verification_result',
30
+ 'verification_message': 'verification_message',
31
+ 'verification_code': 'verification_code',
32
+ 'similarity': 'similarity',
33
+ 'idcard_result': 'idcard_result',
34
+ 'video_result': 'video_result'
35
+ }
36
+
37
+ def __init__(self, verification_result=None, verification_message=None, verification_code=None, similarity=None, idcard_result=None, video_result=None):
38
+ r"""RespDataByVideoAndIdCardImage
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param verification_result: 审核校验结果: \"valid\"表示身份审核通过; \"invalid\"表示身份审核不通过; \"nonexistent\"表示数据源没有该身份证号码,这种情况一般是被验证人正在办理户籍迁移,或者被验证人是军人或政要。
43
+ :type verification_result: str
44
+ :param verification_message: 审核校验信息,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
45
+ :type verification_message: str
46
+ :param verification_code: 审核校验代码,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
47
+ :type verification_code: int
48
+ :param similarity: 人像相识度,取值默认范围为[0,100],当入参detail为true时,取值范围为[0,1000]。
49
+ :type similarity: str
50
+ :param idcard_result:
51
+ :type idcard_result: :class:`huaweicloudsdkivs.v2.IdcardResult`
52
+ :param video_result:
53
+ :type video_result: :class:`huaweicloudsdkivs.v2.VideoResult`
54
+ """
55
+
56
+
57
+
58
+ self._verification_result = None
59
+ self._verification_message = None
60
+ self._verification_code = None
61
+ self._similarity = None
62
+ self._idcard_result = None
63
+ self._video_result = None
64
+ self.discriminator = None
65
+
66
+ self.verification_result = verification_result
67
+ self.verification_message = verification_message
68
+ self.verification_code = verification_code
69
+ self.similarity = similarity
70
+ self.idcard_result = idcard_result
71
+ self.video_result = video_result
72
+
73
+ @property
74
+ def verification_result(self):
75
+ r"""Gets the verification_result of this RespDataByVideoAndIdCardImage.
76
+
77
+ 审核校验结果: \"valid\"表示身份审核通过; \"invalid\"表示身份审核不通过; \"nonexistent\"表示数据源没有该身份证号码,这种情况一般是被验证人正在办理户籍迁移,或者被验证人是军人或政要。
78
+
79
+ :return: The verification_result of this RespDataByVideoAndIdCardImage.
80
+ :rtype: str
81
+ """
82
+ return self._verification_result
83
+
84
+ @verification_result.setter
85
+ def verification_result(self, verification_result):
86
+ r"""Sets the verification_result of this RespDataByVideoAndIdCardImage.
87
+
88
+ 审核校验结果: \"valid\"表示身份审核通过; \"invalid\"表示身份审核不通过; \"nonexistent\"表示数据源没有该身份证号码,这种情况一般是被验证人正在办理户籍迁移,或者被验证人是军人或政要。
89
+
90
+ :param verification_result: The verification_result of this RespDataByVideoAndIdCardImage.
91
+ :type verification_result: str
92
+ """
93
+ self._verification_result = verification_result
94
+
95
+ @property
96
+ def verification_message(self):
97
+ r"""Gets the verification_message of this RespDataByVideoAndIdCardImage.
98
+
99
+ 审核校验信息,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
100
+
101
+ :return: The verification_message of this RespDataByVideoAndIdCardImage.
102
+ :rtype: str
103
+ """
104
+ return self._verification_message
105
+
106
+ @verification_message.setter
107
+ def verification_message(self, verification_message):
108
+ r"""Sets the verification_message of this RespDataByVideoAndIdCardImage.
109
+
110
+ 审核校验信息,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
111
+
112
+ :param verification_message: The verification_message of this RespDataByVideoAndIdCardImage.
113
+ :type verification_message: str
114
+ """
115
+ self._verification_message = verification_message
116
+
117
+ @property
118
+ def verification_code(self):
119
+ r"""Gets the verification_code of this RespDataByVideoAndIdCardImage.
120
+
121
+ 审核校验代码,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
122
+
123
+ :return: The verification_code of this RespDataByVideoAndIdCardImage.
124
+ :rtype: int
125
+ """
126
+ return self._verification_code
127
+
128
+ @verification_code.setter
129
+ def verification_code(self, verification_code):
130
+ r"""Sets the verification_code of this RespDataByVideoAndIdCardImage.
131
+
132
+ 审核校验代码,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
133
+
134
+ :param verification_code: The verification_code of this RespDataByVideoAndIdCardImage.
135
+ :type verification_code: int
136
+ """
137
+ self._verification_code = verification_code
138
+
139
+ @property
140
+ def similarity(self):
141
+ r"""Gets the similarity of this RespDataByVideoAndIdCardImage.
142
+
143
+ 人像相识度,取值默认范围为[0,100],当入参detail为true时,取值范围为[0,1000]。
144
+
145
+ :return: The similarity of this RespDataByVideoAndIdCardImage.
146
+ :rtype: str
147
+ """
148
+ return self._similarity
149
+
150
+ @similarity.setter
151
+ def similarity(self, similarity):
152
+ r"""Sets the similarity of this RespDataByVideoAndIdCardImage.
153
+
154
+ 人像相识度,取值默认范围为[0,100],当入参detail为true时,取值范围为[0,1000]。
155
+
156
+ :param similarity: The similarity of this RespDataByVideoAndIdCardImage.
157
+ :type similarity: str
158
+ """
159
+ self._similarity = similarity
160
+
161
+ @property
162
+ def idcard_result(self):
163
+ r"""Gets the idcard_result of this RespDataByVideoAndIdCardImage.
164
+
165
+ :return: The idcard_result of this RespDataByVideoAndIdCardImage.
166
+ :rtype: :class:`huaweicloudsdkivs.v2.IdcardResult`
167
+ """
168
+ return self._idcard_result
169
+
170
+ @idcard_result.setter
171
+ def idcard_result(self, idcard_result):
172
+ r"""Sets the idcard_result of this RespDataByVideoAndIdCardImage.
173
+
174
+ :param idcard_result: The idcard_result of this RespDataByVideoAndIdCardImage.
175
+ :type idcard_result: :class:`huaweicloudsdkivs.v2.IdcardResult`
176
+ """
177
+ self._idcard_result = idcard_result
178
+
179
+ @property
180
+ def video_result(self):
181
+ r"""Gets the video_result of this RespDataByVideoAndIdCardImage.
182
+
183
+ :return: The video_result of this RespDataByVideoAndIdCardImage.
184
+ :rtype: :class:`huaweicloudsdkivs.v2.VideoResult`
185
+ """
186
+ return self._video_result
187
+
188
+ @video_result.setter
189
+ def video_result(self, video_result):
190
+ r"""Sets the video_result of this RespDataByVideoAndIdCardImage.
191
+
192
+ :param video_result: The video_result of this RespDataByVideoAndIdCardImage.
193
+ :type video_result: :class:`huaweicloudsdkivs.v2.VideoResult`
194
+ """
195
+ self._video_result = video_result
196
+
197
+ def to_dict(self):
198
+ """Returns the model properties as a dict"""
199
+ result = {}
200
+
201
+ for attr, _ in six.iteritems(self.openapi_types):
202
+ value = getattr(self, attr)
203
+ if isinstance(value, list):
204
+ result[attr] = list(map(
205
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
206
+ value
207
+ ))
208
+ elif hasattr(value, "to_dict"):
209
+ result[attr] = value.to_dict()
210
+ elif isinstance(value, dict):
211
+ result[attr] = dict(map(
212
+ lambda item: (item[0], item[1].to_dict())
213
+ if hasattr(item[1], "to_dict") else item,
214
+ value.items()
215
+ ))
216
+ else:
217
+ if attr in self.sensitive_list:
218
+ result[attr] = "****"
219
+ else:
220
+ result[attr] = value
221
+
222
+ return result
223
+
224
+ def to_str(self):
225
+ """Returns the string representation of the model"""
226
+ import simplejson as json
227
+ if six.PY2:
228
+ import sys
229
+ reload(sys)
230
+ sys.setdefaultencoding("utf-8")
231
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
232
+
233
+ def __repr__(self):
234
+ """For `print`"""
235
+ return self.to_str()
236
+
237
+ def __eq__(self, other):
238
+ """Returns true if both objects are equal"""
239
+ if not isinstance(other, RespDataByVideoAndIdCardImage):
240
+ return False
241
+
242
+ return self.__dict__ == other.__dict__
243
+
244
+ def __ne__(self, other):
245
+ """Returns true if both objects are not equal"""
246
+ return not self == other
@@ -0,0 +1,228 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class StandardReqDataByNameAndId:
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
+ 'verification_name': 'str',
21
+ 'verification_id': 'str',
22
+ 'face_image': 'str',
23
+ 'detail': 'bool',
24
+ 'crop': 'bool'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'verification_name': 'verification_name',
29
+ 'verification_id': 'verification_id',
30
+ 'face_image': 'face_image',
31
+ 'detail': 'detail',
32
+ 'crop': 'crop'
33
+ }
34
+
35
+ def __init__(self, verification_name=None, verification_id=None, face_image=None, detail=None, crop=None):
36
+ r"""StandardReqDataByNameAndId
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param verification_name: 被验证人的姓名。
41
+ :type verification_name: str
42
+ :param verification_id: 被验证人的身份证号码。
43
+ :type verification_id: 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._verification_name = None
55
+ self._verification_id = None
56
+ self._face_image = None
57
+ self._detail = None
58
+ self._crop = None
59
+ self.discriminator = None
60
+
61
+ self.verification_name = verification_name
62
+ self.verification_id = verification_id
63
+ self.face_image = face_image
64
+ if detail is not None:
65
+ self.detail = detail
66
+ if crop is not None:
67
+ self.crop = crop
68
+
69
+ @property
70
+ def verification_name(self):
71
+ r"""Gets the verification_name of this StandardReqDataByNameAndId.
72
+
73
+ 被验证人的姓名。
74
+
75
+ :return: The verification_name of this StandardReqDataByNameAndId.
76
+ :rtype: str
77
+ """
78
+ return self._verification_name
79
+
80
+ @verification_name.setter
81
+ def verification_name(self, verification_name):
82
+ r"""Sets the verification_name of this StandardReqDataByNameAndId.
83
+
84
+ 被验证人的姓名。
85
+
86
+ :param verification_name: The verification_name of this StandardReqDataByNameAndId.
87
+ :type verification_name: str
88
+ """
89
+ self._verification_name = verification_name
90
+
91
+ @property
92
+ def verification_id(self):
93
+ r"""Gets the verification_id of this StandardReqDataByNameAndId.
94
+
95
+ 被验证人的身份证号码。
96
+
97
+ :return: The verification_id of this StandardReqDataByNameAndId.
98
+ :rtype: str
99
+ """
100
+ return self._verification_id
101
+
102
+ @verification_id.setter
103
+ def verification_id(self, verification_id):
104
+ r"""Sets the verification_id of this StandardReqDataByNameAndId.
105
+
106
+ 被验证人的身份证号码。
107
+
108
+ :param verification_id: The verification_id of this StandardReqDataByNameAndId.
109
+ :type verification_id: str
110
+ """
111
+ self._verification_id = verification_id
112
+
113
+ @property
114
+ def face_image(self):
115
+ r"""Gets the face_image of this StandardReqDataByNameAndId.
116
+
117
+ 现场人像图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
118
+
119
+ :return: The face_image of this StandardReqDataByNameAndId.
120
+ :rtype: str
121
+ """
122
+ return self._face_image
123
+
124
+ @face_image.setter
125
+ def face_image(self, face_image):
126
+ r"""Sets the face_image of this StandardReqDataByNameAndId.
127
+
128
+ 现场人像图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
129
+
130
+ :param face_image: The face_image of this StandardReqDataByNameAndId.
131
+ :type face_image: str
132
+ """
133
+ self._face_image = face_image
134
+
135
+ @property
136
+ def detail(self):
137
+ r"""Gets the detail of this StandardReqDataByNameAndId.
138
+
139
+ 响应参数similarity是否详细显示,默认为false。 - true表示响应中的similarity为0~1000的小数。 - false表示响应中的similarity为0~100的整数。
140
+
141
+ :return: The detail of this StandardReqDataByNameAndId.
142
+ :rtype: bool
143
+ """
144
+ return self._detail
145
+
146
+ @detail.setter
147
+ def detail(self, detail):
148
+ r"""Sets the detail of this StandardReqDataByNameAndId.
149
+
150
+ 响应参数similarity是否详细显示,默认为false。 - true表示响应中的similarity为0~1000的小数。 - false表示响应中的similarity为0~100的整数。
151
+
152
+ :param detail: The detail of this StandardReqDataByNameAndId.
153
+ :type detail: bool
154
+ """
155
+ self._detail = detail
156
+
157
+ @property
158
+ def crop(self):
159
+ r"""Gets the crop of this StandardReqDataByNameAndId.
160
+
161
+ 是否允许对入参face_image进行人脸检测及图片裁剪,默认为true,表示允许。
162
+
163
+ :return: The crop of this StandardReqDataByNameAndId.
164
+ :rtype: bool
165
+ """
166
+ return self._crop
167
+
168
+ @crop.setter
169
+ def crop(self, crop):
170
+ r"""Sets the crop of this StandardReqDataByNameAndId.
171
+
172
+ 是否允许对入参face_image进行人脸检测及图片裁剪,默认为true,表示允许。
173
+
174
+ :param crop: The crop of this StandardReqDataByNameAndId.
175
+ :type crop: bool
176
+ """
177
+ self._crop = crop
178
+
179
+ def to_dict(self):
180
+ """Returns the model properties as a dict"""
181
+ result = {}
182
+
183
+ for attr, _ in six.iteritems(self.openapi_types):
184
+ value = getattr(self, attr)
185
+ if isinstance(value, list):
186
+ result[attr] = list(map(
187
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
188
+ value
189
+ ))
190
+ elif hasattr(value, "to_dict"):
191
+ result[attr] = value.to_dict()
192
+ elif isinstance(value, dict):
193
+ result[attr] = dict(map(
194
+ lambda item: (item[0], item[1].to_dict())
195
+ if hasattr(item[1], "to_dict") else item,
196
+ value.items()
197
+ ))
198
+ else:
199
+ if attr in self.sensitive_list:
200
+ result[attr] = "****"
201
+ else:
202
+ result[attr] = value
203
+
204
+ return result
205
+
206
+ def to_str(self):
207
+ """Returns the string representation of the model"""
208
+ import simplejson as json
209
+ if six.PY2:
210
+ import sys
211
+ reload(sys)
212
+ sys.setdefaultencoding("utf-8")
213
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
214
+
215
+ def __repr__(self):
216
+ """For `print`"""
217
+ return self.to_str()
218
+
219
+ def __eq__(self, other):
220
+ """Returns true if both objects are equal"""
221
+ if not isinstance(other, StandardReqDataByNameAndId):
222
+ return False
223
+
224
+ return self.__dict__ == other.__dict__
225
+
226
+ def __ne__(self, other):
227
+ """Returns true if both objects are not equal"""
228
+ return not self == other