huaweicloudsdkeihealth 3.1.86__py2.py3-none-any.whl → 3.1.132__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.
- huaweicloudsdkeihealth/v1/__init__.py +100 -0
- huaweicloudsdkeihealth/v1/eihealth_async_client.py +5335 -3295
- huaweicloudsdkeihealth/v1/eihealth_client.py +5335 -3295
- huaweicloudsdkeihealth/v1/model/__init__.py +100 -0
- huaweicloudsdkeihealth/v1/model/add_drug_database_file_req.py +139 -0
- huaweicloudsdkeihealth/v1/model/add_drug_database_file_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/add_drug_database_file_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/base_model.py +142 -0
- huaweicloudsdkeihealth/v1/model/base_model_dto.py +202 -0
- huaweicloudsdkeihealth/v1/model/bind_site_dto.py +30 -1
- huaweicloudsdkeihealth/v1/model/bound_box_dto.py +171 -0
- huaweicloudsdkeihealth/v1/model/clustering_drug_file.py +197 -0
- huaweicloudsdkeihealth/v1/model/clustering_file_source.py +89 -0
- huaweicloudsdkeihealth/v1/model/convert_file.py +197 -0
- huaweicloudsdkeihealth/v1/model/cpi_receptor.py +226 -0
- huaweicloudsdkeihealth/v1/model/create_admet_job_req.py +61 -3
- huaweicloudsdkeihealth/v1/model/create_clustering_job_req.py +134 -0
- huaweicloudsdkeihealth/v1/model/create_clustering_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_clustering_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/create_cpi_job_req.py +166 -0
- huaweicloudsdkeihealth/v1/model/create_cpi_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_cpi_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/create_css_cluster_req.py +170 -0
- huaweicloudsdkeihealth/v1/model/create_css_cluster_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/create_css_cluster_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/create_database_req2.py +252 -0
- huaweicloudsdkeihealth/v1/model/create_dock_job_req.py +32 -3
- huaweicloudsdkeihealth/v1/model/create_drug_database_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/create_drug_database_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/create_drug_ligand_interaction2d_svg_req.py +32 -3
- huaweicloudsdkeihealth/v1/model/create_favorite_req.py +254 -0
- huaweicloudsdkeihealth/v1/model/create_favorite_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_favorite_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/create_fep_job_req.py +30 -1
- huaweicloudsdkeihealth/v1/model/create_gen_job_req.py +338 -0
- huaweicloudsdkeihealth/v1/model/create_gen_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_gen_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/create_ligand_preview_task_req.py +32 -3
- huaweicloudsdkeihealth/v1/model/create_model_req.py +32 -3
- huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_req.py +198 -0
- huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/create_mol_docking_job_req.py +163 -0
- huaweicloudsdkeihealth/v1/model/create_mol_docking_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_mol_docking_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/create_optm_job_req.py +59 -1
- huaweicloudsdkeihealth/v1/model/create_search_job_req.py +308 -0
- huaweicloudsdkeihealth/v1/model/create_search_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_search_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/create_target_opt_job_req.py +184 -0
- huaweicloudsdkeihealth/v1/model/create_target_opt_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_target_opt_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/css_cluster_dto.py +202 -0
- huaweicloudsdkeihealth/v1/model/database_file.py +167 -0
- huaweicloudsdkeihealth/v1/model/database_file_source.py +88 -0
- huaweicloudsdkeihealth/v1/model/delete_css_cluster_request.py +114 -0
- huaweicloudsdkeihealth/v1/model/delete_css_cluster_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/delete_drug_database_request.py +114 -0
- huaweicloudsdkeihealth/v1/model/delete_drug_database_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/delete_favorite_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/delete_favorite_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/detail_database_file.py +225 -0
- huaweicloudsdkeihealth/v1/model/download_data_req.py +61 -3
- huaweicloudsdkeihealth/v1/model/drug_database_dto.py +521 -0
- huaweicloudsdkeihealth/v1/model/fasta_receptor.py +197 -0
- huaweicloudsdkeihealth/v1/model/favorite_dto.py +376 -0
- huaweicloudsdkeihealth/v1/model/get_archive_config_rsp.py +3 -32
- huaweicloudsdkeihealth/v1/model/interaction.py +166 -0
- huaweicloudsdkeihealth/v1/model/interaction_constraint_dto.py +167 -0
- huaweicloudsdkeihealth/v1/model/interaction_type.py +91 -0
- huaweicloudsdkeihealth/v1/model/job_result.py +32 -3
- huaweicloudsdkeihealth/v1/model/list_base_model_request.py +202 -0
- huaweicloudsdkeihealth/v1/model/list_base_model_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_css_cluster_request.py +144 -0
- huaweicloudsdkeihealth/v1/model/list_css_cluster_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_drug_database_request.py +260 -0
- huaweicloudsdkeihealth/v1/model/list_drug_database_response.py +174 -0
- huaweicloudsdkeihealth/v1/model/list_drug_model_request.py +35 -6
- huaweicloudsdkeihealth/v1/model/list_favorite_request.py +433 -0
- huaweicloudsdkeihealth/v1/model/list_favorite_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_term_tenant_css_cluster_request.py +144 -0
- huaweicloudsdkeihealth/v1/model/list_term_tenant_css_cluster_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/md_param.py +169 -0
- huaweicloudsdkeihealth/v1/model/md_step_param.py +202 -0
- huaweicloudsdkeihealth/v1/model/model_dto.py +61 -3
- huaweicloudsdkeihealth/v1/model/optimization_mode.py +1 -0
- huaweicloudsdkeihealth/v1/model/pocket_fragment.py +30 -1
- huaweicloudsdkeihealth/v1/model/receptor_dto.py +280 -0
- huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_req.py +168 -0
- huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/run_format_converter_req.py +166 -0
- huaweicloudsdkeihealth/v1/model/run_format_converter_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/run_format_converter_response.py +112 -0
- huaweicloudsdkeihealth/v1/model/search_type.py +88 -0
- huaweicloudsdkeihealth/v1/model/show_admet_job_response.py +57 -3
- huaweicloudsdkeihealth/v1/model/show_clustering_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_clustering_job_response.py +191 -0
- huaweicloudsdkeihealth/v1/model/show_cpi_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_cpi_job_response.py +170 -0
- huaweicloudsdkeihealth/v1/model/show_docking_job_response.py +30 -1
- huaweicloudsdkeihealth/v1/model/show_fep_job_response.py +30 -1
- huaweicloudsdkeihealth/v1/model/show_gen_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_gen_job_response.py +365 -0
- huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_response.py +199 -0
- huaweicloudsdkeihealth/v1/model/show_optm_job_response.py +55 -1
- huaweicloudsdkeihealth/v1/model/show_search_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_search_job_response.py +340 -0
- huaweicloudsdkeihealth/v1/model/show_target_opt_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_target_opt_job_response.py +187 -0
- huaweicloudsdkeihealth/v1/model/strong_constraint_dto.py +28 -3
- huaweicloudsdkeihealth/v1/model/strong_constraint_type.py +1 -0
- huaweicloudsdkeihealth/v1/model/target_opt_ligand.py +139 -0
- huaweicloudsdkeihealth/v1/model/target_opt_receptor.py +255 -0
- huaweicloudsdkeihealth/v1/model/task_progress.py +115 -0
- huaweicloudsdkeihealth/v1/model/term_tenant_css_cluster_dto.py +173 -0
- huaweicloudsdkeihealth/v1/model/update_drug_database_req.py +114 -0
- huaweicloudsdkeihealth/v1/model/update_drug_database_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/update_drug_database_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/update_drug_job_req.py +115 -0
- huaweicloudsdkeihealth/v1/model/update_drug_job_request.py +167 -0
- huaweicloudsdkeihealth/v1/model/update_drug_job_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/upload_data_request.py +1 -175
- huaweicloudsdkeihealth/v1/model/upload_data_request_body.py +177 -3
- huaweicloudsdkeihealth/v1/model/validate_css_connection_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/validate_css_connection_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/weak_constraint_dto.py +28 -3
- huaweicloudsdkeihealth/v1/model/weak_constraint_type.py +1 -0
- {huaweicloudsdkeihealth-3.1.86.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.86.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/RECORD +134 -34
- {huaweicloudsdkeihealth-3.1.86.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkeihealth-3.1.86.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.86.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class MdStepParam:
|
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
|
+
'energy_minimization_steps': 'int',
|
21
|
+
'nvt': 'float',
|
22
|
+
'npt': 'float',
|
23
|
+
'simulation_time': 'float'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'energy_minimization_steps': 'energy_minimization_steps',
|
28
|
+
'nvt': 'nvt',
|
29
|
+
'npt': 'npt',
|
30
|
+
'simulation_time': 'simulation_time'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, energy_minimization_steps=None, nvt=None, npt=None, simulation_time=None):
|
34
|
+
"""MdStepParam
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param energy_minimization_steps: 能量最小化的步骤
|
39
|
+
:type energy_minimization_steps: int
|
40
|
+
:param nvt: 等温等体步骤模拟的时长,单位ps
|
41
|
+
:type nvt: float
|
42
|
+
:param npt: 等压等温步骤模拟的时长,单位ps
|
43
|
+
:type npt: float
|
44
|
+
:param simulation_time: 平衡步骤模拟的时长,单位ns
|
45
|
+
:type simulation_time: float
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._energy_minimization_steps = None
|
51
|
+
self._nvt = None
|
52
|
+
self._npt = None
|
53
|
+
self._simulation_time = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if energy_minimization_steps is not None:
|
57
|
+
self.energy_minimization_steps = energy_minimization_steps
|
58
|
+
if nvt is not None:
|
59
|
+
self.nvt = nvt
|
60
|
+
if npt is not None:
|
61
|
+
self.npt = npt
|
62
|
+
if simulation_time is not None:
|
63
|
+
self.simulation_time = simulation_time
|
64
|
+
|
65
|
+
@property
|
66
|
+
def energy_minimization_steps(self):
|
67
|
+
"""Gets the energy_minimization_steps of this MdStepParam.
|
68
|
+
|
69
|
+
能量最小化的步骤
|
70
|
+
|
71
|
+
:return: The energy_minimization_steps of this MdStepParam.
|
72
|
+
:rtype: int
|
73
|
+
"""
|
74
|
+
return self._energy_minimization_steps
|
75
|
+
|
76
|
+
@energy_minimization_steps.setter
|
77
|
+
def energy_minimization_steps(self, energy_minimization_steps):
|
78
|
+
"""Sets the energy_minimization_steps of this MdStepParam.
|
79
|
+
|
80
|
+
能量最小化的步骤
|
81
|
+
|
82
|
+
:param energy_minimization_steps: The energy_minimization_steps of this MdStepParam.
|
83
|
+
:type energy_minimization_steps: int
|
84
|
+
"""
|
85
|
+
self._energy_minimization_steps = energy_minimization_steps
|
86
|
+
|
87
|
+
@property
|
88
|
+
def nvt(self):
|
89
|
+
"""Gets the nvt of this MdStepParam.
|
90
|
+
|
91
|
+
等温等体步骤模拟的时长,单位ps
|
92
|
+
|
93
|
+
:return: The nvt of this MdStepParam.
|
94
|
+
:rtype: float
|
95
|
+
"""
|
96
|
+
return self._nvt
|
97
|
+
|
98
|
+
@nvt.setter
|
99
|
+
def nvt(self, nvt):
|
100
|
+
"""Sets the nvt of this MdStepParam.
|
101
|
+
|
102
|
+
等温等体步骤模拟的时长,单位ps
|
103
|
+
|
104
|
+
:param nvt: The nvt of this MdStepParam.
|
105
|
+
:type nvt: float
|
106
|
+
"""
|
107
|
+
self._nvt = nvt
|
108
|
+
|
109
|
+
@property
|
110
|
+
def npt(self):
|
111
|
+
"""Gets the npt of this MdStepParam.
|
112
|
+
|
113
|
+
等压等温步骤模拟的时长,单位ps
|
114
|
+
|
115
|
+
:return: The npt of this MdStepParam.
|
116
|
+
:rtype: float
|
117
|
+
"""
|
118
|
+
return self._npt
|
119
|
+
|
120
|
+
@npt.setter
|
121
|
+
def npt(self, npt):
|
122
|
+
"""Sets the npt of this MdStepParam.
|
123
|
+
|
124
|
+
等压等温步骤模拟的时长,单位ps
|
125
|
+
|
126
|
+
:param npt: The npt of this MdStepParam.
|
127
|
+
:type npt: float
|
128
|
+
"""
|
129
|
+
self._npt = npt
|
130
|
+
|
131
|
+
@property
|
132
|
+
def simulation_time(self):
|
133
|
+
"""Gets the simulation_time of this MdStepParam.
|
134
|
+
|
135
|
+
平衡步骤模拟的时长,单位ns
|
136
|
+
|
137
|
+
:return: The simulation_time of this MdStepParam.
|
138
|
+
:rtype: float
|
139
|
+
"""
|
140
|
+
return self._simulation_time
|
141
|
+
|
142
|
+
@simulation_time.setter
|
143
|
+
def simulation_time(self, simulation_time):
|
144
|
+
"""Sets the simulation_time of this MdStepParam.
|
145
|
+
|
146
|
+
平衡步骤模拟的时长,单位ns
|
147
|
+
|
148
|
+
:param simulation_time: The simulation_time of this MdStepParam.
|
149
|
+
:type simulation_time: float
|
150
|
+
"""
|
151
|
+
self._simulation_time = simulation_time
|
152
|
+
|
153
|
+
def to_dict(self):
|
154
|
+
"""Returns the model properties as a dict"""
|
155
|
+
result = {}
|
156
|
+
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
158
|
+
value = getattr(self, attr)
|
159
|
+
if isinstance(value, list):
|
160
|
+
result[attr] = list(map(
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
162
|
+
value
|
163
|
+
))
|
164
|
+
elif hasattr(value, "to_dict"):
|
165
|
+
result[attr] = value.to_dict()
|
166
|
+
elif isinstance(value, dict):
|
167
|
+
result[attr] = dict(map(
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
170
|
+
value.items()
|
171
|
+
))
|
172
|
+
else:
|
173
|
+
if attr in self.sensitive_list:
|
174
|
+
result[attr] = "****"
|
175
|
+
else:
|
176
|
+
result[attr] = value
|
177
|
+
|
178
|
+
return result
|
179
|
+
|
180
|
+
def to_str(self):
|
181
|
+
"""Returns the string representation of the model"""
|
182
|
+
import simplejson as json
|
183
|
+
if six.PY2:
|
184
|
+
import sys
|
185
|
+
reload(sys)
|
186
|
+
sys.setdefaultencoding("utf-8")
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
188
|
+
|
189
|
+
def __repr__(self):
|
190
|
+
"""For `print`"""
|
191
|
+
return self.to_str()
|
192
|
+
|
193
|
+
def __eq__(self, other):
|
194
|
+
"""Returns true if both objects are equal"""
|
195
|
+
if not isinstance(other, MdStepParam):
|
196
|
+
return False
|
197
|
+
|
198
|
+
return self.__dict__ == other.__dict__
|
199
|
+
|
200
|
+
def __ne__(self, other):
|
201
|
+
"""Returns true if both objects are not equal"""
|
202
|
+
return not self == other
|
@@ -31,7 +31,9 @@ class ModelDto:
|
|
31
31
|
'description': 'str',
|
32
32
|
'failed_message': 'str',
|
33
33
|
'losses': 'list[float]',
|
34
|
-
'metrics': 'list[ModelMetric]'
|
34
|
+
'metrics': 'list[ModelMetric]',
|
35
|
+
'base_model_id': 'str',
|
36
|
+
'base_model_name': 'str'
|
35
37
|
}
|
36
38
|
|
37
39
|
attribute_map = {
|
@@ -49,10 +51,12 @@ class ModelDto:
|
|
49
51
|
'description': 'description',
|
50
52
|
'failed_message': 'failed_message',
|
51
53
|
'losses': 'losses',
|
52
|
-
'metrics': 'metrics'
|
54
|
+
'metrics': 'metrics',
|
55
|
+
'base_model_id': 'base_model_id',
|
56
|
+
'base_model_name': 'base_model_name'
|
53
57
|
}
|
54
58
|
|
55
|
-
def __init__(self, name=None, id=None, type=None, create_time=None, finish_time=None, creator=None, status=None, shareable=None, data_quantity=None, file=None, value_range=None, description=None, failed_message=None, losses=None, metrics=None):
|
59
|
+
def __init__(self, name=None, id=None, type=None, create_time=None, finish_time=None, creator=None, status=None, shareable=None, data_quantity=None, file=None, value_range=None, description=None, failed_message=None, losses=None, metrics=None, base_model_id=None, base_model_name=None):
|
56
60
|
"""ModelDto
|
57
61
|
|
58
62
|
The model defined in huaweicloud sdk
|
@@ -87,6 +91,10 @@ class ModelDto:
|
|
87
91
|
:type losses: list[float]
|
88
92
|
:param metrics: 模型评估指标
|
89
93
|
:type metrics: list[:class:`huaweicloudsdkeihealth.v1.ModelMetric`]
|
94
|
+
:param base_model_id: 基模型id
|
95
|
+
:type base_model_id: str
|
96
|
+
:param base_model_name: 基模型名称
|
97
|
+
:type base_model_name: str
|
90
98
|
"""
|
91
99
|
|
92
100
|
|
@@ -106,6 +114,8 @@ class ModelDto:
|
|
106
114
|
self._failed_message = None
|
107
115
|
self._losses = None
|
108
116
|
self._metrics = None
|
117
|
+
self._base_model_id = None
|
118
|
+
self._base_model_name = None
|
109
119
|
self.discriminator = None
|
110
120
|
|
111
121
|
if name is not None:
|
@@ -138,6 +148,10 @@ class ModelDto:
|
|
138
148
|
self.losses = losses
|
139
149
|
if metrics is not None:
|
140
150
|
self.metrics = metrics
|
151
|
+
if base_model_id is not None:
|
152
|
+
self.base_model_id = base_model_id
|
153
|
+
if base_model_name is not None:
|
154
|
+
self.base_model_name = base_model_name
|
141
155
|
|
142
156
|
@property
|
143
157
|
def name(self):
|
@@ -461,6 +475,50 @@ class ModelDto:
|
|
461
475
|
"""
|
462
476
|
self._metrics = metrics
|
463
477
|
|
478
|
+
@property
|
479
|
+
def base_model_id(self):
|
480
|
+
"""Gets the base_model_id of this ModelDto.
|
481
|
+
|
482
|
+
基模型id
|
483
|
+
|
484
|
+
:return: The base_model_id of this ModelDto.
|
485
|
+
:rtype: str
|
486
|
+
"""
|
487
|
+
return self._base_model_id
|
488
|
+
|
489
|
+
@base_model_id.setter
|
490
|
+
def base_model_id(self, base_model_id):
|
491
|
+
"""Sets the base_model_id of this ModelDto.
|
492
|
+
|
493
|
+
基模型id
|
494
|
+
|
495
|
+
:param base_model_id: The base_model_id of this ModelDto.
|
496
|
+
:type base_model_id: str
|
497
|
+
"""
|
498
|
+
self._base_model_id = base_model_id
|
499
|
+
|
500
|
+
@property
|
501
|
+
def base_model_name(self):
|
502
|
+
"""Gets the base_model_name of this ModelDto.
|
503
|
+
|
504
|
+
基模型名称
|
505
|
+
|
506
|
+
:return: The base_model_name of this ModelDto.
|
507
|
+
:rtype: str
|
508
|
+
"""
|
509
|
+
return self._base_model_name
|
510
|
+
|
511
|
+
@base_model_name.setter
|
512
|
+
def base_model_name(self, base_model_name):
|
513
|
+
"""Sets the base_model_name of this ModelDto.
|
514
|
+
|
515
|
+
基模型名称
|
516
|
+
|
517
|
+
:param base_model_name: The base_model_name of this ModelDto.
|
518
|
+
:type base_model_name: str
|
519
|
+
"""
|
520
|
+
self._base_model_name = base_model_name
|
521
|
+
|
464
522
|
def to_dict(self):
|
465
523
|
"""Returns the model properties as a dict"""
|
466
524
|
result = {}
|
@@ -20,6 +20,7 @@ class PocketFragment:
|
|
20
20
|
'source': 'DrugFileSource',
|
21
21
|
'url': 'str',
|
22
22
|
'format': 'str',
|
23
|
+
'name': 'str',
|
23
24
|
'data': 'str',
|
24
25
|
'edited': 'EditedLigand',
|
25
26
|
'label_sites': 'LabelSite'
|
@@ -29,12 +30,13 @@ class PocketFragment:
|
|
29
30
|
'source': 'source',
|
30
31
|
'url': 'url',
|
31
32
|
'format': 'format',
|
33
|
+
'name': 'name',
|
32
34
|
'data': 'data',
|
33
35
|
'edited': 'edited',
|
34
36
|
'label_sites': 'label_sites'
|
35
37
|
}
|
36
38
|
|
37
|
-
def __init__(self, source=None, url=None, format=None, data=None, edited=None, label_sites=None):
|
39
|
+
def __init__(self, source=None, url=None, format=None, name=None, data=None, edited=None, label_sites=None):
|
38
40
|
"""PocketFragment
|
39
41
|
|
40
42
|
The model defined in huaweicloud sdk
|
@@ -45,6 +47,8 @@ class PocketFragment:
|
|
45
47
|
:type url: str
|
46
48
|
:param format: 文件格式,支持PDB、SDF、MOL2、SMI,仅数据源为RAW时提供
|
47
49
|
:type format: str
|
50
|
+
:param name: 原始配体名称,仅RAW类型时用于配体名称标识
|
51
|
+
:type name: str
|
48
52
|
:param data: 文件原始数据,仅数据源为RAW时提供
|
49
53
|
:type data: str
|
50
54
|
:param edited:
|
@@ -58,6 +62,7 @@ class PocketFragment:
|
|
58
62
|
self._source = None
|
59
63
|
self._url = None
|
60
64
|
self._format = None
|
65
|
+
self._name = None
|
61
66
|
self._data = None
|
62
67
|
self._edited = None
|
63
68
|
self._label_sites = None
|
@@ -69,6 +74,8 @@ class PocketFragment:
|
|
69
74
|
self.url = url
|
70
75
|
if format is not None:
|
71
76
|
self.format = format
|
77
|
+
if name is not None:
|
78
|
+
self.name = name
|
72
79
|
if data is not None:
|
73
80
|
self.data = data
|
74
81
|
if edited is not None:
|
@@ -138,6 +145,28 @@ class PocketFragment:
|
|
138
145
|
"""
|
139
146
|
self._format = format
|
140
147
|
|
148
|
+
@property
|
149
|
+
def name(self):
|
150
|
+
"""Gets the name of this PocketFragment.
|
151
|
+
|
152
|
+
原始配体名称,仅RAW类型时用于配体名称标识
|
153
|
+
|
154
|
+
:return: The name of this PocketFragment.
|
155
|
+
:rtype: str
|
156
|
+
"""
|
157
|
+
return self._name
|
158
|
+
|
159
|
+
@name.setter
|
160
|
+
def name(self, name):
|
161
|
+
"""Sets the name of this PocketFragment.
|
162
|
+
|
163
|
+
原始配体名称,仅RAW类型时用于配体名称标识
|
164
|
+
|
165
|
+
:param name: The name of this PocketFragment.
|
166
|
+
:type name: str
|
167
|
+
"""
|
168
|
+
self._name = name
|
169
|
+
|
141
170
|
@property
|
142
171
|
def data(self):
|
143
172
|
"""Gets the data of this PocketFragment.
|
@@ -0,0 +1,280 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ReceptorDto:
|
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
|
+
'name': 'str',
|
21
|
+
'receptor': 'ReceptorDrugFile',
|
22
|
+
'bounding_box': 'BoundBoxDto',
|
23
|
+
'remove_ion': 'bool',
|
24
|
+
'remove_water': 'bool',
|
25
|
+
'remove_ligand': 'bool',
|
26
|
+
'add_hydrogen': 'bool'
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
'name': 'name',
|
31
|
+
'receptor': 'receptor',
|
32
|
+
'bounding_box': 'bounding_box',
|
33
|
+
'remove_ion': 'remove_ion',
|
34
|
+
'remove_water': 'remove_water',
|
35
|
+
'remove_ligand': 'remove_ligand',
|
36
|
+
'add_hydrogen': 'add_hydrogen'
|
37
|
+
}
|
38
|
+
|
39
|
+
def __init__(self, name=None, receptor=None, bounding_box=None, remove_ion=None, remove_water=None, remove_ligand=None, add_hydrogen=None):
|
40
|
+
"""ReceptorDto
|
41
|
+
|
42
|
+
The model defined in huaweicloud sdk
|
43
|
+
|
44
|
+
:param name: 靶点名称。
|
45
|
+
:type name: str
|
46
|
+
:param receptor:
|
47
|
+
:type receptor: :class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile`
|
48
|
+
:param bounding_box:
|
49
|
+
:type bounding_box: :class:`huaweicloudsdkeihealth.v1.BoundBoxDto`
|
50
|
+
:param remove_ion: 去除受体中的离子。
|
51
|
+
:type remove_ion: bool
|
52
|
+
:param remove_water: 去除受体中的水分子。
|
53
|
+
:type remove_water: bool
|
54
|
+
:param remove_ligand: 去除受体中的配体分子。
|
55
|
+
:type remove_ligand: bool
|
56
|
+
:param add_hydrogen: 增加氢原子。
|
57
|
+
:type add_hydrogen: bool
|
58
|
+
"""
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
self._name = None
|
63
|
+
self._receptor = None
|
64
|
+
self._bounding_box = None
|
65
|
+
self._remove_ion = None
|
66
|
+
self._remove_water = None
|
67
|
+
self._remove_ligand = None
|
68
|
+
self._add_hydrogen = None
|
69
|
+
self.discriminator = None
|
70
|
+
|
71
|
+
if name is not None:
|
72
|
+
self.name = name
|
73
|
+
self.receptor = receptor
|
74
|
+
if bounding_box is not None:
|
75
|
+
self.bounding_box = bounding_box
|
76
|
+
if remove_ion is not None:
|
77
|
+
self.remove_ion = remove_ion
|
78
|
+
if remove_water is not None:
|
79
|
+
self.remove_water = remove_water
|
80
|
+
if remove_ligand is not None:
|
81
|
+
self.remove_ligand = remove_ligand
|
82
|
+
if add_hydrogen is not None:
|
83
|
+
self.add_hydrogen = add_hydrogen
|
84
|
+
|
85
|
+
@property
|
86
|
+
def name(self):
|
87
|
+
"""Gets the name of this ReceptorDto.
|
88
|
+
|
89
|
+
靶点名称。
|
90
|
+
|
91
|
+
:return: The name of this ReceptorDto.
|
92
|
+
:rtype: str
|
93
|
+
"""
|
94
|
+
return self._name
|
95
|
+
|
96
|
+
@name.setter
|
97
|
+
def name(self, name):
|
98
|
+
"""Sets the name of this ReceptorDto.
|
99
|
+
|
100
|
+
靶点名称。
|
101
|
+
|
102
|
+
:param name: The name of this ReceptorDto.
|
103
|
+
:type name: str
|
104
|
+
"""
|
105
|
+
self._name = name
|
106
|
+
|
107
|
+
@property
|
108
|
+
def receptor(self):
|
109
|
+
"""Gets the receptor of this ReceptorDto.
|
110
|
+
|
111
|
+
:return: The receptor of this ReceptorDto.
|
112
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile`
|
113
|
+
"""
|
114
|
+
return self._receptor
|
115
|
+
|
116
|
+
@receptor.setter
|
117
|
+
def receptor(self, receptor):
|
118
|
+
"""Sets the receptor of this ReceptorDto.
|
119
|
+
|
120
|
+
:param receptor: The receptor of this ReceptorDto.
|
121
|
+
:type receptor: :class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile`
|
122
|
+
"""
|
123
|
+
self._receptor = receptor
|
124
|
+
|
125
|
+
@property
|
126
|
+
def bounding_box(self):
|
127
|
+
"""Gets the bounding_box of this ReceptorDto.
|
128
|
+
|
129
|
+
:return: The bounding_box of this ReceptorDto.
|
130
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.BoundBoxDto`
|
131
|
+
"""
|
132
|
+
return self._bounding_box
|
133
|
+
|
134
|
+
@bounding_box.setter
|
135
|
+
def bounding_box(self, bounding_box):
|
136
|
+
"""Sets the bounding_box of this ReceptorDto.
|
137
|
+
|
138
|
+
:param bounding_box: The bounding_box of this ReceptorDto.
|
139
|
+
:type bounding_box: :class:`huaweicloudsdkeihealth.v1.BoundBoxDto`
|
140
|
+
"""
|
141
|
+
self._bounding_box = bounding_box
|
142
|
+
|
143
|
+
@property
|
144
|
+
def remove_ion(self):
|
145
|
+
"""Gets the remove_ion of this ReceptorDto.
|
146
|
+
|
147
|
+
去除受体中的离子。
|
148
|
+
|
149
|
+
:return: The remove_ion of this ReceptorDto.
|
150
|
+
:rtype: bool
|
151
|
+
"""
|
152
|
+
return self._remove_ion
|
153
|
+
|
154
|
+
@remove_ion.setter
|
155
|
+
def remove_ion(self, remove_ion):
|
156
|
+
"""Sets the remove_ion of this ReceptorDto.
|
157
|
+
|
158
|
+
去除受体中的离子。
|
159
|
+
|
160
|
+
:param remove_ion: The remove_ion of this ReceptorDto.
|
161
|
+
:type remove_ion: bool
|
162
|
+
"""
|
163
|
+
self._remove_ion = remove_ion
|
164
|
+
|
165
|
+
@property
|
166
|
+
def remove_water(self):
|
167
|
+
"""Gets the remove_water of this ReceptorDto.
|
168
|
+
|
169
|
+
去除受体中的水分子。
|
170
|
+
|
171
|
+
:return: The remove_water of this ReceptorDto.
|
172
|
+
:rtype: bool
|
173
|
+
"""
|
174
|
+
return self._remove_water
|
175
|
+
|
176
|
+
@remove_water.setter
|
177
|
+
def remove_water(self, remove_water):
|
178
|
+
"""Sets the remove_water of this ReceptorDto.
|
179
|
+
|
180
|
+
去除受体中的水分子。
|
181
|
+
|
182
|
+
:param remove_water: The remove_water of this ReceptorDto.
|
183
|
+
:type remove_water: bool
|
184
|
+
"""
|
185
|
+
self._remove_water = remove_water
|
186
|
+
|
187
|
+
@property
|
188
|
+
def remove_ligand(self):
|
189
|
+
"""Gets the remove_ligand of this ReceptorDto.
|
190
|
+
|
191
|
+
去除受体中的配体分子。
|
192
|
+
|
193
|
+
:return: The remove_ligand of this ReceptorDto.
|
194
|
+
:rtype: bool
|
195
|
+
"""
|
196
|
+
return self._remove_ligand
|
197
|
+
|
198
|
+
@remove_ligand.setter
|
199
|
+
def remove_ligand(self, remove_ligand):
|
200
|
+
"""Sets the remove_ligand of this ReceptorDto.
|
201
|
+
|
202
|
+
去除受体中的配体分子。
|
203
|
+
|
204
|
+
:param remove_ligand: The remove_ligand of this ReceptorDto.
|
205
|
+
:type remove_ligand: bool
|
206
|
+
"""
|
207
|
+
self._remove_ligand = remove_ligand
|
208
|
+
|
209
|
+
@property
|
210
|
+
def add_hydrogen(self):
|
211
|
+
"""Gets the add_hydrogen of this ReceptorDto.
|
212
|
+
|
213
|
+
增加氢原子。
|
214
|
+
|
215
|
+
:return: The add_hydrogen of this ReceptorDto.
|
216
|
+
:rtype: bool
|
217
|
+
"""
|
218
|
+
return self._add_hydrogen
|
219
|
+
|
220
|
+
@add_hydrogen.setter
|
221
|
+
def add_hydrogen(self, add_hydrogen):
|
222
|
+
"""Sets the add_hydrogen of this ReceptorDto.
|
223
|
+
|
224
|
+
增加氢原子。
|
225
|
+
|
226
|
+
:param add_hydrogen: The add_hydrogen of this ReceptorDto.
|
227
|
+
:type add_hydrogen: bool
|
228
|
+
"""
|
229
|
+
self._add_hydrogen = add_hydrogen
|
230
|
+
|
231
|
+
def to_dict(self):
|
232
|
+
"""Returns the model properties as a dict"""
|
233
|
+
result = {}
|
234
|
+
|
235
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
236
|
+
value = getattr(self, attr)
|
237
|
+
if isinstance(value, list):
|
238
|
+
result[attr] = list(map(
|
239
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
240
|
+
value
|
241
|
+
))
|
242
|
+
elif hasattr(value, "to_dict"):
|
243
|
+
result[attr] = value.to_dict()
|
244
|
+
elif isinstance(value, dict):
|
245
|
+
result[attr] = dict(map(
|
246
|
+
lambda item: (item[0], item[1].to_dict())
|
247
|
+
if hasattr(item[1], "to_dict") else item,
|
248
|
+
value.items()
|
249
|
+
))
|
250
|
+
else:
|
251
|
+
if attr in self.sensitive_list:
|
252
|
+
result[attr] = "****"
|
253
|
+
else:
|
254
|
+
result[attr] = value
|
255
|
+
|
256
|
+
return result
|
257
|
+
|
258
|
+
def to_str(self):
|
259
|
+
"""Returns the string representation of the model"""
|
260
|
+
import simplejson as json
|
261
|
+
if six.PY2:
|
262
|
+
import sys
|
263
|
+
reload(sys)
|
264
|
+
sys.setdefaultencoding("utf-8")
|
265
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
266
|
+
|
267
|
+
def __repr__(self):
|
268
|
+
"""For `print`"""
|
269
|
+
return self.to_str()
|
270
|
+
|
271
|
+
def __eq__(self, other):
|
272
|
+
"""Returns true if both objects are equal"""
|
273
|
+
if not isinstance(other, ReceptorDto):
|
274
|
+
return False
|
275
|
+
|
276
|
+
return self.__dict__ == other.__dict__
|
277
|
+
|
278
|
+
def __ne__(self, other):
|
279
|
+
"""Returns true if both objects are not equal"""
|
280
|
+
return not self == other
|