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,254 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateFavoriteReq:
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
+ 'type': 'str',
21
+ 'resource_id': 'str',
22
+ 'resource_name': 'str',
23
+ 'resource_type': 'str',
24
+ 'display_info': 'str',
25
+ 'location_info': 'str'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'type': 'type',
30
+ 'resource_id': 'resource_id',
31
+ 'resource_name': 'resource_name',
32
+ 'resource_type': 'resource_type',
33
+ 'display_info': 'display_info',
34
+ 'location_info': 'location_info'
35
+ }
36
+
37
+ def __init__(self, type=None, resource_id=None, resource_name=None, resource_type=None, display_info=None, location_info=None):
38
+ """CreateFavoriteReq
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param type: 收藏类型。
43
+ :type type: str
44
+ :param resource_id: 收藏的资源ID。
45
+ :type resource_id: str
46
+ :param resource_name: 收藏的资源名称,正则匹配中文,英文字母和数字及下划线。
47
+ :type resource_name: str
48
+ :param resource_type: 收藏的资源类型,正则匹配英文字母和数字及下划线。
49
+ :type resource_type: str
50
+ :param display_info: 展示信息。
51
+ :type display_info: str
52
+ :param location_info: 定位信息。
53
+ :type location_info: str
54
+ """
55
+
56
+
57
+
58
+ self._type = None
59
+ self._resource_id = None
60
+ self._resource_name = None
61
+ self._resource_type = None
62
+ self._display_info = None
63
+ self._location_info = None
64
+ self.discriminator = None
65
+
66
+ self.type = type
67
+ self.resource_id = resource_id
68
+ self.resource_name = resource_name
69
+ self.resource_type = resource_type
70
+ self.display_info = display_info
71
+ self.location_info = location_info
72
+
73
+ @property
74
+ def type(self):
75
+ """Gets the type of this CreateFavoriteReq.
76
+
77
+ 收藏类型。
78
+
79
+ :return: The type of this CreateFavoriteReq.
80
+ :rtype: str
81
+ """
82
+ return self._type
83
+
84
+ @type.setter
85
+ def type(self, type):
86
+ """Sets the type of this CreateFavoriteReq.
87
+
88
+ 收藏类型。
89
+
90
+ :param type: The type of this CreateFavoriteReq.
91
+ :type type: str
92
+ """
93
+ self._type = type
94
+
95
+ @property
96
+ def resource_id(self):
97
+ """Gets the resource_id of this CreateFavoriteReq.
98
+
99
+ 收藏的资源ID。
100
+
101
+ :return: The resource_id of this CreateFavoriteReq.
102
+ :rtype: str
103
+ """
104
+ return self._resource_id
105
+
106
+ @resource_id.setter
107
+ def resource_id(self, resource_id):
108
+ """Sets the resource_id of this CreateFavoriteReq.
109
+
110
+ 收藏的资源ID。
111
+
112
+ :param resource_id: The resource_id of this CreateFavoriteReq.
113
+ :type resource_id: str
114
+ """
115
+ self._resource_id = resource_id
116
+
117
+ @property
118
+ def resource_name(self):
119
+ """Gets the resource_name of this CreateFavoriteReq.
120
+
121
+ 收藏的资源名称,正则匹配中文,英文字母和数字及下划线。
122
+
123
+ :return: The resource_name of this CreateFavoriteReq.
124
+ :rtype: str
125
+ """
126
+ return self._resource_name
127
+
128
+ @resource_name.setter
129
+ def resource_name(self, resource_name):
130
+ """Sets the resource_name of this CreateFavoriteReq.
131
+
132
+ 收藏的资源名称,正则匹配中文,英文字母和数字及下划线。
133
+
134
+ :param resource_name: The resource_name of this CreateFavoriteReq.
135
+ :type resource_name: str
136
+ """
137
+ self._resource_name = resource_name
138
+
139
+ @property
140
+ def resource_type(self):
141
+ """Gets the resource_type of this CreateFavoriteReq.
142
+
143
+ 收藏的资源类型,正则匹配英文字母和数字及下划线。
144
+
145
+ :return: The resource_type of this CreateFavoriteReq.
146
+ :rtype: str
147
+ """
148
+ return self._resource_type
149
+
150
+ @resource_type.setter
151
+ def resource_type(self, resource_type):
152
+ """Sets the resource_type of this CreateFavoriteReq.
153
+
154
+ 收藏的资源类型,正则匹配英文字母和数字及下划线。
155
+
156
+ :param resource_type: The resource_type of this CreateFavoriteReq.
157
+ :type resource_type: str
158
+ """
159
+ self._resource_type = resource_type
160
+
161
+ @property
162
+ def display_info(self):
163
+ """Gets the display_info of this CreateFavoriteReq.
164
+
165
+ 展示信息。
166
+
167
+ :return: The display_info of this CreateFavoriteReq.
168
+ :rtype: str
169
+ """
170
+ return self._display_info
171
+
172
+ @display_info.setter
173
+ def display_info(self, display_info):
174
+ """Sets the display_info of this CreateFavoriteReq.
175
+
176
+ 展示信息。
177
+
178
+ :param display_info: The display_info of this CreateFavoriteReq.
179
+ :type display_info: str
180
+ """
181
+ self._display_info = display_info
182
+
183
+ @property
184
+ def location_info(self):
185
+ """Gets the location_info of this CreateFavoriteReq.
186
+
187
+ 定位信息。
188
+
189
+ :return: The location_info of this CreateFavoriteReq.
190
+ :rtype: str
191
+ """
192
+ return self._location_info
193
+
194
+ @location_info.setter
195
+ def location_info(self, location_info):
196
+ """Sets the location_info of this CreateFavoriteReq.
197
+
198
+ 定位信息。
199
+
200
+ :param location_info: The location_info of this CreateFavoriteReq.
201
+ :type location_info: str
202
+ """
203
+ self._location_info = location_info
204
+
205
+ def to_dict(self):
206
+ """Returns the model properties as a dict"""
207
+ result = {}
208
+
209
+ for attr, _ in six.iteritems(self.openapi_types):
210
+ value = getattr(self, attr)
211
+ if isinstance(value, list):
212
+ result[attr] = list(map(
213
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
214
+ value
215
+ ))
216
+ elif hasattr(value, "to_dict"):
217
+ result[attr] = value.to_dict()
218
+ elif isinstance(value, dict):
219
+ result[attr] = dict(map(
220
+ lambda item: (item[0], item[1].to_dict())
221
+ if hasattr(item[1], "to_dict") else item,
222
+ value.items()
223
+ ))
224
+ else:
225
+ if attr in self.sensitive_list:
226
+ result[attr] = "****"
227
+ else:
228
+ result[attr] = value
229
+
230
+ return result
231
+
232
+ def to_str(self):
233
+ """Returns the string representation of the model"""
234
+ import simplejson as json
235
+ if six.PY2:
236
+ import sys
237
+ reload(sys)
238
+ sys.setdefaultencoding("utf-8")
239
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
240
+
241
+ def __repr__(self):
242
+ """For `print`"""
243
+ return self.to_str()
244
+
245
+ def __eq__(self, other):
246
+ """Returns true if both objects are equal"""
247
+ if not isinstance(other, CreateFavoriteReq):
248
+ return False
249
+
250
+ return self.__dict__ == other.__dict__
251
+
252
+ def __ne__(self, other):
253
+ """Returns true if both objects are not equal"""
254
+ return not self == other
@@ -0,0 +1,139 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateFavoriteRequest:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'eihealth_project_id': 'str',
21
+ 'body': 'CreateFavoriteReq'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'eihealth_project_id': 'eihealth_project_id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, eihealth_project_id=None, body=None):
30
+ """CreateFavoriteRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param eihealth_project_id: 平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。
35
+ :type eihealth_project_id: str
36
+ :param body: Body of the CreateFavoriteRequest
37
+ :type body: :class:`huaweicloudsdkeihealth.v1.CreateFavoriteReq`
38
+ """
39
+
40
+
41
+
42
+ self._eihealth_project_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.eihealth_project_id = eihealth_project_id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def eihealth_project_id(self):
52
+ """Gets the eihealth_project_id of this CreateFavoriteRequest.
53
+
54
+ 平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。
55
+
56
+ :return: The eihealth_project_id of this CreateFavoriteRequest.
57
+ :rtype: str
58
+ """
59
+ return self._eihealth_project_id
60
+
61
+ @eihealth_project_id.setter
62
+ def eihealth_project_id(self, eihealth_project_id):
63
+ """Sets the eihealth_project_id of this CreateFavoriteRequest.
64
+
65
+ 平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。
66
+
67
+ :param eihealth_project_id: The eihealth_project_id of this CreateFavoriteRequest.
68
+ :type eihealth_project_id: str
69
+ """
70
+ self._eihealth_project_id = eihealth_project_id
71
+
72
+ @property
73
+ def body(self):
74
+ """Gets the body of this CreateFavoriteRequest.
75
+
76
+ :return: The body of this CreateFavoriteRequest.
77
+ :rtype: :class:`huaweicloudsdkeihealth.v1.CreateFavoriteReq`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ """Sets the body of this CreateFavoriteRequest.
84
+
85
+ :param body: The body of this CreateFavoriteRequest.
86
+ :type body: :class:`huaweicloudsdkeihealth.v1.CreateFavoriteReq`
87
+ """
88
+ self._body = body
89
+
90
+ def to_dict(self):
91
+ """Returns the model properties as a dict"""
92
+ result = {}
93
+
94
+ for attr, _ in six.iteritems(self.openapi_types):
95
+ value = getattr(self, attr)
96
+ if isinstance(value, list):
97
+ result[attr] = list(map(
98
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
99
+ value
100
+ ))
101
+ elif hasattr(value, "to_dict"):
102
+ result[attr] = value.to_dict()
103
+ elif isinstance(value, dict):
104
+ result[attr] = dict(map(
105
+ lambda item: (item[0], item[1].to_dict())
106
+ if hasattr(item[1], "to_dict") else item,
107
+ value.items()
108
+ ))
109
+ else:
110
+ if attr in self.sensitive_list:
111
+ result[attr] = "****"
112
+ else:
113
+ result[attr] = value
114
+
115
+ return result
116
+
117
+ def to_str(self):
118
+ """Returns the string representation of the model"""
119
+ import simplejson as json
120
+ if six.PY2:
121
+ import sys
122
+ reload(sys)
123
+ sys.setdefaultencoding("utf-8")
124
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
125
+
126
+ def __repr__(self):
127
+ """For `print`"""
128
+ return self.to_str()
129
+
130
+ def __eq__(self, other):
131
+ """Returns true if both objects are equal"""
132
+ if not isinstance(other, CreateFavoriteRequest):
133
+ return False
134
+
135
+ return self.__dict__ == other.__dict__
136
+
137
+ def __ne__(self, other):
138
+ """Returns true if both objects are not equal"""
139
+ return not self == other
@@ -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 CreateFavoriteResponse(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
+ """CreateFavoriteResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param id: 收藏记录ID。
34
+ :type id: str
35
+ """
36
+
37
+ super(CreateFavoriteResponse, 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 CreateFavoriteResponse.
48
+
49
+ 收藏记录ID。
50
+
51
+ :return: The id of this CreateFavoriteResponse.
52
+ :rtype: str
53
+ """
54
+ return self._id
55
+
56
+ @id.setter
57
+ def id(self, id):
58
+ """Sets the id of this CreateFavoriteResponse.
59
+
60
+ 收藏记录ID。
61
+
62
+ :param id: The id of this CreateFavoriteResponse.
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, CreateFavoriteResponse):
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
@@ -19,6 +19,7 @@ class CreateFepJobReq:
19
19
  openapi_types = {
20
20
  'basic_info': 'CreateDrugJobBasicInfo',
21
21
  'receptor': 'ReceptorDrugFile',
22
+ 'add_membrane': 'bool',
22
23
  'ligands': 'list[LigandPreviewDto]',
23
24
  'graph': 'FepGraphDto',
24
25
  'params': 'FepParamDto'
@@ -27,12 +28,13 @@ class CreateFepJobReq:
27
28
  attribute_map = {
28
29
  'basic_info': 'basic_info',
29
30
  'receptor': 'receptor',
31
+ 'add_membrane': 'add_membrane',
30
32
  'ligands': 'ligands',
31
33
  'graph': 'graph',
32
34
  'params': 'params'
33
35
  }
34
36
 
35
- def __init__(self, basic_info=None, receptor=None, ligands=None, graph=None, params=None):
37
+ def __init__(self, basic_info=None, receptor=None, add_membrane=None, ligands=None, graph=None, params=None):
36
38
  """CreateFepJobReq
