huaweicloudsdkeihealth 3.1.108__py2.py3-none-any.whl → 3.1.110__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 (57) hide show
  1. huaweicloudsdkeihealth/v1/__init__.py +31 -0
  2. huaweicloudsdkeihealth/v1/eihealth_async_client.py +543 -0
  3. huaweicloudsdkeihealth/v1/eihealth_client.py +543 -0
  4. huaweicloudsdkeihealth/v1/model/__init__.py +31 -0
  5. huaweicloudsdkeihealth/v1/model/base_model.py +142 -0
  6. huaweicloudsdkeihealth/v1/model/base_model_dto.py +231 -0
  7. huaweicloudsdkeihealth/v1/model/bind_site_dto.py +3 -3
  8. huaweicloudsdkeihealth/v1/model/cpi_receptor.py +226 -0
  9. huaweicloudsdkeihealth/v1/model/create_admet_job_req.py +61 -3
  10. huaweicloudsdkeihealth/v1/model/create_cpi_job_req.py +166 -0
  11. huaweicloudsdkeihealth/v1/model/create_cpi_job_request.py +139 -0
  12. huaweicloudsdkeihealth/v1/model/create_cpi_job_response.py +145 -0
  13. huaweicloudsdkeihealth/v1/model/create_dock_job_req.py +32 -3
  14. huaweicloudsdkeihealth/v1/model/create_drug_ligand_interaction2d_svg_req.py +32 -3
  15. huaweicloudsdkeihealth/v1/model/create_gen_job_req.py +338 -0
  16. huaweicloudsdkeihealth/v1/model/create_gen_job_request.py +139 -0
  17. huaweicloudsdkeihealth/v1/model/create_gen_job_response.py +145 -0
  18. huaweicloudsdkeihealth/v1/model/create_ligand_preview_task_req.py +32 -3
  19. huaweicloudsdkeihealth/v1/model/create_model_req.py +32 -3
  20. huaweicloudsdkeihealth/v1/model/create_optm_job_req.py +30 -1
  21. huaweicloudsdkeihealth/v1/model/create_target_opt_job_req.py +184 -0
  22. huaweicloudsdkeihealth/v1/model/create_target_opt_job_request.py +139 -0
  23. huaweicloudsdkeihealth/v1/model/create_target_opt_job_response.py +145 -0
  24. huaweicloudsdkeihealth/v1/model/fasta_receptor.py +197 -0
  25. huaweicloudsdkeihealth/v1/model/interaction.py +166 -0
  26. huaweicloudsdkeihealth/v1/model/interaction_constraint_dto.py +167 -0
  27. huaweicloudsdkeihealth/v1/model/interaction_type.py +91 -0
  28. huaweicloudsdkeihealth/v1/model/list_base_model_request.py +202 -0
  29. huaweicloudsdkeihealth/v1/model/list_base_model_response.py +145 -0
  30. huaweicloudsdkeihealth/v1/model/list_drug_model_request.py +35 -6
  31. huaweicloudsdkeihealth/v1/model/md_param.py +169 -0
  32. huaweicloudsdkeihealth/v1/model/md_step_param.py +202 -0
  33. huaweicloudsdkeihealth/v1/model/model_dto.py +61 -3
  34. huaweicloudsdkeihealth/v1/model/pocket_fragment.py +30 -1
  35. huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_req.py +168 -0
  36. huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_request.py +139 -0
  37. huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_response.py +145 -0
  38. huaweicloudsdkeihealth/v1/model/show_admet_job_response.py +57 -3
  39. huaweicloudsdkeihealth/v1/model/show_cpi_job_request.py +142 -0
  40. huaweicloudsdkeihealth/v1/model/show_cpi_job_response.py +170 -0
  41. huaweicloudsdkeihealth/v1/model/show_docking_job_response.py +30 -1
  42. huaweicloudsdkeihealth/v1/model/show_gen_job_request.py +142 -0
  43. huaweicloudsdkeihealth/v1/model/show_gen_job_response.py +365 -0
  44. huaweicloudsdkeihealth/v1/model/show_optm_job_response.py +26 -1
  45. huaweicloudsdkeihealth/v1/model/show_target_opt_job_request.py +142 -0
  46. huaweicloudsdkeihealth/v1/model/show_target_opt_job_response.py +187 -0
  47. huaweicloudsdkeihealth/v1/model/strong_constraint_dto.py +28 -3
  48. huaweicloudsdkeihealth/v1/model/strong_constraint_type.py +1 -0
  49. huaweicloudsdkeihealth/v1/model/target_opt_ligand.py +139 -0
  50. huaweicloudsdkeihealth/v1/model/target_opt_receptor.py +255 -0
  51. huaweicloudsdkeihealth/v1/model/weak_constraint_dto.py +28 -3
  52. huaweicloudsdkeihealth/v1/model/weak_constraint_type.py +1 -0
  53. {huaweicloudsdkeihealth-3.1.108.dist-info → huaweicloudsdkeihealth-3.1.110.dist-info}/METADATA +2 -2
  54. {huaweicloudsdkeihealth-3.1.108.dist-info → huaweicloudsdkeihealth-3.1.110.dist-info}/RECORD +57 -26
  55. {huaweicloudsdkeihealth-3.1.108.dist-info → huaweicloudsdkeihealth-3.1.110.dist-info}/WHEEL +1 -1
  56. {huaweicloudsdkeihealth-3.1.108.dist-info → huaweicloudsdkeihealth-3.1.110.dist-info}/LICENSE +0 -0
  57. {huaweicloudsdkeihealth-3.1.108.dist-info → huaweicloudsdkeihealth-3.1.110.dist-info}/top_level.txt +0 -0
