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,252 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateDatabaseReq2:
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
+ 'description': 'str',
22
+ 'css_id': 'str',
23
+ 'file': 'DatabaseFile',
24
+ 'columns': 'list[str]',
25
+ 'shareable': 'bool'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'name': 'name',
30
+ 'description': 'description',
31
+ 'css_id': 'css_id',
32
+ 'file': 'file',
33
+ 'columns': 'columns',
34
+ 'shareable': 'shareable'
35
+ }
36
+
37
+ def __init__(self, name=None, description=None, css_id=None, file=None, columns=None, shareable=None):
38
+ """CreateDatabaseReq2
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param name: 数据库名称,长度为5-32个字符,首位需以小写英文字母开头,仅可以使用小写字母、数字、下划线“_”和中划线“-”
43
+ :type name: str
44
+ :param description: 数据库描述
45
+ :type description: str
46
+ :param css_id: css集群id
47
+ :type css_id: str
48
+ :param file:
49
+ :type file: :class:`huaweicloudsdkeihealth.v1.DatabaseFile`
50
+ :param columns: 数据文件列名
51
+ :type columns: list[str]
52
+ :param shareable: 是否打开组织共享
53
+ :type shareable: bool
54
+ """
55
+
56
+
57
+
58
+ self._name = None
59
+ self._description = None
60
+ self._css_id = None
61
+ self._file = None
62
+ self._columns = None
63
+ self._shareable = None
64
+ self.discriminator = None
65
+
66
+ self.name = name
67
+ if description is not None:
68
+ self.description = description
69
+ self.css_id = css_id
70
+ self.file = file
71
+ self.columns = columns
72
+ if shareable is not None:
73
+ self.shareable = shareable
74
+
75
+ @property
76
+ def name(self):
77
+ """Gets the name of this CreateDatabaseReq2.
78
+
79
+ 数据库名称,长度为5-32个字符,首位需以小写英文字母开头,仅可以使用小写字母、数字、下划线“_”和中划线“-”
80
+
81
+ :return: The name of this CreateDatabaseReq2.
82
+ :rtype: str
83
+ """
84
+ return self._name
85
+
86
+ @name.setter
87
+ def name(self, name):
88
+ """Sets the name of this CreateDatabaseReq2.
89
+
90
+ 数据库名称,长度为5-32个字符,首位需以小写英文字母开头,仅可以使用小写字母、数字、下划线“_”和中划线“-”
91
+
92
+ :param name: The name of this CreateDatabaseReq2.
93
+ :type name: str
94
+ """
95
+ self._name = name
96
+
97
+ @property
98
+ def description(self):
99
+ """Gets the description of this CreateDatabaseReq2.
100
+
101
+ 数据库描述
102
+
103
+ :return: The description of this CreateDatabaseReq2.
104
+ :rtype: str
105
+ """
106
+ return self._description
107
+
108
+ @description.setter
109
+ def description(self, description):
110
+ """Sets the description of this CreateDatabaseReq2.
111
+
112
+ 数据库描述
113
+
114
+ :param description: The description of this CreateDatabaseReq2.
115
+ :type description: str
116
+ """
117
+ self._description = description
118
+
119
+ @property
120
+ def css_id(self):
121
+ """Gets the css_id of this CreateDatabaseReq2.
122
+
123
+ css集群id
124
+
125
+ :return: The css_id of this CreateDatabaseReq2.
126
+ :rtype: str
127
+ """
128
+ return self._css_id
129
+
130
+ @css_id.setter
131
+ def css_id(self, css_id):
132
+ """Sets the css_id of this CreateDatabaseReq2.
133
+
134
+ css集群id
135
+
136
+ :param css_id: The css_id of this CreateDatabaseReq2.
137
+ :type css_id: str
138
+ """
139
+ self._css_id = css_id
140
+
141
+ @property
142
+ def file(self):
143
+ """Gets the file of this CreateDatabaseReq2.
144
+
145
+ :return: The file of this CreateDatabaseReq2.
146
+ :rtype: :class:`huaweicloudsdkeihealth.v1.DatabaseFile`
147
+ """
148
+ return self._file
149
+
150
+ @file.setter
151
+ def file(self, file):
152
+ """Sets the file of this CreateDatabaseReq2.
153
+
154
+ :param file: The file of this CreateDatabaseReq2.
155
+ :type file: :class:`huaweicloudsdkeihealth.v1.DatabaseFile`
156
+ """
157
+ self._file = file
158
+
159
+ @property
160
+ def columns(self):
161
+ """Gets the columns of this CreateDatabaseReq2.
162
+
163
+ 数据文件列名
164
+
165
+ :return: The columns of this CreateDatabaseReq2.
166
+ :rtype: list[str]
167
+ """
168
+ return self._columns
169
+
170
+ @columns.setter
171
+ def columns(self, columns):
172
+ """Sets the columns of this CreateDatabaseReq2.
173
+
174
+ 数据文件列名
175
+
176
+ :param columns: The columns of this CreateDatabaseReq2.
177
+ :type columns: list[str]
178
+ """
179
+ self._columns = columns
180
+
181
+ @property
182
+ def shareable(self):
183
+ """Gets the shareable of this CreateDatabaseReq2.
184
+
185
+ 是否打开组织共享
186
+
187
+ :return: The shareable of this CreateDatabaseReq2.
188
+ :rtype: bool
189
+ """
190
+ return self._shareable
191
+
192
+ @shareable.setter
193
+ def shareable(self, shareable):
194
+ """Sets the shareable of this CreateDatabaseReq2.
195
+
196
+ 是否打开组织共享
197
+
198
+ :param shareable: The shareable of this CreateDatabaseReq2.
199
+ :type shareable: bool
200
+ """
201
+ self._shareable = shareable
202
+
203
+ def to_dict(self):
204
+ """Returns the model properties as a dict"""
205
+ result = {}
206
+
207
+ for attr, _ in six.iteritems(self.openapi_types):
208
+ value = getattr(self, attr)
209
+ if isinstance(value, list):
210
+ result[attr] = list(map(
211
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
212
+ value
213
+ ))
214
+ elif hasattr(value, "to_dict"):
215
+ result[attr] = value.to_dict()
216
+ elif isinstance(value, dict):
217
+ result[attr] = dict(map(
218
+ lambda item: (item[0], item[1].to_dict())
219
+ if hasattr(item[1], "to_dict") else item,
220
+ value.items()
221
+ ))
222
+ else:
223
+ if attr in self.sensitive_list:
224
+ result[attr] = "****"
225
+ else:
226
+ result[attr] = value
227
+
228
+ return result
229
+
230
+ def to_str(self):
231
+ """Returns the string representation of the model"""
232
+ import simplejson as json
233
+ if six.PY2:
234
+ import sys
235
+ reload(sys)
236
+ sys.setdefaultencoding("utf-8")
237
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
238
+
239
+ def __repr__(self):
240
+ """For `print`"""
241
+ return self.to_str()
242
+
243
+ def __eq__(self, other):
244
+ """Returns true if both objects are equal"""
245
+ if not isinstance(other, CreateDatabaseReq2):
246
+ return False
247
+
248
+ return self.__dict__ == other.__dict__
249
+
250
+ def __ne__(self, other):
251
+ """Returns true if both objects are not equal"""
252
+ return not self == other
@@ -19,16 +19,18 @@ class CreateDockJobReq:
19
19
  openapi_types = {
20
20
  'basic_info': 'CreateDrugJobBasicInfo',
21
21
  'receptors': 'list[DockingReceptorDto]',
22
- 'ligands': 'list[LigandDto]'
22
+ 'ligands': 'list[LigandDto]',
23
+ 'engine': 'str'
23
24
  }
