huaweicloudsdkeihealth 3.1.94__py2.py3-none-any.whl → 3.1.96__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 (60) hide show
  1. huaweicloudsdkeihealth/v1/__init__.py +44 -0
  2. huaweicloudsdkeihealth/v1/eihealth_async_client.py +1057 -52
  3. huaweicloudsdkeihealth/v1/eihealth_client.py +1057 -52
  4. huaweicloudsdkeihealth/v1/model/__init__.py +44 -0
  5. huaweicloudsdkeihealth/v1/model/add_drug_database_file_req.py +139 -0
  6. huaweicloudsdkeihealth/v1/model/add_drug_database_file_request.py +139 -0
  7. huaweicloudsdkeihealth/v1/model/add_drug_database_file_response.py +85 -0
  8. huaweicloudsdkeihealth/v1/model/bind_site_dto.py +30 -1
  9. huaweicloudsdkeihealth/v1/model/create_css_cluster_req.py +170 -0
  10. huaweicloudsdkeihealth/v1/model/create_css_cluster_request.py +111 -0
  11. huaweicloudsdkeihealth/v1/model/create_css_cluster_response.py +116 -0
  12. huaweicloudsdkeihealth/v1/model/create_database_req2.py +252 -0
  13. huaweicloudsdkeihealth/v1/model/create_drug_database_request.py +111 -0
  14. huaweicloudsdkeihealth/v1/model/create_drug_database_response.py +116 -0
  15. huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_req.py +198 -0
  16. huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_request.py +139 -0
  17. huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_response.py +116 -0
  18. huaweicloudsdkeihealth/v1/model/create_optm_job_req.py +30 -1
  19. huaweicloudsdkeihealth/v1/model/create_search_job_req.py +308 -0
  20. huaweicloudsdkeihealth/v1/model/create_search_job_request.py +139 -0
  21. huaweicloudsdkeihealth/v1/model/create_search_job_response.py +145 -0
  22. huaweicloudsdkeihealth/v1/model/css_cluster_dto.py +202 -0
  23. huaweicloudsdkeihealth/v1/model/database_file.py +167 -0
  24. huaweicloudsdkeihealth/v1/model/database_file_source.py +88 -0
  25. huaweicloudsdkeihealth/v1/model/delete_css_cluster_request.py +114 -0
  26. huaweicloudsdkeihealth/v1/model/delete_css_cluster_response.py +85 -0
  27. huaweicloudsdkeihealth/v1/model/delete_drug_database_request.py +114 -0
  28. huaweicloudsdkeihealth/v1/model/delete_drug_database_response.py +85 -0
  29. huaweicloudsdkeihealth/v1/model/detail_database_file.py +225 -0
  30. huaweicloudsdkeihealth/v1/model/download_data_req.py +61 -3
  31. huaweicloudsdkeihealth/v1/model/drug_database_dto.py +521 -0
  32. huaweicloudsdkeihealth/v1/model/get_archive_config_rsp.py +3 -32
  33. huaweicloudsdkeihealth/v1/model/list_css_cluster_request.py +144 -0
  34. huaweicloudsdkeihealth/v1/model/list_css_cluster_response.py +145 -0
  35. huaweicloudsdkeihealth/v1/model/list_drug_database_request.py +260 -0
  36. huaweicloudsdkeihealth/v1/model/list_drug_database_response.py +174 -0
  37. huaweicloudsdkeihealth/v1/model/list_term_tenant_css_cluster_request.py +144 -0
  38. huaweicloudsdkeihealth/v1/model/list_term_tenant_css_cluster_response.py +145 -0
  39. huaweicloudsdkeihealth/v1/model/search_type.py +88 -0
  40. huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_request.py +142 -0
  41. huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_response.py +174 -0
  42. huaweicloudsdkeihealth/v1/model/show_optm_job_response.py +30 -1
  43. huaweicloudsdkeihealth/v1/model/show_search_job_request.py +142 -0
  44. huaweicloudsdkeihealth/v1/model/show_search_job_response.py +340 -0
  45. huaweicloudsdkeihealth/v1/model/term_tenant_css_cluster_dto.py +173 -0
  46. huaweicloudsdkeihealth/v1/model/update_drug_database_req.py +114 -0
  47. huaweicloudsdkeihealth/v1/model/update_drug_database_request.py +139 -0
  48. huaweicloudsdkeihealth/v1/model/update_drug_database_response.py +85 -0
  49. huaweicloudsdkeihealth/v1/model/update_drug_job_req.py +115 -0
  50. huaweicloudsdkeihealth/v1/model/update_drug_job_request.py +167 -0
  51. huaweicloudsdkeihealth/v1/model/update_drug_job_response.py +85 -0
  52. huaweicloudsdkeihealth/v1/model/upload_data_request.py +1 -175
  53. huaweicloudsdkeihealth/v1/model/upload_data_request_body.py +177 -3
  54. huaweicloudsdkeihealth/v1/model/validate_css_connection_request.py +111 -0
  55. huaweicloudsdkeihealth/v1/model/validate_css_connection_response.py +145 -0
  56. {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.96.dist-info}/METADATA +2 -2
  57. {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.96.dist-info}/RECORD +60 -16
  58. {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.96.dist-info}/LICENSE +0 -0
  59. {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.96.dist-info}/WHEEL +0 -0
  60. {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.96.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,174 @@
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 ShowMolBatchDownloadTaskResponse(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
+ 'status': 'str',
22
+ 'filename': 'str',
23
+ 'out_dir': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'status': 'status',
28
+ 'filename': 'filename',
29
+ 'out_dir': 'out_dir'
30
+ }
31
+
32
+ def __init__(self, status=None, filename=None, out_dir=None):
33
+ """ShowMolBatchDownloadTaskResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param status: 任务状态:WAITING、RUNNING、FINISHED、CANCELLED、ABNORMAL、FAILED
38
+ :type status: str
39
+ :param filename: 下载文件名
40
+ :type filename: str
41
+ :param out_dir: 下载路径
42
+ :type out_dir: str
43
+ """
44
+
45
+ super(ShowMolBatchDownloadTaskResponse, self).__init__()
46
+
47
+ self._status = None
48
+ self._filename = None
49
+ self._out_dir = None
50
+ self.discriminator = None
51
+
52
+ if status is not None:
53
+ self.status = status
54
+ if filename is not None:
55
+ self.filename = filename
56
+ if out_dir is not None:
57
+ self.out_dir = out_dir
58
+
59
+ @property
60
+ def status(self):
61
+ """Gets the status of this ShowMolBatchDownloadTaskResponse.
62
+
63
+ 任务状态:WAITING、RUNNING、FINISHED、CANCELLED、ABNORMAL、FAILED
64
+
65
+ :return: The status of this ShowMolBatchDownloadTaskResponse.
66
+ :rtype: str
67
+ """
68
+ return self._status
69
+
70
+ @status.setter
71
+ def status(self, status):
72
+ """Sets the status of this ShowMolBatchDownloadTaskResponse.
73
+
74
+ 任务状态:WAITING、RUNNING、FINISHED、CANCELLED、ABNORMAL、FAILED
75
+
76
+ :param status: The status of this ShowMolBatchDownloadTaskResponse.
77
+ :type status: str
78
+ """
79
+ self._status = status
80
+
81
+ @property
82
+ def filename(self):
83
+ """Gets the filename of this ShowMolBatchDownloadTaskResponse.
84
+
85
+ 下载文件名
86
+
87
+ :return: The filename of this ShowMolBatchDownloadTaskResponse.
88
+ :rtype: str
89
+ """
90
+ return self._filename
91
+
92
+ @filename.setter
93
+ def filename(self, filename):
94
+ """Sets the filename of this ShowMolBatchDownloadTaskResponse.
95
+
96
+ 下载文件名
97
+
98
+ :param filename: The filename of this ShowMolBatchDownloadTaskResponse.
99
+ :type filename: str
100
+ """
101
+ self._filename = filename
102
+
103
+ @property
104
+ def out_dir(self):
105
+ """Gets the out_dir of this ShowMolBatchDownloadTaskResponse.
106
+
107
+ 下载路径
108
+
109
+ :return: The out_dir of this ShowMolBatchDownloadTaskResponse.
110
+ :rtype: str
111
+ """
112
+ return self._out_dir
113
+
114
+ @out_dir.setter
115
+ def out_dir(self, out_dir):
116
+ """Sets the out_dir of this ShowMolBatchDownloadTaskResponse.
117
+
118
+ 下载路径
119
+
120
+ :param out_dir: The out_dir of this ShowMolBatchDownloadTaskResponse.
121
+ :type out_dir: str
122
+ """
123
+ self._out_dir = out_dir
124
+
125
+ def to_dict(self):
126
+ """Returns the model properties as a dict"""
127
+ result = {}
128
+
129
+ for attr, _ in six.iteritems(self.openapi_types):
130
+ value = getattr(self, attr)
131
+ if isinstance(value, list):
132
+ result[attr] = list(map(
133
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
134
+ value
135
+ ))
136
+ elif hasattr(value, "to_dict"):
137
+ result[attr] = value.to_dict()
138
+ elif isinstance(value, dict):
139
+ result[attr] = dict(map(
140
+ lambda item: (item[0], item[1].to_dict())
141
+ if hasattr(item[1], "to_dict") else item,
142
+ value.items()
143
+ ))
144
+ else:
145
+ if attr in self.sensitive_list:
146
+ result[attr] = "****"
147
+ else:
148
+ result[attr] = value
149
+
150
+ return result
151
+
152
+ def to_str(self):
153
+ """Returns the string representation of the model"""
154
+ import simplejson as json
155
+ if six.PY2:
156
+ import sys
157
+ reload(sys)
158
+ sys.setdefaultencoding("utf-8")
159
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
160
+
161
+ def __repr__(self):
162
+ """For `print`"""
163
+ return self.to_str()
164
+
165
+ def __eq__(self, other):
166
+ """Returns true if both objects are equal"""
167
+ if not isinstance(other, ShowMolBatchDownloadTaskResponse):
168
+ return False
169
+
170
+ return self.__dict__ == other.__dict__
171
+
172
+ def __ne__(self, other):
173
+ """Returns true if both objects are not equal"""
174
+ return not self == other
@@ -23,6 +23,7 @@ class ShowOptmJobResponse(SdkResponse):
23
23
  'molecule_file': 'DrugFile',
24
24
  'num_trials': 'int',
25
25
  'binding_site': 'BindSiteDto',
26
+ 'binding_sites': 'list[BindSiteDto]',
26
27
  'weak_constraints': 'list[WeakConstraintDto]',
27
28
  'strong_constraints': 'list[StrongConstraintDto]',
28
29
  'sampler_mixin_weight': 'float',
@@ -36,6 +37,7 @@ class ShowOptmJobResponse(SdkResponse):
36
37
  'molecule_file': 'molecule_file',
37
38
  'num_trials': 'num_trials',
38
39
  'binding_site': 'binding_site',
40
+ 'binding_sites': 'binding_sites',
39
41
  'weak_constraints': 'weak_constraints',
40
42
  'strong_constraints': 'strong_constraints',
41
43
  'sampler_mixin_weight': 'sampler_mixin_weight',
@@ -43,7 +45,7 @@ class ShowOptmJobResponse(SdkResponse):
43
45
  'cluster_result': 'cluster_result'
44
46
  }
