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
@@ -19,6 +19,8 @@ from huaweicloudsdkeihealth.v1.model.asset_action import AssetAction
|
|
19
19
|
from huaweicloudsdkeihealth.v1.model.async_task_status import AsyncTaskStatus
|
20
20
|
from huaweicloudsdkeihealth.v1.model.auto_job_list_dto import AutoJobListDto
|
21
21
|
from huaweicloudsdkeihealth.v1.model.backup_dto import BackupDto
|
22
|
+
from huaweicloudsdkeihealth.v1.model.base_model import BaseModel
|
23
|
+
from huaweicloudsdkeihealth.v1.model.base_model_dto import BaseModelDto
|
22
24
|
from huaweicloudsdkeihealth.v1.model.basic_drug_model import BasicDrugModel
|
23
25
|
from huaweicloudsdkeihealth.v1.model.batch_cancel_job_request import BatchCancelJobRequest
|
24
26
|
from huaweicloudsdkeihealth.v1.model.batch_cancel_job_response import BatchCancelJobResponse
|
@@ -95,6 +97,7 @@ from huaweicloudsdkeihealth.v1.model.computing_resource_rsp import ComputingReso
|
|
95
97
|
from huaweicloudsdkeihealth.v1.model.computing_spec_dto import ComputingSpecDto
|
96
98
|
from huaweicloudsdkeihealth.v1.model.copy_data_request import CopyDataRequest
|
97
99
|
from huaweicloudsdkeihealth.v1.model.copy_data_response import CopyDataResponse
|
100
|
+
from huaweicloudsdkeihealth.v1.model.cpi_receptor import CpiReceptor
|
98
101
|
from huaweicloudsdkeihealth.v1.model.cpi_result import CpiResult
|
99
102
|
from huaweicloudsdkeihealth.v1.model.cpi_result_item import CpiResultItem
|
100
103
|
from huaweicloudsdkeihealth.v1.model.cpi_task_data import CpiTaskData
|
@@ -117,6 +120,9 @@ from huaweicloudsdkeihealth.v1.model.create_code_response import CreateCodeRespo
|
|
117
120
|
from huaweicloudsdkeihealth.v1.model.create_computing_resource_req import CreateComputingResourceReq
|
118
121
|
from huaweicloudsdkeihealth.v1.model.create_computing_resource_request import CreateComputingResourceRequest
|
119
122
|
from huaweicloudsdkeihealth.v1.model.create_computing_resource_response import CreateComputingResourceResponse
|
123
|
+
from huaweicloudsdkeihealth.v1.model.create_cpi_job_req import CreateCpiJobReq
|
124
|
+
from huaweicloudsdkeihealth.v1.model.create_cpi_job_request import CreateCpiJobRequest
|
125
|
+
from huaweicloudsdkeihealth.v1.model.create_cpi_job_response import CreateCpiJobResponse
|
120
126
|
from huaweicloudsdkeihealth.v1.model.create_cpi_task_request import CreateCpiTaskRequest
|
121
127
|
from huaweicloudsdkeihealth.v1.model.create_cpi_task_response import CreateCpiTaskResponse
|
122
128
|
from huaweicloudsdkeihealth.v1.model.create_css_cluster_req import CreateCssClusterReq
|
@@ -156,6 +162,9 @@ from huaweicloudsdkeihealth.v1.model.create_drug_model_response import CreateDru
|
|
156
162
|
from huaweicloudsdkeihealth.v1.model.create_fep_job_req import CreateFepJobReq
|
157
163
|
from huaweicloudsdkeihealth.v1.model.create_fep_job_request import CreateFepJobRequest
|
158
164
|
from huaweicloudsdkeihealth.v1.model.create_fep_job_response import CreateFepJobResponse
|
165
|
+
from huaweicloudsdkeihealth.v1.model.create_gen_job_req import CreateGenJobReq
|
166
|
+
from huaweicloudsdkeihealth.v1.model.create_gen_job_request import CreateGenJobRequest
|
167
|
+
from huaweicloudsdkeihealth.v1.model.create_gen_job_response import CreateGenJobResponse
|
159
168
|
from huaweicloudsdkeihealth.v1.model.create_generation_task_request import CreateGenerationTaskRequest
|
160
169
|
from huaweicloudsdkeihealth.v1.model.create_generation_task_response import CreateGenerationTaskResponse
|
161
170
|
from huaweicloudsdkeihealth.v1.model.create_image_req import CreateImageReq
|
@@ -223,6 +232,9 @@ from huaweicloudsdkeihealth.v1.model.create_synthesis_job_request import CreateS
|
|
223
232
|
from huaweicloudsdkeihealth.v1.model.create_synthesis_job_response import CreateSynthesisJobResponse
|
224
233
|
from huaweicloudsdkeihealth.v1.model.create_synthesis_task_request import CreateSynthesisTaskRequest
|
225
234
|
from huaweicloudsdkeihealth.v1.model.create_synthesis_task_response import CreateSynthesisTaskResponse
|
235
|
+
from huaweicloudsdkeihealth.v1.model.create_target_opt_job_req import CreateTargetOptJobReq
|
236
|
+
from huaweicloudsdkeihealth.v1.model.create_target_opt_job_request import CreateTargetOptJobRequest
|
237
|
+
from huaweicloudsdkeihealth.v1.model.create_target_opt_job_response import CreateTargetOptJobResponse
|
226
238
|
from huaweicloudsdkeihealth.v1.model.create_template_req import CreateTemplateReq
|
227
239
|
from huaweicloudsdkeihealth.v1.model.create_template_request import CreateTemplateRequest
|
228
240
|
from huaweicloudsdkeihealth.v1.model.create_template_response import CreateTemplateResponse
|
@@ -345,6 +357,7 @@ from huaweicloudsdkeihealth.v1.model.execute_job_request import ExecuteJobReques
|
|
345
357
|
from huaweicloudsdkeihealth.v1.model.execute_job_response import ExecuteJobResponse
|
346
358
|
from huaweicloudsdkeihealth.v1.model.extremum_dto import ExtremumDto
|
347
359
|
from huaweicloudsdkeihealth.v1.model.failed_reason_record import FailedReasonRecord
|
360
|
+
from huaweicloudsdkeihealth.v1.model.fasta_receptor import FastaReceptor
|
348
361
|
from huaweicloudsdkeihealth.v1.model.feature_enum import FeatureEnum
|
349
362
|
from huaweicloudsdkeihealth.v1.model.fep_graph_dto import FepGraphDto
|
350
363
|
from huaweicloudsdkeihealth.v1.model.fep_param_dto import FepParamDto
|
@@ -396,6 +409,9 @@ from huaweicloudsdkeihealth.v1.model.import_workflow_response import ImportWorkf
|
|
396
409
|
from huaweicloudsdkeihealth.v1.model.install_nextflow_request import InstallNextflowRequest
|
397
410
|
from huaweicloudsdkeihealth.v1.model.install_nextflow_request_body import InstallNextflowRequestBody
|
398
411
|
from huaweicloudsdkeihealth.v1.model.install_nextflow_response import InstallNextflowResponse
|
412
|
+
from huaweicloudsdkeihealth.v1.model.interaction import Interaction
|
413
|
+
from huaweicloudsdkeihealth.v1.model.interaction_constraint_dto import InteractionConstraintDto
|
414
|
+
from huaweicloudsdkeihealth.v1.model.interaction_type import InteractionType
|
399
415
|
from huaweicloudsdkeihealth.v1.model.io_acc_info_dto import IoAccInfoDto
|
400
416
|
from huaweicloudsdkeihealth.v1.model.job_dto import JobDto
|
401
417
|
from huaweicloudsdkeihealth.v1.model.job_event_rsp import JobEventRsp
|
@@ -426,6 +442,8 @@ from huaweicloudsdkeihealth.v1.model.list_auto_job_request import ListAutoJobReq
|
|
426
442
|
from huaweicloudsdkeihealth.v1.model.list_auto_job_response import ListAutoJobResponse
|
427
443
|
from huaweicloudsdkeihealth.v1.model.list_backup_request import ListBackupRequest
|
428
444
|
from huaweicloudsdkeihealth.v1.model.list_backup_response import ListBackupResponse
|
445
|
+
from huaweicloudsdkeihealth.v1.model.list_base_model_request import ListBaseModelRequest
|
446
|
+
from huaweicloudsdkeihealth.v1.model.list_base_model_response import ListBaseModelResponse
|
429
447
|
from huaweicloudsdkeihealth.v1.model.list_bucket_request import ListBucketRequest
|
430
448
|
from huaweicloudsdkeihealth.v1.model.list_bucket_response import ListBucketResponse
|
431
449
|
from huaweicloudsdkeihealth.v1.model.list_checkpoint_request import ListCheckpointRequest
|
@@ -542,6 +560,8 @@ from huaweicloudsdkeihealth.v1.model.list_workflow_statistic_request import List
|
|
542
560
|
from huaweicloudsdkeihealth.v1.model.list_workflow_statistic_response import ListWorkflowStatisticResponse
|
543
561
|
from huaweicloudsdkeihealth.v1.model.log_content_dto import LogContentDto
|
544
562
|
from huaweicloudsdkeihealth.v1.model.manage_asset_req import ManageAssetReq
|
563
|
+
from huaweicloudsdkeihealth.v1.model.md_param import MdParam
|
564
|
+
from huaweicloudsdkeihealth.v1.model.md_step_param import MdStepParam
|
545
565
|
from huaweicloudsdkeihealth.v1.model.member_dto import MemberDto
|
546
566
|
from huaweicloudsdkeihealth.v1.model.message_rsp import MessageRsp
|
547
567
|
from huaweicloudsdkeihealth.v1.model.mfa_rsp import MfaRsp
|
@@ -652,6 +672,9 @@ from huaweicloudsdkeihealth.v1.model.run_drug_ligand_to_smiles_conversion_reques
|
|
652
672
|
from huaweicloudsdkeihealth.v1.model.run_drug_ligand_to_smiles_conversion_response import RunDrugLigandToSmilesConversionResponse
|
653
673
|
from huaweicloudsdkeihealth.v1.model.run_drug_receptor_preprocess_request import RunDrugReceptorPreprocessRequest
|
654
674
|
from huaweicloudsdkeihealth.v1.model.run_drug_receptor_preprocess_response import RunDrugReceptorPreprocessResponse
|
675
|
+
from huaweicloudsdkeihealth.v1.model.run_fasta_preprocess_req import RunFastaPreprocessReq
|
676
|
+
from huaweicloudsdkeihealth.v1.model.run_fasta_preprocess_request import RunFastaPreprocessRequest
|
677
|
+
from huaweicloudsdkeihealth.v1.model.run_fasta_preprocess_response import RunFastaPreprocessResponse
|
655
678
|
from huaweicloudsdkeihealth.v1.model.run_pocket_req import RunPocketReq
|
656
679
|
from huaweicloudsdkeihealth.v1.model.run_receptor_preprocess_req import RunReceptorPreprocessReq
|
657
680
|
from huaweicloudsdkeihealth.v1.model.run_surface_points_req import RunSurfacePointsReq
|
@@ -685,6 +708,8 @@ from huaweicloudsdkeihealth.v1.model.show_bms_devices_request import ShowBmsDevi
|
|
685
708
|
from huaweicloudsdkeihealth.v1.model.show_bms_devices_response import ShowBmsDevicesResponse
|
686
709
|
from huaweicloudsdkeihealth.v1.model.show_bucket_storage_request import ShowBucketStorageRequest
|
687
710
|
from huaweicloudsdkeihealth.v1.model.show_bucket_storage_response import ShowBucketStorageResponse
|
711
|
+
from huaweicloudsdkeihealth.v1.model.show_cpi_job_request import ShowCpiJobRequest
|
712
|
+
from huaweicloudsdkeihealth.v1.model.show_cpi_job_response import ShowCpiJobResponse
|
688
713
|
from huaweicloudsdkeihealth.v1.model.show_cpi_task_result_request import ShowCpiTaskResultRequest
|
689
714
|
from huaweicloudsdkeihealth.v1.model.show_cpi_task_result_response import ShowCpiTaskResultResponse
|
690
715
|
from huaweicloudsdkeihealth.v1.model.show_custom_props_task_result_request import ShowCustomPropsTaskResultRequest
|
@@ -711,6 +736,8 @@ from huaweicloudsdkeihealth.v1.model.show_extremum_info_request import ShowExtre
|
|
711
736
|
from huaweicloudsdkeihealth.v1.model.show_extremum_info_response import ShowExtremumInfoResponse
|
712
737
|
from huaweicloudsdkeihealth.v1.model.show_fep_job_request import ShowFepJobRequest
|
713
738
|
from huaweicloudsdkeihealth.v1.model.show_fep_job_response import ShowFepJobResponse
|
739
|
+
from huaweicloudsdkeihealth.v1.model.show_gen_job_request import ShowGenJobRequest
|
740
|
+
from huaweicloudsdkeihealth.v1.model.show_gen_job_response import ShowGenJobResponse
|
714
741
|
from huaweicloudsdkeihealth.v1.model.show_generation_task_result_request import ShowGenerationTaskResultRequest
|
715
742
|
from huaweicloudsdkeihealth.v1.model.show_generation_task_result_response import ShowGenerationTaskResultResponse
|
716
743
|
from huaweicloudsdkeihealth.v1.model.show_instance_request import ShowInstanceRequest
|
@@ -785,6 +812,8 @@ from huaweicloudsdkeihealth.v1.model.show_synthesis_job_request import ShowSynth
|
|
785
812
|
from huaweicloudsdkeihealth.v1.model.show_synthesis_job_response import ShowSynthesisJobResponse
|
786
813
|
from huaweicloudsdkeihealth.v1.model.show_synthesis_task_result_request import ShowSynthesisTaskResultRequest
|
787
814
|
from huaweicloudsdkeihealth.v1.model.show_synthesis_task_result_response import ShowSynthesisTaskResultResponse
|
815
|
+
from huaweicloudsdkeihealth.v1.model.show_target_opt_job_request import ShowTargetOptJobRequest
|
816
|
+
from huaweicloudsdkeihealth.v1.model.show_target_opt_job_response import ShowTargetOptJobResponse
|
788
817
|
from huaweicloudsdkeihealth.v1.model.show_task_events_request import ShowTaskEventsRequest
|
789
818
|
from huaweicloudsdkeihealth.v1.model.show_task_events_response import ShowTaskEventsResponse
|
790
819
|
from huaweicloudsdkeihealth.v1.model.show_task_instance_events_request import ShowTaskInstanceEventsRequest
|
@@ -852,6 +881,8 @@ from huaweicloudsdkeihealth.v1.model.synthesis_result_result import SynthesisRes
|
|
852
881
|
from huaweicloudsdkeihealth.v1.model.synthesis_result_result_molecules import SynthesisResultResultMolecules
|
853
882
|
from huaweicloudsdkeihealth.v1.model.synthesis_result_result_reactions import SynthesisResultResultReactions
|
854
883
|
from huaweicloudsdkeihealth.v1.model.synthesis_task_data import SynthesisTaskData
|
884
|
+
from huaweicloudsdkeihealth.v1.model.target_opt_ligand import TargetOptLigand
|
885
|
+
from huaweicloudsdkeihealth.v1.model.target_opt_receptor import TargetOptReceptor
|
855
886
|
from huaweicloudsdkeihealth.v1.model.task_definition_dto import TaskDefinitionDto
|
856
887
|
from huaweicloudsdkeihealth.v1.model.task_dto import TaskDto
|
857
888
|
from huaweicloudsdkeihealth.v1.model.task_event_rsp import TaskEventRsp
|
@@ -0,0 +1,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BaseModel:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'id': 'str',
|
21
|
+
'name': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'id': 'id',
|
26
|
+
'name': 'name'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, id=None, name=None):
|
30
|
+
"""BaseModel
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param id: 基模型id
|
35
|
+
:type id: str
|
36
|
+
:param name: 基模型名称
|
37
|
+
:type name: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._id = None
|
43
|
+
self._name = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.id = id
|
47
|
+
self.name = name
|
48
|
+
|
49
|
+
@property
|
50
|
+
def id(self):
|
51
|
+
"""Gets the id of this BaseModel.
|
52
|
+
|
53
|
+
基模型id
|
54
|
+
|
55
|
+
:return: The id of this BaseModel.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._id
|
59
|
+
|
60
|
+
@id.setter
|
61
|
+
def id(self, id):
|
62
|
+
"""Sets the id of this BaseModel.
|
63
|
+
|
64
|
+
基模型id
|
65
|
+
|
66
|
+
:param id: The id of this BaseModel.
|
67
|
+
:type id: str
|
68
|
+
"""
|
69
|
+
self._id = id
|
70
|
+
|
71
|
+
@property
|
72
|
+
def name(self):
|
73
|
+
"""Gets the name of this BaseModel.
|
74
|
+
|
75
|
+
基模型名称
|
76
|
+
|
77
|
+
:return: The name of this BaseModel.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._name
|
81
|
+
|
82
|
+
@name.setter
|
83
|
+
def name(self, name):
|
84
|
+
"""Sets the name of this BaseModel.
|
85
|
+
|
86
|
+
基模型名称
|
87
|
+
|
88
|
+
:param name: The name of this BaseModel.
|
89
|
+
:type name: str
|
90
|
+
"""
|
91
|
+
self._name = name
|
92
|
+
|
93
|
+
def to_dict(self):
|
94
|
+
"""Returns the model properties as a dict"""
|
95
|
+
result = {}
|
96
|
+
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
98
|
+
value = getattr(self, attr)
|
99
|
+
if isinstance(value, list):
|
100
|
+
result[attr] = list(map(
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
102
|
+
value
|
103
|
+
))
|
104
|
+
elif hasattr(value, "to_dict"):
|
105
|
+
result[attr] = value.to_dict()
|
106
|
+
elif isinstance(value, dict):
|
107
|
+
result[attr] = dict(map(
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
110
|
+
value.items()
|
111
|
+
))
|
112
|
+
else:
|
113
|
+
if attr in self.sensitive_list:
|
114
|
+
result[attr] = "****"
|
115
|
+
else:
|
116
|
+
result[attr] = value
|
117
|
+
|
118
|
+
return result
|
119
|
+
|
120
|
+
def to_str(self):
|
121
|
+
"""Returns the string representation of the model"""
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
128
|
+
|
129
|
+
def __repr__(self):
|
130
|
+
"""For `print`"""
|
131
|
+
return self.to_str()
|
132
|
+
|
133
|
+
def __eq__(self, other):
|
134
|
+
"""Returns true if both objects are equal"""
|
135
|
+
if not isinstance(other, BaseModel):
|
136
|
+
return False
|
137
|
+
|
138
|
+
return self.__dict__ == other.__dict__
|
139
|
+
|
140
|
+
def __ne__(self, other):
|
141
|
+
"""Returns true if both objects are not equal"""
|
142
|
+
return not self == other
|
@@ -0,0 +1,231 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BaseModelDto:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'name': 'str',
|
21
|
+
'id': 'str',
|
22
|
+
'create_time': 'str',
|
23
|
+
'creator': 'str',
|
24
|
+
'description': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'name': 'name',
|
29
|
+
'id': 'id',
|
30
|
+
'create_time': 'create_time',
|
31
|
+
'creator': 'creator',
|
32
|
+
'description': 'description'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, name=None, id=None, create_time=None, creator=None, description=None):
|
36
|
+
"""BaseModelDto
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param name: 模型名称
|
41
|
+
:type name: str
|
42
|
+
:param id: 模型ID
|
43
|
+
:type id: str
|
44
|
+
:param create_time: 模型创建时间
|
45
|
+
:type create_time: str
|
46
|
+
:param creator: 创建模型的用户名称
|
47
|
+
:type creator: str
|
48
|
+
:param description: 模型描述信息
|
49
|
+
:type description: str
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._name = None
|
55
|
+
self._id = None
|
56
|
+
self._create_time = None
|
57
|
+
self._creator = None
|
58
|
+
self._description = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
if name is not None:
|
62
|
+
self.name = name
|
63
|
+
if id is not None:
|
64
|
+
self.id = id
|
65
|
+
if create_time is not None:
|
66
|
+
self.create_time = create_time
|
67
|
+
if creator is not None:
|
68
|
+
self.creator = creator
|
69
|
+
if description is not None:
|
70
|
+
self.description = description
|
71
|
+
|
72
|
+
@property
|
73
|
+
def name(self):
|
74
|
+
"""Gets the name of this BaseModelDto.
|
75
|
+
|
76
|
+
模型名称
|
77
|
+
|
78
|
+
:return: The name of this BaseModelDto.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._name
|
82
|
+
|
83
|
+
@name.setter
|
84
|
+
def name(self, name):
|
85
|
+
"""Sets the name of this BaseModelDto.
|
86
|
+
|
87
|
+
模型名称
|
88
|
+
|
89
|
+
:param name: The name of this BaseModelDto.
|
90
|
+
:type name: str
|
91
|
+
"""
|
92
|
+
self._name = name
|
93
|
+
|
94
|
+
@property
|
95
|
+
def id(self):
|
96
|
+
"""Gets the id of this BaseModelDto.
|
97
|
+
|
98
|
+
模型ID
|
99
|
+
|
100
|
+
:return: The id of this BaseModelDto.
|
101
|
+
:rtype: str
|
102
|
+
"""
|
103
|
+
return self._id
|
104
|
+
|
105
|
+
@id.setter
|
106
|
+
def id(self, id):
|
107
|
+
"""Sets the id of this BaseModelDto.
|
108
|
+
|
109
|
+
模型ID
|
110
|
+
|
111
|
+
:param id: The id of this BaseModelDto.
|
112
|
+
:type id: str
|
113
|
+
"""
|
114
|
+
self._id = id
|
115
|
+
|
116
|
+
@property
|
117
|
+
def create_time(self):
|
118
|
+
"""Gets the create_time of this BaseModelDto.
|
119
|
+
|
120
|
+
模型创建时间
|
121
|
+
|
122
|
+
:return: The create_time of this BaseModelDto.
|
123
|
+
:rtype: str
|
124
|
+
"""
|
125
|
+
return self._create_time
|
126
|
+
|
127
|
+
@create_time.setter
|
128
|
+
def create_time(self, create_time):
|
129
|
+
"""Sets the create_time of this BaseModelDto.
|
130
|
+
|
131
|
+
模型创建时间
|
132
|
+
|
133
|
+
:param create_time: The create_time of this BaseModelDto.
|
134
|
+
:type create_time: str
|
135
|
+
"""
|
136
|
+
self._create_time = create_time
|
137
|
+
|
138
|
+
@property
|
139
|
+
def creator(self):
|
140
|
+
"""Gets the creator of this BaseModelDto.
|
141
|
+
|
142
|
+
创建模型的用户名称
|
143
|
+
|
144
|
+
:return: The creator of this BaseModelDto.
|
145
|
+
:rtype: str
|
146
|
+
"""
|
147
|
+
return self._creator
|
148
|
+
|
149
|
+
@creator.setter
|
150
|
+
def creator(self, creator):
|
151
|
+
"""Sets the creator of this BaseModelDto.
|
152
|
+
|
153
|
+
创建模型的用户名称
|
154
|
+
|
155
|
+
:param creator: The creator of this BaseModelDto.
|
156
|
+
:type creator: str
|
157
|
+
"""
|
158
|
+
self._creator = creator
|
159
|
+
|
160
|
+
@property
|
161
|
+
def description(self):
|
162
|
+
"""Gets the description of this BaseModelDto.
|
163
|
+
|
164
|
+
模型描述信息
|
165
|
+
|
166
|
+
:return: The description of this BaseModelDto.
|
167
|
+
:rtype: str
|
168
|
+
"""
|
169
|
+
return self._description
|
170
|
+
|
171
|
+
@description.setter
|
172
|
+
def description(self, description):
|
173
|
+
"""Sets the description of this BaseModelDto.
|
174
|
+
|
175
|
+
模型描述信息
|
176
|
+
|
177
|
+
:param description: The description of this BaseModelDto.
|
178
|
+
:type description: str
|
179
|
+
"""
|
180
|
+
self._description = description
|
181
|
+
|
182
|
+
def to_dict(self):
|
183
|
+
"""Returns the model properties as a dict"""
|
184
|
+
result = {}
|
185
|
+
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
187
|
+
value = getattr(self, attr)
|
188
|
+
if isinstance(value, list):
|
189
|
+
result[attr] = list(map(
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
191
|
+
value
|
192
|
+
))
|
193
|
+
elif hasattr(value, "to_dict"):
|
194
|
+
result[attr] = value.to_dict()
|
195
|
+
elif isinstance(value, dict):
|
196
|
+
result[attr] = dict(map(
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
199
|
+
value.items()
|
200
|
+
))
|
201
|
+
else:
|
202
|
+
if attr in self.sensitive_list:
|
203
|
+
result[attr] = "****"
|
204
|
+
else:
|
205
|
+
result[attr] = value
|
206
|
+
|
207
|
+
return result
|
208
|
+
|
209
|
+
def to_str(self):
|
210
|
+
"""Returns the string representation of the model"""
|
211
|
+
import simplejson as json
|
212
|
+
if six.PY2:
|
213
|
+
import sys
|
214
|
+
reload(sys)
|
215
|
+
sys.setdefaultencoding("utf-8")
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
217
|
+
|
218
|
+
def __repr__(self):
|
219
|
+
"""For `print`"""
|
220
|
+
return self.to_str()
|
221
|
+
|
222
|
+
def __eq__(self, other):
|
223
|
+
"""Returns true if both objects are equal"""
|
224
|
+
if not isinstance(other, BaseModelDto):
|
225
|
+
return False
|
226
|
+
|
227
|
+
return self.__dict__ == other.__dict__
|
228
|
+
|
229
|
+
def __ne__(self, other):
|
230
|
+
"""Returns true if both objects are not equal"""
|
231
|
+
return not self == other
|
@@ -41,7 +41,7 @@ class BindSiteDto:
|
|
41
41
|
|
42
42
|
The model defined in huaweicloud sdk
|
43
43
|
|
44
|
-
:param name:
|
44
|
+
:param name: 靶点名称,只能设置为target1或者target2。
|
45
45
|
:type name: str
|
46
46
|
:param receptor:
|
47
47
|
:type receptor: :class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile`
|
@@ -86,7 +86,7 @@ class BindSiteDto:
|
|
86
86
|
def name(self):
|
87
87
|
"""Gets the name of this BindSiteDto.
|
88
88
|
|
89
|
-
|
89
|
+
靶点名称,只能设置为target1或者target2。
|
90
90
|
|
91
91
|
:return: The name of this BindSiteDto.
|
92
92
|
:rtype: str
|
@@ -97,7 +97,7 @@ class BindSiteDto:
|
|
97
97
|
def name(self, name):
|
98
98
|
"""Sets the name of this BindSiteDto.
|
99
99
|
|
100
|
-
|
100
|
+
靶点名称,只能设置为target1或者target2。
|
101
101
|
|
102
102
|
:param name: The name of this BindSiteDto.
|
103
103
|
:type name: str
|