@@ -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 ShowCpiJobRequest:
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
+ """ShowCpiJobRequest
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 ShowCpiJobRequest.
52
+
53
+ 平台项目ID。
54
+
55
+ :return: The eihealth_project_id of this ShowCpiJobRequest.
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 ShowCpiJobRequest.
63
+
64
+ 平台项目ID。
65
+
66
+ :param eihealth_project_id: The eihealth_project_id of this ShowCpiJobRequest.
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 ShowCpiJobRequest.
74
+
75
+ 作业id
76
+
77
+ :return: The job_id of this ShowCpiJobRequest.
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 ShowCpiJobRequest.
85
+
86
+ 作业id
87
+
88
+ :param job_id: The job_id of this ShowCpiJobRequest.
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, ShowCpiJobRequest):
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
@@ -0,0 +1,170 @@
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 ShowCpiJobResponse(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
+ 'basic_info': 'DrugJobDto',
22
+ 'receptors': 'list[ReceptorDrugFile]',
23
+ 'ligands': 'list[MoleculeFileDto]'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'basic_info': 'basic_info',
28
+ 'receptors': 'receptors',
29
+ 'ligands': 'ligands'
30
+ }
31
+
32
+ def __init__(self, basic_info=None, receptors=None, ligands=None):
33
+ """ShowCpiJobResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param basic_info:
38
+ :type basic_info: :class:`huaweicloudsdkeihealth.v1.DrugJobDto`
39
+ :param receptors: 受体文件列表
40
+ :type receptors: list[:class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile`]
41
+ :param ligands: 小分子
42
+ :type ligands: list[:class:`huaweicloudsdkeihealth.v1.MoleculeFileDto`]
43
+ """
44
+
45
+ super(ShowCpiJobResponse, self).__init__()
46
+
47
+ self._basic_info = None
48
+ self._receptors = None
49
+ self._ligands = None
50
+ self.discriminator = None
51
+
52
+ if basic_info is not None:
53
+ self.basic_info = basic_info
54
+ if receptors is not None:
55
+ self.receptors = receptors
56
+ if ligands is not None:
57
+ self.ligands = ligands
58
+
59
+ @property
60
+ def basic_info(self):
61
+ """Gets the basic_info of this ShowCpiJobResponse.
62
+
63
+ :return: The basic_info of this ShowCpiJobResponse.
64
+ :rtype: :class:`huaweicloudsdkeihealth.v1.DrugJobDto`
65
+ """
66
+ return self._basic_info
67
+
68
+ @basic_info.setter
69
+ def basic_info(self, basic_info):
70
+ """Sets the basic_info of this ShowCpiJobResponse.
71
+
72
+ :param basic_info: The basic_info of this ShowCpiJobResponse.
73
+ :type basic_info: :class:`huaweicloudsdkeihealth.v1.DrugJobDto`
74
+ """
75
+ self._basic_info = basic_info
76
+
77
+ @property
78
+ def receptors(self):
79
+ """Gets the receptors of this ShowCpiJobResponse.
80
+
81
+ 受体文件列表
82
+
83
+ :return: The receptors of this ShowCpiJobResponse.
84
+ :rtype: list[:class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile`]
85
+ """
86
+ return self._receptors
87
+
88
+ @receptors.setter
89
+ def receptors(self, receptors):
90
+ """Sets the receptors of this ShowCpiJobResponse.
91
+
92
+ 受体文件列表
93
+
94
+ :param receptors: The receptors of this ShowCpiJobResponse.
95
+ :type receptors: list[:class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile`]
96
+ """
97
+ self._receptors = receptors
98
+
99
+ @property
100
+ def ligands(self):
101
+ """Gets the ligands of this ShowCpiJobResponse.
102
+
103
+ 小分子
104
+
105
+ :return: The ligands of this ShowCpiJobResponse.
106
+ :rtype: list[:class:`huaweicloudsdkeihealth.v1.MoleculeFileDto`]
107
+ """
108
+ return self._ligands
109
+
110
+ @ligands.setter
111
+ def ligands(self, ligands):
112
+ """Sets the ligands of this ShowCpiJobResponse.
113
+
114
+ 小分子
115
+
116
+ :param ligands: The ligands of this ShowCpiJobResponse.
117
+ :type ligands: list[:class:`huaweicloudsdkeihealth.v1.MoleculeFileDto`]
118
+ """
119
+ self._ligands = ligands
120
+
121
+ def to_dict(self):
122
+ """Returns the model properties as a dict"""
123
+ result = {}
124
+
125
+ for attr, _ in six.iteritems(self.openapi_types):
126
+ value = getattr(self, attr)
127
+ if isinstance(value, list):
128
+ result[attr] = list(map(
129
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
130
+ value
131
+ ))
132
+ elif hasattr(value, "to_dict"):
133
+ result[attr] = value.to_dict()
134
+ elif isinstance(value, dict):
135
+ result[attr] = dict(map(
136
+ lambda item: (item[0], item[1].to_dict())
137
+ if hasattr(item[1], "to_dict") else item,
138
+ value.items()
139
+ ))
140
+ else:
141
+ if attr in self.sensitive_list:
142
+ result[attr] = "****"
143
+ else:
144
+ result[attr] = value
145
+
146
+ return result
147
+
148
+ def to_str(self):
149
+ """Returns the string representation of the model"""
150
+ import simplejson as json
151
+ if six.PY2:
152
+ import sys
153
+ reload(sys)
154
+ sys.setdefaultencoding("utf-8")
155
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
156
+
157
+ def __repr__(self):
158
+ """For `print`"""
159
+ return self.to_str()
160
+
161
+ def __eq__(self, other):
162
+ """Returns true if both objects are equal"""
163
+ if not isinstance(other, ShowCpiJobResponse):
164
+ return False
165
+
166
+ return self.__dict__ == other.__dict__
167
+
168
+ def __ne__(self, other):
169
+ """Returns true if both objects are not equal"""
170
+ return not self == other
@@ -21,6 +21,7 @@ class ShowDockingJobResponse(SdkResponse):
21
21
  'basic_info': 'DrugJobDto',
22
22
  'receptors': 'list[DockingReceptorDto]',
23
23
  'ligands': 'list[LigandDto]',
24
+ 'engine': 'str',
24
25
  'job_result': 'JobResult',
25
26
  'part_failed_reason': 'list[FailedReasonRecord]',
26
27
  'cluster_result': 'ClusterJobRsp'
@@ -30,12 +31,13 @@ class ShowDockingJobResponse(SdkResponse):
30
31
  'basic_info': 'basic_info',
31
32
  'receptors': 'receptors',
32
33
  'ligands': 'ligands',
34
+ 'engine': 'engine',
33
35
  'job_result': 'job_result',
34
36
  'part_failed_reason': 'part_failed_reason',
35
37
  'cluster_result': 'cluster_result'
36
38
  }
37
39
 
38
- def __init__(self, basic_info=None, receptors=None, ligands=None, job_result=None, part_failed_reason=None, cluster_result=None):
40
+ def __init__(self, basic_info=None, receptors=None, ligands=None, engine=None, job_result=None, part_failed_reason=None, cluster_result=None):
39
41
  """ShowDockingJobResponse
40
42
 
41
43
  The model defined in huaweicloud sdk
@@ -46,6 +48,8 @@ class ShowDockingJobResponse(SdkResponse):
46
48
  :type receptors: list[:class:`huaweicloudsdkeihealth.v1.DockingReceptorDto`]
47
49
  :param ligands: 配体文件列表,当前仅支持1个
48
50
  :type ligands: list[:class:`huaweicloudsdkeihealth.v1.LigandDto`]
51
+ :param engine: 引擎
52
+ :type engine: str
49
53
  :param job_result:
50
54
  :type job_result: :class:`huaweicloudsdkeihealth.v1.JobResult`
51
55
  :param part_failed_reason: 部分失败原因和数量
@@ -59,6 +63,7 @@ class ShowDockingJobResponse(SdkResponse):
59
63
  self._basic_info = None
60
64
  self._receptors = None
61
65
  self._ligands = None
66
+ self._engine = None
62
67
  self._job_result = None
63
68
  self._part_failed_reason = None
64
69
  self._cluster_result = None
@@ -70,6 +75,8 @@ class ShowDockingJobResponse(SdkResponse):
70
75
  self.receptors = receptors
71
76
  if ligands is not None:
72
77
  self.ligands = ligands
78
+ if engine is not None:
79
+ self.engine = engine
73
80
  if job_result is not None:
74
81
  self.job_result = job_result
75
82
  if part_failed_reason is not None:
@@ -139,6 +146,28 @@ class ShowDockingJobResponse(SdkResponse):
139
146
  """
140
147
  self._ligands = ligands
141
148
 
149
+ @property
150
+ def engine(self):
151
+ """Gets the engine of this ShowDockingJobResponse.
152
+
153
+ 引擎
154
+
155
+ :return: The engine of this ShowDockingJobResponse.
156
+ :rtype: str
157
+ """
158
+ return self._engine
159
+
160
+ @engine.setter
161
+ def engine(self, engine):
162
+ """Sets the engine of this ShowDockingJobResponse.
163
+
164
+ 引擎
165
+
166
+ :param engine: The engine of this ShowDockingJobResponse.
167
+ :type engine: str
168
+ """
169
+ self._engine = engine
170
+
142
171
  @property
143
172
  def job_result(self):
144
173
  """Gets the job_result of this ShowDockingJobResponse.
@@ -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 ShowGenJobRequest:
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
+ """ShowGenJobRequest
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 ShowGenJobRequest.
52
+
53
+ 平台项目ID。
54
+
55
+ :return: The eihealth_project_id of this ShowGenJobRequest.
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 ShowGenJobRequest.
63
+
64
+ 平台项目ID。
65
+
66
+ :param eihealth_project_id: The eihealth_project_id of this ShowGenJobRequest.
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 ShowGenJobRequest.
74
+
75
+ 作业id
76
+
77
+ :return: The job_id of this ShowGenJobRequest.
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 ShowGenJobRequest.
85
+
86
+ 作业id
87
+
88
+ :param job_id: The job_id of this ShowGenJobRequest.
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, ShowGenJobRequest):
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