45
47
 
46
- def __init__(self, basic_info=None, smiles=None, molecule_file=None, num_trials=None, binding_site=None, weak_constraints=None, strong_constraints=None, sampler_mixin_weight=None, models=None, cluster_result=None):
48
+ def __init__(self, basic_info=None, smiles=None, molecule_file=None, num_trials=None, binding_site=None, binding_sites=None, weak_constraints=None, strong_constraints=None, sampler_mixin_weight=None, models=None, cluster_result=None):
47
49
  """ShowOptmJobResponse
48
50
 
49
51
  The model defined in huaweicloud sdk
@@ -58,6 +60,8 @@ class ShowOptmJobResponse(SdkResponse):
58
60
  :type num_trials: int
59
61
  :param binding_site:
60
62
  :type binding_site: :class:`huaweicloudsdkeihealth.v1.BindSiteDto`
63
+ :param binding_sites: 受体列表和受体是二选一的关系,受体列表优先级最高
64
+ :type binding_sites: list[:class:`huaweicloudsdkeihealth.v1.BindSiteDto`]
61
65
  :param weak_constraints: 弱约束集合
62
66
  :type weak_constraints: list[:class:`huaweicloudsdkeihealth.v1.WeakConstraintDto`]
63
67
  :param strong_constraints: 强约束集合
@@ -77,6 +81,7 @@ class ShowOptmJobResponse(SdkResponse):
77
81
  self._molecule_file = None
78
82
  self._num_trials = None
79
83
  self._binding_site = None
84
+ self._binding_sites = None
80
85
  self._weak_constraints = None
81
86
  self._strong_constraints = None
82
87
  self._sampler_mixin_weight = None
@@ -94,6 +99,8 @@ class ShowOptmJobResponse(SdkResponse):
94
99
  self.num_trials = num_trials
95
100
  if binding_site is not None:
96
101
  self.binding_site = binding_site
102
+ if binding_sites is not None:
103
+ self.binding_sites = binding_sites
97
104
  if weak_constraints is not None:
98
105
  self.weak_constraints = weak_constraints
99
106
  if strong_constraints is not None:
@@ -203,6 +210,28 @@ class ShowOptmJobResponse(SdkResponse):
203
210
  """
