huaweicloudsdkeihealth 3.1.122__py2.py3-none-any.whl → 3.1.123__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 +24 -0
- huaweicloudsdkeihealth/v1/eihealth_async_client.py +492 -0
- huaweicloudsdkeihealth/v1/eihealth_client.py +492 -0
- huaweicloudsdkeihealth/v1/model/__init__.py +24 -0
- 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/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_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_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/delete_favorite_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/delete_favorite_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/favorite_dto.py +376 -0
- huaweicloudsdkeihealth/v1/model/list_favorite_request.py +433 -0
- huaweicloudsdkeihealth/v1/model/list_favorite_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/optimization_mode.py +1 -0
- huaweicloudsdkeihealth/v1/model/receptor_dto.py +280 -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/show_clustering_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_clustering_job_response.py +191 -0
- {huaweicloudsdkeihealth-3.1.122.dist-info → huaweicloudsdkeihealth-3.1.123.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.122.dist-info → huaweicloudsdkeihealth-3.1.123.dist-info}/RECORD +34 -10
- {huaweicloudsdkeihealth-3.1.122.dist-info → huaweicloudsdkeihealth-3.1.123.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.122.dist-info → huaweicloudsdkeihealth-3.1.123.dist-info}/WHEEL +0 -0
- {huaweicloudsdkeihealth-3.1.122.dist-info → huaweicloudsdkeihealth-3.1.123.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 CreateFavoriteRequest:
|
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': 'CreateFavoriteReq'
|
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
|
+
"""CreateFavoriteRequest
|
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 CreateFavoriteRequest
|
37
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.CreateFavoriteReq`
|
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 CreateFavoriteRequest.
|
53
|
+
|
54
|
+
平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。
|
55
|
+
|
56
|
+
:return: The eihealth_project_id of this CreateFavoriteRequest.
|
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 CreateFavoriteRequest.
|
64
|
+
|
65
|
+
平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。
|
66
|
+
|
67
|
+
:param eihealth_project_id: The eihealth_project_id of this CreateFavoriteRequest.
|
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 CreateFavoriteRequest.
|
75
|
+
|
76
|
+
:return: The body of this CreateFavoriteRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.CreateFavoriteReq`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
"""Sets the body of this CreateFavoriteRequest.
|
84
|
+
|
85
|
+
:param body: The body of this CreateFavoriteRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.CreateFavoriteReq`
|
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, CreateFavoriteRequest):
|
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,116 @@
|
|
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 CreateFavoriteResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'id': 'id'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, id=None):
|
29
|
+
"""CreateFavoriteResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param id: 收藏记录ID。
|
34
|
+
:type id: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(CreateFavoriteResponse, self).__init__()
|
38
|
+
|
39
|
+
self._id = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if id is not None:
|
43
|
+
self.id = id
|
44
|
+
|
45
|
+
@property
|
46
|
+
def id(self):
|
47
|
+
"""Gets the id of this CreateFavoriteResponse.
|
48
|
+
|
49
|
+
收藏记录ID。
|
50
|
+
|
51
|
+
:return: The id of this CreateFavoriteResponse.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._id
|
55
|
+
|
56
|
+
@id.setter
|
57
|
+
def id(self, id):
|
58
|
+
"""Sets the id of this CreateFavoriteResponse.
|
59
|
+
|
60
|
+
收藏记录ID。
|
61
|
+
|
62
|
+
:param id: The id of this CreateFavoriteResponse.
|
63
|
+
:type id: str
|
64
|
+
"""
|
65
|
+
self._id = id
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, CreateFavoriteResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|
@@ -0,0 +1,163 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateMolDockingJobReq:
|
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
|
+
'receptor': 'ReceptorDto',
|
21
|
+
'ligand': 'DrugFile',
|
22
|
+
'engine': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'receptor': 'receptor',
|
27
|
+
'ligand': 'ligand',
|
28
|
+
'engine': 'engine'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, receptor=None, ligand=None, engine=None):
|
32
|
+
"""CreateMolDockingJobReq
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param receptor:
|
37
|
+
:type receptor: :class:`huaweicloudsdkeihealth.v1.ReceptorDto`
|
38
|
+
:param ligand:
|
39
|
+
:type ligand: :class:`huaweicloudsdkeihealth.v1.DrugFile`
|
40
|
+
:param engine: 引擎,默认为AUTODOCK_VINA。
|
41
|
+
:type engine: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._receptor = None
|
47
|
+
self._ligand = None
|
48
|
+
self._engine = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.receptor = receptor
|
52
|
+
self.ligand = ligand
|
53
|
+
if engine is not None:
|
54
|
+
self.engine = engine
|
55
|
+
|
56
|
+
@property
|
57
|
+
def receptor(self):
|
58
|
+
"""Gets the receptor of this CreateMolDockingJobReq.
|
59
|
+
|
60
|
+
:return: The receptor of this CreateMolDockingJobReq.
|
61
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ReceptorDto`
|
62
|
+
"""
|
63
|
+
return self._receptor
|
64
|
+
|
65
|
+
@receptor.setter
|
66
|
+
def receptor(self, receptor):
|
67
|
+
"""Sets the receptor of this CreateMolDockingJobReq.
|
68
|
+
|
69
|
+
:param receptor: The receptor of this CreateMolDockingJobReq.
|
70
|
+
:type receptor: :class:`huaweicloudsdkeihealth.v1.ReceptorDto`
|
71
|
+
"""
|
72
|
+
self._receptor = receptor
|
73
|
+
|
74
|
+
@property
|
75
|
+
def ligand(self):
|
76
|
+
"""Gets the ligand of this CreateMolDockingJobReq.
|
77
|
+
|
78
|
+
:return: The ligand of this CreateMolDockingJobReq.
|
79
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.DrugFile`
|
80
|
+
"""
|
81
|
+
return self._ligand
|
82
|
+
|
83
|
+
@ligand.setter
|
84
|
+
def ligand(self, ligand):
|
85
|
+
"""Sets the ligand of this CreateMolDockingJobReq.
|
86
|
+
|
87
|
+
:param ligand: The ligand of this CreateMolDockingJobReq.
|
88
|
+
:type ligand: :class:`huaweicloudsdkeihealth.v1.DrugFile`
|
89
|
+
"""
|
90
|
+
self._ligand = ligand
|
91
|
+
|
92
|
+
@property
|
93
|
+
def engine(self):
|
94
|
+
"""Gets the engine of this CreateMolDockingJobReq.
|
95
|
+
|
96
|
+
引擎,默认为AUTODOCK_VINA。
|
97
|
+
|
98
|
+
:return: The engine of this CreateMolDockingJobReq.
|
99
|
+
:rtype: str
|
100
|
+
"""
|
101
|
+
return self._engine
|
102
|
+
|
103
|
+
@engine.setter
|
104
|
+
def engine(self, engine):
|
105
|
+
"""Sets the engine of this CreateMolDockingJobReq.
|
106
|
+
|
107
|
+
引擎,默认为AUTODOCK_VINA。
|
108
|
+
|
109
|
+
:param engine: The engine of this CreateMolDockingJobReq.
|
110
|
+
:type engine: str
|
111
|
+
"""
|
112
|
+
self._engine = engine
|
113
|
+
|
114
|
+
def to_dict(self):
|
115
|
+
"""Returns the model properties as a dict"""
|
116
|
+
result = {}
|
117
|
+
|
118
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
119
|
+
value = getattr(self, attr)
|
120
|
+
if isinstance(value, list):
|
121
|
+
result[attr] = list(map(
|
122
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
123
|
+
value
|
124
|
+
))
|
125
|
+
elif hasattr(value, "to_dict"):
|
126
|
+
result[attr] = value.to_dict()
|
127
|
+
elif isinstance(value, dict):
|
128
|
+
result[attr] = dict(map(
|
129
|
+
lambda item: (item[0], item[1].to_dict())
|
130
|
+
if hasattr(item[1], "to_dict") else item,
|
131
|
+
value.items()
|
132
|
+
))
|
133
|
+
else:
|
134
|
+
if attr in self.sensitive_list:
|
135
|
+
result[attr] = "****"
|
136
|
+
else:
|
137
|
+
result[attr] = value
|
138
|
+
|
139
|
+
return result
|
140
|
+
|
141
|
+
def to_str(self):
|
142
|
+
"""Returns the string representation of the model"""
|
143
|
+
import simplejson as json
|
144
|
+
if six.PY2:
|
145
|
+
import sys
|
146
|
+
reload(sys)
|
147
|
+
sys.setdefaultencoding("utf-8")
|
148
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
149
|
+
|
150
|
+
def __repr__(self):
|
151
|
+
"""For `print`"""
|
152
|
+
return self.to_str()
|
153
|
+
|
154
|
+
def __eq__(self, other):
|
155
|
+
"""Returns true if both objects are equal"""
|
156
|
+
if not isinstance(other, CreateMolDockingJobReq):
|
157
|
+
return False
|
158
|
+
|
159
|
+
return self.__dict__ == other.__dict__
|
160
|
+
|
161
|
+
def __ne__(self, other):
|
162
|
+
"""Returns true if both objects are not equal"""
|
163
|
+
return not self == other
|
@@ -0,0 +1,139 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateMolDockingJobRequest:
|
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': 'CreateMolDockingJobReq'
|
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
|
+
"""CreateMolDockingJobRequest
|
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 CreateMolDockingJobRequest
|
37
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.CreateMolDockingJobReq`
|
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 CreateMolDockingJobRequest.
|
53
|
+
|
54
|
+
平台项目ID。
|
55
|
+
|
56
|
+
:return: The eihealth_project_id of this CreateMolDockingJobRequest.
|
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 CreateMolDockingJobRequest.
|
64
|
+
|
65
|
+
平台项目ID。
|
66
|
+
|
67
|
+
:param eihealth_project_id: The eihealth_project_id of this CreateMolDockingJobRequest.
|
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 CreateMolDockingJobRequest.
|
75
|
+
|
76
|
+
:return: The body of this CreateMolDockingJobRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.CreateMolDockingJobReq`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
"""Sets the body of this CreateMolDockingJobRequest.
|
84
|
+
|
85
|
+
:param body: The body of this CreateMolDockingJobRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.CreateMolDockingJobReq`
|
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, CreateMolDockingJobRequest):
|
133
|
+
return False
|
134
|
+
|
135
|
+
return self.__dict__ == other.__dict__
|
136
|
+
|
137
|
+
def __ne__(self, other):
|
138
|
+
"""Returns true if both objects are not equal"""
|
139
|
+
return not self == other
|
@@ -0,0 +1,145 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class CreateMolDockingJobResponse(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
|
+
'vina_score': 'float',
|
22
|
+
'pose': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'vina_score': 'vina_score',
|
27
|
+
'pose': 'pose'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, vina_score=None, pose=None):
|
31
|
+
"""CreateMolDockingJobResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param vina_score: 对接打分结果。
|
36
|
+
:type vina_score: float
|
37
|
+
:param pose: 对接构象。
|
38
|
+
:type pose: str
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(CreateMolDockingJobResponse, self).__init__()
|
42
|
+
|
43
|
+
self._vina_score = None
|
44
|
+
self._pose = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if vina_score is not None:
|
48
|
+
self.vina_score = vina_score
|
49
|
+
if pose is not None:
|
50
|
+
self.pose = pose
|
51
|
+
|
52
|
+
@property
|
53
|
+
def vina_score(self):
|
54
|
+
"""Gets the vina_score of this CreateMolDockingJobResponse.
|
55
|
+
|
56
|
+
对接打分结果。
|
57
|
+
|
58
|
+
:return: The vina_score of this CreateMolDockingJobResponse.
|
59
|
+
:rtype: float
|
60
|
+
"""
|
61
|
+
return self._vina_score
|
62
|
+
|
63
|
+
@vina_score.setter
|
64
|
+
def vina_score(self, vina_score):
|
65
|
+
"""Sets the vina_score of this CreateMolDockingJobResponse.
|
66
|
+
|
67
|
+
对接打分结果。
|
68
|
+
|
69
|
+
:param vina_score: The vina_score of this CreateMolDockingJobResponse.
|
70
|
+
:type vina_score: float
|
71
|
+
"""
|
72
|
+
self._vina_score = vina_score
|
73
|
+
|
74
|
+
@property
|
75
|
+
def pose(self):
|
76
|
+
"""Gets the pose of this CreateMolDockingJobResponse.
|
77
|
+
|
78
|
+
对接构象。
|
79
|
+
|
80
|
+
:return: The pose of this CreateMolDockingJobResponse.
|
81
|
+
:rtype: str
|
82
|
+
"""
|
83
|
+
return self._pose
|
84
|
+
|
85
|
+
@pose.setter
|
86
|
+
def pose(self, pose):
|
87
|
+
"""Sets the pose of this CreateMolDockingJobResponse.
|
88
|
+
|
89
|
+
对接构象。
|
90
|
+
|
91
|
+
:param pose: The pose of this CreateMolDockingJobResponse.
|
92
|
+
:type pose: str
|
93
|
+
"""
|
94
|
+
self._pose = pose
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, CreateMolDockingJobResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|