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,174 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ListDrugDatabaseResponse(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
|
+
'databases': 'list[DrugDatabaseDto]',
|
22
|
+
'count': 'int',
|
23
|
+
'cur_user_count': 'int'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'databases': 'databases',
|
28
|
+
'count': 'count',
|
29
|
+
'cur_user_count': 'cur_user_count'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, databases=None, count=None, cur_user_count=None):
|
33
|
+
"""ListDrugDatabaseResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param databases: 数据库列表
|
38
|
+
:type databases: list[:class:`huaweicloudsdkeihealth.v1.DrugDatabaseDto`]
|
39
|
+
:param count: 数据库总数
|
40
|
+
:type count: int
|
41
|
+
:param cur_user_count: 当前用户数据库总数
|
42
|
+
:type cur_user_count: int
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(ListDrugDatabaseResponse, self).__init__()
|
46
|
+
|
47
|
+
self._databases = None
|
48
|
+
self._count = None
|
49
|
+
self._cur_user_count = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if databases is not None:
|
53
|
+
self.databases = databases
|
54
|
+
if count is not None:
|
55
|
+
self.count = count
|
56
|
+
if cur_user_count is not None:
|
57
|
+
self.cur_user_count = cur_user_count
|
58
|
+
|
59
|
+
@property
|
60
|
+
def databases(self):
|
61
|
+
"""Gets the databases of this ListDrugDatabaseResponse.
|
62
|
+
|
63
|
+
数据库列表
|
64
|
+
|
65
|
+
:return: The databases of this ListDrugDatabaseResponse.
|
66
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.DrugDatabaseDto`]
|
67
|
+
"""
|
68
|
+
return self._databases
|
69
|
+
|
70
|
+
@databases.setter
|
71
|
+
def databases(self, databases):
|
72
|
+
"""Sets the databases of this ListDrugDatabaseResponse.
|
73
|
+
|
74
|
+
数据库列表
|
75
|
+
|
76
|
+
:param databases: The databases of this ListDrugDatabaseResponse.
|
77
|
+
:type databases: list[:class:`huaweicloudsdkeihealth.v1.DrugDatabaseDto`]
|
78
|
+
"""
|
79
|
+
self._databases = databases
|
80
|
+
|
81
|
+
@property
|
82
|
+
def count(self):
|
83
|
+
"""Gets the count of this ListDrugDatabaseResponse.
|
84
|
+
|
85
|
+
数据库总数
|
86
|
+
|
87
|
+
:return: The count of this ListDrugDatabaseResponse.
|
88
|
+
:rtype: int
|
89
|
+
"""
|
90
|
+
return self._count
|
91
|
+
|
92
|
+
@count.setter
|
93
|
+
def count(self, count):
|
94
|
+
"""Sets the count of this ListDrugDatabaseResponse.
|
95
|
+
|
96
|
+
数据库总数
|
97
|
+
|
98
|
+
:param count: The count of this ListDrugDatabaseResponse.
|
99
|
+
:type count: int
|
100
|
+
"""
|
101
|
+
self._count = count
|
102
|
+
|
103
|
+
@property
|
104
|
+
def cur_user_count(self):
|
105
|
+
"""Gets the cur_user_count of this ListDrugDatabaseResponse.
|
106
|
+
|
107
|
+
当前用户数据库总数
|
108
|
+
|
109
|
+
:return: The cur_user_count of this ListDrugDatabaseResponse.
|
110
|
+
:rtype: int
|
111
|
+
"""
|
112
|
+
return self._cur_user_count
|
113
|
+
|
114
|
+
@cur_user_count.setter
|
115
|
+
def cur_user_count(self, cur_user_count):
|
116
|
+
"""Sets the cur_user_count of this ListDrugDatabaseResponse.
|
117
|
+
|
118
|
+
当前用户数据库总数
|
119
|
+
|
120
|
+
:param cur_user_count: The cur_user_count of this ListDrugDatabaseResponse.
|
121
|
+
:type cur_user_count: int
|
122
|
+
"""
|
123
|
+
self._cur_user_count = cur_user_count
|
124
|
+
|
125
|
+
def to_dict(self):
|
126
|
+
"""Returns the model properties as a dict"""
|
127
|
+
result = {}
|
128
|
+
|
129
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
130
|
+
value = getattr(self, attr)
|
131
|
+
if isinstance(value, list):
|
132
|
+
result[attr] = list(map(
|
133
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
134
|
+
value
|
135
|
+
))
|
136
|
+
elif hasattr(value, "to_dict"):
|
137
|
+
result[attr] = value.to_dict()
|
138
|
+
elif isinstance(value, dict):
|
139
|
+
result[attr] = dict(map(
|
140
|
+
lambda item: (item[0], item[1].to_dict())
|
141
|
+
if hasattr(item[1], "to_dict") else item,
|
142
|
+
value.items()
|
143
|
+
))
|
144
|
+
else:
|
145
|
+
if attr in self.sensitive_list:
|
146
|
+
result[attr] = "****"
|
147
|
+
else:
|
148
|
+
result[attr] = value
|
149
|
+
|
150
|
+
return result
|
151
|
+
|
152
|
+
def to_str(self):
|
153
|
+
"""Returns the string representation of the model"""
|
154
|
+
import simplejson as json
|
155
|
+
if six.PY2:
|
156
|
+
import sys
|
157
|
+
reload(sys)
|
158
|
+
sys.setdefaultencoding("utf-8")
|
159
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
160
|
+
|
161
|
+
def __repr__(self):
|
162
|
+
"""For `print`"""
|
163
|
+
return self.to_str()
|
164
|
+
|
165
|
+
def __eq__(self, other):
|
166
|
+
"""Returns true if both objects are equal"""
|
167
|
+
if not isinstance(other, ListDrugDatabaseResponse):
|
168
|
+
return False
|
169
|
+
|
170
|
+
return self.__dict__ == other.__dict__
|
171
|
+
|
172
|
+
def __ne__(self, other):
|
173
|
+
"""Returns true if both objects are not equal"""
|
174
|
+
return not self == other
|
@@ -28,7 +28,8 @@ class ListDrugModelRequest:
|
|
28
28
|
'finish_start_time': 'int',
|
29
29
|
'finish_end_time': 'int',
|
30
30
|
'limit': 'int',
|
31
|
-
'offset': 'int'
|
31
|
+
'offset': 'int',
|
32
|
+
'base_model_list': 'list[str]'
|
32
33
|
}
|
33
34
|
|
34
35
|
attribute_map = {
|
@@ -43,10 +44,11 @@ class ListDrugModelRequest:
|
|
43
44
|
'finish_start_time': 'finish_start_time',
|
44
45
|
'finish_end_time': 'finish_end_time',
|
45
46
|
'limit': 'limit',
|
46
|
-
'offset': 'offset'
|
47
|
+
'offset': 'offset',
|
48
|
+
'base_model_list': 'base_model_list'
|
47
49
|
}
|
48
50
|
|
49
|
-
def __init__(self, search_key=None, creator_list=None, type_list=None, status_list=None, sort_key=None, sort_dir=None, create_start_time=None, create_end_time=None, finish_start_time=None, finish_end_time=None, limit=None, offset=None):
|
51
|
+
def __init__(self, search_key=None, creator_list=None, type_list=None, status_list=None, sort_key=None, sort_dir=None, create_start_time=None, create_end_time=None, finish_start_time=None, finish_end_time=None, limit=None, offset=None, base_model_list=None):
|
50
52
|
"""ListDrugModelRequest
|
51
53
|
|
52
54
|
The model defined in huaweicloud sdk
|
@@ -59,7 +61,7 @@ class ListDrugModelRequest:
|
|
59
61
|
:type type_list: list[str]
|
60
62
|
:param status_list: 模型状态列表
|
61
63
|
:type status_list: list[str]
|
62
|
-
:param sort_key: 排序规则 目前默认时间降序,支持根据create_time|finish_time
|
64
|
+
:param sort_key: 排序规则 目前默认时间降序,支持根据create_time|finish_time|base_model_name
|
63
65
|
:type sort_key: str
|
64
66
|
:param sort_dir: 排序规则 目前默认时间降序
|
65
67
|
:type sort_dir: str
|
@@ -75,6 +77,8 @@ class ListDrugModelRequest:
|
|
75
77
|
:type limit: int
|
76
78
|
:param offset: 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]
|
77
79
|
:type offset: int
|
80
|
+
:param base_model_list: 基模型id列表
|
81
|
+
:type base_model_list: list[str]
|
78
82
|
"""
|
79
83
|
|
80
84
|
|
@@ -91,6 +95,7 @@ class ListDrugModelRequest:
|
|
91
95
|
self._finish_end_time = None
|
92
96
|
self._limit = None
|
93
97
|
self._offset = None
|
98
|
+
self._base_model_list = None
|
94
99
|
self.discriminator = None
|
95
100
|
|
96
101
|
if search_key is not None:
|
@@ -117,6 +122,8 @@ class ListDrugModelRequest:
|
|
117
122
|
self.limit = limit
|
118
123
|
if offset is not None:
|
119
124
|
self.offset = offset
|
125
|
+
if base_model_list is not None:
|
126
|
+
self.base_model_list = base_model_list
|
120
127
|
|
121
128
|
@property
|
122
129
|
def search_key(self):
|
@@ -210,7 +217,7 @@ class ListDrugModelRequest:
|
|
210
217
|
def sort_key(self):
|
211
218
|
"""Gets the sort_key of this ListDrugModelRequest.
|
212
219
|
|
213
|
-
排序规则 目前默认时间降序,支持根据create_time|finish_time
|
220
|
+
排序规则 目前默认时间降序,支持根据create_time|finish_time|base_model_name
|
214
221
|
|
215
222
|
:return: The sort_key of this ListDrugModelRequest.
|
216
223
|
:rtype: str
|
@@ -221,7 +228,7 @@ class ListDrugModelRequest:
|
|
221
228
|
def sort_key(self, sort_key):
|
222
229
|
"""Sets the sort_key of this ListDrugModelRequest.
|
223
230
|
|
224
|
-
排序规则 目前默认时间降序,支持根据create_time|finish_time
|
231
|
+
排序规则 目前默认时间降序,支持根据create_time|finish_time|base_model_name
|
225
232
|
|
226
233
|
:param sort_key: The sort_key of this ListDrugModelRequest.
|
227
234
|
:type sort_key: str
|
@@ -382,6 +389,28 @@ class ListDrugModelRequest:
|
|
382
389
|
"""
|
383
390
|
self._offset = offset
|
384
391
|
|
392
|
+
@property
|
393
|
+
def base_model_list(self):
|
394
|
+
"""Gets the base_model_list of this ListDrugModelRequest.
|
395
|
+
|
396
|
+
基模型id列表
|
397
|
+
|
398
|
+
:return: The base_model_list of this ListDrugModelRequest.
|
399
|
+
:rtype: list[str]
|
400
|
+
"""
|
401
|
+
return self._base_model_list
|
402
|
+
|
403
|
+
@base_model_list.setter
|
404
|
+
def base_model_list(self, base_model_list):
|
405
|
+
"""Sets the base_model_list of this ListDrugModelRequest.
|
406
|
+
|
407
|
+
基模型id列表
|
408
|
+
|
409
|
+
:param base_model_list: The base_model_list of this ListDrugModelRequest.
|
410
|
+
:type base_model_list: list[str]
|
411
|
+
"""
|
412
|
+
self._base_model_list = base_model_list
|
413
|
+
|
385
414
|
def to_dict(self):
|
386
415
|
"""Returns the model properties as a dict"""
|
387
416
|
result = {}
|
@@ -0,0 +1,433 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListFavoriteRequest:
|
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
|
+
'resource_id': 'str',
|
22
|
+
'offset': 'int',
|
23
|
+
'limit': 'int',
|
24
|
+
'user_name_list': 'list[str]',
|
25
|
+
'resource_type_list': 'list[str]',
|
26
|
+
'type_list': 'list[str]',
|
27
|
+
'start_time': 'int',
|
28
|
+
'end_time': 'int',
|
29
|
+
'key_word': 'str',
|
30
|
+
'sort_dir': 'str',
|
31
|
+
'sort_key': 'str'
|
32
|
+
}
|
33
|
+
|
34
|
+
attribute_map = {
|
35
|
+
'eihealth_project_id': 'eihealth_project_id',
|
36
|
+
'resource_id': 'resource_id',
|
37
|
+
'offset': 'offset',
|
38
|
+
'limit': 'limit',
|
39
|
+
'user_name_list': 'user_name_list',
|
40
|
+
'resource_type_list': 'resource_type_list',
|
41
|
+
'type_list': 'type_list',
|
42
|
+
'start_time': 'start_time',
|
43
|
+
'end_time': 'end_time',
|
44
|
+
'key_word': 'key_word',
|
45
|
+
'sort_dir': 'sort_dir',
|
46
|
+
'sort_key': 'sort_key'
|
47
|
+
}
|
48
|
+
|
49
|
+
def __init__(self, eihealth_project_id=None, resource_id=None, offset=None, limit=None, user_name_list=None, resource_type_list=None, type_list=None, start_time=None, end_time=None, key_word=None, sort_dir=None, sort_key=None):
|
50
|
+
"""ListFavoriteRequest
|
51
|
+
|
52
|
+
The model defined in huaweicloud sdk
|
53
|
+
|
54
|
+
:param eihealth_project_id: 平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。
|
55
|
+
:type eihealth_project_id: str
|
56
|
+
:param resource_id: 资源ID。
|
57
|
+
:type resource_id: str
|
58
|
+
:param offset: 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。
|
59
|
+
:type offset: int
|
60
|
+
:param limit: 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。
|
61
|
+
:type limit: int
|
62
|
+
:param user_name_list: 收藏人名称列表。
|
63
|
+
:type user_name_list: list[str]
|
64
|
+
:param resource_type_list: 资源类型列表。
|
65
|
+
:type resource_type_list: list[str]
|
66
|
+
:param type_list: 收藏类型列表,支持MICROMOLECULE|PROTEIN。
|
67
|
+
:type type_list: list[str]
|
68
|
+
:param start_time: 查询收藏信息的起始时间,UNIX时间戳,单位毫秒,不填时默认为当前时间。
|
69
|
+
:type start_time: int
|
70
|
+
:param end_time: 查询收藏信息的结束时间,UNIX时间戳,单位毫秒,不填时默认为当前时间。
|
71
|
+
:type end_time: int
|
72
|
+
:param key_word: 关键字,支持在display_info字段中内容的模糊搜索。
|
73
|
+
:type key_word: str
|
74
|
+
:param sort_dir: 排序规则,目前默认时间降序。
|
75
|
+
:type sort_dir: str
|
76
|
+
:param sort_key: 排序规则,目前默认按收藏时间降序,支持根据create_time|user_name|resource_name|resource_type排序。
|
77
|
+
:type sort_key: str
|
78
|
+
"""
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
self._eihealth_project_id = None
|
83
|
+
self._resource_id = None
|
84
|
+
self._offset = None
|
85
|
+
self._limit = None
|
86
|
+
self._user_name_list = None
|
87
|
+
self._resource_type_list = None
|
88
|
+
self._type_list = None
|
89
|
+
self._start_time = None
|
90
|
+
self._end_time = None
|
91
|
+
self._key_word = None
|
92
|
+
self._sort_dir = None
|
93
|
+
self._sort_key = None
|
94
|
+
self.discriminator = None
|
95
|
+
|
96
|
+
self.eihealth_project_id = eihealth_project_id
|
97
|
+
if resource_id is not None:
|
98
|
+
self.resource_id = resource_id
|
99
|
+
if offset is not None:
|
100
|
+
self.offset = offset
|
101
|
+
if limit is not None:
|
102
|
+
self.limit = limit
|
103
|
+
if user_name_list is not None:
|
104
|
+
self.user_name_list = user_name_list
|
105
|
+
if resource_type_list is not None:
|
106
|
+
self.resource_type_list = resource_type_list
|
107
|
+
if type_list is not None:
|
108
|
+
self.type_list = type_list
|
109
|
+
if start_time is not None:
|
110
|
+
self.start_time = start_time
|
111
|
+
if end_time is not None:
|
112
|
+
self.end_time = end_time
|
113
|
+
if key_word is not None:
|
114
|
+
self.key_word = key_word
|
115
|
+
if sort_dir is not None:
|
116
|
+
self.sort_dir = sort_dir
|
117
|
+
if sort_key is not None:
|
118
|
+
self.sort_key = sort_key
|
119
|
+
|
120
|
+
@property
|
121
|
+
def eihealth_project_id(self):
|
122
|
+
"""Gets the eihealth_project_id of this ListFavoriteRequest.
|
123
|
+
|
124
|
+
平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。
|
125
|
+
|
126
|
+
:return: The eihealth_project_id of this ListFavoriteRequest.
|
127
|
+
:rtype: str
|
128
|
+
"""
|
129
|
+
return self._eihealth_project_id
|
130
|
+
|
131
|
+
@eihealth_project_id.setter
|
132
|
+
def eihealth_project_id(self, eihealth_project_id):
|
133
|
+
"""Sets the eihealth_project_id of this ListFavoriteRequest.
|
134
|
+
|
135
|
+
平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。
|
136
|
+
|
137
|
+
:param eihealth_project_id: The eihealth_project_id of this ListFavoriteRequest.
|
138
|
+
:type eihealth_project_id: str
|
139
|
+
"""
|
140
|
+
self._eihealth_project_id = eihealth_project_id
|
141
|
+
|
142
|
+
@property
|
143
|
+
def resource_id(self):
|
144
|
+
"""Gets the resource_id of this ListFavoriteRequest.
|
145
|
+
|
146
|
+
资源ID。
|
147
|
+
|
148
|
+
:return: The resource_id of this ListFavoriteRequest.
|
149
|
+
:rtype: str
|
150
|
+
"""
|
151
|
+
return self._resource_id
|
152
|
+
|
153
|
+
@resource_id.setter
|
154
|
+
def resource_id(self, resource_id):
|
155
|
+
"""Sets the resource_id of this ListFavoriteRequest.
|
156
|
+
|
157
|
+
资源ID。
|
158
|
+
|
159
|
+
:param resource_id: The resource_id of this ListFavoriteRequest.
|
160
|
+
:type resource_id: str
|
161
|
+
"""
|
162
|
+
self._resource_id = resource_id
|
163
|
+
|
164
|
+
@property
|
165
|
+
def offset(self):
|
166
|
+
"""Gets the offset of this ListFavoriteRequest.
|
167
|
+
|
168
|
+
偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。
|
169
|
+
|
170
|
+
:return: The offset of this ListFavoriteRequest.
|
171
|
+
:rtype: int
|
172
|
+
"""
|
173
|
+
return self._offset
|
174
|
+
|
175
|
+
@offset.setter
|
176
|
+
def offset(self, offset):
|
177
|
+
"""Sets the offset of this ListFavoriteRequest.
|
178
|
+
|
179
|
+
偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。
|
180
|
+
|
181
|
+
:param offset: The offset of this ListFavoriteRequest.
|
182
|
+
:type offset: int
|
183
|
+
"""
|
184
|
+
self._offset = offset
|
185
|
+
|
186
|
+
@property
|
187
|
+
def limit(self):
|
188
|
+
"""Gets the limit of this ListFavoriteRequest.
|
189
|
+
|
190
|
+
限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。
|
191
|
+
|
192
|
+
:return: The limit of this ListFavoriteRequest.
|
193
|
+
:rtype: int
|
194
|
+
"""
|
195
|
+
return self._limit
|
196
|
+
|
197
|
+
@limit.setter
|
198
|
+
def limit(self, limit):
|
199
|
+
"""Sets the limit of this ListFavoriteRequest.
|
200
|
+
|
201
|
+
限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。
|
202
|
+
|
203
|
+
:param limit: The limit of this ListFavoriteRequest.
|
204
|
+
:type limit: int
|
205
|
+
"""
|
206
|
+
self._limit = limit
|
207
|
+
|
208
|
+
@property
|
209
|
+
def user_name_list(self):
|
210
|
+
"""Gets the user_name_list of this ListFavoriteRequest.
|
211
|
+
|
212
|
+
收藏人名称列表。
|
213
|
+
|
214
|
+
:return: The user_name_list of this ListFavoriteRequest.
|
215
|
+
:rtype: list[str]
|
216
|
+
"""
|
217
|
+
return self._user_name_list
|
218
|
+
|
219
|
+
@user_name_list.setter
|
220
|
+
def user_name_list(self, user_name_list):
|
221
|
+
"""Sets the user_name_list of this ListFavoriteRequest.
|
222
|
+
|
223
|
+
收藏人名称列表。
|
224
|
+
|
225
|
+
:param user_name_list: The user_name_list of this ListFavoriteRequest.
|
226
|
+
:type user_name_list: list[str]
|
227
|
+
"""
|
228
|
+
self._user_name_list = user_name_list
|
229
|
+
|
230
|
+
@property
|
231
|
+
def resource_type_list(self):
|
232
|
+
"""Gets the resource_type_list of this ListFavoriteRequest.
|
233
|
+
|
234
|
+
资源类型列表。
|
235
|
+
|
236
|
+
:return: The resource_type_list of this ListFavoriteRequest.
|
237
|
+
:rtype: list[str]
|
238
|
+
"""
|
239
|
+
return self._resource_type_list
|
240
|
+
|
241
|
+
@resource_type_list.setter
|
242
|
+
def resource_type_list(self, resource_type_list):
|
243
|
+
"""Sets the resource_type_list of this ListFavoriteRequest.
|
244
|
+
|
245
|
+
资源类型列表。
|
246
|
+
|
247
|
+
:param resource_type_list: The resource_type_list of this ListFavoriteRequest.
|
248
|
+
:type resource_type_list: list[str]
|
249
|
+
"""
|
250
|
+
self._resource_type_list = resource_type_list
|
251
|
+
|
252
|
+
@property
|
253
|
+
def type_list(self):
|
254
|
+
"""Gets the type_list of this ListFavoriteRequest.
|
255
|
+
|
256
|
+
收藏类型列表,支持MICROMOLECULE|PROTEIN。
|
257
|
+
|
258
|
+
:return: The type_list of this ListFavoriteRequest.
|
259
|
+
:rtype: list[str]
|
260
|
+
"""
|
261
|
+
return self._type_list
|
262
|
+
|
263
|
+
@type_list.setter
|
264
|
+
def type_list(self, type_list):
|
265
|
+
"""Sets the type_list of this ListFavoriteRequest.
|
266
|
+
|
267
|
+
收藏类型列表,支持MICROMOLECULE|PROTEIN。
|
268
|
+
|
269
|
+
:param type_list: The type_list of this ListFavoriteRequest.
|
270
|
+
:type type_list: list[str]
|
271
|
+
"""
|
272
|
+
self._type_list = type_list
|
273
|
+
|
274
|
+
@property
|
275
|
+
def start_time(self):
|
276
|
+
"""Gets the start_time of this ListFavoriteRequest.
|
277
|
+
|
278
|
+
查询收藏信息的起始时间,UNIX时间戳,单位毫秒,不填时默认为当前时间。
|
279
|
+
|
280
|
+
:return: The start_time of this ListFavoriteRequest.
|
281
|
+
:rtype: int
|
282
|
+
"""
|
283
|
+
return self._start_time
|
284
|
+
|
285
|
+
@start_time.setter
|
286
|
+
def start_time(self, start_time):
|
287
|
+
"""Sets the start_time of this ListFavoriteRequest.
|
288
|
+
|
289
|
+
查询收藏信息的起始时间,UNIX时间戳,单位毫秒,不填时默认为当前时间。
|
290
|
+
|
291
|
+
:param start_time: The start_time of this ListFavoriteRequest.
|
292
|
+
:type start_time: int
|
293
|
+
"""
|
294
|
+
self._start_time = start_time
|
295
|
+
|
296
|
+
@property
|
297
|
+
def end_time(self):
|
298
|
+
"""Gets the end_time of this ListFavoriteRequest.
|
299
|
+
|
300
|
+
查询收藏信息的结束时间,UNIX时间戳,单位毫秒,不填时默认为当前时间。
|
301
|
+
|
302
|
+
:return: The end_time of this ListFavoriteRequest.
|
303
|
+
:rtype: int
|
304
|
+
"""
|
305
|
+
return self._end_time
|
306
|
+
|
307
|
+
@end_time.setter
|
308
|
+
def end_time(self, end_time):
|
309
|
+
"""Sets the end_time of this ListFavoriteRequest.
|
310
|
+
|
311
|
+
查询收藏信息的结束时间,UNIX时间戳,单位毫秒,不填时默认为当前时间。
|
312
|
+
|
313
|
+
:param end_time: The end_time of this ListFavoriteRequest.
|
314
|
+
:type end_time: int
|
315
|
+
"""
|
316
|
+
self._end_time = end_time
|
317
|
+
|
318
|
+
@property
|
319
|
+
def key_word(self):
|
320
|
+
"""Gets the key_word of this ListFavoriteRequest.
|
321
|
+
|
322
|
+
关键字,支持在display_info字段中内容的模糊搜索。
|
323
|
+
|
324
|
+
:return: The key_word of this ListFavoriteRequest.
|
325
|
+
:rtype: str
|
326
|
+
"""
|
327
|
+
return self._key_word
|
328
|
+
|
329
|
+
@key_word.setter
|
330
|
+
def key_word(self, key_word):
|
331
|
+
"""Sets the key_word of this ListFavoriteRequest.
|
332
|
+
|
333
|
+
关键字,支持在display_info字段中内容的模糊搜索。
|
334
|
+
|
335
|
+
:param key_word: The key_word of this ListFavoriteRequest.
|
336
|
+
:type key_word: str
|
337
|
+
"""
|
338
|
+
self._key_word = key_word
|
339
|
+
|
340
|
+
@property
|
341
|
+
def sort_dir(self):
|
342
|
+
"""Gets the sort_dir of this ListFavoriteRequest.
|
343
|
+
|
344
|
+
排序规则,目前默认时间降序。
|
345
|
+
|
346
|
+
:return: The sort_dir of this ListFavoriteRequest.
|
347
|
+
:rtype: str
|
348
|
+
"""
|
349
|
+
return self._sort_dir
|
350
|
+
|
351
|
+
@sort_dir.setter
|
352
|
+
def sort_dir(self, sort_dir):
|
353
|
+
"""Sets the sort_dir of this ListFavoriteRequest.
|
354
|
+
|
355
|
+
排序规则,目前默认时间降序。
|
356
|
+
|
357
|
+
:param sort_dir: The sort_dir of this ListFavoriteRequest.
|
358
|
+
:type sort_dir: str
|
359
|
+
"""
|
360
|
+
self._sort_dir = sort_dir
|
361
|
+
|
362
|
+
@property
|
363
|
+
def sort_key(self):
|
364
|
+
"""Gets the sort_key of this ListFavoriteRequest.
|
365
|
+
|
366
|
+
排序规则,目前默认按收藏时间降序,支持根据create_time|user_name|resource_name|resource_type排序。
|
367
|
+
|
368
|
+
:return: The sort_key of this ListFavoriteRequest.
|
369
|
+
:rtype: str
|
370
|
+
"""
|
371
|
+
return self._sort_key
|
372
|
+
|
373
|
+
@sort_key.setter
|
374
|
+
def sort_key(self, sort_key):
|
375
|
+
"""Sets the sort_key of this ListFavoriteRequest.
|
376
|
+
|
377
|
+
排序规则,目前默认按收藏时间降序,支持根据create_time|user_name|resource_name|resource_type排序。
|
378
|
+
|
379
|
+
:param sort_key: The sort_key of this ListFavoriteRequest.
|
380
|
+
:type sort_key: str
|
381
|
+
"""
|
382
|
+
self._sort_key = sort_key
|
383
|
+
|
384
|
+
def to_dict(self):
|
385
|
+
"""Returns the model properties as a dict"""
|
386
|
+
result = {}
|
387
|
+
|
388
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
389
|
+
value = getattr(self, attr)
|
390
|
+
if isinstance(value, list):
|
391
|
+
result[attr] = list(map(
|
392
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
393
|
+
value
|
394
|
+
))
|
395
|
+
elif hasattr(value, "to_dict"):
|
396
|
+
result[attr] = value.to_dict()
|
397
|
+
elif isinstance(value, dict):
|
398
|
+
result[attr] = dict(map(
|
399
|
+
lambda item: (item[0], item[1].to_dict())
|
400
|
+
if hasattr(item[1], "to_dict") else item,
|
401
|
+
value.items()
|
402
|
+
))
|
403
|
+
else:
|
404
|
+
if attr in self.sensitive_list:
|
405
|
+
result[attr] = "****"
|
406
|
+
else:
|
407
|
+
result[attr] = value
|
408
|
+
|
409
|
+
return result
|
410
|
+
|
411
|
+
def to_str(self):
|
412
|
+
"""Returns the string representation of the model"""
|
413
|
+
import simplejson as json
|
414
|
+
if six.PY2:
|
415
|
+
import sys
|
416
|
+
reload(sys)
|
417
|
+
sys.setdefaultencoding("utf-8")
|
418
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
419
|
+
|
420
|
+
def __repr__(self):
|
421
|
+
"""For `print`"""
|
422
|
+
return self.to_str()
|
423
|
+
|
424
|
+
def __eq__(self, other):
|
425
|
+
"""Returns true if both objects are equal"""
|
426
|
+
if not isinstance(other, ListFavoriteRequest):
|
427
|
+
return False
|
428
|
+
|
429
|
+
return self.__dict__ == other.__dict__
|
430
|
+
|
431
|
+
def __ne__(self, other):
|
432
|
+
"""Returns true if both objects are not equal"""
|
433
|
+
return not self == other
|