huaweicloudsdkeihealth 3.1.85__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.85.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/METADATA +2 -2
  131. {huaweicloudsdkeihealth-3.1.85.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/RECORD +134 -34
  132. {huaweicloudsdkeihealth-3.1.85.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/WHEEL +1 -1
  133. {huaweicloudsdkeihealth-3.1.85.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/LICENSE +0 -0
  134. {huaweicloudsdkeihealth-3.1.85.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/top_level.txt +0 -0
@@ -21,7 +21,8 @@ class CreateModelReq:
21
21
  'description': 'str',
22
22
  'type': 'ModelType',
23
23
  'file': 'ModelFile',
24
- 'shareable': 'bool'
24
+ 'shareable': 'bool',
25
+ 'base_model_id': 'str'
25
26
  }
26
27
 
27
28
  attribute_map = {
@@ -29,10 +30,11 @@ class CreateModelReq:
29
30
  'description': 'description',
30
31
  'type': 'type',
31
32
  'file': 'file',
32
- 'shareable': 'shareable'
33
+ 'shareable': 'shareable',
34
+ 'base_model_id': 'base_model_id'
33
35
  }
34
36
 
35
- def __init__(self, name=None, description=None, type=None, file=None, shareable=None):
37
+ def __init__(self, name=None, description=None, type=None, file=None, shareable=None, base_model_id=None):
36
38
  """CreateModelReq
37
39
 
38
40
  The model defined in huaweicloud sdk
@@ -47,6 +49,8 @@ class CreateModelReq:
47
49
  :type file: :class:`huaweicloudsdkeihealth.v1.ModelFile`
48
50
  :param shareable: 是否打开组织共享
49
51
  :type shareable: bool
52
+ :param base_model_id: 基模型id
53
+ :type base_model_id: str
50
54
  """
51
55
 
52
56
 
@@ -56,6 +60,7 @@ class CreateModelReq:
56
60
  self._type = None
57
61
  self._file = None
58
62
  self._shareable = None
63
+ self._base_model_id = None
59
64
  self.discriminator = None
60
65
 
61
66
  self.name = name
@@ -65,6 +70,8 @@ class CreateModelReq:
65
70
  self.file = file
66
71
  if shareable is not None:
67
72
  self.shareable = shareable
73
+ if base_model_id is not None:
74
+ self.base_model_id = base_model_id
68
75
 
69
76
  @property
70
77
  def name(self):
@@ -168,6 +175,28 @@ class CreateModelReq:
168
175
  """
169
176
  self._shareable = shareable
170
177
 
178
+ @property
179
+ def base_model_id(self):
180
+ """Gets the base_model_id of this CreateModelReq.
181
+
182
+ 基模型id
183
+
184
+ :return: The base_model_id of this CreateModelReq.
185
+ :rtype: str
186
+ """
187
+ return self._base_model_id
188
+
189
+ @base_model_id.setter
190
+ def base_model_id(self, base_model_id):
191
+ """Sets the base_model_id of this CreateModelReq.
192
+
193
+ 基模型id
194
+
195
+ :param base_model_id: The base_model_id of this CreateModelReq.
196
+ :type base_model_id: str
197
+ """
198
+ self._base_model_id = base_model_id
199
+
171
200
  def to_dict(self):
172
201
  """Returns the model properties as a dict"""
173
202
  result = {}
@@ -0,0 +1,198 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateMolBatchDownloadTaskReq:
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
+ 'job_id': 'str',
21
+ 'job_result_url': 'str',
22
+ 'mode': 'str',
23
+ 'selected': 'list[int]'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'job_id': 'job_id',
28
+ 'job_result_url': 'job_result_url',
29
+ 'mode': 'mode',
30
+ 'selected': 'selected'
31
+ }
32
+
33
+ def __init__(self, job_id=None, job_result_url=None, mode=None, selected=None):
34
+ """CreateMolBatchDownloadTaskReq
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param job_id: 作业ID
39
+ :type job_id: str
40
+ :param job_result_url: 作业结果文件url
41
+ :type job_result_url: str
42
+ :param mode: 下载类型:MOL(小分子)、COMPLEX(复合物)
43
+ :type mode: str
44
+ :param selected: 选中下载的分子下标
45
+ :type selected: list[int]
46
+ """
47
+
48
+
49
+
50
+ self._job_id = None
51
+ self._job_result_url = None
52
+ self._mode = None
53
+ self._selected = None
54
+ self.discriminator = None
55
+
56
+ self.job_id = job_id
57
+ self.job_result_url = job_result_url
58
+ self.mode = mode
59
+ self.selected = selected
60
+
61
+ @property
62
+ def job_id(self):
63
+ """Gets the job_id of this CreateMolBatchDownloadTaskReq.
64
+
65
+ 作业ID
66
+
67
+ :return: The job_id of this CreateMolBatchDownloadTaskReq.
68
+ :rtype: str
69
+ """
70
+ return self._job_id
71
+
72
+ @job_id.setter
73
+ def job_id(self, job_id):
74
+ """Sets the job_id of this CreateMolBatchDownloadTaskReq.
75
+
76
+ 作业ID
77
+
78
+ :param job_id: The job_id of this CreateMolBatchDownloadTaskReq.
79
+ :type job_id: str
80
+ """
81
+ self._job_id = job_id
82
+
83
+ @property
84
+ def job_result_url(self):
85
+ """Gets the job_result_url of this CreateMolBatchDownloadTaskReq.
86
+
87
+ 作业结果文件url
88
+
89
+ :return: The job_result_url of this CreateMolBatchDownloadTaskReq.
90
+ :rtype: str
91
+ """
92
+ return self._job_result_url
93
+
94
+ @job_result_url.setter
95
+ def job_result_url(self, job_result_url):
96
+ """Sets the job_result_url of this CreateMolBatchDownloadTaskReq.
97
+
98
+ 作业结果文件url
99
+
100
+ :param job_result_url: The job_result_url of this CreateMolBatchDownloadTaskReq.
101
+ :type job_result_url: str
102
+ """
103
+ self._job_result_url = job_result_url
104
+
105
+ @property
106
+ def mode(self):
107
+ """Gets the mode of this CreateMolBatchDownloadTaskReq.
108
+
109
+ 下载类型:MOL(小分子)、COMPLEX(复合物)
110
+
111
+ :return: The mode of this CreateMolBatchDownloadTaskReq.
112
+ :rtype: str
113
+ """
114
+ return self._mode
115
+
116
+ @mode.setter
117
+ def mode(self, mode):
118
+ """Sets the mode of this CreateMolBatchDownloadTaskReq.
119
+
120
+ 下载类型:MOL(小分子)、COMPLEX(复合物)
121
+
122
+ :param mode: The mode of this CreateMolBatchDownloadTaskReq.
123
+ :type mode: str
124
+ """
125
+ self._mode = mode
126
+
127
+ @property
128
+ def selected(self):
129
+ """Gets the selected of this CreateMolBatchDownloadTaskReq.
130
+
131
+ 选中下载的分子下标
132
+
133
+ :return: The selected of this CreateMolBatchDownloadTaskReq.
134
+ :rtype: list[int]
135
+ """
136
+ return self._selected
137
+
138
+ @selected.setter
139
+ def selected(self, selected):
140
+ """Sets the selected of this CreateMolBatchDownloadTaskReq.
141
+
142
+ 选中下载的分子下标
143
+
144
+ :param selected: The selected of this CreateMolBatchDownloadTaskReq.
145
+ :type selected: list[int]
146
+ """
147
+ self._selected = selected
148
+
149
+ def to_dict(self):
150
+ """Returns the model properties as a dict"""
151
+ result = {}
152
+
153
+ for attr, _ in six.iteritems(self.openapi_types):
154
+ value = getattr(self, attr)
155
+ if isinstance(value, list):
156
+ result[attr] = list(map(
157
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
158
+ value
159
+ ))
160
+ elif hasattr(value, "to_dict"):
161
+ result[attr] = value.to_dict()
162
+ elif isinstance(value, dict):
163
+ result[attr] = dict(map(
164
+ lambda item: (item[0], item[1].to_dict())
165
+ if hasattr(item[1], "to_dict") else item,
166
+ value.items()
167
+ ))
168
+ else:
169
+ if attr in self.sensitive_list:
170
+ result[attr] = "****"
171
+ else:
172
+ result[attr] = value
173
+
174
+ return result
175
+
176
+ def to_str(self):
177
+ """Returns the string representation of the model"""
178
+ import simplejson as json
179
+ if six.PY2:
180
+ import sys
181
+ reload(sys)
182
+ sys.setdefaultencoding("utf-8")
183
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
184
+
185
+ def __repr__(self):
186
+ """For `print`"""
187
+ return self.to_str()
188
+
189
+ def __eq__(self, other):
190
+ """Returns true if both objects are equal"""
191
+ if not isinstance(other, CreateMolBatchDownloadTaskReq):
192
+ return False
193
+
194
+ return self.__dict__ == other.__dict__
195
+
196
+ def __ne__(self, other):
197
+ """Returns true if both objects are not equal"""
198
+ 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 CreateMolBatchDownloadTaskRequest:
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': 'CreateMolBatchDownloadTaskReq'
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
+ """CreateMolBatchDownloadTaskRequest
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 CreateMolBatchDownloadTaskRequest
37
+ :type body: :class:`huaweicloudsdkeihealth.v1.CreateMolBatchDownloadTaskReq`
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 CreateMolBatchDownloadTaskRequest.
53
+
54
+ 平台项目ID。
55
+
56
+ :return: The eihealth_project_id of this CreateMolBatchDownloadTaskRequest.
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 CreateMolBatchDownloadTaskRequest.
64
+
65
+ 平台项目ID。
66
+
67
+ :param eihealth_project_id: The eihealth_project_id of this CreateMolBatchDownloadTaskRequest.
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 CreateMolBatchDownloadTaskRequest.
75
+
76
+ :return: The body of this CreateMolBatchDownloadTaskRequest.
77
+ :rtype: :class:`huaweicloudsdkeihealth.v1.CreateMolBatchDownloadTaskReq`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ """Sets the body of this CreateMolBatchDownloadTaskRequest.
84
+
85
+ :param body: The body of this CreateMolBatchDownloadTaskRequest.
86
+ :type body: :class:`huaweicloudsdkeihealth.v1.CreateMolBatchDownloadTaskReq`
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, CreateMolBatchDownloadTaskRequest):
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 CreateMolBatchDownloadTaskResponse(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
+ """CreateMolBatchDownloadTaskResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param id: 任务ID
34
+ :type id: str
35
+ """
36
+
37
+ super(CreateMolBatchDownloadTaskResponse, 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 CreateMolBatchDownloadTaskResponse.
48
+
49
+ 任务ID
50
+
51
+ :return: The id of this CreateMolBatchDownloadTaskResponse.
52
+ :rtype: str
53
+ """
54
+ return self._id
55
+
56
+ @id.setter
57
+ def id(self, id):
58
+ """Sets the id of this CreateMolBatchDownloadTaskResponse.
59
+
60
+ 任务ID
61
+
62
+ :param id: The id of this CreateMolBatchDownloadTaskResponse.
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, CreateMolBatchDownloadTaskResponse):
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
@@ -0,0 +1,163 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateMolDockingJobReq:
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
+ 'receptor': 'ReceptorDto',
21
+ 'ligand': 'DrugFile',
22
+ 'engine': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'receptor': 'receptor',
27
+ 'ligand': 'ligand',
28
+ 'engine': 'engine'
29
+ }
30
+
31
+ def __init__(self, receptor=None, ligand=None, engine=None):
32
+ """CreateMolDockingJobReq
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param receptor:
37
+ :type receptor: :class:`huaweicloudsdkeihealth.v1.ReceptorDto`
38
+ :param ligand:
39
+ :type ligand: :class:`huaweicloudsdkeihealth.v1.DrugFile`
40
+ :param engine: 引擎,默认为AUTODOCK_VINA。
41
+ :type engine: str
42
+ """
43
+
44
+
45
+
46
+ self._receptor = None
47
+ self._ligand = None
48
+ self._engine = None
49
+ self.discriminator = None
50
+
51
+ self.receptor = receptor
52
+ self.ligand = ligand
53
+ if engine is not None:
54
+ self.engine = engine
55
+
56
+ @property
57
+ def receptor(self):
58
+ """Gets the receptor of this CreateMolDockingJobReq.
59
+
60
+ :return: The receptor of this CreateMolDockingJobReq.
61
+ :rtype: :class:`huaweicloudsdkeihealth.v1.ReceptorDto`
62
+ """
63
+ return self._receptor
64
+
65
+ @receptor.setter
66
+ def receptor(self, receptor):
67
+ """Sets the receptor of this CreateMolDockingJobReq.
68
+
69
+ :param receptor: The receptor of this CreateMolDockingJobReq.
70
+ :type receptor: :class:`huaweicloudsdkeihealth.v1.ReceptorDto`
71
+ """
72
+ self._receptor = receptor
73
+
74
+ @property
75
+ def ligand(self):
76
+ """Gets the ligand of this CreateMolDockingJobReq.
77
+
78
+ :return: The ligand of this CreateMolDockingJobReq.
79
+ :rtype: :class:`huaweicloudsdkeihealth.v1.DrugFile`
80
+ """
81
+ return self._ligand
82
+
83
+ @ligand.setter
84
+ def ligand(self, ligand):
85
+ """Sets the ligand of this CreateMolDockingJobReq.
86
+
87
+ :param ligand: The ligand of this CreateMolDockingJobReq.
88
+ :type ligand: :class:`huaweicloudsdkeihealth.v1.DrugFile`
89
+ """
90
+ self._ligand = ligand
91
+
92
+ @property
93
+ def engine(self):
94
+ """Gets the engine of this CreateMolDockingJobReq.
95
+
96
+ 引擎,默认为AUTODOCK_VINA。
97
+
98
+ :return: The engine of this CreateMolDockingJobReq.
99
+ :rtype: str
100
+ """
101
+ return self._engine
102
+
103
+ @engine.setter
104
+ def engine(self, engine):
105
+ """Sets the engine of this CreateMolDockingJobReq.
106
+
107
+ 引擎,默认为AUTODOCK_VINA。
108
+
109
+ :param engine: The engine of this CreateMolDockingJobReq.
110
+ :type engine: str
111
+ """
112
+ self._engine = engine
113
+
114
+ def to_dict(self):
115
+ """Returns the model properties as a dict"""
116
+ result = {}
117
+
118
+ for attr, _ in six.iteritems(self.openapi_types):
119
+ value = getattr(self, attr)
120
+ if isinstance(value, list):
121
+ result[attr] = list(map(
122
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
123
+ value
124
+ ))
125
+ elif hasattr(value, "to_dict"):
126
+ result[attr] = value.to_dict()
127
+ elif isinstance(value, dict):
128
+ result[attr] = dict(map(
129
+ lambda item: (item[0], item[1].to_dict())
130
+ if hasattr(item[1], "to_dict") else item,
131
+ value.items()
132
+ ))
133
+ else:
134
+ if attr in self.sensitive_list:
135
+ result[attr] = "****"
136
+ else:
137
+ result[attr] = value
138
+
139
+ return result
140
+
141
+ def to_str(self):
142
+ """Returns the string representation of the model"""
143
+ import simplejson as json
144
+ if six.PY2:
145
+ import sys
146
+ reload(sys)
147
+ sys.setdefaultencoding("utf-8")
148
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
149
+
150
+ def __repr__(self):
151
+ """For `print`"""
152
+ return self.to_str()
153
+
154
+ def __eq__(self, other):
155
+ """Returns true if both objects are equal"""
156
+ if not isinstance(other, CreateMolDockingJobReq):
157
+ return False
158
+
159
+ return self.__dict__ == other.__dict__
160
+
161
+ def __ne__(self, other):
162
+ """Returns true if both objects are not equal"""
163
+ return not self == other