huaweicloudsdkeihealth 3.1.108__py2.py3-none-any.whl → 3.1.109__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 +31 -0
- huaweicloudsdkeihealth/v1/eihealth_async_client.py +543 -0
- huaweicloudsdkeihealth/v1/eihealth_client.py +543 -0
- huaweicloudsdkeihealth/v1/model/__init__.py +31 -0
- huaweicloudsdkeihealth/v1/model/base_model.py +142 -0
- huaweicloudsdkeihealth/v1/model/base_model_dto.py +231 -0
- huaweicloudsdkeihealth/v1/model/bind_site_dto.py +3 -3
- huaweicloudsdkeihealth/v1/model/cpi_receptor.py +226 -0
- huaweicloudsdkeihealth/v1/model/create_admet_job_req.py +61 -3
- 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_dock_job_req.py +32 -3
- huaweicloudsdkeihealth/v1/model/create_drug_ligand_interaction2d_svg_req.py +32 -3
- 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_optm_job_req.py +30 -1
- 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/fasta_receptor.py +197 -0
- 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/list_base_model_request.py +202 -0
- huaweicloudsdkeihealth/v1/model/list_base_model_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_drug_model_request.py +35 -6
- 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/pocket_fragment.py +30 -1
- 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/show_admet_job_response.py +57 -3
- 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_gen_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_gen_job_response.py +365 -0
- huaweicloudsdkeihealth/v1/model/show_optm_job_response.py +26 -1
- 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/weak_constraint_dto.py +28 -3
- huaweicloudsdkeihealth/v1/model/weak_constraint_type.py +1 -0
- {huaweicloudsdkeihealth-3.1.108.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.108.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/RECORD +57 -26
- {huaweicloudsdkeihealth-3.1.108.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/WHEEL +1 -1
- {huaweicloudsdkeihealth-3.1.108.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.108.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,226 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CpiReceptor:
|
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
|
+
'source': 'DrugFileSource',
|
21
|
+
'url': 'str',
|
22
|
+
'format': 'str',
|
23
|
+
'data': 'str',
|
24
|
+
'fasta_count': 'int'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'source': 'source',
|
29
|
+
'url': 'url',
|
30
|
+
'format': 'format',
|
31
|
+
'data': 'data',
|
32
|
+
'fasta_count': 'fasta_count'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, source=None, url=None, format=None, data=None, fasta_count=None):
|
36
|
+
"""CpiReceptor
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param source:
|
41
|
+
:type source: :class:`huaweicloudsdkeihealth.v1.DrugFileSource`
|
42
|
+
:param url: 文件URL,当数据源为外部网络数据时为https地址;用户私有数据中心为项目路径、公共数据场景为obs地址
|
43
|
+
:type url: str
|
44
|
+
:param format: 文件格式,仅支持FASTA,仅数据源为RAW时提供
|
45
|
+
:type format: str
|
46
|
+
:param data: 文件原始数据,仅数据源为RAW时提供
|
47
|
+
:type data: str
|
48
|
+
:param fasta_count: fasta文件中氨基酸数量
|
49
|
+
:type fasta_count: int
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._source = None
|
55
|
+
self._url = None
|
56
|
+
self._format = None
|
57
|
+
self._data = None
|
58
|
+
self._fasta_count = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
self.source = source
|
62
|
+
if url is not None:
|
63
|
+
self.url = url
|
64
|
+
if format is not None:
|
65
|
+
self.format = format
|
66
|
+
if data is not None:
|
67
|
+
self.data = data
|
68
|
+
if fasta_count is not None:
|
69
|
+
self.fasta_count = fasta_count
|
70
|
+
|
71
|
+
@property
|
72
|
+
def source(self):
|
73
|
+
"""Gets the source of this CpiReceptor.
|
74
|
+
|
75
|
+
:return: The source of this CpiReceptor.
|
76
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.DrugFileSource`
|
77
|
+
"""
|
78
|
+
return self._source
|
79
|
+
|
80
|
+
@source.setter
|
81
|
+
def source(self, source):
|
82
|
+
"""Sets the source of this CpiReceptor.
|
83
|
+
|
84
|
+
:param source: The source of this CpiReceptor.
|
85
|
+
:type source: :class:`huaweicloudsdkeihealth.v1.DrugFileSource`
|
86
|
+
"""
|
87
|
+
self._source = source
|
88
|
+
|
89
|
+
@property
|
90
|
+
def url(self):
|
91
|
+
"""Gets the url of this CpiReceptor.
|
92
|
+
|
93
|
+
文件URL,当数据源为外部网络数据时为https地址;用户私有数据中心为项目路径、公共数据场景为obs地址
|
94
|
+
|
95
|
+
:return: The url of this CpiReceptor.
|
96
|
+
:rtype: str
|
97
|
+
"""
|
98
|
+
return self._url
|
99
|
+
|
100
|
+
@url.setter
|
101
|
+
def url(self, url):
|
102
|
+
"""Sets the url of this CpiReceptor.
|
103
|
+
|
104
|
+
文件URL,当数据源为外部网络数据时为https地址;用户私有数据中心为项目路径、公共数据场景为obs地址
|
105
|
+
|
106
|
+
:param url: The url of this CpiReceptor.
|
107
|
+
:type url: str
|
108
|
+
"""
|
109
|
+
self._url = url
|
110
|
+
|
111
|
+
@property
|
112
|
+
def format(self):
|
113
|
+
"""Gets the format of this CpiReceptor.
|
114
|
+
|
115
|
+
文件格式,仅支持FASTA,仅数据源为RAW时提供
|
116
|
+
|
117
|
+
:return: The format of this CpiReceptor.
|
118
|
+
:rtype: str
|
119
|
+
"""
|
120
|
+
return self._format
|
121
|
+
|
122
|
+
@format.setter
|
123
|
+
def format(self, format):
|
124
|
+
"""Sets the format of this CpiReceptor.
|
125
|
+
|
126
|
+
文件格式,仅支持FASTA,仅数据源为RAW时提供
|
127
|
+
|
128
|
+
:param format: The format of this CpiReceptor.
|
129
|
+
:type format: str
|
130
|
+
"""
|
131
|
+
self._format = format
|
132
|
+
|
133
|
+
@property
|
134
|
+
def data(self):
|
135
|
+
"""Gets the data of this CpiReceptor.
|
136
|
+
|
137
|
+
文件原始数据,仅数据源为RAW时提供
|
138
|
+
|
139
|
+
:return: The data of this CpiReceptor.
|
140
|
+
:rtype: str
|
141
|
+
"""
|
142
|
+
return self._data
|
143
|
+
|
144
|
+
@data.setter
|
145
|
+
def data(self, data):
|
146
|
+
"""Sets the data of this CpiReceptor.
|
147
|
+
|
148
|
+
文件原始数据,仅数据源为RAW时提供
|
149
|
+
|
150
|
+
:param data: The data of this CpiReceptor.
|
151
|
+
:type data: str
|
152
|
+
"""
|
153
|
+
self._data = data
|
154
|
+
|
155
|
+
@property
|
156
|
+
def fasta_count(self):
|
157
|
+
"""Gets the fasta_count of this CpiReceptor.
|
158
|
+
|
159
|
+
fasta文件中氨基酸数量
|
160
|
+
|
161
|
+
:return: The fasta_count of this CpiReceptor.
|
162
|
+
:rtype: int
|
163
|
+
"""
|
164
|
+
return self._fasta_count
|
165
|
+
|
166
|
+
@fasta_count.setter
|
167
|
+
def fasta_count(self, fasta_count):
|
168
|
+
"""Sets the fasta_count of this CpiReceptor.
|
169
|
+
|
170
|
+
fasta文件中氨基酸数量
|
171
|
+
|
172
|
+
:param fasta_count: The fasta_count of this CpiReceptor.
|
173
|
+
:type fasta_count: int
|
174
|
+
"""
|
175
|
+
self._fasta_count = fasta_count
|
176
|
+
|
177
|
+
def to_dict(self):
|
178
|
+
"""Returns the model properties as a dict"""
|
179
|
+
result = {}
|
180
|
+
|
181
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
182
|
+
value = getattr(self, attr)
|
183
|
+
if isinstance(value, list):
|
184
|
+
result[attr] = list(map(
|
185
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
186
|
+
value
|
187
|
+
))
|
188
|
+
elif hasattr(value, "to_dict"):
|
189
|
+
result[attr] = value.to_dict()
|
190
|
+
elif isinstance(value, dict):
|
191
|
+
result[attr] = dict(map(
|
192
|
+
lambda item: (item[0], item[1].to_dict())
|
193
|
+
if hasattr(item[1], "to_dict") else item,
|
194
|
+
value.items()
|
195
|
+
))
|
196
|
+
else:
|
197
|
+
if attr in self.sensitive_list:
|
198
|
+
result[attr] = "****"
|
199
|
+
else:
|
200
|
+
result[attr] = value
|
201
|
+
|
202
|
+
return result
|
203
|
+
|
204
|
+
def to_str(self):
|
205
|
+
"""Returns the string representation of the model"""
|
206
|
+
import simplejson as json
|
207
|
+
if six.PY2:
|
208
|
+
import sys
|
209
|
+
reload(sys)
|
210
|
+
sys.setdefaultencoding("utf-8")
|
211
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
212
|
+
|
213
|
+
def __repr__(self):
|
214
|
+
"""For `print`"""
|
215
|
+
return self.to_str()
|
216
|
+
|
217
|
+
def __eq__(self, other):
|
218
|
+
"""Returns true if both objects are equal"""
|
219
|
+
if not isinstance(other, CpiReceptor):
|
220
|
+
return False
|
221
|
+
|
222
|
+
return self.__dict__ == other.__dict__
|
223
|
+
|
224
|
+
def __ne__(self, other):
|
225
|
+
"""Returns true if both objects are not equal"""
|
226
|
+
return not self == other
|
@@ -19,16 +19,20 @@ class CreateAdmetJobReq:
|
|
19
19
|
openapi_types = {
|
20
20
|
'basic_info': 'CreateDrugJobBasicInfo',
|
21
21
|
'molecule_file': 'MoleculeFileDto',
|
22
|
-
'
|
22
|
+
'base_model_id': 'str',
|
23
|
+
'model_ids': 'list[str]',
|
24
|
+
'save_fingerprint': 'bool'
|
23
25
|
}
|
24
26
|
|
25
27
|
attribute_map = {
|
26
28
|
'basic_info': 'basic_info',
|
27
29
|
'molecule_file': 'molecule_file',
|
28
|
-
'
|
30
|
+
'base_model_id': 'base_model_id',
|
31
|
+
'model_ids': 'model_ids',
|
32
|
+
'save_fingerprint': 'save_fingerprint'
|
29
33
|
}
|
30
34
|
|
31
|
-
def __init__(self, basic_info=None, molecule_file=None, model_ids=None):
|
35
|
+
def __init__(self, basic_info=None, molecule_file=None, base_model_id=None, model_ids=None, save_fingerprint=None):
|
32
36
|
"""CreateAdmetJobReq
|
33
37
|
|
34
38
|
The model defined in huaweicloud sdk
|
@@ -37,21 +41,31 @@ class CreateAdmetJobReq:
|
|
37
41
|
:type basic_info: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo`
|
38
42
|
:param molecule_file:
|
39
43
|
:type molecule_file: :class:`huaweicloudsdkeihealth.v1.MoleculeFileDto`
|
44
|
+
:param base_model_id: 基模型id
|
45
|
+
:type base_model_id: str
|
40
46
|
:param model_ids: 模型id列表
|
41
47
|
:type model_ids: list[str]
|
48
|
+
:param save_fingerprint: 是否输出表征,仅专业版平台支持
|
49
|
+
:type save_fingerprint: bool
|
42
50
|
"""
|
43
51
|
|
44
52
|
|
45
53
|
|
46
54
|
self._basic_info = None
|
47
55
|
self._molecule_file = None
|
56
|
+
self._base_model_id = None
|
48
57
|
self._model_ids = None
|
58
|
+
self._save_fingerprint = None
|
49
59
|
self.discriminator = None
|
50
60
|
|
51
61
|
self.basic_info = basic_info
|
52
62
|
self.molecule_file = molecule_file
|
63
|
+
if base_model_id is not None:
|
64
|
+
self.base_model_id = base_model_id
|
53
65
|
if model_ids is not None:
|
54
66
|
self.model_ids = model_ids
|
67
|
+
if save_fingerprint is not None:
|
68
|
+
self.save_fingerprint = save_fingerprint
|
55
69
|
|
56
70
|
@property
|
57
71
|
def basic_info(self):
|
@@ -89,6 +103,28 @@ class CreateAdmetJobReq:
|
|
89
103
|
"""
|
90
104
|
self._molecule_file = molecule_file
|
91
105
|
|
106
|
+
@property
|
107
|
+
def base_model_id(self):
|
108
|
+
"""Gets the base_model_id of this CreateAdmetJobReq.
|
109
|
+
|
110
|
+
基模型id
|
111
|
+
|
112
|
+
:return: The base_model_id of this CreateAdmetJobReq.
|
113
|
+
:rtype: str
|
114
|
+
"""
|
115
|
+
return self._base_model_id
|
116
|
+
|
117
|
+
@base_model_id.setter
|
118
|
+
def base_model_id(self, base_model_id):
|
119
|
+
"""Sets the base_model_id of this CreateAdmetJobReq.
|
120
|
+
|
121
|
+
基模型id
|
122
|
+
|
123
|
+
:param base_model_id: The base_model_id of this CreateAdmetJobReq.
|
124
|
+
:type base_model_id: str
|
125
|
+
"""
|
126
|
+
self._base_model_id = base_model_id
|
127
|
+
|
92
128
|
@property
|
93
129
|
def model_ids(self):
|
94
130
|
"""Gets the model_ids of this CreateAdmetJobReq.
|
@@ -111,6 +147,28 @@ class CreateAdmetJobReq:
|
|
111
147
|
"""
|
112
148
|
self._model_ids = model_ids
|
113
149
|
|
150
|
+
@property
|
151
|
+
def save_fingerprint(self):
|
152
|
+
"""Gets the save_fingerprint of this CreateAdmetJobReq.
|
153
|
+
|
154
|
+
是否输出表征,仅专业版平台支持
|
155
|
+
|
156
|
+
:return: The save_fingerprint of this CreateAdmetJobReq.
|
157
|
+
:rtype: bool
|
158
|
+
"""
|
159
|
+
return self._save_fingerprint
|
160
|
+
|
161
|
+
@save_fingerprint.setter
|
162
|
+
def save_fingerprint(self, save_fingerprint):
|
163
|
+
"""Sets the save_fingerprint of this CreateAdmetJobReq.
|
164
|
+
|
165
|
+
是否输出表征,仅专业版平台支持
|
166
|
+
|
167
|
+
:param save_fingerprint: The save_fingerprint of this CreateAdmetJobReq.
|
168
|
+
:type save_fingerprint: bool
|
169
|
+
"""
|
170
|
+
self._save_fingerprint = save_fingerprint
|
171
|
+
|
114
172
|
def to_dict(self):
|
115
173
|
"""Returns the model properties as a dict"""
|
116
174
|
result = {}
|
@@ -0,0 +1,166 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateCpiJobReq:
|
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
|
+
'basic_info': 'CreateDrugJobBasicInfo',
|
21
|
+
'receptors': 'list[CpiReceptor]',
|
22
|
+
'ligands': 'list[MoleculeFileDto]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'basic_info': 'basic_info',
|
27
|
+
'receptors': 'receptors',
|
28
|
+
'ligands': 'ligands'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, basic_info=None, receptors=None, ligands=None):
|
32
|
+
"""CreateCpiJobReq
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param basic_info:
|
37
|
+
:type basic_info: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo`
|
38
|
+
:param receptors: 受体文件列表
|
39
|
+
:type receptors: list[:class:`huaweicloudsdkeihealth.v1.CpiReceptor`]
|
40
|
+
:param ligands: 小分子
|
41
|
+
:type ligands: list[:class:`huaweicloudsdkeihealth.v1.MoleculeFileDto`]
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._basic_info = None
|
47
|
+
self._receptors = None
|
48
|
+
self._ligands = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.basic_info = basic_info
|
52
|
+
self.receptors = receptors
|
53
|
+
self.ligands = ligands
|
54
|
+
|
55
|
+
@property
|
56
|
+
def basic_info(self):
|
57
|
+
"""Gets the basic_info of this CreateCpiJobReq.
|
58
|
+
|
59
|
+
:return: The basic_info of this CreateCpiJobReq.
|
60
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo`
|
61
|
+
"""
|
62
|
+
return self._basic_info
|
63
|
+
|
64
|
+
@basic_info.setter
|
65
|
+
def basic_info(self, basic_info):
|
66
|
+
"""Sets the basic_info of this CreateCpiJobReq.
|
67
|
+
|
68
|
+
:param basic_info: The basic_info of this CreateCpiJobReq.
|
69
|
+
:type basic_info: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo`
|
70
|
+
"""
|
71
|
+
self._basic_info = basic_info
|
72
|
+
|
73
|
+
@property
|
74
|
+
def receptors(self):
|
75
|
+
"""Gets the receptors of this CreateCpiJobReq.
|
76
|
+
|
77
|
+
受体文件列表
|
78
|
+
|
79
|
+
:return: The receptors of this CreateCpiJobReq.
|
80
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.CpiReceptor`]
|
81
|
+
"""
|
82
|
+
return self._receptors
|
83
|
+
|
84
|
+
@receptors.setter
|
85
|
+
def receptors(self, receptors):
|
86
|
+
"""Sets the receptors of this CreateCpiJobReq.
|
87
|
+
|
88
|
+
受体文件列表
|
89
|
+
|
90
|
+
:param receptors: The receptors of this CreateCpiJobReq.
|
91
|
+
:type receptors: list[:class:`huaweicloudsdkeihealth.v1.CpiReceptor`]
|
92
|
+
"""
|
93
|
+
self._receptors = receptors
|
94
|
+
|
95
|
+
@property
|
96
|
+
def ligands(self):
|
97
|
+
"""Gets the ligands of this CreateCpiJobReq.
|
98
|
+
|
99
|
+
小分子
|
100
|
+
|
101
|
+
:return: The ligands of this CreateCpiJobReq.
|
102
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.MoleculeFileDto`]
|
103
|
+
"""
|
104
|
+
return self._ligands
|
105
|
+
|
106
|
+
@ligands.setter
|
107
|
+
def ligands(self, ligands):
|
108
|
+
"""Sets the ligands of this CreateCpiJobReq.
|
109
|
+
|
110
|
+
小分子
|
111
|
+
|
112
|
+
:param ligands: The ligands of this CreateCpiJobReq.
|
113
|
+
:type ligands: list[:class:`huaweicloudsdkeihealth.v1.MoleculeFileDto`]
|
114
|
+
"""
|
115
|
+
self._ligands = ligands
|
116
|
+
|
117
|
+
def to_dict(self):
|
118
|
+
"""Returns the model properties as a dict"""
|
119
|
+
result = {}
|
120
|
+
|
121
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
122
|
+
value = getattr(self, attr)
|
123
|
+
if isinstance(value, list):
|
124
|
+
result[attr] = list(map(
|
125
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
126
|
+
value
|
127
|
+
))
|
128
|
+
elif hasattr(value, "to_dict"):
|
129
|
+
result[attr] = value.to_dict()
|
130
|
+
elif isinstance(value, dict):
|
131
|
+
result[attr] = dict(map(
|
132
|
+
lambda item: (item[0], item[1].to_dict())
|
133
|
+
if hasattr(item[1], "to_dict") else item,
|
134
|
+
value.items()
|
135
|
+
))
|
136
|
+
else:
|
137
|
+
if attr in self.sensitive_list:
|
138
|
+
result[attr] = "****"
|
139
|
+
else:
|
140
|
+
result[attr] = value
|
141
|
+
|
142
|
+
return result
|
143
|
+
|
144
|
+
def to_str(self):
|
145
|
+
"""Returns the string representation of the model"""
|
146
|
+
import simplejson as json
|
147
|
+
if six.PY2:
|
148
|
+
import sys
|
149
|
+
reload(sys)
|
150
|
+
sys.setdefaultencoding("utf-8")
|
151
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
152
|
+
|
153
|
+
def __repr__(self):
|
154
|
+
"""For `print`"""
|
155
|
+
return self.to_str()
|
156
|
+
|
157
|
+
def __eq__(self, other):
|
158
|
+
"""Returns true if both objects are equal"""
|
159
|
+
if not isinstance(other, CreateCpiJobReq):
|
160
|
+
return False
|
161
|
+
|
162
|
+
return self.__dict__ == other.__dict__
|
163
|
+
|
164
|
+
def __ne__(self, other):
|
165
|
+
"""Returns true if both objects are not equal"""
|
166
|
+
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 CreateCpiJobRequest:
|
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': 'CreateCpiJobReq'
|
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
|
+
"""CreateCpiJobRequest
|
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 CreateCpiJobRequest
|
37
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.CreateCpiJobReq`
|
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 CreateCpiJobRequest.
|
53
|
+
|
54
|
+
平台项目ID。
|
55
|
+
|
56
|
+
:return: The eihealth_project_id of this CreateCpiJobRequest.
|
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 CreateCpiJobRequest.
|
64
|
+
|
65
|
+
平台项目ID。
|
66
|
+
|
67
|
+
:param eihealth_project_id: The eihealth_project_id of this CreateCpiJobRequest.
|
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 CreateCpiJobRequest.
|
75
|
+
|
76
|
+
:return: The body of this CreateCpiJobRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.CreateCpiJobReq`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
"""Sets the body of this CreateCpiJobRequest.
|
84
|
+
|
85
|
+
:param body: The body of this CreateCpiJobRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.CreateCpiJobReq`
|
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, CreateCpiJobRequest):
|
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
|