37
39
 
38
40
  The model defined in huaweicloud sdk
@@ -41,6 +43,8 @@ class CreateFepJobReq:
41
43
  :type basic_info: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo`
42
44
  :param receptor:
43
45
  :type receptor: :class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile`
46
+ :param add_membrane: 是否加膜处理
47
+ :type add_membrane: bool
44
48
  :param ligands: 配体列表
45
49
  :type ligands: list[:class:`huaweicloudsdkeihealth.v1.LigandPreviewDto`]
46
50
  :param graph:
@@ -53,6 +57,7 @@ class CreateFepJobReq:
53
57
 
54
58
  self._basic_info = None
55
59
  self._receptor = None
60
+ self._add_membrane = None
56
61
  self._ligands = None
57
62
  self._graph = None
58
63
  self._params = None
@@ -60,6 +65,8 @@ class CreateFepJobReq:
60
65
 
61
66
  self.basic_info = basic_info
62
67
  self.receptor = receptor
68
+ if add_membrane is not None:
69
+ self.add_membrane = add_membrane
63
70
  self.ligands = ligands
64
71
  self.graph = graph
65
72
  self.params = params
@@ -100,6 +107,28 @@ class CreateFepJobReq:
100
107
  """
101
108
  self._receptor = receptor
102
109
 
110
+ @property
111
+ def add_membrane(self):
112
+ """Gets the add_membrane of this CreateFepJobReq.
113
+
114
+ 是否加膜处理
115
+
116
+ :return: The add_membrane of this CreateFepJobReq.
117
+ :rtype: bool
118
+ """
119
+ return self._add_membrane
120
+
121
+ @add_membrane.setter
122
+ def add_membrane(self, add_membrane):
123
+ """Sets the add_membrane of this CreateFepJobReq.
124
+
125
+ 是否加膜处理
126
+
127
+ :param add_membrane: The add_membrane of this CreateFepJobReq.
128
+ :type add_membrane: bool
129
+ """
130
+ self._add_membrane = add_membrane
131
+
103
132
  @property
104
133
  def ligands(self):
105
134
  """Gets the ligands of this CreateFepJobReq.