huaweicloudsdkeihealth 3.1.85__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.85.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.85.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/RECORD +134 -34
- {huaweicloudsdkeihealth-3.1.85.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkeihealth-3.1.85.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.85.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,338 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateGenJobReq:
|
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
|
+
'basic_info': 'CreateDrugJobBasicInfo',
|
21
|
+
'smiles_list': 'list[str]',
|
22
|
+
'molecule_file': 'DrugFile',
|
23
|
+
'binding_sites': 'list[BindSiteDto]',
|
24
|
+
'weak_constraints': 'list[WeakConstraintDto]',
|
25
|
+
'strong_constraints': 'list[StrongConstraintDto]',
|
26
|
+
'base_model_id': 'str',
|
27
|
+
'model_ids': 'list[str]',
|
28
|
+
'num_trials': 'int'
|
29
|
+
}
|
30
|
+
|
31
|
+
attribute_map = {
|
32
|
+
'basic_info': 'basic_info',
|
33
|
+
'smiles_list': 'smiles_list',
|
34
|
+
'molecule_file': 'molecule_file',
|
35
|
+
'binding_sites': 'binding_sites',
|
36
|
+
'weak_constraints': 'weak_constraints',
|
37
|
+
'strong_constraints': 'strong_constraints',
|
38
|
+
'base_model_id': 'base_model_id',
|
39
|
+
'model_ids': 'model_ids',
|
40
|
+
'num_trials': 'num_trials'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, basic_info=None, smiles_list=None, molecule_file=None, binding_sites=None, weak_constraints=None, strong_constraints=None, base_model_id=None, model_ids=None, num_trials=None):
|
44
|
+
"""CreateGenJobReq
|
45
|
+
|
46
|
+
The model defined in huaweicloud sdk
|
47
|
+
|
48
|
+
:param basic_info:
|
49
|
+
:type basic_info: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo`
|
50
|
+
:param smiles_list: 分子表达式列表
|
51
|
+
:type smiles_list: list[str]
|
52
|
+
:param molecule_file:
|
53
|
+
:type molecule_file: :class:`huaweicloudsdkeihealth.v1.DrugFile`
|
54
|
+
:param binding_sites: 靶点列表
|
55
|
+
:type binding_sites: list[:class:`huaweicloudsdkeihealth.v1.BindSiteDto`]
|
56
|
+
:param weak_constraints: 弱约束集合
|
57
|
+
:type weak_constraints: list[:class:`huaweicloudsdkeihealth.v1.WeakConstraintDto`]
|
58
|
+
:param strong_constraints: 强约束集合
|
59
|
+
:type strong_constraints: list[:class:`huaweicloudsdkeihealth.v1.StrongConstraintDto`]
|
60
|
+
:param base_model_id: 基模型id
|
61
|
+
:type base_model_id: str
|
62
|
+
:param model_ids: 模型id列表
|
63
|
+
:type model_ids: list[str]
|
64
|
+
:param num_trials: 生成分子数量
|
65
|
+
:type num_trials: int
|
66
|
+
"""
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
self._basic_info = None
|
71
|
+
self._smiles_list = None
|
72
|
+
self._molecule_file = None
|
73
|
+
self._binding_sites = None
|
74
|
+
self._weak_constraints = None
|
75
|
+
self._strong_constraints = None
|
76
|
+
self._base_model_id = None
|
77
|
+
self._model_ids = None
|
78
|
+
self._num_trials = None
|
79
|
+
self.discriminator = None
|
80
|
+
|
81
|
+
self.basic_info = basic_info
|
82
|
+
if smiles_list is not None:
|
83
|
+
self.smiles_list = smiles_list
|
84
|
+
if molecule_file is not None:
|
85
|
+
self.molecule_file = molecule_file
|
86
|
+
if binding_sites is not None:
|
87
|
+
self.binding_sites = binding_sites
|
88
|
+
if weak_constraints is not None:
|
89
|
+
self.weak_constraints = weak_constraints
|
90
|
+
if strong_constraints is not None:
|
91
|
+
self.strong_constraints = strong_constraints
|
92
|
+
if base_model_id is not None:
|
93
|
+
self.base_model_id = base_model_id
|
94
|
+
if model_ids is not None:
|
95
|
+
self.model_ids = model_ids
|
96
|
+
if num_trials is not None:
|
97
|
+
self.num_trials = num_trials
|
98
|
+
|
99
|
+
@property
|
100
|
+
def basic_info(self):
|
101
|
+
"""Gets the basic_info of this CreateGenJobReq.
|
102
|
+
|
103
|
+
:return: The basic_info of this CreateGenJobReq.
|
104
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo`
|
105
|
+
"""
|
106
|
+
return self._basic_info
|
107
|
+
|
108
|
+
@basic_info.setter
|
109
|
+
def basic_info(self, basic_info):
|
110
|
+
"""Sets the basic_info of this CreateGenJobReq.
|
111
|
+
|
112
|
+
:param basic_info: The basic_info of this CreateGenJobReq.
|
113
|
+
:type basic_info: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo`
|
114
|
+
"""
|
115
|
+
self._basic_info = basic_info
|
116
|
+
|
117
|
+
@property
|
118
|
+
def smiles_list(self):
|
119
|
+
"""Gets the smiles_list of this CreateGenJobReq.
|
120
|
+
|
121
|
+
分子表达式列表
|
122
|
+
|
123
|
+
:return: The smiles_list of this CreateGenJobReq.
|
124
|
+
:rtype: list[str]
|
125
|
+
"""
|
126
|
+
return self._smiles_list
|
127
|
+
|
128
|
+
@smiles_list.setter
|
129
|
+
def smiles_list(self, smiles_list):
|
130
|
+
"""Sets the smiles_list of this CreateGenJobReq.
|
131
|
+
|
132
|
+
分子表达式列表
|
133
|
+
|
134
|
+
:param smiles_list: The smiles_list of this CreateGenJobReq.
|
135
|
+
:type smiles_list: list[str]
|
136
|
+
"""
|
137
|
+
self._smiles_list = smiles_list
|
138
|
+
|
139
|
+
@property
|
140
|
+
def molecule_file(self):
|
141
|
+
"""Gets the molecule_file of this CreateGenJobReq.
|
142
|
+
|
143
|
+
:return: The molecule_file of this CreateGenJobReq.
|
144
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.DrugFile`
|
145
|
+
"""
|
146
|
+
return self._molecule_file
|
147
|
+
|
148
|
+
@molecule_file.setter
|
149
|
+
def molecule_file(self, molecule_file):
|
150
|
+
"""Sets the molecule_file of this CreateGenJobReq.
|
151
|
+
|
152
|
+
:param molecule_file: The molecule_file of this CreateGenJobReq.
|
153
|
+
:type molecule_file: :class:`huaweicloudsdkeihealth.v1.DrugFile`
|
154
|
+
"""
|
155
|
+
self._molecule_file = molecule_file
|
156
|
+
|
157
|
+
@property
|
158
|
+
def binding_sites(self):
|
159
|
+
"""Gets the binding_sites of this CreateGenJobReq.
|
160
|
+
|
161
|
+
靶点列表
|
162
|
+
|
163
|
+
:return: The binding_sites of this CreateGenJobReq.
|
164
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.BindSiteDto`]
|
165
|
+
"""
|
166
|
+
return self._binding_sites
|
167
|
+
|
168
|
+
@binding_sites.setter
|
169
|
+
def binding_sites(self, binding_sites):
|
170
|
+
"""Sets the binding_sites of this CreateGenJobReq.
|
171
|
+
|
172
|
+
靶点列表
|
173
|
+
|
174
|
+
:param binding_sites: The binding_sites of this CreateGenJobReq.
|
175
|
+
:type binding_sites: list[:class:`huaweicloudsdkeihealth.v1.BindSiteDto`]
|
176
|
+
"""
|
177
|
+
self._binding_sites = binding_sites
|
178
|
+
|
179
|
+
@property
|
180
|
+
def weak_constraints(self):
|
181
|
+
"""Gets the weak_constraints of this CreateGenJobReq.
|
182
|
+
|
183
|
+
弱约束集合
|
184
|
+
|
185
|
+
:return: The weak_constraints of this CreateGenJobReq.
|
186
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.WeakConstraintDto`]
|
187
|
+
"""
|
188
|
+
return self._weak_constraints
|
189
|
+
|
190
|
+
@weak_constraints.setter
|
191
|
+
def weak_constraints(self, weak_constraints):
|
192
|
+
"""Sets the weak_constraints of this CreateGenJobReq.
|
193
|
+
|
194
|
+
弱约束集合
|
195
|
+
|
196
|
+
:param weak_constraints: The weak_constraints of this CreateGenJobReq.
|
197
|
+
:type weak_constraints: list[:class:`huaweicloudsdkeihealth.v1.WeakConstraintDto`]
|
198
|
+
"""
|
199
|
+
self._weak_constraints = weak_constraints
|
200
|
+
|
201
|
+
@property
|
202
|
+
def strong_constraints(self):
|
203
|
+
"""Gets the strong_constraints of this CreateGenJobReq.
|
204
|
+
|
205
|
+
强约束集合
|
206
|
+
|
207
|
+
:return: The strong_constraints of this CreateGenJobReq.
|
208
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.StrongConstraintDto`]
|
209
|
+
"""
|
210
|
+
return self._strong_constraints
|
211
|
+
|
212
|
+
@strong_constraints.setter
|
213
|
+
def strong_constraints(self, strong_constraints):
|
214
|
+
"""Sets the strong_constraints of this CreateGenJobReq.
|
215
|
+
|
216
|
+
强约束集合
|
217
|
+
|
218
|
+
:param strong_constraints: The strong_constraints of this CreateGenJobReq.
|
219
|
+
:type strong_constraints: list[:class:`huaweicloudsdkeihealth.v1.StrongConstraintDto`]
|
220
|
+
"""
|
221
|
+
self._strong_constraints = strong_constraints
|
222
|
+
|
223
|
+
@property
|
224
|
+
def base_model_id(self):
|
225
|
+
"""Gets the base_model_id of this CreateGenJobReq.
|
226
|
+
|
227
|
+
基模型id
|
228
|
+
|
229
|
+
:return: The base_model_id of this CreateGenJobReq.
|
230
|
+
:rtype: str
|
231
|
+
"""
|
232
|
+
return self._base_model_id
|
233
|
+
|
234
|
+
@base_model_id.setter
|
235
|
+
def base_model_id(self, base_model_id):
|
236
|
+
"""Sets the base_model_id of this CreateGenJobReq.
|
237
|
+
|
238
|
+
基模型id
|
239
|
+
|
240
|
+
:param base_model_id: The base_model_id of this CreateGenJobReq.
|
241
|
+
:type base_model_id: str
|
242
|
+
"""
|
243
|
+
self._base_model_id = base_model_id
|
244
|
+
|
245
|
+
@property
|
246
|
+
def model_ids(self):
|
247
|
+
"""Gets the model_ids of this CreateGenJobReq.
|
248
|
+
|
249
|
+
模型id列表
|
250
|
+
|
251
|
+
:return: The model_ids of this CreateGenJobReq.
|
252
|
+
:rtype: list[str]
|
253
|
+
"""
|
254
|
+
return self._model_ids
|
255
|
+
|
256
|
+
@model_ids.setter
|
257
|
+
def model_ids(self, model_ids):
|
258
|
+
"""Sets the model_ids of this CreateGenJobReq.
|
259
|
+
|
260
|
+
模型id列表
|
261
|
+
|
262
|
+
:param model_ids: The model_ids of this CreateGenJobReq.
|
263
|
+
:type model_ids: list[str]
|
264
|
+
"""
|
265
|
+
self._model_ids = model_ids
|
266
|
+
|
267
|
+
@property
|
268
|
+
def num_trials(self):
|
269
|
+
"""Gets the num_trials of this CreateGenJobReq.
|
270
|
+
|
271
|
+
生成分子数量
|
272
|
+
|
273
|
+
:return: The num_trials of this CreateGenJobReq.
|
274
|
+
:rtype: int
|
275
|
+
"""
|
276
|
+
return self._num_trials
|
277
|
+
|
278
|
+
@num_trials.setter
|
279
|
+
def num_trials(self, num_trials):
|
280
|
+
"""Sets the num_trials of this CreateGenJobReq.
|
281
|
+
|
282
|
+
生成分子数量
|
283
|
+
|
284
|
+
:param num_trials: The num_trials of this CreateGenJobReq.
|
285
|
+
:type num_trials: int
|
286
|
+
"""
|
287
|
+
self._num_trials = num_trials
|
288
|
+
|
289
|
+
def to_dict(self):
|
290
|
+
"""Returns the model properties as a dict"""
|
291
|
+
result = {}
|
292
|
+
|
293
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
294
|
+
value = getattr(self, attr)
|
295
|
+
if isinstance(value, list):
|
296
|
+
result[attr] = list(map(
|
297
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
298
|
+
value
|
299
|
+
))
|
300
|
+
elif hasattr(value, "to_dict"):
|
301
|
+
result[attr] = value.to_dict()
|
302
|
+
elif isinstance(value, dict):
|
303
|
+
result[attr] = dict(map(
|
304
|
+
lambda item: (item[0], item[1].to_dict())
|
305
|
+
if hasattr(item[1], "to_dict") else item,
|
306
|
+
value.items()
|
307
|
+
))
|
308
|
+
else:
|
309
|
+
if attr in self.sensitive_list:
|
310
|
+
result[attr] = "****"
|
311
|
+
else:
|
312
|
+
result[attr] = value
|
313
|
+
|
314
|
+
return result
|
315
|
+
|
316
|
+
def to_str(self):
|
317
|
+
"""Returns the string representation of the model"""
|
318
|
+
import simplejson as json
|
319
|
+
if six.PY2:
|
320
|
+
import sys
|
321
|
+
reload(sys)
|
322
|
+
sys.setdefaultencoding("utf-8")
|
323
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
324
|
+
|
325
|
+
def __repr__(self):
|
326
|
+
"""For `print`"""
|
327
|
+
return self.to_str()
|
328
|
+
|
329
|
+
def __eq__(self, other):
|
330
|
+
"""Returns true if both objects are equal"""
|
331
|
+
if not isinstance(other, CreateGenJobReq):
|
332
|
+
return False
|
333
|
+
|
334
|
+
return self.__dict__ == other.__dict__
|
335
|
+
|
336
|
+
def __ne__(self, other):
|
337
|
+
"""Returns true if both objects are not equal"""
|
338
|
+
return not self == other
|
@@ -0,0 +1,139 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateGenJobRequest:
|
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
|
+
'body': 'CreateGenJobReq'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'eihealth_project_id': 'eihealth_project_id',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, eihealth_project_id=None, body=None):
|
30
|
+
"""CreateGenJobRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param eihealth_project_id: 平台项目ID。
|
35
|
+
:type eihealth_project_id: str
|
36
|
+
:param body: Body of the CreateGenJobRequest
|
37
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.CreateGenJobReq`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._eihealth_project_id = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.eihealth_project_id = eihealth_project_id
|
47
|
+
if body is not None:
|
48
|
+
self.body = body
|
49
|
+
|
50
|
+
@property
|
51
|
+
def eihealth_project_id(self):
|
52
|
+
"""Gets the eihealth_project_id of this CreateGenJobRequest.
|
53
|
+
|
54
|
+
平台项目ID。
|
55
|
+
|
56
|
+
:return: The eihealth_project_id of this CreateGenJobRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._eihealth_project_id
|
60
|
+
|
61
|
+
@eihealth_project_id.setter
|
62
|
+
def eihealth_project_id(self, eihealth_project_id):
|
63
|
+
"""Sets the eihealth_project_id of this CreateGenJobRequest.
|
64
|
+
|
65
|
+
平台项目ID。
|
66
|
+
|
67
|
+
:param eihealth_project_id: The eihealth_project_id of this CreateGenJobRequest.
|
68
|
+
:type eihealth_project_id: str
|
69
|
+
"""
|
70
|
+
self._eihealth_project_id = eihealth_project_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def body(self):
|
74
|
+
"""Gets the body of this CreateGenJobRequest.
|
75
|
+
|
76
|
+
:return: The body of this CreateGenJobRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.CreateGenJobReq`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
"""Sets the body of this CreateGenJobRequest.
|
84
|
+
|
85
|
+
:param body: The body of this CreateGenJobRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.CreateGenJobReq`
|
87
|
+
"""
|
88
|
+
self._body = body
|
89
|
+
|
90
|
+
def to_dict(self):
|
91
|
+
"""Returns the model properties as a dict"""
|
92
|
+
result = {}
|
93
|
+
|
94
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
95
|
+
value = getattr(self, attr)
|
96
|
+
if isinstance(value, list):
|
97
|
+
result[attr] = list(map(
|
98
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
99
|
+
value
|
100
|
+
))
|
101
|
+
elif hasattr(value, "to_dict"):
|
102
|
+
result[attr] = value.to_dict()
|
103
|
+
elif isinstance(value, dict):
|
104
|
+
result[attr] = dict(map(
|
105
|
+
lambda item: (item[0], item[1].to_dict())
|
106
|
+
if hasattr(item[1], "to_dict") else item,
|
107
|
+
value.items()
|
108
|
+
))
|
109
|
+
else:
|
110
|
+
if attr in self.sensitive_list:
|
111
|
+
result[attr] = "****"
|
112
|
+
else:
|
113
|
+
result[attr] = value
|
114
|
+
|
115
|
+
return result
|
116
|
+
|
117
|
+
def to_str(self):
|
118
|
+
"""Returns the string representation of the model"""
|
119
|
+
import simplejson as json
|
120
|
+
if six.PY2:
|
121
|
+
import sys
|
122
|
+
reload(sys)
|
123
|
+
sys.setdefaultencoding("utf-8")
|
124
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
125
|
+
|
126
|
+
def __repr__(self):
|
127
|
+
"""For `print`"""
|
128
|
+
return self.to_str()
|
129
|
+
|
130
|
+
def __eq__(self, other):
|
131
|
+
"""Returns true if both objects are equal"""
|
132
|
+
if not isinstance(other, CreateGenJobRequest):
|
133
|
+
return False
|
134
|
+
|
135
|
+
return self.__dict__ == other.__dict__
|
136
|
+
|
137
|
+
def __ne__(self, other):
|
138
|
+
"""Returns true if both objects are not equal"""
|
139
|
+
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 CreateGenJobResponse(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
|
+
'id': 'str',
|
22
|
+
'limit_concurrency': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'id': 'id',
|
27
|
+
'limit_concurrency': 'limit_concurrency'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, id=None, limit_concurrency=None):
|
31
|
+
"""CreateGenJobResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param id: 作业id
|
36
|
+
:type id: str
|
37
|
+
:param limit_concurrency: 限制的并发量
|
38
|
+
:type limit_concurrency: int
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(CreateGenJobResponse, self).__init__()
|
42
|
+
|
43
|
+
self._id = None
|
44
|
+
self._limit_concurrency = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if id is not None:
|
48
|
+
self.id = id
|
49
|
+
if limit_concurrency is not None:
|
50
|
+
self.limit_concurrency = limit_concurrency
|
51
|
+
|
52
|
+
@property
|
53
|
+
def id(self):
|
54
|
+
"""Gets the id of this CreateGenJobResponse.
|
55
|
+
|
56
|
+
作业id
|
57
|
+
|
58
|
+
:return: The id of this CreateGenJobResponse.
|
59
|
+
:rtype: str
|
60
|
+
"""
|
61
|
+
return self._id
|
62
|
+
|
63
|
+
@id.setter
|
64
|
+
def id(self, id):
|
65
|
+
"""Sets the id of this CreateGenJobResponse.
|
66
|
+
|
67
|
+
作业id
|
68
|
+
|
69
|
+
:param id: The id of this CreateGenJobResponse.
|
70
|
+
:type id: str
|
71
|
+
"""
|
72
|
+
self._id = id
|
73
|
+
|
74
|
+
@property
|
75
|
+
def limit_concurrency(self):
|
76
|
+
"""Gets the limit_concurrency of this CreateGenJobResponse.
|
77
|
+
|
78
|
+
限制的并发量
|
79
|
+
|
80
|
+
:return: The limit_concurrency of this CreateGenJobResponse.
|
81
|
+
:rtype: int
|
82
|
+
"""
|
83
|
+
return self._limit_concurrency
|
84
|
+
|
85
|
+
@limit_concurrency.setter
|
86
|
+
def limit_concurrency(self, limit_concurrency):
|
87
|
+
"""Sets the limit_concurrency of this CreateGenJobResponse.
|
88
|
+
|
89
|
+
限制的并发量
|
90
|
+
|
91
|
+
:param limit_concurrency: The limit_concurrency of this CreateGenJobResponse.
|
92
|
+
:type limit_concurrency: int
|
93
|
+
"""
|
94
|
+
self._limit_concurrency = limit_concurrency
|
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, CreateGenJobResponse):
|
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
|
@@ -19,16 +19,18 @@ class CreateLigandPreviewTaskReq:
|
|
19
19
|
openapi_types = {
|
20
20
|
'ligand_file': 'DrugFile',
|
21
21
|
'preview_count': 'int',
|
22
|
-
'count_limit': 'int'
|
22
|
+
'count_limit': 'int',
|
23
|
+
'generate_3d': 'bool'
|
23
24
|
}
|
24
25
|
|
25
26
|
attribute_map = {
|
26
27
|
'ligand_file': 'ligand_file',
|
27
28
|
'preview_count': 'preview_count',
|
28
|
-
'count_limit': 'count_limit'
|
29
|
+
'count_limit': 'count_limit',
|
30
|
+
'generate_3d': 'generate_3d'
|
29
31
|
}
|
30
32
|
|
31
|
-
def __init__(self, ligand_file=None, preview_count=None, count_limit=None):
|
33
|
+
def __init__(self, ligand_file=None, preview_count=None, count_limit=None, generate_3d=None):
|
32
34
|
"""CreateLigandPreviewTaskReq
|
33
35
|
|
34
36
|
The model defined in huaweicloud sdk
|
@@ -39,6 +41,8 @@ class CreateLigandPreviewTaskReq:
|
|
39
41
|
:type preview_count: int
|
40
42
|
:param count_limit: 计数上限,若分子数量大于计数上限,则终止计数并在结果中标明计数不完整(has_more=true),计数数量应不小于preview_count
|
41
43
|
:type count_limit: int
|
44
|
+
:param generate_3d: 是否生成3D构象,默认为true
|
45
|
+
:type generate_3d: bool
|
42
46
|
"""
|
43
47
|
|
44
48
|
|
@@ -46,6 +50,7 @@ class CreateLigandPreviewTaskReq:
|
|
46
50
|
self._ligand_file = None
|
47
51
|
self._preview_count = None
|
48
52
|
self._count_limit = None
|
53
|
+
self._generate_3d = None
|
49
54
|
self.discriminator = None
|
50
55
|
|
51
56
|
self.ligand_file = ligand_file
|
@@ -53,6 +58,8 @@ class CreateLigandPreviewTaskReq:
|
|
53
58
|
self.preview_count = preview_count
|
54
59
|
if count_limit is not None:
|
55
60
|
self.count_limit = count_limit
|
61
|
+
if generate_3d is not None:
|
62
|
+
self.generate_3d = generate_3d
|
56
63
|
|
57
64
|
@property
|
58
65
|
def ligand_file(self):
|
@@ -116,6 +123,28 @@ class CreateLigandPreviewTaskReq:
|
|
116
123
|
"""
|
117
124
|
self._count_limit = count_limit
|
118
125
|
|
126
|
+
@property
|
127
|
+
def generate_3d(self):
|
128
|
+
"""Gets the generate_3d of this CreateLigandPreviewTaskReq.
|
129
|
+
|
130
|
+
是否生成3D构象,默认为true
|
131
|
+
|
132
|
+
:return: The generate_3d of this CreateLigandPreviewTaskReq.
|
133
|
+
:rtype: bool
|
134
|
+
"""
|
135
|
+
return self._generate_3d
|
136
|
+
|
137
|
+
@generate_3d.setter
|
138
|
+
def generate_3d(self, generate_3d):
|
139
|
+
"""Sets the generate_3d of this CreateLigandPreviewTaskReq.
|
140
|
+
|
141
|
+
是否生成3D构象,默认为true
|
142
|
+
|
143
|
+
:param generate_3d: The generate_3d of this CreateLigandPreviewTaskReq.
|
144
|
+
:type generate_3d: bool
|
145
|
+
"""
|
146
|
+
self._generate_3d = generate_3d
|
147
|
+
|
119
148
|
def to_dict(self):
|
120
149
|
"""Returns the model properties as a dict"""
|
121
150
|
result = {}
|