huaweicloudsdkeihealth 3.1.150__py2.py3-none-any.whl → 3.1.152__py2.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 (55) hide show
  1. huaweicloudsdkeihealth/v1/__init__.py +46 -0
  2. huaweicloudsdkeihealth/v1/eihealth_async_client.py +1323 -48
  3. huaweicloudsdkeihealth/v1/eihealth_client.py +1323 -48
  4. huaweicloudsdkeihealth/v1/model/__init__.py +46 -0
  5. huaweicloudsdkeihealth/v1/model/agency_dto.py +231 -0
  6. huaweicloudsdkeihealth/v1/model/app_dto.py +492 -0
  7. huaweicloudsdkeihealth/v1/model/cce_cluster_rsp.py +260 -0
  8. huaweicloudsdkeihealth/v1/model/computing_cluster_rsp.py +463 -0
  9. huaweicloudsdkeihealth/v1/model/create_computing_cluster_req.py +114 -0
  10. huaweicloudsdkeihealth/v1/model/create_computing_cluster_request.py +111 -0
  11. huaweicloudsdkeihealth/v1/model/create_computing_cluster_response.py +116 -0
  12. huaweicloudsdkeihealth/v1/model/delete_computing_cluster_request.py +114 -0
  13. huaweicloudsdkeihealth/v1/model/delete_computing_cluster_response.py +85 -0
  14. huaweicloudsdkeihealth/v1/model/iam_role_dto.py +231 -0
  15. huaweicloudsdkeihealth/v1/model/initialize_platform_request.py +84 -0
  16. huaweicloudsdkeihealth/v1/model/initialize_platform_response.py +85 -0
  17. huaweicloudsdkeihealth/v1/model/install_step.py +169 -0
  18. huaweicloudsdkeihealth/v1/model/list_cce_cluster_request.py +84 -0
  19. huaweicloudsdkeihealth/v1/model/list_cce_cluster_response.py +145 -0
  20. huaweicloudsdkeihealth/v1/model/list_cluster_install_step_request.py +114 -0
  21. huaweicloudsdkeihealth/v1/model/list_cluster_install_step_response.py +145 -0
  22. huaweicloudsdkeihealth/v1/model/list_computing_cluster_request.py +144 -0
  23. huaweicloudsdkeihealth/v1/model/list_computing_cluster_response.py +145 -0
  24. huaweicloudsdkeihealth/v1/model/list_project_statistics_request.py +84 -0
  25. huaweicloudsdkeihealth/v1/model/list_project_statistics_response.py +145 -0
  26. huaweicloudsdkeihealth/v1/model/list_sfs_turbos_request.py +144 -0
  27. huaweicloudsdkeihealth/v1/model/list_sfs_turbos_response.py +145 -0
  28. huaweicloudsdkeihealth/v1/model/list_user_app_request.py +492 -0
  29. huaweicloudsdkeihealth/v1/model/list_user_app_response.py +145 -0
  30. huaweicloudsdkeihealth/v1/model/list_user_drug_job_request.py +492 -0
  31. huaweicloudsdkeihealth/v1/model/list_user_drug_job_response.py +145 -0
  32. huaweicloudsdkeihealth/v1/model/list_user_image_request.py +521 -0
  33. huaweicloudsdkeihealth/v1/model/list_user_image_response.py +145 -0
  34. huaweicloudsdkeihealth/v1/model/list_user_job_request.py +492 -0
  35. huaweicloudsdkeihealth/v1/model/list_user_job_response.py +203 -0
  36. huaweicloudsdkeihealth/v1/model/list_user_notebook_request.py +492 -0
  37. huaweicloudsdkeihealth/v1/model/list_user_notebook_response.py +145 -0
  38. huaweicloudsdkeihealth/v1/model/list_user_workflow_request.py +492 -0
  39. huaweicloudsdkeihealth/v1/model/list_user_workflow_response.py +145 -0
  40. huaweicloudsdkeihealth/v1/model/project_statistic.py +347 -0
  41. huaweicloudsdkeihealth/v1/model/sfs_turbo_rsp.py +231 -0
  42. huaweicloudsdkeihealth/v1/model/show_agency_request.py +84 -0
  43. huaweicloudsdkeihealth/v1/model/show_agency_response.py +174 -0
  44. huaweicloudsdkeihealth/v1/model/statistic_dto.py +144 -0
  45. huaweicloudsdkeihealth/v1/model/step_status.py +89 -0
  46. huaweicloudsdkeihealth/v1/model/update_agency_request.py +84 -0
  47. huaweicloudsdkeihealth/v1/model/update_agency_response.py +85 -0
  48. huaweicloudsdkeihealth/v1/model/update_top_project_req.py +114 -0
  49. huaweicloudsdkeihealth/v1/model/update_top_project_request.py +139 -0
  50. huaweicloudsdkeihealth/v1/model/update_top_project_response.py +85 -0
  51. {huaweicloudsdkeihealth-3.1.150.dist-info → huaweicloudsdkeihealth-3.1.152.dist-info}/METADATA +2 -2
  52. {huaweicloudsdkeihealth-3.1.150.dist-info → huaweicloudsdkeihealth-3.1.152.dist-info}/RECORD +55 -9
  53. {huaweicloudsdkeihealth-3.1.150.dist-info → huaweicloudsdkeihealth-3.1.152.dist-info}/LICENSE +0 -0
  54. {huaweicloudsdkeihealth-3.1.150.dist-info → huaweicloudsdkeihealth-3.1.152.dist-info}/WHEEL +0 -0
  55. {huaweicloudsdkeihealth-3.1.150.dist-info → huaweicloudsdkeihealth-3.1.152.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,492 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListUserAppRequest:
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
+ 'is_creator': 'bool',
21
+ 'id': 'str',
22
+ 'name': 'str',
23
+ 'summary': 'str',
24
+ 'eihealth_project_names': 'list[str]',
25
+ 'labels': 'list[str]',
26
+ 'start_create_time': 'int',
27
+ 'end_create_time': 'int',
28
+ 'start_update_time': 'int',
29
+ 'end_update_time': 'int',
30
+ 'sort_by': 'str',
31
+ 'sort_dir': 'str',
32
+ 'limit': 'int',
33
+ 'offset': 'int'
34
+ }
35
+
36
+ attribute_map = {
37
+ 'is_creator': 'is_creator',
38
+ 'id': 'id',
39
+ 'name': 'name',
40
+ 'summary': 'summary',
41
+ 'eihealth_project_names': 'eihealth_project_names',
42
+ 'labels': 'labels',
43
+ 'start_create_time': 'start_create_time',
44
+ 'end_create_time': 'end_create_time',
45
+ 'start_update_time': 'start_update_time',
46
+ 'end_update_time': 'end_update_time',
47
+ 'sort_by': 'sort_by',
48
+ 'sort_dir': 'sort_dir',
49
+ 'limit': 'limit',
50
+ 'offset': 'offset'
51
+ }
52
+
53
+ def __init__(self, is_creator=None, id=None, name=None, summary=None, eihealth_project_names=None, labels=None, start_create_time=None, end_create_time=None, start_update_time=None, end_update_time=None, sort_by=None, sort_dir=None, limit=None, offset=None):
54
+ r"""ListUserAppRequest
55
+
56
+ The model defined in huaweicloud sdk
57
+
58
+ :param is_creator: 是否仅展示本人创建资源。
59
+ :type is_creator: bool
60
+ :param id: 应用ID,支持精确搜索。
61
+ :type id: str
62
+ :param name: 应用名称,支持模糊搜索。
63
+ :type name: str
64
+ :param summary: 短描述,支持模糊搜索。
65
+ :type summary: str
66
+ :param eihealth_project_names: 空间名称列表,支持查询多个空间下的镜像。
67
+ :type eihealth_project_names: list[str]
68
+ :param labels: 标签列表。
69
+ :type labels: list[str]
70
+ :param start_create_time: 最小创建时间。
71
+ :type start_create_time: int
72
+ :param end_create_time: 最大创建时间。
73
+ :type end_create_time: int
74
+ :param start_update_time: 最小更新时间。
75
+ :type start_update_time: int
76
+ :param end_update_time: 最大更新时间。
77
+ :type end_update_time: int
78
+ :param sort_by: 排序规则,目前默认时间降序,支持根据create_time|update_time排序。
79
+ :type sort_by: str
80
+ :param sort_dir: 排序规则,目前默认时间降序。
81
+ :type sort_dir: str
82
+ :param limit: 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。
83
+ :type limit: int
84
+ :param offset: 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。
85
+ :type offset: int
86
+ """
87
+
88
+
89
+
90
+ self._is_creator = None
91
+ self._id = None
92
+ self._name = None
93
+ self._summary = None
94
+ self._eihealth_project_names = None
95
+ self._labels = None
96
+ self._start_create_time = None
97
+ self._end_create_time = None
98
+ self._start_update_time = None
99
+ self._end_update_time = None
100
+ self._sort_by = None
101
+ self._sort_dir = None
102
+ self._limit = None
103
+ self._offset = None
104
+ self.discriminator = None
105
+
106
+ if is_creator is not None:
107
+ self.is_creator = is_creator
108
+ if id is not None:
109
+ self.id = id
110
+ if name is not None:
111
+ self.name = name
112
+ if summary is not None:
113
+ self.summary = summary
114
+ if eihealth_project_names is not None:
115
+ self.eihealth_project_names = eihealth_project_names
116
+ if labels is not None:
117
+ self.labels = labels
118
+ if start_create_time is not None:
119
+ self.start_create_time = start_create_time
120
+ if end_create_time is not None:
121
+ self.end_create_time = end_create_time
122
+ if start_update_time is not None:
123
+ self.start_update_time = start_update_time
124
+ if end_update_time is not None:
125
+ self.end_update_time = end_update_time
126
+ if sort_by is not None:
127
+ self.sort_by = sort_by
128
+ if sort_dir is not None:
129
+ self.sort_dir = sort_dir
130
+ if limit is not None:
131
+ self.limit = limit
132
+ if offset is not None:
133
+ self.offset = offset
134
+
135
+ @property
136
+ def is_creator(self):
137
+ r"""Gets the is_creator of this ListUserAppRequest.
138
+
139
+ 是否仅展示本人创建资源。
140
+
141
+ :return: The is_creator of this ListUserAppRequest.
142
+ :rtype: bool
143
+ """
144
+ return self._is_creator
145
+
146
+ @is_creator.setter
147
+ def is_creator(self, is_creator):
148
+ r"""Sets the is_creator of this ListUserAppRequest.
149
+
150
+ 是否仅展示本人创建资源。
151
+
152
+ :param is_creator: The is_creator of this ListUserAppRequest.
153
+ :type is_creator: bool
154
+ """
155
+ self._is_creator = is_creator
156
+
157
+ @property
158
+ def id(self):
159
+ r"""Gets the id of this ListUserAppRequest.
160
+
161
+ 应用ID,支持精确搜索。
162
+
163
+ :return: The id of this ListUserAppRequest.
164
+ :rtype: str
165
+ """
166
+ return self._id
167
+
168
+ @id.setter
169
+ def id(self, id):
170
+ r"""Sets the id of this ListUserAppRequest.
171
+
172
+ 应用ID,支持精确搜索。
173
+
174
+ :param id: The id of this ListUserAppRequest.
175
+ :type id: str
176
+ """
177
+ self._id = id
178
+
179
+ @property
180
+ def name(self):
181
+ r"""Gets the name of this ListUserAppRequest.
182
+
183
+ 应用名称,支持模糊搜索。
184
+
185
+ :return: The name of this ListUserAppRequest.
186
+ :rtype: str
187
+ """
188
+ return self._name
189
+
190
+ @name.setter
191
+ def name(self, name):
192
+ r"""Sets the name of this ListUserAppRequest.
193
+
194
+ 应用名称,支持模糊搜索。
195
+
196
+ :param name: The name of this ListUserAppRequest.
197
+ :type name: str
198
+ """
199
+ self._name = name
200
+
201
+ @property
202
+ def summary(self):
203
+ r"""Gets the summary of this ListUserAppRequest.
204
+
205
+ 短描述,支持模糊搜索。
206
+
207
+ :return: The summary of this ListUserAppRequest.
208
+ :rtype: str
209
+ """
210
+ return self._summary
211
+
212
+ @summary.setter
213
+ def summary(self, summary):
214
+ r"""Sets the summary of this ListUserAppRequest.
215
+
216
+ 短描述,支持模糊搜索。
217
+
218
+ :param summary: The summary of this ListUserAppRequest.
219
+ :type summary: str
220
+ """
221
+ self._summary = summary
222
+
223
+ @property
224
+ def eihealth_project_names(self):
225
+ r"""Gets the eihealth_project_names of this ListUserAppRequest.
226
+
227
+ 空间名称列表,支持查询多个空间下的镜像。
228
+
229
+ :return: The eihealth_project_names of this ListUserAppRequest.
230
+ :rtype: list[str]
231
+ """
232
+ return self._eihealth_project_names
233
+
234
+ @eihealth_project_names.setter
235
+ def eihealth_project_names(self, eihealth_project_names):
236
+ r"""Sets the eihealth_project_names of this ListUserAppRequest.
237
+
238
+ 空间名称列表,支持查询多个空间下的镜像。
239
+
240
+ :param eihealth_project_names: The eihealth_project_names of this ListUserAppRequest.
241
+ :type eihealth_project_names: list[str]
242
+ """
243
+ self._eihealth_project_names = eihealth_project_names
244
+
245
+ @property
246
+ def labels(self):
247
+ r"""Gets the labels of this ListUserAppRequest.
248
+
249
+ 标签列表。
250
+
251
+ :return: The labels of this ListUserAppRequest.
252
+ :rtype: list[str]
253
+ """
254
+ return self._labels
255
+
256
+ @labels.setter
257
+ def labels(self, labels):
258
+ r"""Sets the labels of this ListUserAppRequest.
259
+
260
+ 标签列表。
261
+
262
+ :param labels: The labels of this ListUserAppRequest.
263
+ :type labels: list[str]
264
+ """
265
+ self._labels = labels
266
+
267
+ @property
268
+ def start_create_time(self):
269
+ r"""Gets the start_create_time of this ListUserAppRequest.
270
+
271
+ 最小创建时间。
272
+
273
+ :return: The start_create_time of this ListUserAppRequest.
274
+ :rtype: int
275
+ """
276
+ return self._start_create_time
277
+
278
+ @start_create_time.setter
279
+ def start_create_time(self, start_create_time):
280
+ r"""Sets the start_create_time of this ListUserAppRequest.
281
+
282
+ 最小创建时间。
283
+
284
+ :param start_create_time: The start_create_time of this ListUserAppRequest.
285
+ :type start_create_time: int
286
+ """
287
+ self._start_create_time = start_create_time
288
+
289
+ @property
290
+ def end_create_time(self):
291
+ r"""Gets the end_create_time of this ListUserAppRequest.
292
+
293
+ 最大创建时间。
294
+
295
+ :return: The end_create_time of this ListUserAppRequest.
296
+ :rtype: int
297
+ """
298
+ return self._end_create_time
299
+
300
+ @end_create_time.setter
301
+ def end_create_time(self, end_create_time):
302
+ r"""Sets the end_create_time of this ListUserAppRequest.
303
+
304
+ 最大创建时间。
305
+
306
+ :param end_create_time: The end_create_time of this ListUserAppRequest.
307
+ :type end_create_time: int
308
+ """
309
+ self._end_create_time = end_create_time
310
+
311
+ @property
312
+ def start_update_time(self):
313
+ r"""Gets the start_update_time of this ListUserAppRequest.
314
+
315
+ 最小更新时间。
316
+
317
+ :return: The start_update_time of this ListUserAppRequest.
318
+ :rtype: int
319
+ """
320
+ return self._start_update_time
321
+
322
+ @start_update_time.setter
323
+ def start_update_time(self, start_update_time):
324
+ r"""Sets the start_update_time of this ListUserAppRequest.
325
+
326
+ 最小更新时间。
327
+
328
+ :param start_update_time: The start_update_time of this ListUserAppRequest.
329
+ :type start_update_time: int
330
+ """
331
+ self._start_update_time = start_update_time
332
+
333
+ @property
334
+ def end_update_time(self):
335
+ r"""Gets the end_update_time of this ListUserAppRequest.
336
+
337
+ 最大更新时间。
338
+
339
+ :return: The end_update_time of this ListUserAppRequest.
340
+ :rtype: int
341
+ """
342
+ return self._end_update_time
343
+
344
+ @end_update_time.setter
345
+ def end_update_time(self, end_update_time):
346
+ r"""Sets the end_update_time of this ListUserAppRequest.
347
+
348
+ 最大更新时间。
349
+
350
+ :param end_update_time: The end_update_time of this ListUserAppRequest.
351
+ :type end_update_time: int
352
+ """
353
+ self._end_update_time = end_update_time
354
+
355
+ @property
356
+ def sort_by(self):
357
+ r"""Gets the sort_by of this ListUserAppRequest.
358
+
359
+ 排序规则,目前默认时间降序,支持根据create_time|update_time排序。
360
+
361
+ :return: The sort_by of this ListUserAppRequest.
362
+ :rtype: str
363
+ """
364
+ return self._sort_by
365
+
366
+ @sort_by.setter
367
+ def sort_by(self, sort_by):
368
+ r"""Sets the sort_by of this ListUserAppRequest.
369
+
370
+ 排序规则,目前默认时间降序,支持根据create_time|update_time排序。
371
+
372
+ :param sort_by: The sort_by of this ListUserAppRequest.
373
+ :type sort_by: str
374
+ """
375
+ self._sort_by = sort_by
376
+
377
+ @property
378
+ def sort_dir(self):
379
+ r"""Gets the sort_dir of this ListUserAppRequest.
380
+
381
+ 排序规则,目前默认时间降序。
382
+
383
+ :return: The sort_dir of this ListUserAppRequest.
384
+ :rtype: str
385
+ """
386
+ return self._sort_dir
387
+
388
+ @sort_dir.setter
389
+ def sort_dir(self, sort_dir):
390
+ r"""Sets the sort_dir of this ListUserAppRequest.
391
+
392
+ 排序规则,目前默认时间降序。
393
+
394
+ :param sort_dir: The sort_dir of this ListUserAppRequest.
395
+ :type sort_dir: str
396
+ """
397
+ self._sort_dir = sort_dir
398
+
399
+ @property
400
+ def limit(self):
401
+ r"""Gets the limit of this ListUserAppRequest.
402
+
403
+ 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。
404
+
405
+ :return: The limit of this ListUserAppRequest.
406
+ :rtype: int
407
+ """
408
+ return self._limit
409
+
410
+ @limit.setter
411
+ def limit(self, limit):
412
+ r"""Sets the limit of this ListUserAppRequest.
413
+
414
+ 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。
415
+
416
+ :param limit: The limit of this ListUserAppRequest.
417
+ :type limit: int
418
+ """
419
+ self._limit = limit
420
+
421
+ @property
422
+ def offset(self):
423
+ r"""Gets the offset of this ListUserAppRequest.
424
+
425
+ 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。
426
+
427
+ :return: The offset of this ListUserAppRequest.
428
+ :rtype: int
429
+ """
430
+ return self._offset
431
+
432
+ @offset.setter
433
+ def offset(self, offset):
434
+ r"""Sets the offset of this ListUserAppRequest.
435
+
436
+ 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。
437
+
438
+ :param offset: The offset of this ListUserAppRequest.
439
+ :type offset: int
440
+ """
441
+ self._offset = offset
442
+
443
+ def to_dict(self):
444
+ """Returns the model properties as a dict"""
445
+ result = {}
446
+
447
+ for attr, _ in six.iteritems(self.openapi_types):
448
+ value = getattr(self, attr)
449
+ if isinstance(value, list):
450
+ result[attr] = list(map(
451
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
452
+ value
453
+ ))
454
+ elif hasattr(value, "to_dict"):
455
+ result[attr] = value.to_dict()
456
+ elif isinstance(value, dict):
457
+ result[attr] = dict(map(
458
+ lambda item: (item[0], item[1].to_dict())
459
+ if hasattr(item[1], "to_dict") else item,
460
+ value.items()
461
+ ))
462
+ else:
463
+ if attr in self.sensitive_list:
464
+ result[attr] = "****"
465
+ else:
466
+ result[attr] = value
467
+
468
+ return result
469
+
470
+ def to_str(self):
471
+ """Returns the string representation of the model"""
472
+ import simplejson as json
473
+ if six.PY2:
474
+ import sys
475
+ reload(sys)
476
+ sys.setdefaultencoding("utf-8")
477
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
478
+
479
+ def __repr__(self):
480
+ """For `print`"""
481
+ return self.to_str()
482
+
483
+ def __eq__(self, other):
484
+ """Returns true if both objects are equal"""
485
+ if not isinstance(other, ListUserAppRequest):
486
+ return False
487
+
488
+ return self.__dict__ == other.__dict__
489
+
490
+ def __ne__(self, other):
491
+ """Returns true if both objects are not equal"""
492
+ return not self == other
@@ -0,0 +1,145 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class ListUserAppResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'apps': 'list[AppDto]',
22
+ 'count': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'apps': 'apps',
27
+ 'count': 'count'
28
+ }
29
+
30
+ def __init__(self, apps=None, count=None):
31
+ r"""ListUserAppResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param apps: 应用列表。
36
+ :type apps: list[:class:`huaweicloudsdkeihealth.v1.AppDto`]
37
+ :param count: 应用总条数。
38
+ :type count: int
39
+ """
40
+
41
+ super(ListUserAppResponse, self).__init__()
42
+
43
+ self._apps = None
44
+ self._count = None
45
+ self.discriminator = None
46
+
47
+ if apps is not None:
48
+ self.apps = apps
49
+ if count is not None:
50
+ self.count = count
51
+
52
+ @property
53
+ def apps(self):
54
+ r"""Gets the apps of this ListUserAppResponse.
55
+
56
+ 应用列表。
57
+
58
+ :return: The apps of this ListUserAppResponse.
59
+ :rtype: list[:class:`huaweicloudsdkeihealth.v1.AppDto`]
60
+ """
61
+ return self._apps
62
+
63
+ @apps.setter
64
+ def apps(self, apps):
65
+ r"""Sets the apps of this ListUserAppResponse.
66
+
67
+ 应用列表。
68
+
69
+ :param apps: The apps of this ListUserAppResponse.
70
+ :type apps: list[:class:`huaweicloudsdkeihealth.v1.AppDto`]
71
+ """
72
+ self._apps = apps
73
+
74
+ @property
75
+ def count(self):
76
+ r"""Gets the count of this ListUserAppResponse.
77
+
78
+ 应用总条数。
79
+
80
+ :return: The count of this ListUserAppResponse.
81
+ :rtype: int
82
+ """
83
+ return self._count
84
+
85
+ @count.setter
86
+ def count(self, count):
87
+ r"""Sets the count of this ListUserAppResponse.
88
+
89
+ 应用总条数。
90
+
91
+ :param count: The count of this ListUserAppResponse.
92
+ :type count: int
93
+ """
94
+ self._count = count
95
+
96
+ def to_dict(self):
97
+ """Returns the model properties as a dict"""
98
+ result = {}
99
+
100
+ for attr, _ in six.iteritems(self.openapi_types):
101
+ value = getattr(self, attr)
102
+ if isinstance(value, list):
103
+ result[attr] = list(map(
104
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
105
+ value
106
+ ))
107
+ elif hasattr(value, "to_dict"):
108
+ result[attr] = value.to_dict()
109
+ elif isinstance(value, dict):
110
+ result[attr] = dict(map(
111
+ lambda item: (item[0], item[1].to_dict())
112
+ if hasattr(item[1], "to_dict") else item,
113
+ value.items()
114
+ ))
115
+ else:
116
+ if attr in self.sensitive_list:
117
+ result[attr] = "****"
118
+ else:
119
+ result[attr] = value
120
+
121
+ return result
122
+
123
+ def to_str(self):
124
+ """Returns the string representation of the model"""
125
+ import simplejson as json
126
+ if six.PY2:
127
+ import sys
128
+ reload(sys)
129
+ sys.setdefaultencoding("utf-8")
130
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
131
+
132
+ def __repr__(self):
133
+ """For `print`"""
134
+ return self.to_str()
135
+
136
+ def __eq__(self, other):
137
+ """Returns true if both objects are equal"""
138
+ if not isinstance(other, ListUserAppResponse):
139
+ return False
140
+
141
+ return self.__dict__ == other.__dict__
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ return not self == other