huaweicloudsdkeihealth 3.1.86__py2.py3-none-any.whl → 3.1.132__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. huaweicloudsdkeihealth/v1/__init__.py +100 -0
  2. huaweicloudsdkeihealth/v1/eihealth_async_client.py +5335 -3295
  3. huaweicloudsdkeihealth/v1/eihealth_client.py +5335 -3295
  4. huaweicloudsdkeihealth/v1/model/__init__.py +100 -0
  5. huaweicloudsdkeihealth/v1/model/add_drug_database_file_req.py +139 -0
  6. huaweicloudsdkeihealth/v1/model/add_drug_database_file_request.py +139 -0
  7. huaweicloudsdkeihealth/v1/model/add_drug_database_file_response.py +85 -0
  8. huaweicloudsdkeihealth/v1/model/base_model.py +142 -0
  9. huaweicloudsdkeihealth/v1/model/base_model_dto.py +202 -0
  10. huaweicloudsdkeihealth/v1/model/bind_site_dto.py +30 -1
  11. huaweicloudsdkeihealth/v1/model/bound_box_dto.py +171 -0
  12. huaweicloudsdkeihealth/v1/model/clustering_drug_file.py +197 -0
  13. huaweicloudsdkeihealth/v1/model/clustering_file_source.py +89 -0
  14. huaweicloudsdkeihealth/v1/model/convert_file.py +197 -0
  15. huaweicloudsdkeihealth/v1/model/cpi_receptor.py +226 -0
  16. huaweicloudsdkeihealth/v1/model/create_admet_job_req.py +61 -3
  17. huaweicloudsdkeihealth/v1/model/create_clustering_job_req.py +134 -0
  18. huaweicloudsdkeihealth/v1/model/create_clustering_job_request.py +139 -0
  19. huaweicloudsdkeihealth/v1/model/create_clustering_job_response.py +145 -0
  20. huaweicloudsdkeihealth/v1/model/create_cpi_job_req.py +166 -0
  21. huaweicloudsdkeihealth/v1/model/create_cpi_job_request.py +139 -0
  22. huaweicloudsdkeihealth/v1/model/create_cpi_job_response.py +145 -0
  23. huaweicloudsdkeihealth/v1/model/create_css_cluster_req.py +170 -0
  24. huaweicloudsdkeihealth/v1/model/create_css_cluster_request.py +111 -0
  25. huaweicloudsdkeihealth/v1/model/create_css_cluster_response.py +116 -0
  26. huaweicloudsdkeihealth/v1/model/create_database_req2.py +252 -0
  27. huaweicloudsdkeihealth/v1/model/create_dock_job_req.py +32 -3
  28. huaweicloudsdkeihealth/v1/model/create_drug_database_request.py +111 -0
  29. huaweicloudsdkeihealth/v1/model/create_drug_database_response.py +116 -0
  30. huaweicloudsdkeihealth/v1/model/create_drug_ligand_interaction2d_svg_req.py +32 -3
  31. huaweicloudsdkeihealth/v1/model/create_favorite_req.py +254 -0
  32. huaweicloudsdkeihealth/v1/model/create_favorite_request.py +139 -0
  33. huaweicloudsdkeihealth/v1/model/create_favorite_response.py +116 -0
  34. huaweicloudsdkeihealth/v1/model/create_fep_job_req.py +30 -1
  35. huaweicloudsdkeihealth/v1/model/create_gen_job_req.py +338 -0
  36. huaweicloudsdkeihealth/v1/model/create_gen_job_request.py +139 -0
  37. huaweicloudsdkeihealth/v1/model/create_gen_job_response.py +145 -0
  38. huaweicloudsdkeihealth/v1/model/create_ligand_preview_task_req.py +32 -3
  39. huaweicloudsdkeihealth/v1/model/create_model_req.py +32 -3
  40. huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_req.py +198 -0
  41. huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_request.py +139 -0
  42. huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_response.py +116 -0
  43. huaweicloudsdkeihealth/v1/model/create_mol_docking_job_req.py +163 -0
  44. huaweicloudsdkeihealth/v1/model/create_mol_docking_job_request.py +139 -0
  45. huaweicloudsdkeihealth/v1/model/create_mol_docking_job_response.py +145 -0
  46. huaweicloudsdkeihealth/v1/model/create_optm_job_req.py +59 -1
  47. huaweicloudsdkeihealth/v1/model/create_search_job_req.py +308 -0
  48. huaweicloudsdkeihealth/v1/model/create_search_job_request.py +139 -0
  49. huaweicloudsdkeihealth/v1/model/create_search_job_response.py +145 -0
  50. huaweicloudsdkeihealth/v1/model/create_target_opt_job_req.py +184 -0
  51. huaweicloudsdkeihealth/v1/model/create_target_opt_job_request.py +139 -0
  52. huaweicloudsdkeihealth/v1/model/create_target_opt_job_response.py +145 -0
  53. huaweicloudsdkeihealth/v1/model/css_cluster_dto.py +202 -0
  54. huaweicloudsdkeihealth/v1/model/database_file.py +167 -0
  55. huaweicloudsdkeihealth/v1/model/database_file_source.py +88 -0
  56. huaweicloudsdkeihealth/v1/model/delete_css_cluster_request.py +114 -0
  57. huaweicloudsdkeihealth/v1/model/delete_css_cluster_response.py +85 -0
  58. huaweicloudsdkeihealth/v1/model/delete_drug_database_request.py +114 -0
  59. huaweicloudsdkeihealth/v1/model/delete_drug_database_response.py +85 -0
  60. huaweicloudsdkeihealth/v1/model/delete_favorite_request.py +142 -0
  61. huaweicloudsdkeihealth/v1/model/delete_favorite_response.py +85 -0
  62. huaweicloudsdkeihealth/v1/model/detail_database_file.py +225 -0
  63. huaweicloudsdkeihealth/v1/model/download_data_req.py +61 -3
  64. huaweicloudsdkeihealth/v1/model/drug_database_dto.py +521 -0
  65. huaweicloudsdkeihealth/v1/model/fasta_receptor.py +197 -0
  66. huaweicloudsdkeihealth/v1/model/favorite_dto.py +376 -0
  67. huaweicloudsdkeihealth/v1/model/get_archive_config_rsp.py +3 -32
  68. huaweicloudsdkeihealth/v1/model/interaction.py +166 -0
  69. huaweicloudsdkeihealth/v1/model/interaction_constraint_dto.py +167 -0
  70. huaweicloudsdkeihealth/v1/model/interaction_type.py +91 -0
  71. huaweicloudsdkeihealth/v1/model/job_result.py +32 -3
  72. huaweicloudsdkeihealth/v1/model/list_base_model_request.py +202 -0
  73. huaweicloudsdkeihealth/v1/model/list_base_model_response.py +145 -0
  74. huaweicloudsdkeihealth/v1/model/list_css_cluster_request.py +144 -0
  75. huaweicloudsdkeihealth/v1/model/list_css_cluster_response.py +145 -0
  76. huaweicloudsdkeihealth/v1/model/list_drug_database_request.py +260 -0
  77. huaweicloudsdkeihealth/v1/model/list_drug_database_response.py +174 -0
  78. huaweicloudsdkeihealth/v1/model/list_drug_model_request.py +35 -6
  79. huaweicloudsdkeihealth/v1/model/list_favorite_request.py +433 -0
  80. huaweicloudsdkeihealth/v1/model/list_favorite_response.py +145 -0
  81. huaweicloudsdkeihealth/v1/model/list_term_tenant_css_cluster_request.py +144 -0
  82. huaweicloudsdkeihealth/v1/model/list_term_tenant_css_cluster_response.py +145 -0
  83. huaweicloudsdkeihealth/v1/model/md_param.py +169 -0
  84. huaweicloudsdkeihealth/v1/model/md_step_param.py +202 -0
  85. huaweicloudsdkeihealth/v1/model/model_dto.py +61 -3
  86. huaweicloudsdkeihealth/v1/model/optimization_mode.py +1 -0
  87. huaweicloudsdkeihealth/v1/model/pocket_fragment.py +30 -1
  88. huaweicloudsdkeihealth/v1/model/receptor_dto.py +280 -0
  89. huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_req.py +168 -0
  90. huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_request.py +139 -0
  91. huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_response.py +145 -0
  92. huaweicloudsdkeihealth/v1/model/run_format_converter_req.py +166 -0
  93. huaweicloudsdkeihealth/v1/model/run_format_converter_request.py +139 -0
  94. huaweicloudsdkeihealth/v1/model/run_format_converter_response.py +112 -0
  95. huaweicloudsdkeihealth/v1/model/search_type.py +88 -0
  96. huaweicloudsdkeihealth/v1/model/show_admet_job_response.py +57 -3
  97. huaweicloudsdkeihealth/v1/model/show_clustering_job_request.py +142 -0
  98. huaweicloudsdkeihealth/v1/model/show_clustering_job_response.py +191 -0
  99. huaweicloudsdkeihealth/v1/model/show_cpi_job_request.py +142 -0
  100. huaweicloudsdkeihealth/v1/model/show_cpi_job_response.py +170 -0
  101. huaweicloudsdkeihealth/v1/model/show_docking_job_response.py +30 -1
  102. huaweicloudsdkeihealth/v1/model/show_fep_job_response.py +30 -1
  103. huaweicloudsdkeihealth/v1/model/show_gen_job_request.py +142 -0
  104. huaweicloudsdkeihealth/v1/model/show_gen_job_response.py +365 -0
  105. huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_request.py +142 -0
  106. huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_response.py +199 -0
  107. huaweicloudsdkeihealth/v1/model/show_optm_job_response.py +55 -1
  108. huaweicloudsdkeihealth/v1/model/show_search_job_request.py +142 -0
  109. huaweicloudsdkeihealth/v1/model/show_search_job_response.py +340 -0
  110. huaweicloudsdkeihealth/v1/model/show_target_opt_job_request.py +142 -0
  111. huaweicloudsdkeihealth/v1/model/show_target_opt_job_response.py +187 -0
  112. huaweicloudsdkeihealth/v1/model/strong_constraint_dto.py +28 -3
  113. huaweicloudsdkeihealth/v1/model/strong_constraint_type.py +1 -0
  114. huaweicloudsdkeihealth/v1/model/target_opt_ligand.py +139 -0
  115. huaweicloudsdkeihealth/v1/model/target_opt_receptor.py +255 -0
  116. huaweicloudsdkeihealth/v1/model/task_progress.py +115 -0
  117. huaweicloudsdkeihealth/v1/model/term_tenant_css_cluster_dto.py +173 -0
  118. huaweicloudsdkeihealth/v1/model/update_drug_database_req.py +114 -0
  119. huaweicloudsdkeihealth/v1/model/update_drug_database_request.py +139 -0
  120. huaweicloudsdkeihealth/v1/model/update_drug_database_response.py +85 -0
  121. huaweicloudsdkeihealth/v1/model/update_drug_job_req.py +115 -0
  122. huaweicloudsdkeihealth/v1/model/update_drug_job_request.py +167 -0
  123. huaweicloudsdkeihealth/v1/model/update_drug_job_response.py +85 -0
  124. huaweicloudsdkeihealth/v1/model/upload_data_request.py +1 -175
  125. huaweicloudsdkeihealth/v1/model/upload_data_request_body.py +177 -3
  126. huaweicloudsdkeihealth/v1/model/validate_css_connection_request.py +111 -0
  127. huaweicloudsdkeihealth/v1/model/validate_css_connection_response.py +145 -0
  128. huaweicloudsdkeihealth/v1/model/weak_constraint_dto.py +28 -3
  129. huaweicloudsdkeihealth/v1/model/weak_constraint_type.py +1 -0
  130. {huaweicloudsdkeihealth-3.1.86.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/METADATA +2 -2
  131. {huaweicloudsdkeihealth-3.1.86.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/RECORD +134 -34
  132. {huaweicloudsdkeihealth-3.1.86.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/WHEEL +1 -1
  133. {huaweicloudsdkeihealth-3.1.86.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/LICENSE +0 -0
  134. {huaweicloudsdkeihealth-3.1.86.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/top_level.txt +0 -0
@@ -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 ShowGenJobRequest:
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
+ """ShowGenJobRequest
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 ShowGenJobRequest.
52
+
53
+ 平台项目ID。
54
+
55
+ :return: The eihealth_project_id of this ShowGenJobRequest.
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 ShowGenJobRequest.
63
+
64
+ 平台项目ID。
65
+
66
+ :param eihealth_project_id: The eihealth_project_id of this ShowGenJobRequest.
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 ShowGenJobRequest.
74
+
75
+ 作业id
76
+
77
+ :return: The job_id of this ShowGenJobRequest.
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 ShowGenJobRequest.
85
+
86
+ 作业id
87
+
88
+ :param job_id: The job_id of this ShowGenJobRequest.
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, ShowGenJobRequest):
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,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
@@ -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 ShowMolBatchDownloadTaskRequest:
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
+ 'task_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'eihealth_project_id': 'eihealth_project_id',
26
+ 'task_id': 'task_id'
27
+ }
28
+
29
+ def __init__(self, eihealth_project_id=None, task_id=None):
30
+ """ShowMolBatchDownloadTaskRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param eihealth_project_id: 平台项目ID。
35
+ :type eihealth_project_id: str
36
+ :param task_id: 下载任务ID。
37
+ :type task_id: str
38
+ """
39
+
40
+
41
+
42
+ self._eihealth_project_id = None
43
+ self._task_id = None
44
+ self.discriminator = None
45
+
46
+ self.eihealth_project_id = eihealth_project_id
47
+ self.task_id = task_id
48
+
49
+ @property
50
+ def eihealth_project_id(self):
51
+ """Gets the eihealth_project_id of this ShowMolBatchDownloadTaskRequest.
52
+
53
+ 平台项目ID。
54
+
55
+ :return: The eihealth_project_id of this ShowMolBatchDownloadTaskRequest.
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 ShowMolBatchDownloadTaskRequest.
63
+
64
+ 平台项目ID。
65
+
66
+ :param eihealth_project_id: The eihealth_project_id of this ShowMolBatchDownloadTaskRequest.
67
+ :type eihealth_project_id: str
68
+ """
69
+ self._eihealth_project_id = eihealth_project_id
70
+
71
+ @property
72
+ def task_id(self):
73
+ """Gets the task_id of this ShowMolBatchDownloadTaskRequest.
74
+
75
+ 下载任务ID。
76
+
77
+ :return: The task_id of this ShowMolBatchDownloadTaskRequest.
78
+ :rtype: str
79
+ """
80
+ return self._task_id
81
+
82
+ @task_id.setter
83
+ def task_id(self, task_id):
84
+ """Sets the task_id of this ShowMolBatchDownloadTaskRequest.
85
+
86
+ 下载任务ID。
87
+
88
+ :param task_id: The task_id of this ShowMolBatchDownloadTaskRequest.
89
+ :type task_id: str
90
+ """
91
+ self._task_id = task_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, ShowMolBatchDownloadTaskRequest):
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