huaweicloudsdkeihealth 3.1.107__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.107.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.107.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/RECORD +57 -26
- {huaweicloudsdkeihealth-3.1.107.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/WHEEL +1 -1
- {huaweicloudsdkeihealth-3.1.107.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.107.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,365 @@
|
|
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 ShowGenJobResponse(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
|
+
'basic_info': 'DrugJobDto',
|
22
|
+
'smiles_list': 'list[str]',
|
23
|
+
'molecule_file': 'DrugFile',
|
24
|
+
'num_trials': 'int',
|
25
|
+
'initial_dataset_size': 'int',
|
26
|
+
'binding_sites': 'list[BindSiteDto]',
|
27
|
+
'weak_constraints': 'list[WeakConstraintDto]',
|
28
|
+
'strong_constraints': 'list[StrongConstraintDto]',
|
29
|
+
'base_model': 'BaseModel',
|
30
|
+
'models': 'list[BasicDrugModel]'
|
31
|
+
}
|
32
|
+
|
33
|
+
attribute_map = {
|
34
|
+
'basic_info': 'basic_info',
|
35
|
+
'smiles_list': 'smiles_list',
|
36
|
+
'molecule_file': 'molecule_file',
|
37
|
+
'num_trials': 'num_trials',
|
38
|
+
'initial_dataset_size': 'initial_dataset_size',
|
39
|
+
'binding_sites': 'binding_sites',
|
40
|
+
'weak_constraints': 'weak_constraints',
|
41
|
+
'strong_constraints': 'strong_constraints',
|
42
|
+
'base_model': 'base_model',
|
43
|
+
'models': 'models'
|
44
|
+
}
|
45
|
+
|
46
|
+
def __init__(self, basic_info=None, smiles_list=None, molecule_file=None, num_trials=None, initial_dataset_size=None, binding_sites=None, weak_constraints=None, strong_constraints=None, base_model=None, models=None):
|
47
|
+
"""ShowGenJobResponse
|
48
|
+
|
49
|
+
The model defined in huaweicloud sdk
|
50
|
+
|
51
|
+
:param basic_info:
|
52
|
+
:type basic_info: :class:`huaweicloudsdkeihealth.v1.DrugJobDto`
|
53
|
+
:param smiles_list: 分子表达式列表
|
54
|
+
:type smiles_list: list[str]
|
55
|
+
:param molecule_file:
|
56
|
+
:type molecule_file: :class:`huaweicloudsdkeihealth.v1.DrugFile`
|
57
|
+
:param num_trials: 生成分子数量
|
58
|
+
:type num_trials: int
|
59
|
+
:param initial_dataset_size: 初始化数据集的分子数目。当为-1时,表示分子数目未知
|
60
|
+
:type initial_dataset_size: int
|
61
|
+
:param binding_sites: 靶点列表
|
62
|
+
:type binding_sites: list[:class:`huaweicloudsdkeihealth.v1.BindSiteDto`]
|
63
|
+
:param weak_constraints: 弱约束集合
|
64
|
+
:type weak_constraints: list[:class:`huaweicloudsdkeihealth.v1.WeakConstraintDto`]
|
65
|
+
:param strong_constraints: 强约束集合
|
66
|
+
:type strong_constraints: list[:class:`huaweicloudsdkeihealth.v1.StrongConstraintDto`]
|
67
|
+
:param base_model:
|
68
|
+
:type base_model: :class:`huaweicloudsdkeihealth.v1.BaseModel`
|
69
|
+
:param models: 模型列表
|
70
|
+
:type models: list[:class:`huaweicloudsdkeihealth.v1.BasicDrugModel`]
|
71
|
+
"""
|
72
|
+
|
73
|
+
super(ShowGenJobResponse, self).__init__()
|
74
|
+
|
75
|
+
self._basic_info = None
|
76
|
+
self._smiles_list = None
|
77
|
+
self._molecule_file = None
|
78
|
+
self._num_trials = None
|
79
|
+
self._initial_dataset_size = None
|
80
|
+
self._binding_sites = None
|
81
|
+
self._weak_constraints = None
|
82
|
+
self._strong_constraints = None
|
83
|
+
self._base_model = None
|
84
|
+
self._models = None
|
85
|
+
self.discriminator = None
|
86
|
+
|
87
|
+
if basic_info is not None:
|
88
|
+
self.basic_info = basic_info
|
89
|
+
if smiles_list is not None:
|
90
|
+
self.smiles_list = smiles_list
|
91
|
+
if molecule_file is not None:
|
92
|
+
self.molecule_file = molecule_file
|
93
|
+
if num_trials is not None:
|
94
|
+
self.num_trials = num_trials
|
95
|
+
if initial_dataset_size is not None:
|
96
|
+
self.initial_dataset_size = initial_dataset_size
|
97
|
+
if binding_sites is not None:
|
98
|
+
self.binding_sites = binding_sites
|
99
|
+
if weak_constraints is not None:
|
100
|
+
self.weak_constraints = weak_constraints
|
101
|
+
if strong_constraints is not None:
|
102
|
+
self.strong_constraints = strong_constraints
|
103
|
+
if base_model is not None:
|
104
|
+
self.base_model = base_model
|
105
|
+
if models is not None:
|
106
|
+
self.models = models
|
107
|
+
|
108
|
+
@property
|
109
|
+
def basic_info(self):
|
110
|
+
"""Gets the basic_info of this ShowGenJobResponse.
|
111
|
+
|
112
|
+
:return: The basic_info of this ShowGenJobResponse.
|
113
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.DrugJobDto`
|
114
|
+
"""
|
115
|
+
return self._basic_info
|
116
|
+
|
117
|
+
@basic_info.setter
|
118
|
+
def basic_info(self, basic_info):
|
119
|
+
"""Sets the basic_info of this ShowGenJobResponse.
|
120
|
+
|
121
|
+
:param basic_info: The basic_info of this ShowGenJobResponse.
|
122
|
+
:type basic_info: :class:`huaweicloudsdkeihealth.v1.DrugJobDto`
|
123
|
+
"""
|
124
|
+
self._basic_info = basic_info
|
125
|
+
|
126
|
+
@property
|
127
|
+
def smiles_list(self):
|
128
|
+
"""Gets the smiles_list of this ShowGenJobResponse.
|
129
|
+
|
130
|
+
分子表达式列表
|
131
|
+
|
132
|
+
:return: The smiles_list of this ShowGenJobResponse.
|
133
|
+
:rtype: list[str]
|
134
|
+
"""
|
135
|
+
return self._smiles_list
|
136
|
+
|
137
|
+
@smiles_list.setter
|
138
|
+
def smiles_list(self, smiles_list):
|
139
|
+
"""Sets the smiles_list of this ShowGenJobResponse.
|
140
|
+
|
141
|
+
分子表达式列表
|
142
|
+
|
143
|
+
:param smiles_list: The smiles_list of this ShowGenJobResponse.
|
144
|
+
:type smiles_list: list[str]
|
145
|
+
"""
|
146
|
+
self._smiles_list = smiles_list
|
147
|
+
|
148
|
+
@property
|
149
|
+
def molecule_file(self):
|
150
|
+
"""Gets the molecule_file of this ShowGenJobResponse.
|
151
|
+
|
152
|
+
:return: The molecule_file of this ShowGenJobResponse.
|
153
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.DrugFile`
|
154
|
+
"""
|
155
|
+
return self._molecule_file
|
156
|
+
|
157
|
+
@molecule_file.setter
|
158
|
+
def molecule_file(self, molecule_file):
|
159
|
+
"""Sets the molecule_file of this ShowGenJobResponse.
|
160
|
+
|
161
|
+
:param molecule_file: The molecule_file of this ShowGenJobResponse.
|
162
|
+
:type molecule_file: :class:`huaweicloudsdkeihealth.v1.DrugFile`
|
163
|
+
"""
|
164
|
+
self._molecule_file = molecule_file
|
165
|
+
|
166
|
+
@property
|
167
|
+
def num_trials(self):
|
168
|
+
"""Gets the num_trials of this ShowGenJobResponse.
|
169
|
+
|
170
|
+
生成分子数量
|
171
|
+
|
172
|
+
:return: The num_trials of this ShowGenJobResponse.
|
173
|
+
:rtype: int
|
174
|
+
"""
|
175
|
+
return self._num_trials
|
176
|
+
|
177
|
+
@num_trials.setter
|
178
|
+
def num_trials(self, num_trials):
|
179
|
+
"""Sets the num_trials of this ShowGenJobResponse.
|
180
|
+
|
181
|
+
生成分子数量
|
182
|
+
|
183
|
+
:param num_trials: The num_trials of this ShowGenJobResponse.
|
184
|
+
:type num_trials: int
|
185
|
+
"""
|
186
|
+
self._num_trials = num_trials
|
187
|
+
|
188
|
+
@property
|
189
|
+
def initial_dataset_size(self):
|
190
|
+
"""Gets the initial_dataset_size of this ShowGenJobResponse.
|
191
|
+
|
192
|
+
初始化数据集的分子数目。当为-1时,表示分子数目未知
|
193
|
+
|
194
|
+
:return: The initial_dataset_size of this ShowGenJobResponse.
|
195
|
+
:rtype: int
|
196
|
+
"""
|
197
|
+
return self._initial_dataset_size
|
198
|
+
|
199
|
+
@initial_dataset_size.setter
|
200
|
+
def initial_dataset_size(self, initial_dataset_size):
|
201
|
+
"""Sets the initial_dataset_size of this ShowGenJobResponse.
|
202
|
+
|
203
|
+
初始化数据集的分子数目。当为-1时,表示分子数目未知
|
204
|
+
|
205
|
+
:param initial_dataset_size: The initial_dataset_size of this ShowGenJobResponse.
|
206
|
+
:type initial_dataset_size: int
|
207
|
+
"""
|
208
|
+
self._initial_dataset_size = initial_dataset_size
|
209
|
+
|
210
|
+
@property
|
211
|
+
def binding_sites(self):
|
212
|
+
"""Gets the binding_sites of this ShowGenJobResponse.
|
213
|
+
|
214
|
+
靶点列表
|
215
|
+
|
216
|
+
:return: The binding_sites of this ShowGenJobResponse.
|
217
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.BindSiteDto`]
|
218
|
+
"""
|
219
|
+
return self._binding_sites
|
220
|
+
|
221
|
+
@binding_sites.setter
|
222
|
+
def binding_sites(self, binding_sites):
|
223
|
+
"""Sets the binding_sites of this ShowGenJobResponse.
|
224
|
+
|
225
|
+
靶点列表
|
226
|
+
|
227
|
+
:param binding_sites: The binding_sites of this ShowGenJobResponse.
|
228
|
+
:type binding_sites: list[:class:`huaweicloudsdkeihealth.v1.BindSiteDto`]
|
229
|
+
"""
|
230
|
+
self._binding_sites = binding_sites
|
231
|
+
|
232
|
+
@property
|
233
|
+
def weak_constraints(self):
|
234
|
+
"""Gets the weak_constraints of this ShowGenJobResponse.
|
235
|
+
|
236
|
+
弱约束集合
|
237
|
+
|
238
|
+
:return: The weak_constraints of this ShowGenJobResponse.
|
239
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.WeakConstraintDto`]
|
240
|
+
"""
|
241
|
+
return self._weak_constraints
|
242
|
+
|
243
|
+
@weak_constraints.setter
|
244
|
+
def weak_constraints(self, weak_constraints):
|
245
|
+
"""Sets the weak_constraints of this ShowGenJobResponse.
|
246
|
+
|
247
|
+
弱约束集合
|
248
|
+
|
249
|
+
:param weak_constraints: The weak_constraints of this ShowGenJobResponse.
|
250
|
+
:type weak_constraints: list[:class:`huaweicloudsdkeihealth.v1.WeakConstraintDto`]
|
251
|
+
"""
|
252
|
+
self._weak_constraints = weak_constraints
|
253
|
+
|
254
|
+
@property
|
255
|
+
def strong_constraints(self):
|
256
|
+
"""Gets the strong_constraints of this ShowGenJobResponse.
|
257
|
+
|
258
|
+
强约束集合
|
259
|
+
|
260
|
+
:return: The strong_constraints of this ShowGenJobResponse.
|
261
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.StrongConstraintDto`]
|
262
|
+
"""
|
263
|
+
return self._strong_constraints
|
264
|
+
|
265
|
+
@strong_constraints.setter
|
266
|
+
def strong_constraints(self, strong_constraints):
|
267
|
+
"""Sets the strong_constraints of this ShowGenJobResponse.
|
268
|
+
|
269
|
+
强约束集合
|
270
|
+
|
271
|
+
:param strong_constraints: The strong_constraints of this ShowGenJobResponse.
|
272
|
+
:type strong_constraints: list[:class:`huaweicloudsdkeihealth.v1.StrongConstraintDto`]
|
273
|
+
"""
|
274
|
+
self._strong_constraints = strong_constraints
|
275
|
+
|
276
|
+
@property
|
277
|
+
def base_model(self):
|
278
|
+
"""Gets the base_model of this ShowGenJobResponse.
|
279
|
+
|
280
|
+
:return: The base_model of this ShowGenJobResponse.
|
281
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.BaseModel`
|
282
|
+
"""
|
283
|
+
return self._base_model
|
284
|
+
|
285
|
+
@base_model.setter
|
286
|
+
def base_model(self, base_model):
|
287
|
+
"""Sets the base_model of this ShowGenJobResponse.
|
288
|
+
|
289
|
+
:param base_model: The base_model of this ShowGenJobResponse.
|
290
|
+
:type base_model: :class:`huaweicloudsdkeihealth.v1.BaseModel`
|
291
|
+
"""
|
292
|
+
self._base_model = base_model
|
293
|
+
|
294
|
+
@property
|
295
|
+
def models(self):
|
296
|
+
"""Gets the models of this ShowGenJobResponse.
|
297
|
+
|
298
|
+
模型列表
|
299
|
+
|
300
|
+
:return: The models of this ShowGenJobResponse.
|
301
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.BasicDrugModel`]
|
302
|
+
"""
|
303
|
+
return self._models
|
304
|
+
|
305
|
+
@models.setter
|
306
|
+
def models(self, models):
|
307
|
+
"""Sets the models of this ShowGenJobResponse.
|
308
|
+
|
309
|
+
模型列表
|
310
|
+
|
311
|
+
:param models: The models of this ShowGenJobResponse.
|
312
|
+
:type models: list[:class:`huaweicloudsdkeihealth.v1.BasicDrugModel`]
|
313
|
+
"""
|
314
|
+
self._models = models
|
315
|
+
|
316
|
+
def to_dict(self):
|
317
|
+
"""Returns the model properties as a dict"""
|
318
|
+
result = {}
|
319
|
+
|
320
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
321
|
+
value = getattr(self, attr)
|
322
|
+
if isinstance(value, list):
|
323
|
+
result[attr] = list(map(
|
324
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
325
|
+
value
|
326
|
+
))
|
327
|
+
elif hasattr(value, "to_dict"):
|
328
|
+
result[attr] = value.to_dict()
|
329
|
+
elif isinstance(value, dict):
|
330
|
+
result[attr] = dict(map(
|
331
|
+
lambda item: (item[0], item[1].to_dict())
|
332
|
+
if hasattr(item[1], "to_dict") else item,
|
333
|
+
value.items()
|
334
|
+
))
|
335
|
+
else:
|
336
|
+
if attr in self.sensitive_list:
|
337
|
+
result[attr] = "****"
|
338
|
+
else:
|
339
|
+
result[attr] = value
|
340
|
+
|
341
|
+
return result
|
342
|
+
|
343
|
+
def to_str(self):
|
344
|
+
"""Returns the string representation of the model"""
|
345
|
+
import simplejson as json
|
346
|
+
if six.PY2:
|
347
|
+
import sys
|
348
|
+
reload(sys)
|
349
|
+
sys.setdefaultencoding("utf-8")
|
350
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
351
|
+
|
352
|
+
def __repr__(self):
|
353
|
+
"""For `print`"""
|
354
|
+
return self.to_str()
|
355
|
+
|
356
|
+
def __eq__(self, other):
|
357
|
+
"""Returns true if both objects are equal"""
|
358
|
+
if not isinstance(other, ShowGenJobResponse):
|
359
|
+
return False
|
360
|
+
|
361
|
+
return self.__dict__ == other.__dict__
|
362
|
+
|
363
|
+
def __ne__(self, other):
|
364
|
+
"""Returns true if both objects are not equal"""
|
365
|
+
return not self == other
|
@@ -27,6 +27,7 @@ class ShowOptmJobResponse(SdkResponse):
|
|
27
27
|
'weak_constraints': 'list[WeakConstraintDto]',
|
28
28
|
'strong_constraints': 'list[StrongConstraintDto]',
|
29
29
|
'sampler_mixin_weight': 'float',
|
30
|
+
'base_model': 'BaseModel',
|
30
31
|
'models': 'list[BasicDrugModel]',
|
31
32
|
'cluster_result': 'ClusterJobRsp'
|
32
33
|
}
|
@@ -41,11 +42,12 @@ class ShowOptmJobResponse(SdkResponse):
|
|
41
42
|
'weak_constraints': 'weak_constraints',
|
42
43
|
'strong_constraints': 'strong_constraints',
|
43
44
|
'sampler_mixin_weight': 'sampler_mixin_weight',
|
45
|
+
'base_model': 'base_model',
|
44
46
|
'models': 'models',
|
45
47
|
'cluster_result': 'cluster_result'
|
46
48
|
}
|
47
49
|
|
48
|
-
def __init__(self, basic_info=None, smiles=None, molecule_file=None, num_trials=None, binding_site=None, binding_sites=None, weak_constraints=None, strong_constraints=None, sampler_mixin_weight=None, models=None, cluster_result=None):
|
50
|
+
def __init__(self, basic_info=None, smiles=None, molecule_file=None, num_trials=None, binding_site=None, binding_sites=None, weak_constraints=None, strong_constraints=None, sampler_mixin_weight=None, base_model=None, models=None, cluster_result=None):
|
49
51
|
"""ShowOptmJobResponse
|
50
52
|
|
51
53
|
The model defined in huaweicloud sdk
|
@@ -68,6 +70,8 @@ class ShowOptmJobResponse(SdkResponse):
|
|
68
70
|
:type strong_constraints: list[:class:`huaweicloudsdkeihealth.v1.StrongConstraintDto`]
|
69
71
|
:param sampler_mixin_weight: 初始化采样权重
|
70
72
|
:type sampler_mixin_weight: float
|
73
|
+
:param base_model:
|
74
|
+
:type base_model: :class:`huaweicloudsdkeihealth.v1.BaseModel`
|
71
75
|
:param models: 模型列表
|
72
76
|
:type models: list[:class:`huaweicloudsdkeihealth.v1.BasicDrugModel`]
|
73
77
|
:param cluster_result:
|
@@ -85,6 +89,7 @@ class ShowOptmJobResponse(SdkResponse):
|
|
85
89
|
self._weak_constraints = None
|
86
90
|
self._strong_constraints = None
|
87
91
|
self._sampler_mixin_weight = None
|
92
|
+
self._base_model = None
|
88
93
|
self._models = None
|
89
94
|
self._cluster_result = None
|
90
95
|
self.discriminator = None
|
@@ -107,6 +112,8 @@ class ShowOptmJobResponse(SdkResponse):
|
|
107
112
|
self.strong_constraints = strong_constraints
|
108
113
|
if sampler_mixin_weight is not None:
|
109
114
|
self.sampler_mixin_weight = sampler_mixin_weight
|
115
|
+
if base_model is not None:
|
116
|
+
self.base_model = base_model
|
110
117
|
if models is not None:
|
111
118
|
self.models = models
|
112
119
|
if cluster_result is not None:
|
@@ -298,6 +305,24 @@ class ShowOptmJobResponse(SdkResponse):
|
|
298
305
|
"""
|
299
306
|
self._sampler_mixin_weight = sampler_mixin_weight
|
300
307
|
|
308
|
+
@property
|
309
|
+
def base_model(self):
|
310
|
+
"""Gets the base_model of this ShowOptmJobResponse.
|
311
|
+
|
312
|
+
:return: The base_model of this ShowOptmJobResponse.
|
313
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.BaseModel`
|
314
|
+
"""
|
315
|
+
return self._base_model
|
316
|
+
|
317
|
+
@base_model.setter
|
318
|
+
def base_model(self, base_model):
|
319
|
+
"""Sets the base_model of this ShowOptmJobResponse.
|
320
|
+
|
321
|
+
:param base_model: The base_model of this ShowOptmJobResponse.
|
322
|
+
:type base_model: :class:`huaweicloudsdkeihealth.v1.BaseModel`
|
323
|
+
"""
|
324
|
+
self._base_model = base_model
|
325
|
+
|
301
326
|
@property
|
302
327
|
def models(self):
|
303
328
|
"""Gets the models of this ShowOptmJobResponse.
|
@@ -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 ShowTargetOptJobRequest:
|
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
|
+
"""ShowTargetOptJobRequest
|
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 ShowTargetOptJobRequest.
|
52
|
+
|
53
|
+
平台项目ID。
|
54
|
+
|
55
|
+
:return: The eihealth_project_id of this ShowTargetOptJobRequest.
|
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 ShowTargetOptJobRequest.
|
63
|
+
|
64
|
+
平台项目ID。
|
65
|
+
|
66
|
+
:param eihealth_project_id: The eihealth_project_id of this ShowTargetOptJobRequest.
|
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 ShowTargetOptJobRequest.
|
74
|
+
|
75
|
+
作业id
|
76
|
+
|
77
|
+
:return: The job_id of this ShowTargetOptJobRequest.
|
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 ShowTargetOptJobRequest.
|
85
|
+
|
86
|
+
作业id
|
87
|
+
|
88
|
+
:param job_id: The job_id of this ShowTargetOptJobRequest.
|
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, ShowTargetOptJobRequest):
|
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
|