24
25
 
25
26
  attribute_map = {
26
27
  'basic_info': 'basic_info',
27
28
  'receptors': 'receptors',
28
- 'ligands': 'ligands'
29
+ 'ligands': 'ligands',
30
+ 'engine': 'engine'
29
31
  }
30
32
 
31
- def __init__(self, basic_info=None, receptors=None, ligands=None):
33
+ def __init__(self, basic_info=None, receptors=None, ligands=None, engine=None):
32
34
  """CreateDockJobReq
33
35
 
34
36
  The model defined in huaweicloud sdk
@@ -39,6 +41,8 @@ class CreateDockJobReq:
39
41
  :type receptors: list[:class:`huaweicloudsdkeihealth.v1.DockingReceptorDto`]
40
42
  :param ligands: 配体文件列表,当前仅支持1个
41
43
  :type ligands: list[:class:`huaweicloudsdkeihealth.v1.LigandDto`]
44
+ :param engine: 引擎,默认为AUTODOCK_VINA
45
+ :type engine: str
42
46
  """
43
47
 
44
48
 
@@ -46,11 +50,14 @@ class CreateDockJobReq:
46
50
  self._basic_info = None
47
51
  self._receptors = None
48
52
  self._ligands = None
53
+ self._engine = None
49
54
  self.discriminator = None
50
55
 
51
56
  self.basic_info = basic_info
52
57
  self.receptors = receptors
53
58
  self.ligands = ligands
59
+ if engine is not None:
60
+ self.engine = engine
54
61
 
55
62
  @property
