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,85 @@
|
|
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 AddDrugDatabaseFileResponse(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
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
}
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
"""AddDrugDatabaseFileResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(AddDrugDatabaseFileResponse, self).__init__()
|
34
|
+
self.discriminator = None
|
35
|
+
|
36
|
+
def to_dict(self):
|
37
|
+
"""Returns the model properties as a dict"""
|
38
|
+
result = {}
|
39
|
+
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
41
|
+
value = getattr(self, attr)
|
42
|
+
if isinstance(value, list):
|
43
|
+
result[attr] = list(map(
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
45
|
+
value
|
46
|
+
))
|
47
|
+
elif hasattr(value, "to_dict"):
|
48
|
+
result[attr] = value.to_dict()
|
49
|
+
elif isinstance(value, dict):
|
50
|
+
result[attr] = dict(map(
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
53
|
+
value.items()
|
54
|
+
))
|
55
|
+
else:
|
56
|
+
if attr in self.sensitive_list:
|
57
|
+
result[attr] = "****"
|
58
|
+
else:
|
59
|
+
result[attr] = value
|
60
|
+
|
61
|
+
return result
|
62
|
+
|
63
|
+
def to_str(self):
|
64
|
+
"""Returns the string representation of the model"""
|
65
|
+
import simplejson as json
|
66
|
+
if six.PY2:
|
67
|
+
import sys
|
68
|
+
reload(sys)
|
69
|
+
sys.setdefaultencoding("utf-8")
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
71
|
+
|
72
|
+
def __repr__(self):
|
73
|
+
"""For `print`"""
|
74
|
+
return self.to_str()
|
75
|
+
|
76
|
+
def __eq__(self, other):
|
77
|
+
"""Returns true if both objects are equal"""
|
78
|
+
if not isinstance(other, AddDrugDatabaseFileResponse):
|
79
|
+
return False
|
80
|
+
|
81
|
+
return self.__dict__ == other.__dict__
|
82
|
+
|
83
|
+
def __ne__(self, other):
|
84
|
+
"""Returns true if both objects are not equal"""
|
85
|
+
return not self == other
|
@@ -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 BaseModel:
|
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
|
+
'id': 'str',
|
21
|
+
'name': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'id': 'id',
|
26
|
+
'name': 'name'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, id=None, name=None):
|
30
|
+
"""BaseModel
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param id: 基模型id
|
35
|
+
:type id: str
|
36
|
+
:param name: 基模型名称
|
37
|
+
:type name: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._id = None
|
43
|
+
self._name = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.id = id
|
47
|
+
self.name = name
|
48
|
+
|
49
|
+
@property
|
50
|
+
def id(self):
|
51
|
+
"""Gets the id of this BaseModel.
|
52
|
+
|
53
|
+
基模型id
|
54
|
+
|
55
|
+
:return: The id of this BaseModel.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._id
|
59
|
+
|
60
|
+
@id.setter
|
61
|
+
def id(self, id):
|
62
|
+
"""Sets the id of this BaseModel.
|
63
|
+
|
64
|
+
基模型id
|
65
|
+
|
66
|
+
:param id: The id of this BaseModel.
|
67
|
+
:type id: str
|
68
|
+
"""
|
69
|
+
self._id = id
|
70
|
+
|
71
|
+
@property
|
72
|
+
def name(self):
|
73
|
+
"""Gets the name of this BaseModel.
|
74
|
+
|
75
|
+
基模型名称
|
76
|
+
|
77
|
+
:return: The name of this BaseModel.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._name
|
81
|
+
|
82
|
+
@name.setter
|
83
|
+
def name(self, name):
|
84
|
+
"""Sets the name of this BaseModel.
|
85
|
+
|
86
|
+
基模型名称
|
87
|
+
|
88
|
+
:param name: The name of this BaseModel.
|
89
|
+
:type name: str
|
90
|
+
"""
|
91
|
+
self._name = name
|
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, BaseModel):
|
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,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BaseModelDto:
|
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
|
+
'id': 'str',
|
22
|
+
'create_time': 'str',
|
23
|
+
'description': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'name': 'name',
|
28
|
+
'id': 'id',
|
29
|
+
'create_time': 'create_time',
|
30
|
+
'description': 'description'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, name=None, id=None, create_time=None, description=None):
|
34
|
+
"""BaseModelDto
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param name: 模型名称
|
39
|
+
:type name: str
|
40
|
+
:param id: 模型ID
|
41
|
+
:type id: str
|
42
|
+
:param create_time: 模型创建时间
|
43
|
+
:type create_time: str
|
44
|
+
:param description: 模型描述信息
|
45
|
+
:type description: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._name = None
|
51
|
+
self._id = None
|
52
|
+
self._create_time = None
|
53
|
+
self._description = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if name is not None:
|
57
|
+
self.name = name
|
58
|
+
if id is not None:
|
59
|
+
self.id = id
|
60
|
+
if create_time is not None:
|
61
|
+
self.create_time = create_time
|
62
|
+
if description is not None:
|
63
|
+
self.description = description
|
64
|
+
|
65
|
+
@property
|
66
|
+
def name(self):
|
67
|
+
"""Gets the name of this BaseModelDto.
|
68
|
+
|
69
|
+
模型名称
|
70
|
+
|
71
|
+
:return: The name of this BaseModelDto.
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._name
|
75
|
+
|
76
|
+
@name.setter
|
77
|
+
def name(self, name):
|
78
|
+
"""Sets the name of this BaseModelDto.
|
79
|
+
|
80
|
+
模型名称
|
81
|
+
|
82
|
+
:param name: The name of this BaseModelDto.
|
83
|
+
:type name: str
|
84
|
+
"""
|
85
|
+
self._name = name
|
86
|
+
|
87
|
+
@property
|
88
|
+
def id(self):
|
89
|
+
"""Gets the id of this BaseModelDto.
|
90
|
+
|
91
|
+
模型ID
|
92
|
+
|
93
|
+
:return: The id of this BaseModelDto.
|
94
|
+
:rtype: str
|
95
|
+
"""
|
96
|
+
return self._id
|
97
|
+
|
98
|
+
@id.setter
|
99
|
+
def id(self, id):
|
100
|
+
"""Sets the id of this BaseModelDto.
|
101
|
+
|
102
|
+
模型ID
|
103
|
+
|
104
|
+
:param id: The id of this BaseModelDto.
|
105
|
+
:type id: str
|
106
|
+
"""
|
107
|
+
self._id = id
|
108
|
+
|
109
|
+
@property
|
110
|
+
def create_time(self):
|
111
|
+
"""Gets the create_time of this BaseModelDto.
|
112
|
+
|
113
|
+
模型创建时间
|
114
|
+
|
115
|
+
:return: The create_time of this BaseModelDto.
|
116
|
+
:rtype: str
|
117
|
+
"""
|
118
|
+
return self._create_time
|
119
|
+
|
120
|
+
@create_time.setter
|
121
|
+
def create_time(self, create_time):
|
122
|
+
"""Sets the create_time of this BaseModelDto.
|
123
|
+
|
124
|
+
模型创建时间
|
125
|
+
|
126
|
+
:param create_time: The create_time of this BaseModelDto.
|
127
|
+
:type create_time: str
|
128
|
+
"""
|
129
|
+
self._create_time = create_time
|
130
|
+
|
131
|
+
@property
|
132
|
+
def description(self):
|
133
|
+
"""Gets the description of this BaseModelDto.
|
134
|
+
|
135
|
+
模型描述信息
|
136
|
+
|
137
|
+
:return: The description of this BaseModelDto.
|
138
|
+
:rtype: str
|
139
|
+
"""
|
140
|
+
return self._description
|
141
|
+
|
142
|
+
@description.setter
|
143
|
+
def description(self, description):
|
144
|
+
"""Sets the description of this BaseModelDto.
|
145
|
+
|
146
|
+
模型描述信息
|
147
|
+
|
148
|
+
:param description: The description of this BaseModelDto.
|
149
|
+
:type description: str
|
150
|
+
"""
|
151
|
+
self._description = description
|
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, BaseModelDto):
|
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
|
@@ -17,6 +17,7 @@ class BindSiteDto:
|
|
17
17
|
sensitive_list = []
|
18
18
|
|
19
19
|
openapi_types = {
|
20
|
+
'name': 'str',
|
20
21
|
'receptor': 'ReceptorDrugFile',
|
21
22
|
'bounding_box': 'BoundingBoxDto',
|
22
23
|
'remove_ion': 'bool',
|
@@ -26,6 +27,7 @@ class BindSiteDto:
|
|
26
27
|
}
|
27
28
|
|
28
29
|
attribute_map = {
|
30
|
+
'name': 'name',
|
29
31
|
'receptor': 'receptor',
|
30
32
|
'bounding_box': 'bounding_box',
|
31
33
|
'remove_ion': 'remove_ion',
|
@@ -34,11 +36,13 @@ class BindSiteDto:
|
|
34
36
|
'add_hydrogen': 'add_hydrogen'
|
35
37
|
}
|
36
38
|
|
37
|
-
def __init__(self, receptor=None, bounding_box=None, remove_ion=None, remove_water=None, remove_ligand=None, add_hydrogen=None):
|
39
|
+
def __init__(self, name=None, receptor=None, bounding_box=None, remove_ion=None, remove_water=None, remove_ligand=None, add_hydrogen=None):
|
38
40
|
"""BindSiteDto
|
39
41
|
|
40
42
|
The model defined in huaweicloud sdk
|
41
43
|
|
44
|
+
:param name: 靶点名称,只能设置为target1或者target2。
|
45
|
+
:type name: str
|
42
46
|
:param receptor:
|
43
47
|
:type receptor: :class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile`
|
44
48
|
:param bounding_box:
|
@@ -55,6 +59,7 @@ class BindSiteDto:
|
|
55
59
|
|
56
60
|
|
57
61
|
|
62
|
+
self._name = None
|
58
63
|
self._receptor = None
|
59
64
|
self._bounding_box = None
|
60
65
|
self._remove_ion = None
|
@@ -63,6 +68,8 @@ class BindSiteDto:
|
|
63
68
|
self._add_hydrogen = None
|
64
69
|
self.discriminator = None
|
65
70
|
|
71
|
+
if name is not None:
|
72
|
+
self.name = name
|
66
73
|
self.receptor = receptor
|
67
74
|
if bounding_box is not None:
|
68
75
|
self.bounding_box = bounding_box
|
@@ -75,6 +82,28 @@ class BindSiteDto:
|
|
75
82
|
if add_hydrogen is not None:
|
76
83
|
self.add_hydrogen = add_hydrogen
|
77
84
|
|
85
|
+
@property
|
86
|
+
def name(self):
|
87
|
+
"""Gets the name of this BindSiteDto.
|
88
|
+
|
89
|
+
靶点名称,只能设置为target1或者target2。
|
90
|
+
|
91
|
+
:return: The name of this BindSiteDto.
|
92
|
+
:rtype: str
|
93
|
+
"""
|
94
|
+
return self._name
|
95
|
+
|
96
|
+
@name.setter
|
97
|
+
def name(self, name):
|
98
|
+
"""Sets the name of this BindSiteDto.
|
99
|
+
|
100
|
+
靶点名称,只能设置为target1或者target2。
|
101
|
+
|
102
|
+
:param name: The name of this BindSiteDto.
|
103
|
+
:type name: str
|
104
|
+
"""
|
105
|
+
self._name = name
|
106
|
+
|
78
107
|
@property
|
79
108
|
def receptor(self):
|
80
109
|
"""Gets the receptor of this BindSiteDto.
|
@@ -0,0 +1,171 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BoundBoxDto:
|
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
|
+
'center': 'list[float]',
|
21
|
+
'size': 'list[float]',
|
22
|
+
'padding': 'float'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'center': 'center',
|
27
|
+
'size': 'size',
|
28
|
+
'padding': 'padding'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, center=None, size=None, padding=None):
|
32
|
+
"""BoundBoxDto
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param center: 口袋中心坐标,x、y、z轴的坐标。
|
37
|
+
:type center: list[float]
|
38
|
+
:param size: 口袋尺寸大小,x、y、z轴的大小。
|
39
|
+
:type size: list[float]
|
40
|
+
:param padding: 填充。
|
41
|
+
:type padding: float
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._center = None
|
47
|
+
self._size = None
|
48
|
+
self._padding = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.center = center
|
52
|
+
self.size = size
|
53
|
+
if padding is not None:
|
54
|
+
self.padding = padding
|
55
|
+
|
56
|
+
@property
|
57
|
+
def center(self):
|
58
|
+
"""Gets the center of this BoundBoxDto.
|
59
|
+
|
60
|
+
口袋中心坐标,x、y、z轴的坐标。
|
61
|
+
|
62
|
+
:return: The center of this BoundBoxDto.
|
63
|
+
:rtype: list[float]
|
64
|
+
"""
|
65
|
+
return self._center
|
66
|
+
|
67
|
+
@center.setter
|
68
|
+
def center(self, center):
|
69
|
+
"""Sets the center of this BoundBoxDto.
|
70
|
+
|
71
|
+
口袋中心坐标,x、y、z轴的坐标。
|
72
|
+
|
73
|
+
:param center: The center of this BoundBoxDto.
|
74
|
+
:type center: list[float]
|
75
|
+
"""
|
76
|
+
self._center = center
|
77
|
+
|
78
|
+
@property
|
79
|
+
def size(self):
|
80
|
+
"""Gets the size of this BoundBoxDto.
|
81
|
+
|
82
|
+
口袋尺寸大小,x、y、z轴的大小。
|
83
|
+
|
84
|
+
:return: The size of this BoundBoxDto.
|
85
|
+
:rtype: list[float]
|
86
|
+
"""
|
87
|
+
return self._size
|
88
|
+
|
89
|
+
@size.setter
|
90
|
+
def size(self, size):
|
91
|
+
"""Sets the size of this BoundBoxDto.
|
92
|
+
|
93
|
+
口袋尺寸大小,x、y、z轴的大小。
|
94
|
+
|
95
|
+
:param size: The size of this BoundBoxDto.
|
96
|
+
:type size: list[float]
|
97
|
+
"""
|
98
|
+
self._size = size
|
99
|
+
|
100
|
+
@property
|
101
|
+
def padding(self):
|
102
|
+
"""Gets the padding of this BoundBoxDto.
|
103
|
+
|
104
|
+
填充。
|
105
|
+
|
106
|
+
:return: The padding of this BoundBoxDto.
|
107
|
+
:rtype: float
|
108
|
+
"""
|
109
|
+
return self._padding
|
110
|
+
|
111
|
+
@padding.setter
|
112
|
+
def padding(self, padding):
|
113
|
+
"""Sets the padding of this BoundBoxDto.
|
114
|
+
|
115
|
+
填充。
|
116
|
+
|
117
|
+
:param padding: The padding of this BoundBoxDto.
|
118
|
+
:type padding: float
|
119
|
+
"""
|
120
|
+
self._padding = padding
|
121
|
+
|
122
|
+
def to_dict(self):
|
123
|
+
"""Returns the model properties as a dict"""
|
124
|
+
result = {}
|
125
|
+
|
126
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
127
|
+
value = getattr(self, attr)
|
128
|
+
if isinstance(value, list):
|
129
|
+
result[attr] = list(map(
|
130
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
131
|
+
value
|
132
|
+
))
|
133
|
+
elif hasattr(value, "to_dict"):
|
134
|
+
result[attr] = value.to_dict()
|
135
|
+
elif isinstance(value, dict):
|
136
|
+
result[attr] = dict(map(
|
137
|
+
lambda item: (item[0], item[1].to_dict())
|
138
|
+
if hasattr(item[1], "to_dict") else item,
|
139
|
+
value.items()
|
140
|
+
))
|
141
|
+
else:
|
142
|
+
if attr in self.sensitive_list:
|
143
|
+
result[attr] = "****"
|
144
|
+
else:
|
145
|
+
result[attr] = value
|
146
|
+
|
147
|
+
return result
|
148
|
+
|
149
|
+
def to_str(self):
|
150
|
+
"""Returns the string representation of the model"""
|
151
|
+
import simplejson as json
|
152
|
+
if six.PY2:
|
153
|
+
import sys
|
154
|
+
reload(sys)
|
155
|
+
sys.setdefaultencoding("utf-8")
|
156
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
157
|
+
|
158
|
+
def __repr__(self):
|
159
|
+
"""For `print`"""
|
160
|
+
return self.to_str()
|
161
|
+
|
162
|
+
def __eq__(self, other):
|
163
|
+
"""Returns true if both objects are equal"""
|
164
|
+
if not isinstance(other, BoundBoxDto):
|
165
|
+
return False
|
166
|
+
|
167
|
+
return self.__dict__ == other.__dict__
|
168
|
+
|
169
|
+
def __ne__(self, other):
|
170
|
+
"""Returns true if both objects are not equal"""
|
171
|
+
return not self == other
|