huaweicloudsdkeihealth 3.1.93__py2.py3-none-any.whl → 3.1.95__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 +44 -0
- huaweicloudsdkeihealth/v1/eihealth_async_client.py +1057 -52
- huaweicloudsdkeihealth/v1/eihealth_client.py +1057 -52
- huaweicloudsdkeihealth/v1/model/__init__.py +44 -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/bind_site_dto.py +30 -1
- 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_drug_database_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/create_drug_database_response.py +116 -0
- 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_optm_job_req.py +30 -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/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/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/get_archive_config_rsp.py +3 -32
- 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 +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/search_type.py +88 -0
- huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_response.py +174 -0
- huaweicloudsdkeihealth/v1/model/show_optm_job_response.py +30 -1
- huaweicloudsdkeihealth/v1/model/show_search_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_search_job_response.py +340 -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-3.1.93.dist-info → huaweicloudsdkeihealth-3.1.95.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.93.dist-info → huaweicloudsdkeihealth-3.1.95.dist-info}/RECORD +60 -16
- {huaweicloudsdkeihealth-3.1.93.dist-info → huaweicloudsdkeihealth-3.1.95.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.93.dist-info → huaweicloudsdkeihealth-3.1.95.dist-info}/WHEEL +0 -0
- {huaweicloudsdkeihealth-3.1.93.dist-info → huaweicloudsdkeihealth-3.1.95.dist-info}/top_level.txt +0 -0
@@ -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
|
@@ -0,0 +1,340 @@
|
|
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 ShowSearchJobResponse(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
|
+
'smiles': 'str',
|
23
|
+
'scaffold': 'str',
|
24
|
+
'top_n': 'int',
|
25
|
+
'databases': 'list[str]',
|
26
|
+
'custom_databases': 'list[str]',
|
27
|
+
'models': 'list[BasicDrugModel]',
|
28
|
+
'search_method': 'SearchType',
|
29
|
+
'part_failed_reason': 'list[FailedReasonRecord]'
|
30
|
+
}
|
31
|
+
|
32
|
+
attribute_map = {
|
33
|
+
'basic_info': 'basic_info',
|
34
|
+
'smiles': 'smiles',
|
35
|
+
'scaffold': 'scaffold',
|
36
|
+
'top_n': 'top_n',
|
37
|
+
'databases': 'databases',
|
38
|
+
'custom_databases': 'custom_databases',
|
39
|
+
'models': 'models',
|
40
|
+
'search_method': 'search_method',
|
41
|
+
'part_failed_reason': 'part_failed_reason'
|
42
|
+
}
|
43
|
+
|
44
|
+
def __init__(self, basic_info=None, smiles=None, scaffold=None, top_n=None, databases=None, custom_databases=None, models=None, search_method=None, part_failed_reason=None):
|
45
|
+
"""ShowSearchJobResponse
|
46
|
+
|
47
|
+
The model defined in huaweicloud sdk
|
48
|
+
|
49
|
+
:param basic_info:
|
50
|
+
:type basic_info: :class:`huaweicloudsdkeihealth.v1.DrugJobDto`
|
51
|
+
:param smiles: 分子SMILES表达式
|
52
|
+
:type smiles: str
|
53
|
+
:param scaffold: 分子骨架表达式
|
54
|
+
:type scaffold: str
|
55
|
+
:param top_n: 生成分子数量
|
56
|
+
:type top_n: int
|
57
|
+
:param databases: 可供搜索分子的公共数据库名称列表
|
58
|
+
:type databases: list[str]
|
59
|
+
:param custom_databases: 可供搜索分子的自定义数据库名称列表
|
60
|
+
:type custom_databases: list[str]
|
61
|
+
:param models: 模型信息
|
62
|
+
:type models: list[:class:`huaweicloudsdkeihealth.v1.BasicDrugModel`]
|
63
|
+
:param search_method:
|
64
|
+
:type search_method: :class:`huaweicloudsdkeihealth.v1.SearchType`
|
65
|
+
:param part_failed_reason: 部分失败原因和数量
|
66
|
+
:type part_failed_reason: list[:class:`huaweicloudsdkeihealth.v1.FailedReasonRecord`]
|
67
|
+
"""
|
68
|
+
|
69
|
+
super(ShowSearchJobResponse, self).__init__()
|
70
|
+
|
71
|
+
self._basic_info = None
|
72
|
+
self._smiles = None
|
73
|
+
self._scaffold = None
|
74
|
+
self._top_n = None
|
75
|
+
self._databases = None
|
76
|
+
self._custom_databases = None
|
77
|
+
self._models = None
|
78
|
+
self._search_method = None
|
79
|
+
self._part_failed_reason = None
|
80
|
+
self.discriminator = None
|
81
|
+
|
82
|
+
if basic_info is not None:
|
83
|
+
self.basic_info = basic_info
|
84
|
+
if smiles is not None:
|
85
|
+
self.smiles = smiles
|
86
|
+
if scaffold is not None:
|
87
|
+
self.scaffold = scaffold
|
88
|
+
if top_n is not None:
|
89
|
+
self.top_n = top_n
|
90
|
+
if databases is not None:
|
91
|
+
self.databases = databases
|
92
|
+
if custom_databases is not None:
|
93
|
+
self.custom_databases = custom_databases
|
94
|
+
if models is not None:
|
95
|
+
self.models = models
|
96
|
+
if search_method is not None:
|
97
|
+
self.search_method = search_method
|
98
|
+
if part_failed_reason is not None:
|
99
|
+
self.part_failed_reason = part_failed_reason
|
100
|
+
|
101
|
+
@property
|
102
|
+
def basic_info(self):
|
103
|
+
"""Gets the basic_info of this ShowSearchJobResponse.
|
104
|
+
|
105
|
+
:return: The basic_info of this ShowSearchJobResponse.
|
106
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.DrugJobDto`
|
107
|
+
"""
|
108
|
+
return self._basic_info
|
109
|
+
|
110
|
+
@basic_info.setter
|
111
|
+
def basic_info(self, basic_info):
|
112
|
+
"""Sets the basic_info of this ShowSearchJobResponse.
|
113
|
+
|
114
|
+
:param basic_info: The basic_info of this ShowSearchJobResponse.
|
115
|
+
:type basic_info: :class:`huaweicloudsdkeihealth.v1.DrugJobDto`
|
116
|
+
"""
|
117
|
+
self._basic_info = basic_info
|
118
|
+
|
119
|
+
@property
|
120
|
+
def smiles(self):
|
121
|
+
"""Gets the smiles of this ShowSearchJobResponse.
|
122
|
+
|
123
|
+
分子SMILES表达式
|
124
|
+
|
125
|
+
:return: The smiles of this ShowSearchJobResponse.
|
126
|
+
:rtype: str
|
127
|
+
"""
|
128
|
+
return self._smiles
|
129
|
+
|
130
|
+
@smiles.setter
|
131
|
+
def smiles(self, smiles):
|
132
|
+
"""Sets the smiles of this ShowSearchJobResponse.
|
133
|
+
|
134
|
+
分子SMILES表达式
|
135
|
+
|
136
|
+
:param smiles: The smiles of this ShowSearchJobResponse.
|
137
|
+
:type smiles: str
|
138
|
+
"""
|
139
|
+
self._smiles = smiles
|
140
|
+
|
141
|
+
@property
|
142
|
+
def scaffold(self):
|
143
|
+
"""Gets the scaffold of this ShowSearchJobResponse.
|
144
|
+
|
145
|
+
分子骨架表达式
|
146
|
+
|
147
|
+
:return: The scaffold of this ShowSearchJobResponse.
|
148
|
+
:rtype: str
|
149
|
+
"""
|
150
|
+
return self._scaffold
|
151
|
+
|
152
|
+
@scaffold.setter
|
153
|
+
def scaffold(self, scaffold):
|
154
|
+
"""Sets the scaffold of this ShowSearchJobResponse.
|
155
|
+
|
156
|
+
分子骨架表达式
|
157
|
+
|
158
|
+
:param scaffold: The scaffold of this ShowSearchJobResponse.
|
159
|
+
:type scaffold: str
|
160
|
+
"""
|
161
|
+
self._scaffold = scaffold
|
162
|
+
|
163
|
+
@property
|
164
|
+
def top_n(self):
|
165
|
+
"""Gets the top_n of this ShowSearchJobResponse.
|
166
|
+
|
167
|
+
生成分子数量
|
168
|
+
|
169
|
+
:return: The top_n of this ShowSearchJobResponse.
|
170
|
+
:rtype: int
|
171
|
+
"""
|
172
|
+
return self._top_n
|
173
|
+
|
174
|
+
@top_n.setter
|
175
|
+
def top_n(self, top_n):
|
176
|
+
"""Sets the top_n of this ShowSearchJobResponse.
|
177
|
+
|
178
|
+
生成分子数量
|
179
|
+
|
180
|
+
:param top_n: The top_n of this ShowSearchJobResponse.
|
181
|
+
:type top_n: int
|
182
|
+
"""
|
183
|
+
self._top_n = top_n
|
184
|
+
|
185
|
+
@property
|
186
|
+
def databases(self):
|
187
|
+
"""Gets the databases of this ShowSearchJobResponse.
|
188
|
+
|
189
|
+
可供搜索分子的公共数据库名称列表
|
190
|
+
|
191
|
+
:return: The databases of this ShowSearchJobResponse.
|
192
|
+
:rtype: list[str]
|
193
|
+
"""
|
194
|
+
return self._databases
|
195
|
+
|
196
|
+
@databases.setter
|
197
|
+
def databases(self, databases):
|
198
|
+
"""Sets the databases of this ShowSearchJobResponse.
|
199
|
+
|
200
|
+
可供搜索分子的公共数据库名称列表
|
201
|
+
|
202
|
+
:param databases: The databases of this ShowSearchJobResponse.
|
203
|
+
:type databases: list[str]
|
204
|
+
"""
|
205
|
+
self._databases = databases
|
206
|
+
|
207
|
+
@property
|
208
|
+
def custom_databases(self):
|
209
|
+
"""Gets the custom_databases of this ShowSearchJobResponse.
|
210
|
+
|
211
|
+
可供搜索分子的自定义数据库名称列表
|
212
|
+
|
213
|
+
:return: The custom_databases of this ShowSearchJobResponse.
|
214
|
+
:rtype: list[str]
|
215
|
+
"""
|
216
|
+
return self._custom_databases
|
217
|
+
|
218
|
+
@custom_databases.setter
|
219
|
+
def custom_databases(self, custom_databases):
|
220
|
+
"""Sets the custom_databases of this ShowSearchJobResponse.
|
221
|
+
|
222
|
+
可供搜索分子的自定义数据库名称列表
|
223
|
+
|
224
|
+
:param custom_databases: The custom_databases of this ShowSearchJobResponse.
|
225
|
+
:type custom_databases: list[str]
|
226
|
+
"""
|
227
|
+
self._custom_databases = custom_databases
|
228
|
+
|
229
|
+
@property
|
230
|
+
def models(self):
|
231
|
+
"""Gets the models of this ShowSearchJobResponse.
|
232
|
+
|
233
|
+
模型信息
|
234
|
+
|
235
|
+
:return: The models of this ShowSearchJobResponse.
|
236
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.BasicDrugModel`]
|
237
|
+
"""
|
238
|
+
return self._models
|
239
|
+
|
240
|
+
@models.setter
|
241
|
+
def models(self, models):
|
242
|
+
"""Sets the models of this ShowSearchJobResponse.
|
243
|
+
|
244
|
+
模型信息
|
245
|
+
|
246
|
+
:param models: The models of this ShowSearchJobResponse.
|
247
|
+
:type models: list[:class:`huaweicloudsdkeihealth.v1.BasicDrugModel`]
|
248
|
+
"""
|
249
|
+
self._models = models
|
250
|
+
|
251
|
+
@property
|
252
|
+
def search_method(self):
|
253
|
+
"""Gets the search_method of this ShowSearchJobResponse.
|
254
|
+
|
255
|
+
:return: The search_method of this ShowSearchJobResponse.
|
256
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.SearchType`
|
257
|
+
"""
|
258
|
+
return self._search_method
|
259
|
+
|
260
|
+
@search_method.setter
|
261
|
+
def search_method(self, search_method):
|
262
|
+
"""Sets the search_method of this ShowSearchJobResponse.
|
263
|
+
|
264
|
+
:param search_method: The search_method of this ShowSearchJobResponse.
|
265
|
+
:type search_method: :class:`huaweicloudsdkeihealth.v1.SearchType`
|
266
|
+
"""
|
267
|
+
self._search_method = search_method
|
268
|
+
|
269
|
+
@property
|
270
|
+
def part_failed_reason(self):
|
271
|
+
"""Gets the part_failed_reason of this ShowSearchJobResponse.
|
272
|
+
|
273
|
+
部分失败原因和数量
|
274
|
+
|
275
|
+
:return: The part_failed_reason of this ShowSearchJobResponse.
|
276
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.FailedReasonRecord`]
|
277
|
+
"""
|
278
|
+
return self._part_failed_reason
|
279
|
+
|
280
|
+
@part_failed_reason.setter
|
281
|
+
def part_failed_reason(self, part_failed_reason):
|
282
|
+
"""Sets the part_failed_reason of this ShowSearchJobResponse.
|
283
|
+
|
284
|
+
部分失败原因和数量
|
285
|
+
|
286
|
+
:param part_failed_reason: The part_failed_reason of this ShowSearchJobResponse.
|
287
|
+
:type part_failed_reason: list[:class:`huaweicloudsdkeihealth.v1.FailedReasonRecord`]
|
288
|
+
"""
|
289
|
+
self._part_failed_reason = part_failed_reason
|
290
|
+
|
291
|
+
def to_dict(self):
|
292
|
+
"""Returns the model properties as a dict"""
|
293
|
+
result = {}
|
294
|
+
|
295
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
296
|
+
value = getattr(self, attr)
|
297
|
+
if isinstance(value, list):
|
298
|
+
result[attr] = list(map(
|
299
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
300
|
+
value
|
301
|
+
))
|
302
|
+
elif hasattr(value, "to_dict"):
|
303
|
+
result[attr] = value.to_dict()
|
304
|
+
elif isinstance(value, dict):
|
305
|
+
result[attr] = dict(map(
|
306
|
+
lambda item: (item[0], item[1].to_dict())
|
307
|
+
if hasattr(item[1], "to_dict") else item,
|
308
|
+
value.items()
|
309
|
+
))
|
310
|
+
else:
|
311
|
+
if attr in self.sensitive_list:
|
312
|
+
result[attr] = "****"
|
313
|
+
else:
|
314
|
+
result[attr] = value
|
315
|
+
|
316
|
+
return result
|
317
|
+
|
318
|
+
def to_str(self):
|
319
|
+
"""Returns the string representation of the model"""
|
320
|
+
import simplejson as json
|
321
|
+
if six.PY2:
|
322
|
+
import sys
|
323
|
+
reload(sys)
|
324
|
+
sys.setdefaultencoding("utf-8")
|
325
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
326
|
+
|
327
|
+
def __repr__(self):
|
328
|
+
"""For `print`"""
|
329
|
+
return self.to_str()
|
330
|
+
|
331
|
+
def __eq__(self, other):
|
332
|
+
"""Returns true if both objects are equal"""
|
333
|
+
if not isinstance(other, ShowSearchJobResponse):
|
334
|
+
return False
|
335
|
+
|
336
|
+
return self.__dict__ == other.__dict__
|
337
|
+
|
338
|
+
def __ne__(self, other):
|
339
|
+
"""Returns true if both objects are not equal"""
|
340
|
+
return not self == other
|