56
63
  def basic_info(self):
@@ -114,6 +121,28 @@ class CreateDockJobReq:
114
121
  """
115
122
  self._ligands = ligands
116
123
 
124
+ @property
125
+ def engine(self):
126
+ """Gets the engine of this CreateDockJobReq.
127
+
128
+ 引擎,默认为AUTODOCK_VINA
129
+
130
+ :return: The engine of this CreateDockJobReq.
131
+ :rtype: str
132
+ """
133
+ return self._engine
134
+
135
+ @engine.setter
136
+ def engine(self, engine):
137
+ """Sets the engine of this CreateDockJobReq.
138
+
139
+ 引擎,默认为AUTODOCK_VINA
140
+
141
+ :param engine: The engine of this CreateDockJobReq.
142
+ :type engine: str
143
+ """
144
+ self._engine = engine
145
+
117
146
  def to_dict(self):
118
147
  """Returns the model properties as a dict"""
119
148
  result = {}
@@ -0,0 +1,111 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateDrugDatabaseRequest:
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
+ 'body': 'CreateDatabaseReq2'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'body': 'body'
25
+ }
26
+
27
+ def __init__(self, body=None):
28
+ """CreateDrugDatabaseRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param body: Body of the CreateDrugDatabaseRequest
33
+ :type body: :class:`huaweicloudsdkeihealth.v1.CreateDatabaseReq2`
34
+ """
35
+
36
+
37
+
38
+ self._body = None
39
+ self.discriminator = None
40
+
41
+ if body is not None:
42
+ self.body = body
43
+
44
+ @property
45
+ def body(self):
46
+ """Gets the body of this CreateDrugDatabaseRequest.
47
+
48
+ :return: The body of this CreateDrugDatabaseRequest.
49
+ :rtype: :class:`huaweicloudsdkeihealth.v1.CreateDatabaseReq2`
50
+ """
51
+ return self._body
52
+
53
+ @body.setter
54
+ def body(self, body):
55
+ """Sets the body of this CreateDrugDatabaseRequest.
56
+
57
+ :param body: The body of this CreateDrugDatabaseRequest.
58
+ :type body: :class:`huaweicloudsdkeihealth.v1.CreateDatabaseReq2`
59
+ """
60
+ self._body = body
61
+
62
+ def to_dict(self):
63
+ """Returns the model properties as a dict"""
64
+ result = {}
65
+
66
+ for attr, _ in six.iteritems(self.openapi_types):
67
+ value = getattr(self, attr)
68
+ if isinstance(value, list):
69
+ result[attr] = list(map(
70
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
71
+ value
72
+ ))
73
+ elif hasattr(value, "to_dict"):
74
+ result[attr] = value.to_dict()
75
+ elif isinstance(value, dict):
76
+ result[attr] = dict(map(
77
+ lambda item: (item[0], item[1].to_dict())
78
+ if hasattr(item[1], "to_dict") else item,
79
+ value.items()
80
+ ))
81
+ else:
82
+ if attr in self.sensitive_list:
83
+ result[attr] = "****"
84
+ else:
85
+ result[attr] = value
86
+
87
+ return result
88
+
89
+ def to_str(self):
90
+ """Returns the string representation of the model"""
91
+ import simplejson as json
92
+ if six.PY2:
93
+ import sys
94
+ reload(sys)
95
+ sys.setdefaultencoding("utf-8")
96
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
97
+
98
+ def __repr__(self):
99
+ """For `print`"""
100
+ return self.to_str()
101
+
102
+ def __eq__(self, other):
103
+ """Returns true if both objects are equal"""
104
+ if not isinstance(other, CreateDrugDatabaseRequest):
105
+ return False
106
+
107
+ return self.__dict__ == other.__dict__
108
+
109
+ def __ne__(self, other):
110
+ """Returns true if both objects are not equal"""
111
+ return not self == other
@@ -0,0 +1,116 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class CreateDrugDatabaseResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'id': 'id'
26
+ }
27
+
28
+ def __init__(self, id=None):
29
+ """CreateDrugDatabaseResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param id: 数据库id
34
+ :type id: str
35
+ """
36
+
37
+ super(CreateDrugDatabaseResponse, self).__init__()
38
+
39
+ self._id = None
40
+ self.discriminator = None
41
+
42
+ if id is not None:
43
+ self.id = id
44
+
45
+ @property
46
+ def id(self):
47
+ """Gets the id of this CreateDrugDatabaseResponse.
48
+
49
+ 数据库id
50
+
51
+ :return: The id of this CreateDrugDatabaseResponse.
52
+ :rtype: str
53
+ """
54
+ return self._id
55
+
56
+ @id.setter
57
+ def id(self, id):
58
+ """Sets the id of this CreateDrugDatabaseResponse.
59
+
60
+ 数据库id
61
+
62
+ :param id: The id of this CreateDrugDatabaseResponse.
63
+ :type id: str
64
+ """
65
+ self._id = id
66
+
67
+ def to_dict(self):
68
+ """Returns the model properties as a dict"""
69
+ result = {}
70
+
71
+ for attr, _ in six.iteritems(self.openapi_types):
72
+ value = getattr(self, attr)
73
+ if isinstance(value, list):
74
+ result[attr] = list(map(
75
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
+ value
77
+ ))
78
+ elif hasattr(value, "to_dict"):
79
+ result[attr] = value.to_dict()
80
+ elif isinstance(value, dict):
81
+ result[attr] = dict(map(
82
+ lambda item: (item[0], item[1].to_dict())
83
+ if hasattr(item[1], "to_dict") else item,
84
+ value.items()
85
+ ))
86
+ else:
87
+ if attr in self.sensitive_list:
88
+ result[attr] = "****"
89
+ else:
90
+ result[attr] = value
91
+
92
+ return result
93
+
94
+ def to_str(self):
95
+ """Returns the string representation of the model"""
96
+ import simplejson as json
97
+ if six.PY2:
98
+ import sys
99
+ reload(sys)
100
+ sys.setdefaultencoding("utf-8")
101
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
102
+
103
+ def __repr__(self):
104
+ """For `print`"""
105
+ return self.to_str()
106
+
107
+ def __eq__(self, other):
108
+ """Returns true if both objects are equal"""
109
+ if not isinstance(other, CreateDrugDatabaseResponse):
110
+ return False
111
+
112
+ return self.__dict__ == other.__dict__
113
+
114
+ def __ne__(self, other):
115
+ """Returns true if both objects are not equal"""
116
+ return not self == other
@@ -18,15 +18,17 @@ class CreateDrugLigandInteraction2dSvgReq:
18
18
 
19
19
  openapi_types = {
20
20
  'receptor_file': 'ReceptorDrugFileReq',
21
- 'ligand_file': 'DrugFile'
21
+ 'ligand_file': 'DrugFile',
22
+ 'name': 'str'
22
23
  }
23
24
 
24
25
  attribute_map = {
25
26
  'receptor_file': 'receptor_file',
26
- 'ligand_file': 'ligand_file'
27
+ 'ligand_file': 'ligand_file',
28
+ 'name': 'name'
27
29
  }
28
30
 
29
- def __init__(self, receptor_file=None, ligand_file=None):
31
+ def __init__(self, receptor_file=None, ligand_file=None, name=None):
30
32
  """CreateDrugLigandInteraction2dSvgReq
