huaweicloudsdkeihealth 3.1.122__py2.py3-none-any.whl → 3.1.123__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 (34) hide show
  1. huaweicloudsdkeihealth/v1/__init__.py +24 -0
  2. huaweicloudsdkeihealth/v1/eihealth_async_client.py +492 -0
  3. huaweicloudsdkeihealth/v1/eihealth_client.py +492 -0
  4. huaweicloudsdkeihealth/v1/model/__init__.py +24 -0
  5. huaweicloudsdkeihealth/v1/model/bound_box_dto.py +171 -0
  6. huaweicloudsdkeihealth/v1/model/clustering_drug_file.py +197 -0
  7. huaweicloudsdkeihealth/v1/model/clustering_file_source.py +89 -0
  8. huaweicloudsdkeihealth/v1/model/convert_file.py +197 -0
  9. huaweicloudsdkeihealth/v1/model/create_clustering_job_req.py +134 -0
  10. huaweicloudsdkeihealth/v1/model/create_clustering_job_request.py +139 -0
  11. huaweicloudsdkeihealth/v1/model/create_clustering_job_response.py +145 -0
  12. huaweicloudsdkeihealth/v1/model/create_favorite_req.py +254 -0
  13. huaweicloudsdkeihealth/v1/model/create_favorite_request.py +139 -0
  14. huaweicloudsdkeihealth/v1/model/create_favorite_response.py +116 -0
  15. huaweicloudsdkeihealth/v1/model/create_mol_docking_job_req.py +163 -0
  16. huaweicloudsdkeihealth/v1/model/create_mol_docking_job_request.py +139 -0
  17. huaweicloudsdkeihealth/v1/model/create_mol_docking_job_response.py +145 -0
  18. huaweicloudsdkeihealth/v1/model/delete_favorite_request.py +142 -0
  19. huaweicloudsdkeihealth/v1/model/delete_favorite_response.py +85 -0
  20. huaweicloudsdkeihealth/v1/model/favorite_dto.py +376 -0
  21. huaweicloudsdkeihealth/v1/model/list_favorite_request.py +433 -0
  22. huaweicloudsdkeihealth/v1/model/list_favorite_response.py +145 -0
  23. huaweicloudsdkeihealth/v1/model/optimization_mode.py +1 -0
  24. huaweicloudsdkeihealth/v1/model/receptor_dto.py +280 -0
  25. huaweicloudsdkeihealth/v1/model/run_format_converter_req.py +166 -0
  26. huaweicloudsdkeihealth/v1/model/run_format_converter_request.py +139 -0
  27. huaweicloudsdkeihealth/v1/model/run_format_converter_response.py +112 -0
  28. huaweicloudsdkeihealth/v1/model/show_clustering_job_request.py +142 -0
  29. huaweicloudsdkeihealth/v1/model/show_clustering_job_response.py +191 -0
  30. {huaweicloudsdkeihealth-3.1.122.dist-info → huaweicloudsdkeihealth-3.1.123.dist-info}/METADATA +2 -2
  31. {huaweicloudsdkeihealth-3.1.122.dist-info → huaweicloudsdkeihealth-3.1.123.dist-info}/RECORD +34 -10
  32. {huaweicloudsdkeihealth-3.1.122.dist-info → huaweicloudsdkeihealth-3.1.123.dist-info}/LICENSE +0 -0
  33. {huaweicloudsdkeihealth-3.1.122.dist-info → huaweicloudsdkeihealth-3.1.123.dist-info}/WHEEL +0 -0
  34. {huaweicloudsdkeihealth-3.1.122.dist-info → huaweicloudsdkeihealth-3.1.123.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,433 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListFavoriteRequest:
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
+ 'eihealth_project_id': 'str',
21
+ 'resource_id': 'str',
22
+ 'offset': 'int',
23
+ 'limit': 'int',
24
+ 'user_name_list': 'list[str]',
25
+ 'resource_type_list': 'list[str]',
26
+ 'type_list': 'list[str]',
27
+ 'start_time': 'int',
28
+ 'end_time': 'int',
29
+ 'key_word': 'str',
30
+ 'sort_dir': 'str',
31
+ 'sort_key': 'str'
32
+ }
33
+
34
+ attribute_map = {
35
+ 'eihealth_project_id': 'eihealth_project_id',
36
+ 'resource_id': 'resource_id',
37
+ 'offset': 'offset',
38
+ 'limit': 'limit',
39
+ 'user_name_list': 'user_name_list',
40
+ 'resource_type_list': 'resource_type_list',
41
+ 'type_list': 'type_list',
42
+ 'start_time': 'start_time',
43
+ 'end_time': 'end_time',
44
+ 'key_word': 'key_word',
45
+ 'sort_dir': 'sort_dir',
46
+ 'sort_key': 'sort_key'
47
+ }
48
+
49
+ def __init__(self, eihealth_project_id=None, resource_id=None, offset=None, limit=None, user_name_list=None, resource_type_list=None, type_list=None, start_time=None, end_time=None, key_word=None, sort_dir=None, sort_key=None):
50
+ """ListFavoriteRequest
51
+
52
+ The model defined in huaweicloud sdk
53
+
54
+ :param eihealth_project_id: 平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。
55
+ :type eihealth_project_id: str
56
+ :param resource_id: 资源ID。
57
+ :type resource_id: str
58
+ :param offset: 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。
59
+ :type offset: int
60
+ :param limit: 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。
61
+ :type limit: int
62
+ :param user_name_list: 收藏人名称列表。
63
+ :type user_name_list: list[str]
64
+ :param resource_type_list: 资源类型列表。
65
+ :type resource_type_list: list[str]
66
+ :param type_list: 收藏类型列表,支持MICROMOLECULE|PROTEIN。
67
+ :type type_list: list[str]
68
+ :param start_time: 查询收藏信息的起始时间,UNIX时间戳,单位毫秒,不填时默认为当前时间。
69
+ :type start_time: int
70
+ :param end_time: 查询收藏信息的结束时间,UNIX时间戳,单位毫秒,不填时默认为当前时间。
71
+ :type end_time: int
72
+ :param key_word: 关键字,支持在display_info字段中内容的模糊搜索。
73
+ :type key_word: str
74
+ :param sort_dir: 排序规则,目前默认时间降序。
75
+ :type sort_dir: str
76
+ :param sort_key: 排序规则,目前默认按收藏时间降序,支持根据create_time|user_name|resource_name|resource_type排序。
77
+ :type sort_key: str
78
+ """
79
+
80
+
81
+
82
+ self._eihealth_project_id = None
83
+ self._resource_id = None
84
+ self._offset = None
85
+ self._limit = None
86
+ self._user_name_list = None
87
+ self._resource_type_list = None
88
+ self._type_list = None
89
+ self._start_time = None
90
+ self._end_time = None
91
+ self._key_word = None
92
+ self._sort_dir = None
93
+ self._sort_key = None
94
+ self.discriminator = None
95
+
96
+ self.eihealth_project_id = eihealth_project_id
97
+ if resource_id is not None:
98
+ self.resource_id = resource_id
99
+ if offset is not None:
100
+ self.offset = offset
101
+ if limit is not None:
102
+ self.limit = limit
103
+ if user_name_list is not None:
104
+ self.user_name_list = user_name_list
105
+ if resource_type_list is not None:
106
+ self.resource_type_list = resource_type_list
107
+ if type_list is not None:
108
+ self.type_list = type_list
109
+ if start_time is not None:
110
+ self.start_time = start_time
111
+ if end_time is not None:
112
+ self.end_time = end_time
113
+ if key_word is not None:
114
+ self.key_word = key_word
115
+ if sort_dir is not None:
116
+ self.sort_dir = sort_dir
117
+ if sort_key is not None:
118
+ self.sort_key = sort_key
119
+
120
+ @property
121
+ def eihealth_project_id(self):
122
+ """Gets the eihealth_project_id of this ListFavoriteRequest.
123
+
124
+ 平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。
125
+
126
+ :return: The eihealth_project_id of this ListFavoriteRequest.
127
+ :rtype: str
128
+ """
129
+ return self._eihealth_project_id
130
+
131
+ @eihealth_project_id.setter
132
+ def eihealth_project_id(self, eihealth_project_id):
133
+ """Sets the eihealth_project_id of this ListFavoriteRequest.
134
+
135
+ 平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。
136
+
137
+ :param eihealth_project_id: The eihealth_project_id of this ListFavoriteRequest.
138
+ :type eihealth_project_id: str
139
+ """
140
+ self._eihealth_project_id = eihealth_project_id
141
+
142
+ @property
143
+ def resource_id(self):
144
+ """Gets the resource_id of this ListFavoriteRequest.
145
+
146
+ 资源ID。
147
+
148
+ :return: The resource_id of this ListFavoriteRequest.
149
+ :rtype: str
150
+ """
151
+ return self._resource_id
152
+
153
+ @resource_id.setter
154
+ def resource_id(self, resource_id):
155
+ """Sets the resource_id of this ListFavoriteRequest.
156
+
157
+ 资源ID。
158
+
159
+ :param resource_id: The resource_id of this ListFavoriteRequest.
160
+ :type resource_id: str
161
+ """
162
+ self._resource_id = resource_id
163
+
164
+ @property
165
+ def offset(self):
166
+ """Gets the offset of this ListFavoriteRequest.
167
+
168
+ 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。
169
+
170
+ :return: The offset of this ListFavoriteRequest.
171
+ :rtype: int
172
+ """
173
+ return self._offset
174
+
175
+ @offset.setter
176
+ def offset(self, offset):
177
+ """Sets the offset of this ListFavoriteRequest.
178
+
179
+ 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。
180
+
181
+ :param offset: The offset of this ListFavoriteRequest.
182
+ :type offset: int
183
+ """
184
+ self._offset = offset
185
+
186
+ @property
187
+ def limit(self):
188
+ """Gets the limit of this ListFavoriteRequest.
189
+
190
+ 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。
191
+
192
+ :return: The limit of this ListFavoriteRequest.
193
+ :rtype: int
194
+ """
195
+ return self._limit
196
+
197
+ @limit.setter
198
+ def limit(self, limit):
199
+ """Sets the limit of this ListFavoriteRequest.
200
+
201
+ 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。
202
+
203
+ :param limit: The limit of this ListFavoriteRequest.
204
+ :type limit: int
205
+ """
206
+ self._limit = limit
207
+
208
+ @property
209
+ def user_name_list(self):
210
+ """Gets the user_name_list of this ListFavoriteRequest.
211
+
212
+ 收藏人名称列表。
213
+
214
+ :return: The user_name_list of this ListFavoriteRequest.
215
+ :rtype: list[str]
216
+ """
217
+ return self._user_name_list
218
+
219
+ @user_name_list.setter
220
+ def user_name_list(self, user_name_list):
221
+ """Sets the user_name_list of this ListFavoriteRequest.
222
+
223
+ 收藏人名称列表。
224
+
225
+ :param user_name_list: The user_name_list of this ListFavoriteRequest.
226
+ :type user_name_list: list[str]
227
+ """
228
+ self._user_name_list = user_name_list
229
+
230
+ @property
231
+ def resource_type_list(self):
232
+ """Gets the resource_type_list of this ListFavoriteRequest.
233
+
234
+ 资源类型列表。
235
+
236
+ :return: The resource_type_list of this ListFavoriteRequest.
237
+ :rtype: list[str]
238
+ """
239
+ return self._resource_type_list
240
+
241
+ @resource_type_list.setter
242
+ def resource_type_list(self, resource_type_list):
243
+ """Sets the resource_type_list of this ListFavoriteRequest.
244
+
245
+ 资源类型列表。
246
+
247
+ :param resource_type_list: The resource_type_list of this ListFavoriteRequest.
248
+ :type resource_type_list: list[str]
249
+ """
250
+ self._resource_type_list = resource_type_list
251
+
252
+ @property
253
+ def type_list(self):
254
+ """Gets the type_list of this ListFavoriteRequest.
255
+
256
+ 收藏类型列表,支持MICROMOLECULE|PROTEIN。
257
+
258
+ :return: The type_list of this ListFavoriteRequest.
259
+ :rtype: list[str]
260
+ """
261
+ return self._type_list
262
+
263
+ @type_list.setter
264
+ def type_list(self, type_list):
265
+ """Sets the type_list of this ListFavoriteRequest.
266
+
267
+ 收藏类型列表,支持MICROMOLECULE|PROTEIN。
268
+
269
+ :param type_list: The type_list of this ListFavoriteRequest.
270
+ :type type_list: list[str]
271
+ """
272
+ self._type_list = type_list
273
+
274
+ @property
275
+ def start_time(self):
276
+ """Gets the start_time of this ListFavoriteRequest.
277
+
278
+ 查询收藏信息的起始时间,UNIX时间戳,单位毫秒,不填时默认为当前时间。
279
+
280
+ :return: The start_time of this ListFavoriteRequest.
281
+ :rtype: int
282
+ """
283
+ return self._start_time
284
+
285
+ @start_time.setter
286
+ def start_time(self, start_time):
287
+ """Sets the start_time of this ListFavoriteRequest.
288
+
289
+ 查询收藏信息的起始时间,UNIX时间戳,单位毫秒,不填时默认为当前时间。
290
+
291
+ :param start_time: The start_time of this ListFavoriteRequest.
292
+ :type start_time: int
293
+ """
294
+ self._start_time = start_time
295
+
296
+ @property
297
+ def end_time(self):
298
+ """Gets the end_time of this ListFavoriteRequest.
299
+
300
+ 查询收藏信息的结束时间,UNIX时间戳,单位毫秒,不填时默认为当前时间。
301
+
302
+ :return: The end_time of this ListFavoriteRequest.
303
+ :rtype: int
304
+ """
305
+ return self._end_time
306
+
307
+ @end_time.setter
308
+ def end_time(self, end_time):
309
+ """Sets the end_time of this ListFavoriteRequest.
310
+
311
+ 查询收藏信息的结束时间,UNIX时间戳,单位毫秒,不填时默认为当前时间。
312
+
313
+ :param end_time: The end_time of this ListFavoriteRequest.
314
+ :type end_time: int
315
+ """
316
+ self._end_time = end_time
317
+
318
+ @property
319
+ def key_word(self):
320
+ """Gets the key_word of this ListFavoriteRequest.
321
+
322
+ 关键字,支持在display_info字段中内容的模糊搜索。
323
+
324
+ :return: The key_word of this ListFavoriteRequest.
325
+ :rtype: str
326
+ """
327
+ return self._key_word
328
+
329
+ @key_word.setter
330
+ def key_word(self, key_word):
331
+ """Sets the key_word of this ListFavoriteRequest.
332
+
333
+ 关键字,支持在display_info字段中内容的模糊搜索。
334
+
335
+ :param key_word: The key_word of this ListFavoriteRequest.
336
+ :type key_word: str
337
+ """
338
+ self._key_word = key_word
339
+
340
+ @property
341
+ def sort_dir(self):
342
+ """Gets the sort_dir of this ListFavoriteRequest.
343
+
344
+ 排序规则,目前默认时间降序。
345
+
346
+ :return: The sort_dir of this ListFavoriteRequest.
347
+ :rtype: str
348
+ """
349
+ return self._sort_dir
350
+
351
+ @sort_dir.setter
352
+ def sort_dir(self, sort_dir):
353
+ """Sets the sort_dir of this ListFavoriteRequest.
354
+
355
+ 排序规则,目前默认时间降序。
356
+
357
+ :param sort_dir: The sort_dir of this ListFavoriteRequest.
358
+ :type sort_dir: str
359
+ """
360
+ self._sort_dir = sort_dir
361
+
362
+ @property
363
+ def sort_key(self):
364
+ """Gets the sort_key of this ListFavoriteRequest.
365
+
366
+ 排序规则,目前默认按收藏时间降序,支持根据create_time|user_name|resource_name|resource_type排序。
367
+
368
+ :return: The sort_key of this ListFavoriteRequest.
369
+ :rtype: str
370
+ """
371
+ return self._sort_key
372
+
373
+ @sort_key.setter
374
+ def sort_key(self, sort_key):
375
+ """Sets the sort_key of this ListFavoriteRequest.
376
+
377
+ 排序规则,目前默认按收藏时间降序,支持根据create_time|user_name|resource_name|resource_type排序。
378
+
379
+ :param sort_key: The sort_key of this ListFavoriteRequest.
380
+ :type sort_key: str
381
+ """
382
+ self._sort_key = sort_key
383
+
384
+ def to_dict(self):
385
+ """Returns the model properties as a dict"""
386
+ result = {}
387
+
388
+ for attr, _ in six.iteritems(self.openapi_types):
389
+ value = getattr(self, attr)
390
+ if isinstance(value, list):
391
+ result[attr] = list(map(
392
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
393
+ value
394
+ ))
395
+ elif hasattr(value, "to_dict"):
396
+ result[attr] = value.to_dict()
397
+ elif isinstance(value, dict):
398
+ result[attr] = dict(map(
399
+ lambda item: (item[0], item[1].to_dict())
400
+ if hasattr(item[1], "to_dict") else item,
401
+ value.items()
402
+ ))
403
+ else:
404
+ if attr in self.sensitive_list:
405
+ result[attr] = "****"
406
+ else:
407
+ result[attr] = value
408
+
409
+ return result
410
+
411
+ def to_str(self):
412
+ """Returns the string representation of the model"""
413
+ import simplejson as json
414
+ if six.PY2:
415
+ import sys
416
+ reload(sys)
417
+ sys.setdefaultencoding("utf-8")
418
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
419
+
420
+ def __repr__(self):
421
+ """For `print`"""
422
+ return self.to_str()
423
+
424
+ def __eq__(self, other):
425
+ """Returns true if both objects are equal"""
426
+ if not isinstance(other, ListFavoriteRequest):
427
+ return False
428
+
429
+ return self.__dict__ == other.__dict__
430
+
431
+ def __ne__(self, other):
432
+ """Returns true if both objects are not equal"""
433
+ 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 ListFavoriteResponse(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
+ 'favorites': 'list[FavoriteDto]',
22
+ 'count': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'favorites': 'favorites',
27
+ 'count': 'count'
28
+ }
29
+
30
+ def __init__(self, favorites=None, count=None):
31
+ """ListFavoriteResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param favorites: 收藏列表。
36
+ :type favorites: list[:class:`huaweicloudsdkeihealth.v1.FavoriteDto`]
37
+ :param count: 收藏总数。
38
+ :type count: int
39
+ """
40
+
41
+ super(ListFavoriteResponse, self).__init__()
42
+
43
+ self._favorites = None
44
+ self._count = None
45
+ self.discriminator = None
46
+
47
+ if favorites is not None:
48
+ self.favorites = favorites
49
+ if count is not None:
50
+ self.count = count
51
+
52
+ @property
53
+ def favorites(self):
54
+ """Gets the favorites of this ListFavoriteResponse.
55
+
56
+ 收藏列表。
57
+
58
+ :return: The favorites of this ListFavoriteResponse.
59
+ :rtype: list[:class:`huaweicloudsdkeihealth.v1.FavoriteDto`]
60
+ """
61
+ return self._favorites
62
+
63
+ @favorites.setter
64
+ def favorites(self, favorites):
65
+ """Sets the favorites of this ListFavoriteResponse.
66
+
67
+ 收藏列表。
68
+
69
+ :param favorites: The favorites of this ListFavoriteResponse.
70
+ :type favorites: list[:class:`huaweicloudsdkeihealth.v1.FavoriteDto`]
71
+ """
72
+ self._favorites = favorites
73
+
74
+ @property
75
+ def count(self):
76
+ """Gets the count of this ListFavoriteResponse.
77
+
78
+ 收藏总数。
79
+
80
+ :return: The count of this ListFavoriteResponse.
81
+ :rtype: int
82
+ """
83
+ return self._count
84
+
85
+ @count.setter
86
+ def count(self, count):
87
+ """Sets the count of this ListFavoriteResponse.
88
+
89
+ 收藏总数。
90
+
91
+ :param count: The count of this ListFavoriteResponse.
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, ListFavoriteResponse):
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
@@ -12,6 +12,7 @@ class OptimizationMode:
12
12
  GENERATION = "generation"
13
13
  SIDE_CHAINS_DECORATION = "side_chains_decoration"
14
14
  SCAFFOLD_HOPPING = "scaffold_hopping"
15
+ FRAGMENT_GROWING = "fragment_growing"
15
16
  """
16
17
  Attributes:
17
18
  openapi_types (dict): The key is attribute name