huaweicloudsdkeihealth 3.1.149__py2.py3-none-any.whl → 3.1.151__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.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/METADATA +2 -2
  52. {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/RECORD +55 -9
  53. {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/LICENSE +0 -0
  54. {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/WHEEL +0 -0
  55. {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.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 ListUserDrugJobRequest:
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
+ 'job_name': 'str',
22
+ 'eihealth_project_names': 'list[str]',
23
+ 'labels': 'list[str]',
24
+ 'status_list': 'list[str]',
25
+ 'types': 'list[str]',
26
+ 'create_start_time': 'int',
27
+ 'create_end_time': 'int',
28
+ 'finish_start_time': 'int',
29
+ 'finish_end_time': 'int',
30
+ 'sort_dir': 'str',
31
+ 'sort_key': 'str',
32
+ 'limit': 'int',
33
+ 'offset': 'int'
34
+ }
35
+
36
+ attribute_map = {
37
+ 'is_creator': 'is_creator',
38
+ 'job_name': 'job_name',
39
+ 'eihealth_project_names': 'eihealth_project_names',
40
+ 'labels': 'labels',
41
+ 'status_list': 'status_list',
42
+ 'types': 'types',
43
+ 'create_start_time': 'create_start_time',
44
+ 'create_end_time': 'create_end_time',
45
+ 'finish_start_time': 'finish_start_time',
46
+ 'finish_end_time': 'finish_end_time',
47
+ 'sort_dir': 'sort_dir',
48
+ 'sort_key': 'sort_key',
49
+ 'limit': 'limit',
50
+ 'offset': 'offset'
51
+ }
52
+
53
+ def __init__(self, is_creator=None, job_name=None, eihealth_project_names=None, labels=None, status_list=None, types=None, create_start_time=None, create_end_time=None, finish_start_time=None, finish_end_time=None, sort_dir=None, sort_key=None, limit=None, offset=None):
54
+ r"""ListUserDrugJobRequest
55
+
56
+ The model defined in huaweicloud sdk
57
+
58
+ :param is_creator: 是否仅展示本人创建资源。
59
+ :type is_creator: bool
60
+ :param job_name: 作业名称。
61
+ :type job_name: str
62
+ :param eihealth_project_names: 空间名称列表,多个值之间使用逗号分隔。
63
+ :type eihealth_project_names: list[str]
64
+ :param labels: 标签列表。
65
+ :type labels: list[str]
66
+ :param status_list: 作业运行状态列表,支持WAITING|RUNNING|FINISHED|FAILED|CANCELLED。
67
+ :type status_list: list[str]
68
+ :param types: 作业类型列表,支持DOCKING|OPTIMIZATION|ADMET|POC_MOL_DESIGN|SEARCH|GENERATION|CPI|FEP|POCKET_DETECTION|TARGET_OPT|CLUSTERING。
69
+ :type types: list[str]
70
+ :param create_start_time: 最小创建时间。
71
+ :type create_start_time: int
72
+ :param create_end_time: 最大创建时间。
73
+ :type create_end_time: int
74
+ :param finish_start_time: 最小结束时间。
75
+ :type finish_start_time: int
76
+ :param finish_end_time: 最大结束时间。
77
+ :type finish_end_time: int
78
+ :param sort_dir: 排序规则,目前默认时间降序。
79
+ :type sort_dir: str
80
+ :param sort_key: 排序规则,目前默认时间降序,支持根据create_time|finish_time|running_time|total_time排序。
81
+ :type sort_key: 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._job_name = None
92
+ self._eihealth_project_names = None
93
+ self._labels = None
94
+ self._status_list = None
95
+ self._types = None
96
+ self._create_start_time = None
97
+ self._create_end_time = None
98
+ self._finish_start_time = None
99
+ self._finish_end_time = None
100
+ self._sort_dir = None
101
+ self._sort_key = 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 job_name is not None:
109
+ self.job_name = job_name
110
+ if eihealth_project_names is not None:
111
+ self.eihealth_project_names = eihealth_project_names
112
+ if labels is not None:
113
+ self.labels = labels
114
+ if status_list is not None:
115
+ self.status_list = status_list
116
+ if types is not None:
117
+ self.types = types
118
+ if create_start_time is not None:
119
+ self.create_start_time = create_start_time
120
+ if create_end_time is not None:
121
+ self.create_end_time = create_end_time
122
+ if finish_start_time is not None:
123
+ self.finish_start_time = finish_start_time
124
+ if finish_end_time is not None:
125
+ self.finish_end_time = finish_end_time
126
+ if sort_dir is not None:
127
+ self.sort_dir = sort_dir
128
+ if sort_key is not None:
129
+ self.sort_key = sort_key
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 ListUserDrugJobRequest.
138
+
139
+ 是否仅展示本人创建资源。
140
+
141
+ :return: The is_creator of this ListUserDrugJobRequest.
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 ListUserDrugJobRequest.
149
+
150
+ 是否仅展示本人创建资源。
151
+
152
+ :param is_creator: The is_creator of this ListUserDrugJobRequest.
153
+ :type is_creator: bool
154
+ """
155
+ self._is_creator = is_creator
156
+
157
+ @property
158
+ def job_name(self):
159
+ r"""Gets the job_name of this ListUserDrugJobRequest.
160
+
161
+ 作业名称。
162
+
163
+ :return: The job_name of this ListUserDrugJobRequest.
164
+ :rtype: str
165
+ """
166
+ return self._job_name
167
+
168
+ @job_name.setter
169
+ def job_name(self, job_name):
170
+ r"""Sets the job_name of this ListUserDrugJobRequest.
171
+
172
+ 作业名称。
173
+
174
+ :param job_name: The job_name of this ListUserDrugJobRequest.
175
+ :type job_name: str
176
+ """
177
+ self._job_name = job_name
178
+
179
+ @property
180
+ def eihealth_project_names(self):
181
+ r"""Gets the eihealth_project_names of this ListUserDrugJobRequest.
182
+
183
+ 空间名称列表,多个值之间使用逗号分隔。
184
+
185
+ :return: The eihealth_project_names of this ListUserDrugJobRequest.
186
+ :rtype: list[str]
187
+ """
188
+ return self._eihealth_project_names
189
+
190
+ @eihealth_project_names.setter
191
+ def eihealth_project_names(self, eihealth_project_names):
192
+ r"""Sets the eihealth_project_names of this ListUserDrugJobRequest.
193
+
194
+ 空间名称列表,多个值之间使用逗号分隔。
195
+
196
+ :param eihealth_project_names: The eihealth_project_names of this ListUserDrugJobRequest.
197
+ :type eihealth_project_names: list[str]
198
+ """
199
+ self._eihealth_project_names = eihealth_project_names
200
+
201
+ @property
202
+ def labels(self):
203
+ r"""Gets the labels of this ListUserDrugJobRequest.
204
+
205
+ 标签列表。
206
+
207
+ :return: The labels of this ListUserDrugJobRequest.
208
+ :rtype: list[str]
209
+ """
210
+ return self._labels
211
+
212
+ @labels.setter
213
+ def labels(self, labels):
214
+ r"""Sets the labels of this ListUserDrugJobRequest.
215
+
216
+ 标签列表。
217
+
218
+ :param labels: The labels of this ListUserDrugJobRequest.
219
+ :type labels: list[str]
220
+ """
221
+ self._labels = labels
222
+
223
+ @property
224
+ def status_list(self):
225
+ r"""Gets the status_list of this ListUserDrugJobRequest.
226
+
227
+ 作业运行状态列表,支持WAITING|RUNNING|FINISHED|FAILED|CANCELLED。
228
+
229
+ :return: The status_list of this ListUserDrugJobRequest.
230
+ :rtype: list[str]
231
+ """
232
+ return self._status_list
233
+
234
+ @status_list.setter
235
+ def status_list(self, status_list):
236
+ r"""Sets the status_list of this ListUserDrugJobRequest.
237
+
238
+ 作业运行状态列表,支持WAITING|RUNNING|FINISHED|FAILED|CANCELLED。
239
+
240
+ :param status_list: The status_list of this ListUserDrugJobRequest.
241
+ :type status_list: list[str]
242
+ """
243
+ self._status_list = status_list
244
+
245
+ @property
246
+ def types(self):
247
+ r"""Gets the types of this ListUserDrugJobRequest.
248
+
249
+ 作业类型列表,支持DOCKING|OPTIMIZATION|ADMET|POC_MOL_DESIGN|SEARCH|GENERATION|CPI|FEP|POCKET_DETECTION|TARGET_OPT|CLUSTERING。
250
+
251
+ :return: The types of this ListUserDrugJobRequest.
252
+ :rtype: list[str]
253
+ """
254
+ return self._types
255
+
256
+ @types.setter
257
+ def types(self, types):
258
+ r"""Sets the types of this ListUserDrugJobRequest.
259
+
260
+ 作业类型列表,支持DOCKING|OPTIMIZATION|ADMET|POC_MOL_DESIGN|SEARCH|GENERATION|CPI|FEP|POCKET_DETECTION|TARGET_OPT|CLUSTERING。
261
+
262
+ :param types: The types of this ListUserDrugJobRequest.
263
+ :type types: list[str]
264
+ """
265
+ self._types = types
266
+
267
+ @property
268
+ def create_start_time(self):
269
+ r"""Gets the create_start_time of this ListUserDrugJobRequest.
270
+
271
+ 最小创建时间。
272
+
273
+ :return: The create_start_time of this ListUserDrugJobRequest.
274
+ :rtype: int
275
+ """
276
+ return self._create_start_time
277
+
278
+ @create_start_time.setter
279
+ def create_start_time(self, create_start_time):
280
+ r"""Sets the create_start_time of this ListUserDrugJobRequest.
281
+
282
+ 最小创建时间。
283
+
284
+ :param create_start_time: The create_start_time of this ListUserDrugJobRequest.
285
+ :type create_start_time: int
286
+ """
287
+ self._create_start_time = create_start_time
288
+
289
+ @property
290
+ def create_end_time(self):
291
+ r"""Gets the create_end_time of this ListUserDrugJobRequest.
292
+
293
+ 最大创建时间。
294
+
295
+ :return: The create_end_time of this ListUserDrugJobRequest.
296
+ :rtype: int
297
+ """
298
+ return self._create_end_time
299
+
300
+ @create_end_time.setter
301
+ def create_end_time(self, create_end_time):
302
+ r"""Sets the create_end_time of this ListUserDrugJobRequest.
303
+
304
+ 最大创建时间。
305
+
306
+ :param create_end_time: The create_end_time of this ListUserDrugJobRequest.
307
+ :type create_end_time: int
308
+ """
309
+ self._create_end_time = create_end_time
310
+
311
+ @property
312
+ def finish_start_time(self):
313
+ r"""Gets the finish_start_time of this ListUserDrugJobRequest.
314
+
315
+ 最小结束时间。
316
+
317
+ :return: The finish_start_time of this ListUserDrugJobRequest.
318
+ :rtype: int
319
+ """
320
+ return self._finish_start_time
321
+
322
+ @finish_start_time.setter
323
+ def finish_start_time(self, finish_start_time):
324
+ r"""Sets the finish_start_time of this ListUserDrugJobRequest.
325
+
326
+ 最小结束时间。
327
+
328
+ :param finish_start_time: The finish_start_time of this ListUserDrugJobRequest.
329
+ :type finish_start_time: int
330
+ """
331
+ self._finish_start_time = finish_start_time
332
+
333
+ @property
334
+ def finish_end_time(self):
335
+ r"""Gets the finish_end_time of this ListUserDrugJobRequest.
336
+
337
+ 最大结束时间。
338
+
339
+ :return: The finish_end_time of this ListUserDrugJobRequest.
340
+ :rtype: int
341
+ """
342
+ return self._finish_end_time
343
+
344
+ @finish_end_time.setter
345
+ def finish_end_time(self, finish_end_time):
346
+ r"""Sets the finish_end_time of this ListUserDrugJobRequest.
347
+
348
+ 最大结束时间。
349
+
350
+ :param finish_end_time: The finish_end_time of this ListUserDrugJobRequest.
351
+ :type finish_end_time: int
352
+ """
353
+ self._finish_end_time = finish_end_time
354
+
355
+ @property
356
+ def sort_dir(self):
357
+ r"""Gets the sort_dir of this ListUserDrugJobRequest.
358
+
359
+ 排序规则,目前默认时间降序。
360
+
361
+ :return: The sort_dir of this ListUserDrugJobRequest.
362
+ :rtype: str
363
+ """
364
+ return self._sort_dir
365
+
366
+ @sort_dir.setter
367
+ def sort_dir(self, sort_dir):
368
+ r"""Sets the sort_dir of this ListUserDrugJobRequest.
369
+
370
+ 排序规则,目前默认时间降序。
371
+
372
+ :param sort_dir: The sort_dir of this ListUserDrugJobRequest.
373
+ :type sort_dir: str
374
+ """
375
+ self._sort_dir = sort_dir
376
+
377
+ @property
378
+ def sort_key(self):
379
+ r"""Gets the sort_key of this ListUserDrugJobRequest.
380
+
381
+ 排序规则,目前默认时间降序,支持根据create_time|finish_time|running_time|total_time排序。
382
+
383
+ :return: The sort_key of this ListUserDrugJobRequest.
384
+ :rtype: str
385
+ """
386
+ return self._sort_key
387
+
388
+ @sort_key.setter
389
+ def sort_key(self, sort_key):
390
+ r"""Sets the sort_key of this ListUserDrugJobRequest.
391
+
392
+ 排序规则,目前默认时间降序,支持根据create_time|finish_time|running_time|total_time排序。
393
+
394
+ :param sort_key: The sort_key of this ListUserDrugJobRequest.
395
+ :type sort_key: str
396
+ """
397
+ self._sort_key = sort_key
398
+
399
+ @property
400
+ def limit(self):
401
+ r"""Gets the limit of this ListUserDrugJobRequest.
402
+
403
+ 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。
404
+
405
+ :return: The limit of this ListUserDrugJobRequest.
406
+ :rtype: int
407
+ """
408
+ return self._limit
409
+
410
+ @limit.setter
411
+ def limit(self, limit):
412
+ r"""Sets the limit of this ListUserDrugJobRequest.
413
+
414
+ 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。
415
+
416
+ :param limit: The limit of this ListUserDrugJobRequest.
417
+ :type limit: int
418
+ """
419
+ self._limit = limit
420
+
421
+ @property
422
+ def offset(self):
423
+ r"""Gets the offset of this ListUserDrugJobRequest.
424
+
425
+ 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。
426
+
427
+ :return: The offset of this ListUserDrugJobRequest.
428
+ :rtype: int
429
+ """
430
+ return self._offset
431
+
432
+ @offset.setter
433
+ def offset(self, offset):
434
+ r"""Sets the offset of this ListUserDrugJobRequest.
435
+
436
+ 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。
437
+
438
+ :param offset: The offset of this ListUserDrugJobRequest.
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, ListUserDrugJobRequest):
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 ListUserDrugJobResponse(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
+ 'jobs': 'list[DrugJobDto]',
22
+ 'count': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'jobs': 'jobs',
27
+ 'count': 'count'
28
+ }
29
+
30
+ def __init__(self, jobs=None, count=None):
31
+ r"""ListUserDrugJobResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param jobs: 作业列表
36
+ :type jobs: list[:class:`huaweicloudsdkeihealth.v1.DrugJobDto`]
37
+ :param count: 作业总数
38
+ :type count: int
39
+ """
40
+
41
+ super(ListUserDrugJobResponse, self).__init__()
42
+
43
+ self._jobs = None
44
+ self._count = None
45
+ self.discriminator = None
46
+
47
+ if jobs is not None:
48
+ self.jobs = jobs
49
+ if count is not None:
50
+ self.count = count
51
+
52
+ @property
53
+ def jobs(self):
54
+ r"""Gets the jobs of this ListUserDrugJobResponse.
55
+
56
+ 作业列表
57
+
58
+ :return: The jobs of this ListUserDrugJobResponse.
59
+ :rtype: list[:class:`huaweicloudsdkeihealth.v1.DrugJobDto`]
60
+ """
61
+ return self._jobs
62
+
63
+ @jobs.setter
64
+ def jobs(self, jobs):
65
+ r"""Sets the jobs of this ListUserDrugJobResponse.
66
+
67
+ 作业列表
68
+
69
+ :param jobs: The jobs of this ListUserDrugJobResponse.
70
+ :type jobs: list[:class:`huaweicloudsdkeihealth.v1.DrugJobDto`]
71
+ """
72
+ self._jobs = jobs
73
+
74
+ @property
75
+ def count(self):
76
+ r"""Gets the count of this ListUserDrugJobResponse.
77
+
78
+ 作业总数
79
+
80
+ :return: The count of this ListUserDrugJobResponse.
81
+ :rtype: int
82
+ """
83
+ return self._count
84
+
85
+ @count.setter
86
+ def count(self, count):
87
+ r"""Sets the count of this ListUserDrugJobResponse.
88
+
89
+ 作业总数
90
+
91
+ :param count: The count of this ListUserDrugJobResponse.
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, ListUserDrugJobResponse):
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