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,341 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class IdcardResult:
|
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
|
+
'name': 'str',
|
21
|
+
'number': 'str',
|
22
|
+
'sex': 'str',
|
23
|
+
'birth': 'str',
|
24
|
+
'ethnicity': 'str',
|
25
|
+
'address': 'str',
|
26
|
+
'issue': 'str',
|
27
|
+
'valid_from': 'str',
|
28
|
+
'valid_to': 'str'
|
29
|
+
}
|
30
|
+
|
31
|
+
attribute_map = {
|
32
|
+
'name': 'name',
|
33
|
+
'number': 'number',
|
34
|
+
'sex': 'sex',
|
35
|
+
'birth': 'birth',
|
36
|
+
'ethnicity': 'ethnicity',
|
37
|
+
'address': 'address',
|
38
|
+
'issue': 'issue',
|
39
|
+
'valid_from': 'valid_from',
|
40
|
+
'valid_to': 'valid_to'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, name=None, number=None, sex=None, birth=None, ethnicity=None, address=None, issue=None, valid_from=None, valid_to=None):
|
44
|
+
r"""IdcardResult
|
45
|
+
|
46
|
+
The model defined in huaweicloud sdk
|
47
|
+
|
48
|
+
:param name: 身份证上识别的名称。
|
49
|
+
:type name: str
|
50
|
+
:param number: 身份证号。
|
51
|
+
:type number: str
|
52
|
+
:param sex: 性别。
|
53
|
+
:type sex: str
|
54
|
+
:param birth: 出生日期。
|
55
|
+
:type birth: str
|
56
|
+
:param ethnicity: 民族。
|
57
|
+
:type ethnicity: str
|
58
|
+
:param address: 地址。
|
59
|
+
:type address: str
|
60
|
+
:param issue: 发证机关。
|
61
|
+
:type issue: str
|
62
|
+
:param valid_from: 有效起始日期。
|
63
|
+
:type valid_from: str
|
64
|
+
:param valid_to: 有效结束日期。
|
65
|
+
:type valid_to: str
|
66
|
+
"""
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
self._name = None
|
71
|
+
self._number = None
|
72
|
+
self._sex = None
|
73
|
+
self._birth = None
|
74
|
+
self._ethnicity = None
|
75
|
+
self._address = None
|
76
|
+
self._issue = None
|
77
|
+
self._valid_from = None
|
78
|
+
self._valid_to = None
|
79
|
+
self.discriminator = None
|
80
|
+
|
81
|
+
self.name = name
|
82
|
+
self.number = number
|
83
|
+
self.sex = sex
|
84
|
+
self.birth = birth
|
85
|
+
self.ethnicity = ethnicity
|
86
|
+
self.address = address
|
87
|
+
if issue is not None:
|
88
|
+
self.issue = issue
|
89
|
+
if valid_from is not None:
|
90
|
+
self.valid_from = valid_from
|
91
|
+
if valid_to is not None:
|
92
|
+
self.valid_to = valid_to
|
93
|
+
|
94
|
+
@property
|
95
|
+
def name(self):
|
96
|
+
r"""Gets the name of this IdcardResult.
|
97
|
+
|
98
|
+
身份证上识别的名称。
|
99
|
+
|
100
|
+
:return: The name of this IdcardResult.
|
101
|
+
:rtype: str
|
102
|
+
"""
|
103
|
+
return self._name
|
104
|
+
|
105
|
+
@name.setter
|
106
|
+
def name(self, name):
|
107
|
+
r"""Sets the name of this IdcardResult.
|
108
|
+
|
109
|
+
身份证上识别的名称。
|
110
|
+
|
111
|
+
:param name: The name of this IdcardResult.
|
112
|
+
:type name: str
|
113
|
+
"""
|
114
|
+
self._name = name
|
115
|
+
|
116
|
+
@property
|
117
|
+
def number(self):
|
118
|
+
r"""Gets the number of this IdcardResult.
|
119
|
+
|
120
|
+
身份证号。
|
121
|
+
|
122
|
+
:return: The number of this IdcardResult.
|
123
|
+
:rtype: str
|
124
|
+
"""
|
125
|
+
return self._number
|
126
|
+
|
127
|
+
@number.setter
|
128
|
+
def number(self, number):
|
129
|
+
r"""Sets the number of this IdcardResult.
|
130
|
+
|
131
|
+
身份证号。
|
132
|
+
|
133
|
+
:param number: The number of this IdcardResult.
|
134
|
+
:type number: str
|
135
|
+
"""
|
136
|
+
self._number = number
|
137
|
+
|
138
|
+
@property
|
139
|
+
def sex(self):
|
140
|
+
r"""Gets the sex of this IdcardResult.
|
141
|
+
|
142
|
+
性别。
|
143
|
+
|
144
|
+
:return: The sex of this IdcardResult.
|
145
|
+
:rtype: str
|
146
|
+
"""
|
147
|
+
return self._sex
|
148
|
+
|
149
|
+
@sex.setter
|
150
|
+
def sex(self, sex):
|
151
|
+
r"""Sets the sex of this IdcardResult.
|
152
|
+
|
153
|
+
性别。
|
154
|
+
|
155
|
+
:param sex: The sex of this IdcardResult.
|
156
|
+
:type sex: str
|
157
|
+
"""
|
158
|
+
self._sex = sex
|
159
|
+
|
160
|
+
@property
|
161
|
+
def birth(self):
|
162
|
+
r"""Gets the birth of this IdcardResult.
|
163
|
+
|
164
|
+
出生日期。
|
165
|
+
|
166
|
+
:return: The birth of this IdcardResult.
|
167
|
+
:rtype: str
|
168
|
+
"""
|
169
|
+
return self._birth
|
170
|
+
|
171
|
+
@birth.setter
|
172
|
+
def birth(self, birth):
|
173
|
+
r"""Sets the birth of this IdcardResult.
|
174
|
+
|
175
|
+
出生日期。
|
176
|
+
|
177
|
+
:param birth: The birth of this IdcardResult.
|
178
|
+
:type birth: str
|
179
|
+
"""
|
180
|
+
self._birth = birth
|
181
|
+
|
182
|
+
@property
|
183
|
+
def ethnicity(self):
|
184
|
+
r"""Gets the ethnicity of this IdcardResult.
|
185
|
+
|
186
|
+
民族。
|
187
|
+
|
188
|
+
:return: The ethnicity of this IdcardResult.
|
189
|
+
:rtype: str
|
190
|
+
"""
|
191
|
+
return self._ethnicity
|
192
|
+
|
193
|
+
@ethnicity.setter
|
194
|
+
def ethnicity(self, ethnicity):
|
195
|
+
r"""Sets the ethnicity of this IdcardResult.
|
196
|
+
|
197
|
+
民族。
|
198
|
+
|
199
|
+
:param ethnicity: The ethnicity of this IdcardResult.
|
200
|
+
:type ethnicity: str
|
201
|
+
"""
|
202
|
+
self._ethnicity = ethnicity
|
203
|
+
|
204
|
+
@property
|
205
|
+
def address(self):
|
206
|
+
r"""Gets the address of this IdcardResult.
|
207
|
+
|
208
|
+
地址。
|
209
|
+
|
210
|
+
:return: The address of this IdcardResult.
|
211
|
+
:rtype: str
|
212
|
+
"""
|
213
|
+
return self._address
|
214
|
+
|
215
|
+
@address.setter
|
216
|
+
def address(self, address):
|
217
|
+
r"""Sets the address of this IdcardResult.
|
218
|
+
|
219
|
+
地址。
|
220
|
+
|
221
|
+
:param address: The address of this IdcardResult.
|
222
|
+
:type address: str
|
223
|
+
"""
|
224
|
+
self._address = address
|
225
|
+
|
226
|
+
@property
|
227
|
+
def issue(self):
|
228
|
+
r"""Gets the issue of this IdcardResult.
|
229
|
+
|
230
|
+
发证机关。
|
231
|
+
|
232
|
+
:return: The issue of this IdcardResult.
|
233
|
+
:rtype: str
|
234
|
+
"""
|
235
|
+
return self._issue
|
236
|
+
|
237
|
+
@issue.setter
|
238
|
+
def issue(self, issue):
|
239
|
+
r"""Sets the issue of this IdcardResult.
|
240
|
+
|
241
|
+
发证机关。
|
242
|
+
|
243
|
+
:param issue: The issue of this IdcardResult.
|
244
|
+
:type issue: str
|
245
|
+
"""
|
246
|
+
self._issue = issue
|
247
|
+
|
248
|
+
@property
|
249
|
+
def valid_from(self):
|
250
|
+
r"""Gets the valid_from of this IdcardResult.
|
251
|
+
|
252
|
+
有效起始日期。
|
253
|
+
|
254
|
+
:return: The valid_from of this IdcardResult.
|
255
|
+
:rtype: str
|
256
|
+
"""
|
257
|
+
return self._valid_from
|
258
|
+
|
259
|
+
@valid_from.setter
|
260
|
+
def valid_from(self, valid_from):
|
261
|
+
r"""Sets the valid_from of this IdcardResult.
|
262
|
+
|
263
|
+
有效起始日期。
|
264
|
+
|
265
|
+
:param valid_from: The valid_from of this IdcardResult.
|
266
|
+
:type valid_from: str
|
267
|
+
"""
|
268
|
+
self._valid_from = valid_from
|
269
|
+
|
270
|
+
@property
|
271
|
+
def valid_to(self):
|
272
|
+
r"""Gets the valid_to of this IdcardResult.
|
273
|
+
|
274
|
+
有效结束日期。
|
275
|
+
|
276
|
+
:return: The valid_to of this IdcardResult.
|
277
|
+
:rtype: str
|
278
|
+
"""
|
279
|
+
return self._valid_to
|
280
|
+
|
281
|
+
@valid_to.setter
|
282
|
+
def valid_to(self, valid_to):
|
283
|
+
r"""Sets the valid_to of this IdcardResult.
|
284
|
+
|
285
|
+
有效结束日期。
|
286
|
+
|
287
|
+
:param valid_to: The valid_to of this IdcardResult.
|
288
|
+
:type valid_to: str
|
289
|
+
"""
|
290
|
+
self._valid_to = valid_to
|
291
|
+
|
292
|
+
def to_dict(self):
|
293
|
+
"""Returns the model properties as a dict"""
|
294
|
+
result = {}
|
295
|
+
|
296
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
297
|
+
value = getattr(self, attr)
|
298
|
+
if isinstance(value, list):
|
299
|
+
result[attr] = list(map(
|
300
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
301
|
+
value
|
302
|
+
))
|
303
|
+
elif hasattr(value, "to_dict"):
|
304
|
+
result[attr] = value.to_dict()
|
305
|
+
elif isinstance(value, dict):
|
306
|
+
result[attr] = dict(map(
|
307
|
+
lambda item: (item[0], item[1].to_dict())
|
308
|
+
if hasattr(item[1], "to_dict") else item,
|
309
|
+
value.items()
|
310
|
+
))
|
311
|
+
else:
|
312
|
+
if attr in self.sensitive_list:
|
313
|
+
result[attr] = "****"
|
314
|
+
else:
|
315
|
+
result[attr] = value
|
316
|
+
|
317
|
+
return result
|
318
|
+
|
319
|
+
def to_str(self):
|
320
|
+
"""Returns the string representation of the model"""
|
321
|
+
import simplejson as json
|
322
|
+
if six.PY2:
|
323
|
+
import sys
|
324
|
+
reload(sys)
|
325
|
+
sys.setdefaultencoding("utf-8")
|
326
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
327
|
+
|
328
|
+
def __repr__(self):
|
329
|
+
"""For `print`"""
|
330
|
+
return self.to_str()
|
331
|
+
|
332
|
+
def __eq__(self, other):
|
333
|
+
"""Returns true if both objects are equal"""
|
334
|
+
if not isinstance(other, IdcardResult):
|
335
|
+
return False
|
336
|
+
|
337
|
+
return self.__dict__ == other.__dict__
|
338
|
+
|
339
|
+
def __ne__(self, other):
|
340
|
+
"""Returns true if both objects are not equal"""
|
341
|
+
return not self == other
|
@@ -0,0 +1,134 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class IvsExtentionByIdCardImageRequestBody:
|
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
|
+
'meta': 'Meta',
|
21
|
+
'data': 'IvsExtentionByIdCardImageRequestBodyData'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'meta': 'meta',
|
26
|
+
'data': 'data'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, meta=None, data=None):
|
30
|
+
r"""IvsExtentionByIdCardImageRequestBody
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param meta:
|
35
|
+
:type meta: :class:`huaweicloudsdkivs.v2.Meta`
|
36
|
+
:param data:
|
37
|
+
:type data: :class:`huaweicloudsdkivs.v2.IvsExtentionByIdCardImageRequestBodyData`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._meta = None
|
43
|
+
self._data = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.meta = meta
|
47
|
+
self.data = data
|
48
|
+
|
49
|
+
@property
|
50
|
+
def meta(self):
|
51
|
+
r"""Gets the meta of this IvsExtentionByIdCardImageRequestBody.
|
52
|
+
|
53
|
+
:return: The meta of this IvsExtentionByIdCardImageRequestBody.
|
54
|
+
:rtype: :class:`huaweicloudsdkivs.v2.Meta`
|
55
|
+
"""
|
56
|
+
return self._meta
|
57
|
+
|
58
|
+
@meta.setter
|
59
|
+
def meta(self, meta):
|
60
|
+
r"""Sets the meta of this IvsExtentionByIdCardImageRequestBody.
|
61
|
+
|
62
|
+
:param meta: The meta of this IvsExtentionByIdCardImageRequestBody.
|
63
|
+
:type meta: :class:`huaweicloudsdkivs.v2.Meta`
|
64
|
+
"""
|
65
|
+
self._meta = meta
|
66
|
+
|
67
|
+
@property
|
68
|
+
def data(self):
|
69
|
+
r"""Gets the data of this IvsExtentionByIdCardImageRequestBody.
|
70
|
+
|
71
|
+
:return: The data of this IvsExtentionByIdCardImageRequestBody.
|
72
|
+
:rtype: :class:`huaweicloudsdkivs.v2.IvsExtentionByIdCardImageRequestBodyData`
|
73
|
+
"""
|
74
|
+
return self._data
|
75
|
+
|
76
|
+
@data.setter
|
77
|
+
def data(self, data):
|
78
|
+
r"""Sets the data of this IvsExtentionByIdCardImageRequestBody.
|
79
|
+
|
80
|
+
:param data: The data of this IvsExtentionByIdCardImageRequestBody.
|
81
|
+
:type data: :class:`huaweicloudsdkivs.v2.IvsExtentionByIdCardImageRequestBodyData`
|
82
|
+
"""
|
83
|
+
self._data = data
|
84
|
+
|
85
|
+
def to_dict(self):
|
86
|
+
"""Returns the model properties as a dict"""
|
87
|
+
result = {}
|
88
|
+
|
89
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
90
|
+
value = getattr(self, attr)
|
91
|
+
if isinstance(value, list):
|
92
|
+
result[attr] = list(map(
|
93
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
94
|
+
value
|
95
|
+
))
|
96
|
+
elif hasattr(value, "to_dict"):
|
97
|
+
result[attr] = value.to_dict()
|
98
|
+
elif isinstance(value, dict):
|
99
|
+
result[attr] = dict(map(
|
100
|
+
lambda item: (item[0], item[1].to_dict())
|
101
|
+
if hasattr(item[1], "to_dict") else item,
|
102
|
+
value.items()
|
103
|
+
))
|
104
|
+
else:
|
105
|
+
if attr in self.sensitive_list:
|
106
|
+
result[attr] = "****"
|
107
|
+
else:
|
108
|
+
result[attr] = value
|
109
|
+
|
110
|
+
return result
|
111
|
+
|
112
|
+
def to_str(self):
|
113
|
+
"""Returns the string representation of the model"""
|
114
|
+
import simplejson as json
|
115
|
+
if six.PY2:
|
116
|
+
import sys
|
117
|
+
reload(sys)
|
118
|
+
sys.setdefaultencoding("utf-8")
|
119
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
120
|
+
|
121
|
+
def __repr__(self):
|
122
|
+
"""For `print`"""
|
123
|
+
return self.to_str()
|
124
|
+
|
125
|
+
def __eq__(self, other):
|
126
|
+
"""Returns true if both objects are equal"""
|
127
|
+
if not isinstance(other, IvsExtentionByIdCardImageRequestBody):
|
128
|
+
return False
|
129
|
+
|
130
|
+
return self.__dict__ == other.__dict__
|
131
|
+
|
132
|
+
def __ne__(self, other):
|
133
|
+
"""Returns true if both objects are not equal"""
|
134
|
+
return not self == other
|
@@ -0,0 +1,115 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class IvsExtentionByIdCardImageRequestBodyData:
|
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
|
+
'req_data': 'list[ExtentionReqDataByIdCardImage]'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'req_data': 'req_data'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, req_data=None):
|
28
|
+
r"""IvsExtentionByIdCardImageRequestBodyData
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param req_data: 请求列表,用于支持批量调用。目前暂时只支持单个数据查询。
|
33
|
+
:type req_data: list[:class:`huaweicloudsdkivs.v2.ExtentionReqDataByIdCardImage`]
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._req_data = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if req_data is not None:
|
42
|
+
self.req_data = req_data
|
43
|
+
|
44
|
+
@property
|
45
|
+
def req_data(self):
|
46
|
+
r"""Gets the req_data of this IvsExtentionByIdCardImageRequestBodyData.
|
47
|
+
|
48
|
+
请求列表,用于支持批量调用。目前暂时只支持单个数据查询。
|
49
|
+
|
50
|
+
:return: The req_data of this IvsExtentionByIdCardImageRequestBodyData.
|
51
|
+
:rtype: list[:class:`huaweicloudsdkivs.v2.ExtentionReqDataByIdCardImage`]
|
52
|
+
"""
|
53
|
+
return self._req_data
|
54
|
+
|
55
|
+
@req_data.setter
|
56
|
+
def req_data(self, req_data):
|
57
|
+
r"""Sets the req_data of this IvsExtentionByIdCardImageRequestBodyData.
|
58
|
+
|
59
|
+
请求列表,用于支持批量调用。目前暂时只支持单个数据查询。
|
60
|
+
|
61
|
+
:param req_data: The req_data of this IvsExtentionByIdCardImageRequestBodyData.
|
62
|
+
:type req_data: list[:class:`huaweicloudsdkivs.v2.ExtentionReqDataByIdCardImage`]
|
63
|
+
"""
|
64
|
+
self._req_data = req_data
|
65
|
+
|
66
|
+
def to_dict(self):
|
67
|
+
"""Returns the model properties as a dict"""
|
68
|
+
result = {}
|
69
|
+
|
70
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
71
|
+
value = getattr(self, attr)
|
72
|
+
if isinstance(value, list):
|
73
|
+
result[attr] = list(map(
|
74
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
75
|
+
value
|
76
|
+
))
|
77
|
+
elif hasattr(value, "to_dict"):
|
78
|
+
result[attr] = value.to_dict()
|
79
|
+
elif isinstance(value, dict):
|
80
|
+
result[attr] = dict(map(
|
81
|
+
lambda item: (item[0], item[1].to_dict())
|
82
|
+
if hasattr(item[1], "to_dict") else item,
|
83
|
+
value.items()
|
84
|
+
))
|
85
|
+
else:
|
86
|
+
if attr in self.sensitive_list:
|
87
|
+
result[attr] = "****"
|
88
|
+
else:
|
89
|
+
result[attr] = value
|
90
|
+
|
91
|
+
return result
|
92
|
+
|
93
|
+
def to_str(self):
|
94
|
+
"""Returns the string representation of the model"""
|
95
|
+
import simplejson as json
|
96
|
+
if six.PY2:
|
97
|
+
import sys
|
98
|
+
reload(sys)
|
99
|
+
sys.setdefaultencoding("utf-8")
|
100
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
101
|
+
|
102
|
+
def __repr__(self):
|
103
|
+
"""For `print`"""
|
104
|
+
return self.to_str()
|
105
|
+
|
106
|
+
def __eq__(self, other):
|
107
|
+
"""Returns true if both objects are equal"""
|
108
|
+
if not isinstance(other, IvsExtentionByIdCardImageRequestBodyData):
|
109
|
+
return False
|
110
|
+
|
111
|
+
return self.__dict__ == other.__dict__
|
112
|
+
|
113
|
+
def __ne__(self, other):
|
114
|
+
"""Returns true if both objects are not equal"""
|
115
|
+
return not self == other
|