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,139 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class RunFormatConverterRequest:
|
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': 'RunFormatConverterReq'
|
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
|
+
"""RunFormatConverterRequest
|
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 RunFormatConverterRequest
|
37
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.RunFormatConverterReq`
|
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 RunFormatConverterRequest.
|
53
|
+
|
54
|
+
平台项目ID。
|
55
|
+
|
56
|
+
:return: The eihealth_project_id of this RunFormatConverterRequest.
|
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 RunFormatConverterRequest.
|
64
|
+
|
65
|
+
平台项目ID。
|
66
|
+
|
67
|
+
:param eihealth_project_id: The eihealth_project_id of this RunFormatConverterRequest.
|
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 RunFormatConverterRequest.
|
75
|
+
|
76
|
+
:return: The body of this RunFormatConverterRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.RunFormatConverterReq`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
"""Sets the body of this RunFormatConverterRequest.
|
84
|
+
|
85
|
+
:param body: The body of this RunFormatConverterRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.RunFormatConverterReq`
|
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, RunFormatConverterRequest):
|
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,112 @@
|
|
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 RunFormatConverterResponse(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
|
+
'body': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'body': 'body'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, body=None):
|
29
|
+
"""RunFormatConverterResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param body:
|
34
|
+
:type body: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(RunFormatConverterResponse, self).__init__()
|
38
|
+
|
39
|
+
self._body = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if body is not None:
|
43
|
+
self.body = body
|
44
|
+
|
45
|
+
@property
|
46
|
+
def body(self):
|
47
|
+
"""Gets the body of this RunFormatConverterResponse.
|
48
|
+
|
49
|
+
:return: The body of this RunFormatConverterResponse.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._body
|
53
|
+
|
54
|
+
@body.setter
|
55
|
+
def body(self, body):
|
56
|
+
"""Sets the body of this RunFormatConverterResponse.
|
57
|
+
|
58
|
+
:param body: The body of this RunFormatConverterResponse.
|
59
|
+
:type body: str
|
60
|
+
"""
|
61
|
+
self._body = body
|
62
|
+
|
63
|
+
def to_dict(self):
|
64
|
+
"""Returns the model properties as a dict"""
|
65
|
+
result = {}
|
66
|
+
|
67
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
68
|
+
value = getattr(self, attr)
|
69
|
+
if isinstance(value, list):
|
70
|
+
result[attr] = list(map(
|
71
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
72
|
+
value
|
73
|
+
))
|
74
|
+
elif hasattr(value, "to_dict"):
|
75
|
+
result[attr] = value.to_dict()
|
76
|
+
elif isinstance(value, dict):
|
77
|
+
result[attr] = dict(map(
|
78
|
+
lambda item: (item[0], item[1].to_dict())
|
79
|
+
if hasattr(item[1], "to_dict") else item,
|
80
|
+
value.items()
|
81
|
+
))
|
82
|
+
else:
|
83
|
+
if attr in self.sensitive_list:
|
84
|
+
result[attr] = "****"
|
85
|
+
else:
|
86
|
+
result[attr] = value
|
87
|
+
|
88
|
+
return result
|
89
|
+
|
90
|
+
def to_str(self):
|
91
|
+
"""Returns the string representation of the model"""
|
92
|
+
import simplejson as json
|
93
|
+
if six.PY2:
|
94
|
+
import sys
|
95
|
+
reload(sys)
|
96
|
+
sys.setdefaultencoding("utf-8")
|
97
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
98
|
+
|
99
|
+
def __repr__(self):
|
100
|
+
"""For `print`"""
|
101
|
+
return self.to_str()
|
102
|
+
|
103
|
+
def __eq__(self, other):
|
104
|
+
"""Returns true if both objects are equal"""
|
105
|
+
if not isinstance(other, RunFormatConverterResponse):
|
106
|
+
return False
|
107
|
+
|
108
|
+
return self.__dict__ == other.__dict__
|
109
|
+
|
110
|
+
def __ne__(self, other):
|
111
|
+
"""Returns true if both objects are not equal"""
|
112
|
+
return not self == other
|
@@ -0,0 +1,88 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SearchType:
|
9
|
+
"""
|
10
|
+
allowed enum values
|
11
|
+
"""
|
12
|
+
ECFP_4 = "ECFP_4"
|
13
|
+
SCAFFOLD = "SCAFFOLD"
|
14
|
+
"""
|
15
|
+
Attributes:
|
16
|
+
openapi_types (dict): The key is attribute name
|
17
|
+
and the value is attribute type.
|
18
|
+
attribute_map (dict): The key is attribute name
|
19
|
+
and the value is json key in definition.
|
20
|
+
"""
|
21
|
+
sensitive_list = []
|
22
|
+
|
23
|
+
openapi_types = {
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self):
|
30
|
+
"""SearchType
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
self.discriminator = None
|
38
|
+
|
39
|
+
def to_dict(self):
|
40
|
+
"""Returns the model properties as a dict"""
|
41
|
+
result = {}
|
42
|
+
|
43
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
44
|
+
value = getattr(self, attr)
|
45
|
+
if isinstance(value, list):
|
46
|
+
result[attr] = list(map(
|
47
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
48
|
+
value
|
49
|
+
))
|
50
|
+
elif hasattr(value, "to_dict"):
|
51
|
+
result[attr] = value.to_dict()
|
52
|
+
elif isinstance(value, dict):
|
53
|
+
result[attr] = dict(map(
|
54
|
+
lambda item: (item[0], item[1].to_dict())
|
55
|
+
if hasattr(item[1], "to_dict") else item,
|
56
|
+
value.items()
|
57
|
+
))
|
58
|
+
else:
|
59
|
+
if attr in self.sensitive_list:
|
60
|
+
result[attr] = "****"
|
61
|
+
else:
|
62
|
+
result[attr] = value
|
63
|
+
|
64
|
+
return result
|
65
|
+
|
66
|
+
def to_str(self):
|
67
|
+
"""Returns the string representation of the model"""
|
68
|
+
import simplejson as json
|
69
|
+
if six.PY2:
|
70
|
+
import sys
|
71
|
+
reload(sys)
|
72
|
+
sys.setdefaultencoding("utf-8")
|
73
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
74
|
+
|
75
|
+
def __repr__(self):
|
76
|
+
"""For `print`"""
|
77
|
+
return self.to_str()
|
78
|
+
|
79
|
+
def __eq__(self, other):
|
80
|
+
"""Returns true if both objects are equal"""
|
81
|
+
if not isinstance(other, SearchType):
|
82
|
+
return False
|
83
|
+
|
84
|
+
return self.__dict__ == other.__dict__
|
85
|
+
|
86
|
+
def __ne__(self, other):
|
87
|
+
"""Returns true if both objects are not equal"""
|
88
|
+
return not self == other
|
@@ -22,8 +22,10 @@ class ShowAdmetJobResponse(SdkResponse):
|
|
22
22
|
'molecule_file': 'MoleculeFileDto',
|
23
23
|
'job_result': 'JobResult',
|
24
24
|
'part_failed_reason': 'list[FailedReasonRecord]',
|
25
|
+
'base_model': 'BaseModel',
|
25
26
|
'models': 'list[BasicDrugModel]',
|
26
|
-
'cluster_result': 'ClusterJobRsp'
|
27
|
+
'cluster_result': 'ClusterJobRsp',
|
28
|
+
'save_fingerprint': 'bool'
|
27
29
|
}
|
28
30
|
|
29
31
|
attribute_map = {
|
@@ -31,11 +33,13 @@ class ShowAdmetJobResponse(SdkResponse):
|
|
31
33
|
'molecule_file': 'molecule_file',
|
32
34
|
'job_result': 'job_result',
|
33
35
|
'part_failed_reason': 'part_failed_reason',
|
36
|
+
'base_model': 'base_model',
|
34
37
|
'models': 'models',
|
35
|
-
'cluster_result': 'cluster_result'
|
38
|
+
'cluster_result': 'cluster_result',
|
39
|
+
'save_fingerprint': 'save_fingerprint'
|
36
40
|
}
|
37
41
|
|
38
|
-
def __init__(self, basic_info=None, molecule_file=None, job_result=None, part_failed_reason=None, models=None, cluster_result=None):
|
42
|
+
def __init__(self, basic_info=None, molecule_file=None, job_result=None, part_failed_reason=None, base_model=None, models=None, cluster_result=None, save_fingerprint=None):
|
39
43
|
"""ShowAdmetJobResponse
|
40
44
|
|
41
45
|
The model defined in huaweicloud sdk
|
@@ -48,10 +52,14 @@ class ShowAdmetJobResponse(SdkResponse):
|
|
48
52
|
:type job_result: :class:`huaweicloudsdkeihealth.v1.JobResult`
|
49
53
|
:param part_failed_reason: 作业结果信息
|
50
54
|
:type part_failed_reason: list[:class:`huaweicloudsdkeihealth.v1.FailedReasonRecord`]
|
55
|
+
:param base_model:
|
56
|
+
:type base_model: :class:`huaweicloudsdkeihealth.v1.BaseModel`
|
51
57
|
:param models: 模型信息
|
52
58
|
:type models: list[:class:`huaweicloudsdkeihealth.v1.BasicDrugModel`]
|
53
59
|
:param cluster_result:
|
54
60
|
:type cluster_result: :class:`huaweicloudsdkeihealth.v1.ClusterJobRsp`
|
61
|
+
:param save_fingerprint: 是否输出表征
|
62
|
+
:type save_fingerprint: bool
|
55
63
|
"""
|
56
64
|
|
57
65
|
super(ShowAdmetJobResponse, self).__init__()
|
@@ -60,8 +68,10 @@ class ShowAdmetJobResponse(SdkResponse):
|
|
60
68
|
self._molecule_file = None
|
61
69
|
self._job_result = None
|
62
70
|
self._part_failed_reason = None
|
71
|
+
self._base_model = None
|
63
72
|
self._models = None
|
64
73
|
self._cluster_result = None
|
74
|
+
self._save_fingerprint = None
|
65
75
|
self.discriminator = None
|
66
76
|
|
67
77
|
if basic_info is not None:
|
@@ -72,10 +82,14 @@ class ShowAdmetJobResponse(SdkResponse):
|
|
72
82
|
self.job_result = job_result
|
73
83
|
if part_failed_reason is not None:
|
74
84
|
self.part_failed_reason = part_failed_reason
|
85
|
+
if base_model is not None:
|
86
|
+
self.base_model = base_model
|
75
87
|
if models is not None:
|
76
88
|
self.models = models
|
77
89
|
if cluster_result is not None:
|
78
90
|
self.cluster_result = cluster_result
|
91
|
+
if save_fingerprint is not None:
|
92
|
+
self.save_fingerprint = save_fingerprint
|
79
93
|
|
80
94
|
@property
|
81
95
|
def basic_info(self):
|
@@ -153,6 +167,24 @@ class ShowAdmetJobResponse(SdkResponse):
|
|
153
167
|
"""
|
154
168
|
self._part_failed_reason = part_failed_reason
|
155
169
|
|
170
|
+
@property
|
171
|
+
def base_model(self):
|
172
|
+
"""Gets the base_model of this ShowAdmetJobResponse.
|
173
|
+
|
174
|
+
:return: The base_model of this ShowAdmetJobResponse.
|
175
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.BaseModel`
|
176
|
+
"""
|
177
|
+
return self._base_model
|
178
|
+
|
179
|
+
@base_model.setter
|
180
|
+
def base_model(self, base_model):
|
181
|
+
"""Sets the base_model of this ShowAdmetJobResponse.
|
182
|
+
|
183
|
+
:param base_model: The base_model of this ShowAdmetJobResponse.
|
184
|
+
:type base_model: :class:`huaweicloudsdkeihealth.v1.BaseModel`
|
185
|
+
"""
|
186
|
+
self._base_model = base_model
|
187
|
+
|
156
188
|
@property
|
157
189
|
def models(self):
|
158
190
|
"""Gets the models of this ShowAdmetJobResponse.
|
@@ -193,6 +225,28 @@ class ShowAdmetJobResponse(SdkResponse):
|
|
193
225
|
"""
|
194
226
|
self._cluster_result = cluster_result
|
195
227
|
|
228
|
+
@property
|
229
|
+
def save_fingerprint(self):
|
230
|
+
"""Gets the save_fingerprint of this ShowAdmetJobResponse.
|
231
|
+
|
232
|
+
是否输出表征
|
233
|
+
|
234
|
+
:return: The save_fingerprint of this ShowAdmetJobResponse.
|
235
|
+
:rtype: bool
|
236
|
+
"""
|
237
|
+
return self._save_fingerprint
|
238
|
+
|
239
|
+
@save_fingerprint.setter
|
240
|
+
def save_fingerprint(self, save_fingerprint):
|
241
|
+
"""Sets the save_fingerprint of this ShowAdmetJobResponse.
|
242
|
+
|
243
|
+
是否输出表征
|
244
|
+
|
245
|
+
:param save_fingerprint: The save_fingerprint of this ShowAdmetJobResponse.
|
246
|
+
:type save_fingerprint: bool
|
247
|
+
"""
|
248
|
+
self._save_fingerprint = save_fingerprint
|
249
|
+
|
196
250
|
def to_dict(self):
|
197
251
|
"""Returns the model properties as a dict"""
|
198
252
|
result = {}
|
@@ -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 ShowClusteringJobRequest:
|
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
|
+
"""ShowClusteringJobRequest
|
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 ShowClusteringJobRequest.
|
52
|
+
|
53
|
+
平台项目ID。
|
54
|
+
|
55
|
+
:return: The eihealth_project_id of this ShowClusteringJobRequest.
|
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 ShowClusteringJobRequest.
|
63
|
+
|
64
|
+
平台项目ID。
|
65
|
+
|
66
|
+
:param eihealth_project_id: The eihealth_project_id of this ShowClusteringJobRequest.
|
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 ShowClusteringJobRequest.
|
74
|
+
|
75
|
+
作业id
|
76
|
+
|
77
|
+
:return: The job_id of this ShowClusteringJobRequest.
|
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 ShowClusteringJobRequest.
|
85
|
+
|
86
|
+
作业id
|
87
|
+
|
88
|
+
:param job_id: The job_id of this ShowClusteringJobRequest.
|
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, ShowClusteringJobRequest):
|
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
|