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