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,143 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ExtentionReqDataByIdCardImage:
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
+ }
23
+
24
+ attribute_map = {
25
+ 'idcard_image1': 'idcard_image1',
26
+ 'idcard_image2': 'idcard_image2'
27
+ }
28
+
29
+ def __init__(self, idcard_image1=None, idcard_image2=None):
30
+ r"""ExtentionReqDataByIdCardImage
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param idcard_image1: 身份证人像面图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
35
+ :type idcard_image1: str
36
+ :param idcard_image2: 身份证国徽面图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
37
+ :type idcard_image2: str
38
+ """
39
+
40
+
41
+
42
+ self._idcard_image1 = None
43
+ self._idcard_image2 = None
44
+ self.discriminator = None
45
+
46
+ self.idcard_image1 = idcard_image1
47
+ if idcard_image2 is not None:
48
+ self.idcard_image2 = idcard_image2
49
+
50
+ @property
51
+ def idcard_image1(self):
52
+ r"""Gets the idcard_image1 of this ExtentionReqDataByIdCardImage.
53
+
54
+ 身份证人像面图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
55
+
56
+ :return: The idcard_image1 of this ExtentionReqDataByIdCardImage.
57
+ :rtype: str
58
+ """
59
+ return self._idcard_image1
60
+
61
+ @idcard_image1.setter
62
+ def idcard_image1(self, idcard_image1):
63
+ r"""Sets the idcard_image1 of this ExtentionReqDataByIdCardImage.
64
+
65
+ 身份证人像面图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
66
+
67
+ :param idcard_image1: The idcard_image1 of this ExtentionReqDataByIdCardImage.
68
+ :type idcard_image1: str
69
+ """
70
+ self._idcard_image1 = idcard_image1
71
+
72
+ @property
73
+ def idcard_image2(self):
74
+ r"""Gets the idcard_image2 of this ExtentionReqDataByIdCardImage.
75
+
76
+ 身份证国徽面图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
77
+
78
+ :return: The idcard_image2 of this ExtentionReqDataByIdCardImage.
79
+ :rtype: str
80
+ """
81
+ return self._idcard_image2
82
+
83
+ @idcard_image2.setter
84
+ def idcard_image2(self, idcard_image2):
85
+ r"""Sets the idcard_image2 of this ExtentionReqDataByIdCardImage.
86
+
87
+ 身份证国徽面图像数据,使用base64编码,要求base64编码后大小不超过4M。图像各边的像素大小在300到4000之间,支持JPG格式。
88
+
89
+ :param idcard_image2: The idcard_image2 of this ExtentionReqDataByIdCardImage.
90
+ :type idcard_image2: str
91
+ """
92
+ self._idcard_image2 = idcard_image2
93
+
94
+ def to_dict(self):
95
+ """Returns the model properties as a dict"""
96
+ result = {}
97
+
98
+ for attr, _ in six.iteritems(self.openapi_types):
99
+ value = getattr(self, attr)
100
+ if isinstance(value, list):
101
+ result[attr] = list(map(
102
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
103
+ value
104
+ ))
105
+ elif hasattr(value, "to_dict"):
106
+ result[attr] = value.to_dict()
107
+ elif isinstance(value, dict):
108
+ result[attr] = dict(map(
109
+ lambda item: (item[0], item[1].to_dict())
110
+ if hasattr(item[1], "to_dict") else item,
111
+ value.items()
112
+ ))
113
+ else:
114
+ if attr in self.sensitive_list:
115
+ result[attr] = "****"
116
+ else:
117
+ result[attr] = value
118
+
119
+ return result
120
+
121
+ def to_str(self):
122
+ """Returns the string representation of the model"""
123
+ import simplejson as json
124
+ if six.PY2:
125
+ import sys
126
+ reload(sys)
127
+ sys.setdefaultencoding("utf-8")
128
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
129
+
130
+ def __repr__(self):
131
+ """For `print`"""
132
+ return self.to_str()
133
+
134
+ def __eq__(self, other):
135
+ """Returns true if both objects are equal"""
136
+ if not isinstance(other, ExtentionReqDataByIdCardImage):
137
+ return False
138
+
139
+ return self.__dict__ == other.__dict__
140
+
141
+ def __ne__(self, other):
142
+ """Returns true if both objects are not equal"""
143
+ return not self == other
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ExtentionReqDataByNameAndId:
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
+ }
23
+
24
+ attribute_map = {
25
+ 'verification_name': 'verification_name',
26
+ 'verification_id': 'verification_id'
27
+ }
28
+
29
+ def __init__(self, verification_name=None, verification_id=None):
30
+ r"""ExtentionReqDataByNameAndId
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param verification_name: 被验证人的姓名。
35
+ :type verification_name: str
36
+ :param verification_id: 被验证人的身份证号码。
37
+ :type verification_id: str
38
+ """
39
+
40
+
41
+
42
+ self._verification_name = None
43
+ self._verification_id = None
44
+ self.discriminator = None
45
+
46
+ self.verification_name = verification_name
47
+ self.verification_id = verification_id
48
+
49
+ @property
50
+ def verification_name(self):
51
+ r"""Gets the verification_name of this ExtentionReqDataByNameAndId.
52
+
53
+ 被验证人的姓名。
54
+
55
+ :return: The verification_name of this ExtentionReqDataByNameAndId.
56
+ :rtype: str
57
+ """
58
+ return self._verification_name
59
+
60
+ @verification_name.setter
61
+ def verification_name(self, verification_name):
62
+ r"""Sets the verification_name of this ExtentionReqDataByNameAndId.
63
+
64
+ 被验证人的姓名。
65
+
66
+ :param verification_name: The verification_name of this ExtentionReqDataByNameAndId.
67
+ :type verification_name: str
68
+ """
69
+ self._verification_name = verification_name
70
+
71
+ @property
72
+ def verification_id(self):
73
+ r"""Gets the verification_id of this ExtentionReqDataByNameAndId.
74
+
75
+ 被验证人的身份证号码。
76
+
77
+ :return: The verification_id of this ExtentionReqDataByNameAndId.
78
+ :rtype: str
79
+ """
80
+ return self._verification_id
81
+
82
+ @verification_id.setter
83
+ def verification_id(self, verification_id):
84
+ r"""Sets the verification_id of this ExtentionReqDataByNameAndId.
85
+
86
+ 被验证人的身份证号码。
87
+
88
+ :param verification_id: The verification_id of this ExtentionReqDataByNameAndId.
89
+ :type verification_id: str
90
+ """
91
+ self._verification_id = verification_id
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, ExtentionReqDataByNameAndId):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ 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 ExtentionRespDataByIdCardImage:
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
+ 'idcard_result': 'IdcardResult'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'verification_result': 'verification_result',
28
+ 'verification_message': 'verification_message',
29
+ 'verification_code': 'verification_code',
30
+ 'idcard_result': 'idcard_result'
31
+ }
32
+
33
+ def __init__(self, verification_result=None, verification_message=None, verification_code=None, idcard_result=None):
34
+ r"""ExtentionRespDataByIdCardImage
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 idcard_result:
45
+ :type idcard_result: :class:`huaweicloudsdkivs.v2.IdcardResult`
46
+ """
47
+
48
+
49
+
50
+ self._verification_result = None
51
+ self._verification_message = None
52
+ self._verification_code = None
53
+ self._idcard_result = None
54
+ self.discriminator = None
55
+
56
+ if verification_result is not None:
57
+ self.verification_result = verification_result
58
+ if verification_message is not None:
59
+ self.verification_message = verification_message
60
+ if verification_code is not None:
61
+ self.verification_code = verification_code
62
+ if idcard_result is not None:
63
+ self.idcard_result = idcard_result
64
+
65
+ @property
66
+ def verification_result(self):
67
+ r"""Gets the verification_result of this ExtentionRespDataByIdCardImage.
68
+
69
+ 审核校验结果: \"valid\"表示身份审核通过; \"invalid\"表示身份审核不通过; \"nonexistent\"表示数据源没有该身份证号码,这种情况一般是被验证人正在办理户籍迁移,或者被验证人是军人或政要。
70
+
71
+ :return: The verification_result of this ExtentionRespDataByIdCardImage.
72
+ :rtype: str
73
+ """
74
+ return self._verification_result
75
+
76
+ @verification_result.setter
77
+ def verification_result(self, verification_result):
78
+ r"""Sets the verification_result of this ExtentionRespDataByIdCardImage.
79
+
80
+ 审核校验结果: \"valid\"表示身份审核通过; \"invalid\"表示身份审核不通过; \"nonexistent\"表示数据源没有该身份证号码,这种情况一般是被验证人正在办理户籍迁移,或者被验证人是军人或政要。
81
+
82
+ :param verification_result: The verification_result of this ExtentionRespDataByIdCardImage.
83
+ :type verification_result: str
84
+ """
85
+ self._verification_result = verification_result
86
+
87
+ @property
88
+ def verification_message(self):
89
+ r"""Gets the verification_message of this ExtentionRespDataByIdCardImage.
90
+
91
+ 审核校验信息,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
92
+
93
+ :return: The verification_message of this ExtentionRespDataByIdCardImage.
94
+ :rtype: str
95
+ """
96
+ return self._verification_message
97
+
98
+ @verification_message.setter
99
+ def verification_message(self, verification_message):
100
+ r"""Sets the verification_message of this ExtentionRespDataByIdCardImage.
101
+
102
+ 审核校验信息,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
103
+
104
+ :param verification_message: The verification_message of this ExtentionRespDataByIdCardImage.
105
+ :type verification_message: str
106
+ """
107
+ self._verification_message = verification_message
108
+
109
+ @property
110
+ def verification_code(self):
111
+ r"""Gets the verification_code of this ExtentionRespDataByIdCardImage.
112
+
113
+ 审核校验代码,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
114
+
115
+ :return: The verification_code of this ExtentionRespDataByIdCardImage.
116
+ :rtype: int
117
+ """
118
+ return self._verification_code
119
+
120
+ @verification_code.setter
121
+ def verification_code(self, verification_code):
122
+ r"""Sets the verification_code of this ExtentionRespDataByIdCardImage.
123
+
124
+ 审核校验代码,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
125
+
126
+ :param verification_code: The verification_code of this ExtentionRespDataByIdCardImage.
127
+ :type verification_code: int
128
+ """
129
+ self._verification_code = verification_code
130
+
131
+ @property
132
+ def idcard_result(self):
133
+ r"""Gets the idcard_result of this ExtentionRespDataByIdCardImage.
134
+
135
+ :return: The idcard_result of this ExtentionRespDataByIdCardImage.
136
+ :rtype: :class:`huaweicloudsdkivs.v2.IdcardResult`
137
+ """
138
+ return self._idcard_result
139
+
140
+ @idcard_result.setter
141
+ def idcard_result(self, idcard_result):
142
+ r"""Sets the idcard_result of this ExtentionRespDataByIdCardImage.
143
+
144
+ :param idcard_result: The idcard_result of this ExtentionRespDataByIdCardImage.
145
+ :type idcard_result: :class:`huaweicloudsdkivs.v2.IdcardResult`
146
+ """
147
+ self._idcard_result = idcard_result
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, ExtentionRespDataByIdCardImage):
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,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ExtentionRespDataByNameAndId:
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
+ }
24
+
25
+ attribute_map = {
26
+ 'verification_result': 'verification_result',
27
+ 'verification_message': 'verification_message',
28
+ 'verification_code': 'verification_code'
29
+ }
30
+
31
+ def __init__(self, verification_result=None, verification_message=None, verification_code=None):
32
+ r"""ExtentionRespDataByNameAndId
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param verification_result: 审核校验结果: \"valid\"表示身份审核通过; \"invalid\"表示身份审核不通过; \"nonexistent\"表示数据源没有该身份证号码,这种情况一般是被验证人正在办理户籍迁移,或者被验证人是军人或政要。
37
+ :type verification_result: str
38
+ :param verification_message: 审核校验信息,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
39
+ :type verification_message: str
40
+ :param verification_code: 审核校验代码,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
41
+ :type verification_code: int
42
+ """
43
+
44
+
45
+
46
+ self._verification_result = None
47
+ self._verification_message = None
48
+ self._verification_code = None
49
+ self.discriminator = None
50
+
51
+ if verification_result is not None:
52
+ self.verification_result = verification_result
53
+ if verification_message is not None:
54
+ self.verification_message = verification_message
55
+ if verification_code is not None:
56
+ self.verification_code = verification_code
57
+
58
+ @property
59
+ def verification_result(self):
60
+ r"""Gets the verification_result of this ExtentionRespDataByNameAndId.
61
+
62
+ 审核校验结果: \"valid\"表示身份审核通过; \"invalid\"表示身份审核不通过; \"nonexistent\"表示数据源没有该身份证号码,这种情况一般是被验证人正在办理户籍迁移,或者被验证人是军人或政要。
63
+
64
+ :return: The verification_result of this ExtentionRespDataByNameAndId.
65
+ :rtype: str
66
+ """
67
+ return self._verification_result
68
+
69
+ @verification_result.setter
70
+ def verification_result(self, verification_result):
71
+ r"""Sets the verification_result of this ExtentionRespDataByNameAndId.
72
+
73
+ 审核校验结果: \"valid\"表示身份审核通过; \"invalid\"表示身份审核不通过; \"nonexistent\"表示数据源没有该身份证号码,这种情况一般是被验证人正在办理户籍迁移,或者被验证人是军人或政要。
74
+
75
+ :param verification_result: The verification_result of this ExtentionRespDataByNameAndId.
76
+ :type verification_result: str
77
+ """
78
+ self._verification_result = verification_result
79
+
80
+ @property
81
+ def verification_message(self):
82
+ r"""Gets the verification_message of this ExtentionRespDataByNameAndId.
83
+
84
+ 审核校验信息,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
85
+
86
+ :return: The verification_message of this ExtentionRespDataByNameAndId.
87
+ :rtype: str
88
+ """
89
+ return self._verification_message
90
+
91
+ @verification_message.setter
92
+ def verification_message(self, verification_message):
93
+ r"""Sets the verification_message of this ExtentionRespDataByNameAndId.
94
+
95
+ 审核校验信息,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
96
+
97
+ :param verification_message: The verification_message of this ExtentionRespDataByNameAndId.
98
+ :type verification_message: str
99
+ """
100
+ self._verification_message = verification_message
101
+
102
+ @property
103
+ def verification_code(self):
104
+ r"""Gets the verification_code of this ExtentionRespDataByNameAndId.
105
+
106
+ 审核校验代码,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
107
+
108
+ :return: The verification_code of this ExtentionRespDataByNameAndId.
109
+ :rtype: int
110
+ """
111
+ return self._verification_code
112
+
113
+ @verification_code.setter
114
+ def verification_code(self, verification_code):
115
+ r"""Sets the verification_code of this ExtentionRespDataByNameAndId.
116
+
117
+ 审核校验代码,具体参考[校验信息说明](https://support.huaweicloud.com/api-ivs/ivs_02_0017.html)
118
+
119
+ :param verification_code: The verification_code of this ExtentionRespDataByNameAndId.
120
+ :type verification_code: int
121
+ """
122
+ self._verification_code = verification_code
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, ExtentionRespDataByNameAndId):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other