204
211
  self._binding_site = binding_site
205
212
 
213
+ @property
214
+ def binding_sites(self):
215
+ """Gets the binding_sites of this ShowOptmJobResponse.
216
+
217
+ 受体列表和受体是二选一的关系,受体列表优先级最高
218
+
219
+ :return: The binding_sites of this ShowOptmJobResponse.
220
+ :rtype: list[:class:`huaweicloudsdkeihealth.v1.BindSiteDto`]
221
+ """
222
+ return self._binding_sites
223
+
224
+ @binding_sites.setter
225
+ def binding_sites(self, binding_sites):
226
+ """Sets the binding_sites of this ShowOptmJobResponse.
227
+
228
+ 受体列表和受体是二选一的关系,受体列表优先级最高
229
+
230
+ :param binding_sites: The binding_sites of this ShowOptmJobResponse.
231
+ :type binding_sites: list[:class:`huaweicloudsdkeihealth.v1.BindSiteDto`]
232
+ """
233
+ self._binding_sites = binding_sites
234
+
206
235
  @property
207
236
  def weak_constraints(self):
208
237
  """Gets the weak_constraints of this ShowOptmJobResponse.
@@ -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 ShowSearchJobRequest:
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
+ 'job_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'eihealth_project_id': 'eihealth_project_id',
26
+ 'job_id': 'job_id'
27
+ }
28
+
29
+ def __init__(self, eihealth_project_id=None, job_id=None):
30
+ """ShowSearchJobRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param eihealth_project_id: 平台项目ID。
35
+ :type eihealth_project_id: str
36
+ :param job_id: 作业id
37
+ :type job_id: str
38
+ """
39
+
40
+
41
+
42
+ self._eihealth_project_id = None
43
+ self._job_id = None
44
+ self.discriminator = None
45
+
46
+ self.eihealth_project_id = eihealth_project_id
47
+ self.job_id = job_id
48
+
49
+ @property
50
+ def eihealth_project_id(self):
51
+ """Gets the eihealth_project_id of this ShowSearchJobRequest.
52
+
53
+ 平台项目ID。
54
+
55
+ :return: The eihealth_project_id of this ShowSearchJobRequest.
56
+ :rtype: str
57
+ """
58
+ return self._eihealth_project_id
59
+
60
+ @eihealth_project_id.setter
61
+ def eihealth_project_id(self, eihealth_project_id):
62
+ """Sets the eihealth_project_id of this ShowSearchJobRequest.
63
+
64
+ 平台项目ID。
65
+
66
+ :param eihealth_project_id: The eihealth_project_id of this ShowSearchJobRequest.
67
+ :type eihealth_project_id: str
68
+ """
69
+ self._eihealth_project_id = eihealth_project_id
70
+
71
+ @property
72
+ def job_id(self):
73
+ """Gets the job_id of this ShowSearchJobRequest.
74
+
75
+ 作业id
76
+
77
+ :return: The job_id of this ShowSearchJobRequest.
78
+ :rtype: str
79
+ """
80
+ return self._job_id
81
+
82
+ @job_id.setter
83
+ def job_id(self, job_id):
84
+ """Sets the job_id of this ShowSearchJobRequest.
85
+
86
+ 作业id
87
+
88
+ :param job_id: The job_id of this ShowSearchJobRequest.
89
+ :type job_id: str
90
+ """
91
+ self._job_id = job_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, ShowSearchJobRequest):
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