31
33
 
32
34
  The model defined in huaweicloud sdk
@@ -35,17 +37,22 @@ class CreateDrugLigandInteraction2dSvgReq:
35
37
  :type receptor_file: :class:`huaweicloudsdkeihealth.v1.ReceptorDrugFileReq`
36
38
  :param ligand_file:
37
39
  :type ligand_file: :class:`huaweicloudsdkeihealth.v1.DrugFile`
40
+ :param name: 小分子名称
41
+ :type name: str
38
42
  """
39
43
 
40
44
 
41
45
 
42
46
  self._receptor_file = None
43
47
  self._ligand_file = None
48
+ self._name = None
44
49
  self.discriminator = None
45
50
 
46
51
  self.receptor_file = receptor_file
47
52
  if ligand_file is not None:
48
53
  self.ligand_file = ligand_file
54
+ if name is not None:
55
+ self.name = name
49
56
 
50
57
  @property
51
58
  def receptor_file(self):
@@ -83,6 +90,28 @@ class CreateDrugLigandInteraction2dSvgReq:
83
90
  """
84
91
  self._ligand_file = ligand_file
85
92
 
93
+ @property
94
+ def name(self):
95
+ """Gets the name of this CreateDrugLigandInteraction2dSvgReq.
96
+
97
+ 小分子名称
98
+
99
+ :return: The name of this CreateDrugLigandInteraction2dSvgReq.
100
+ :rtype: str
101
+ """
102
+ return self._name
103
+
104
+ @name.setter
105
+ def name(self, name):
106
+ """Sets the name of this CreateDrugLigandInteraction2dSvgReq.
107
+
108
+ 小分子名称
109
+
110
+ :param name: The name of this CreateDrugLigandInteraction2dSvgReq.
111
+ :type name: str
112
+ """
113
+ self._name = name
114
+
86
115
  def to_dict(self):
87
116
  """Returns the model properties as a dict"""
88
117
  result = {}