huaweicloudsdkeihealth 3.1.108__py2.py3-none-any.whl → 3.1.109__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. huaweicloudsdkeihealth/v1/__init__.py +31 -0
  2. huaweicloudsdkeihealth/v1/eihealth_async_client.py +543 -0
  3. huaweicloudsdkeihealth/v1/eihealth_client.py +543 -0
  4. huaweicloudsdkeihealth/v1/model/__init__.py +31 -0
  5. huaweicloudsdkeihealth/v1/model/base_model.py +142 -0
  6. huaweicloudsdkeihealth/v1/model/base_model_dto.py +231 -0
  7. huaweicloudsdkeihealth/v1/model/bind_site_dto.py +3 -3
  8. huaweicloudsdkeihealth/v1/model/cpi_receptor.py +226 -0
  9. huaweicloudsdkeihealth/v1/model/create_admet_job_req.py +61 -3
  10. huaweicloudsdkeihealth/v1/model/create_cpi_job_req.py +166 -0
  11. huaweicloudsdkeihealth/v1/model/create_cpi_job_request.py +139 -0
  12. huaweicloudsdkeihealth/v1/model/create_cpi_job_response.py +145 -0
  13. huaweicloudsdkeihealth/v1/model/create_dock_job_req.py +32 -3
  14. huaweicloudsdkeihealth/v1/model/create_drug_ligand_interaction2d_svg_req.py +32 -3
  15. huaweicloudsdkeihealth/v1/model/create_gen_job_req.py +338 -0
  16. huaweicloudsdkeihealth/v1/model/create_gen_job_request.py +139 -0
  17. huaweicloudsdkeihealth/v1/model/create_gen_job_response.py +145 -0
  18. huaweicloudsdkeihealth/v1/model/create_ligand_preview_task_req.py +32 -3
  19. huaweicloudsdkeihealth/v1/model/create_model_req.py +32 -3
  20. huaweicloudsdkeihealth/v1/model/create_optm_job_req.py +30 -1
  21. huaweicloudsdkeihealth/v1/model/create_target_opt_job_req.py +184 -0
  22. huaweicloudsdkeihealth/v1/model/create_target_opt_job_request.py +139 -0
  23. huaweicloudsdkeihealth/v1/model/create_target_opt_job_response.py +145 -0
  24. huaweicloudsdkeihealth/v1/model/fasta_receptor.py +197 -0
  25. huaweicloudsdkeihealth/v1/model/interaction.py +166 -0
  26. huaweicloudsdkeihealth/v1/model/interaction_constraint_dto.py +167 -0
  27. huaweicloudsdkeihealth/v1/model/interaction_type.py +91 -0
  28. huaweicloudsdkeihealth/v1/model/list_base_model_request.py +202 -0
  29. huaweicloudsdkeihealth/v1/model/list_base_model_response.py +145 -0
  30. huaweicloudsdkeihealth/v1/model/list_drug_model_request.py +35 -6
  31. huaweicloudsdkeihealth/v1/model/md_param.py +169 -0
  32. huaweicloudsdkeihealth/v1/model/md_step_param.py +202 -0
  33. huaweicloudsdkeihealth/v1/model/model_dto.py +61 -3
  34. huaweicloudsdkeihealth/v1/model/pocket_fragment.py +30 -1
  35. huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_req.py +168 -0
  36. huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_request.py +139 -0
  37. huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_response.py +145 -0
  38. huaweicloudsdkeihealth/v1/model/show_admet_job_response.py +57 -3
  39. huaweicloudsdkeihealth/v1/model/show_cpi_job_request.py +142 -0
  40. huaweicloudsdkeihealth/v1/model/show_cpi_job_response.py +170 -0
  41. huaweicloudsdkeihealth/v1/model/show_docking_job_response.py +30 -1
  42. huaweicloudsdkeihealth/v1/model/show_gen_job_request.py +142 -0
  43. huaweicloudsdkeihealth/v1/model/show_gen_job_response.py +365 -0
  44. huaweicloudsdkeihealth/v1/model/show_optm_job_response.py +26 -1
  45. huaweicloudsdkeihealth/v1/model/show_target_opt_job_request.py +142 -0
  46. huaweicloudsdkeihealth/v1/model/show_target_opt_job_response.py +187 -0
  47. huaweicloudsdkeihealth/v1/model/strong_constraint_dto.py +28 -3
  48. huaweicloudsdkeihealth/v1/model/strong_constraint_type.py +1 -0
  49. huaweicloudsdkeihealth/v1/model/target_opt_ligand.py +139 -0
  50. huaweicloudsdkeihealth/v1/model/target_opt_receptor.py +255 -0
  51. huaweicloudsdkeihealth/v1/model/weak_constraint_dto.py +28 -3
  52. huaweicloudsdkeihealth/v1/model/weak_constraint_type.py +1 -0
  53. {huaweicloudsdkeihealth-3.1.108.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/METADATA +2 -2
  54. {huaweicloudsdkeihealth-3.1.108.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/RECORD +57 -26
  55. {huaweicloudsdkeihealth-3.1.108.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/WHEEL +1 -1
  56. {huaweicloudsdkeihealth-3.1.108.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/LICENSE +0 -0
  57. {huaweicloudsdkeihealth-3.1.108.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,169 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class MdParam:
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
+ 'timestep_size': 'float',
21
+ 'temperature': 'float',
22
+ 'step_params': 'MdStepParam'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'timestep_size': 'timestep_size',
27
+ 'temperature': 'temperature',
28
+ 'step_params': 'step_params'
29
+ }
30
+
31
+ def __init__(self, timestep_size=None, temperature=None, step_params=None):
32
+ """MdParam
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param timestep_size: MD模拟的时间步长,单位fs,取值范围:大于0,小于等于5
37
+ :type timestep_size: float
38
+ :param temperature: MD模拟的温度,单位K
39
+ :type temperature: float
40
+ :param step_params:
41
+ :type step_params: :class:`huaweicloudsdkeihealth.v1.MdStepParam`
42
+ """
43
+
44
+
45
+
46
+ self._timestep_size = None
47
+ self._temperature = None
48
+ self._step_params = None
49
+ self.discriminator = None
50
+
51
+ if timestep_size is not None:
52
+ self.timestep_size = timestep_size
53
+ if temperature is not None:
54
+ self.temperature = temperature
55
+ if step_params is not None:
56
+ self.step_params = step_params
57
+
58
+ @property
59
+ def timestep_size(self):
60
+ """Gets the timestep_size of this MdParam.
61
+
62
+ MD模拟的时间步长,单位fs,取值范围:大于0,小于等于5
63
+
64
+ :return: The timestep_size of this MdParam.
65
+ :rtype: float
66
+ """
67
+ return self._timestep_size
68
+
69
+ @timestep_size.setter
70
+ def timestep_size(self, timestep_size):
71
+ """Sets the timestep_size of this MdParam.
72
+
73
+ MD模拟的时间步长,单位fs,取值范围:大于0,小于等于5
74
+
75
+ :param timestep_size: The timestep_size of this MdParam.
76
+ :type timestep_size: float
77
+ """
78
+ self._timestep_size = timestep_size
79
+
80
+ @property
81
+ def temperature(self):
82
+ """Gets the temperature of this MdParam.
83
+
84
+ MD模拟的温度,单位K
85
+
86
+ :return: The temperature of this MdParam.
87
+ :rtype: float
88
+ """
89
+ return self._temperature
90
+
91
+ @temperature.setter
92
+ def temperature(self, temperature):
93
+ """Sets the temperature of this MdParam.
94
+
95
+ MD模拟的温度,单位K
96
+
97
+ :param temperature: The temperature of this MdParam.
98
+ :type temperature: float
99
+ """
100
+ self._temperature = temperature
101
+
102
+ @property
103
+ def step_params(self):
104
+ """Gets the step_params of this MdParam.
105
+
106
+ :return: The step_params of this MdParam.
107
+ :rtype: :class:`huaweicloudsdkeihealth.v1.MdStepParam`
108
+ """
109
+ return self._step_params
110
+
111
+ @step_params.setter
112
+ def step_params(self, step_params):
113
+ """Sets the step_params of this MdParam.
114
+
115
+ :param step_params: The step_params of this MdParam.
116
+ :type step_params: :class:`huaweicloudsdkeihealth.v1.MdStepParam`
117
+ """
118
+ self._step_params = step_params
119
+
120
+ def to_dict(self):
121
+ """Returns the model properties as a dict"""
122
+ result = {}
123
+
124
+ for attr, _ in six.iteritems(self.openapi_types):
125
+ value = getattr(self, attr)
126
+ if isinstance(value, list):
127
+ result[attr] = list(map(
128
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
129
+ value
130
+ ))
131
+ elif hasattr(value, "to_dict"):
132
+ result[attr] = value.to_dict()
133
+ elif isinstance(value, dict):
134
+ result[attr] = dict(map(
135
+ lambda item: (item[0], item[1].to_dict())
136
+ if hasattr(item[1], "to_dict") else item,
137
+ value.items()
138
+ ))
139
+ else:
140
+ if attr in self.sensitive_list:
141
+ result[attr] = "****"
142
+ else:
143
+ result[attr] = value
144
+
145
+ return result
146
+
147
+ def to_str(self):
148
+ """Returns the string representation of the model"""
149
+ import simplejson as json
150
+ if six.PY2:
151
+ import sys
152
+ reload(sys)
153
+ sys.setdefaultencoding("utf-8")
154
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
155
+
156
+ def __repr__(self):
157
+ """For `print`"""
158
+ return self.to_str()
159
+
160
+ def __eq__(self, other):
161
+ """Returns true if both objects are equal"""
162
+ if not isinstance(other, MdParam):
163
+ return False
164
+
165
+ return self.__dict__ == other.__dict__
166
+
167
+ def __ne__(self, other):
168
+ """Returns true if both objects are not equal"""
169
+ return not self == other
@@ -0,0 +1,202 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class MdStepParam:
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
+ 'energy_minimization_steps': 'int',
21
+ 'nvt': 'float',
22
+ 'npt': 'float',
23
+ 'simulation_time': 'float'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'energy_minimization_steps': 'energy_minimization_steps',
28
+ 'nvt': 'nvt',
29
+ 'npt': 'npt',
30
+ 'simulation_time': 'simulation_time'
31
+ }
32
+
33
+ def __init__(self, energy_minimization_steps=None, nvt=None, npt=None, simulation_time=None):
34
+ """MdStepParam
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param energy_minimization_steps: 能量最小化的步骤
39
+ :type energy_minimization_steps: int
40
+ :param nvt: 等温等体步骤模拟的时长,单位ps
41
+ :type nvt: float
42
+ :param npt: 等压等温步骤模拟的时长,单位ps
43
+ :type npt: float
44
+ :param simulation_time: 平衡步骤模拟的时长,单位ns
45
+ :type simulation_time: float
46
+ """
47
+
48
+
49
+
50
+ self._energy_minimization_steps = None
51
+ self._nvt = None
52
+ self._npt = None
53
+ self._simulation_time = None
54
+ self.discriminator = None
55
+
56
+ if energy_minimization_steps is not None:
57
+ self.energy_minimization_steps = energy_minimization_steps
58
+ if nvt is not None:
59
+ self.nvt = nvt
60
+ if npt is not None:
61
+ self.npt = npt
62
+ if simulation_time is not None:
63
+ self.simulation_time = simulation_time
64
+
65
+ @property
66
+ def energy_minimization_steps(self):
67
+ """Gets the energy_minimization_steps of this MdStepParam.
68
+
69
+ 能量最小化的步骤
70
+
71
+ :return: The energy_minimization_steps of this MdStepParam.
72
+ :rtype: int
73
+ """
74
+ return self._energy_minimization_steps
75
+
76
+ @energy_minimization_steps.setter
77
+ def energy_minimization_steps(self, energy_minimization_steps):
78
+ """Sets the energy_minimization_steps of this MdStepParam.
79
+
80
+ 能量最小化的步骤
81
+
82
+ :param energy_minimization_steps: The energy_minimization_steps of this MdStepParam.
83
+ :type energy_minimization_steps: int
84
+ """
85
+ self._energy_minimization_steps = energy_minimization_steps
86
+
87
+ @property
88
+ def nvt(self):
89
+ """Gets the nvt of this MdStepParam.
90
+
91
+ 等温等体步骤模拟的时长,单位ps
92
+
93
+ :return: The nvt of this MdStepParam.
94
+ :rtype: float
95
+ """
96
+ return self._nvt
97
+
98
+ @nvt.setter
99
+ def nvt(self, nvt):
100
+ """Sets the nvt of this MdStepParam.
101
+
102
+ 等温等体步骤模拟的时长,单位ps
103
+
104
+ :param nvt: The nvt of this MdStepParam.
105
+ :type nvt: float
106
+ """
107
+ self._nvt = nvt
108
+
109
+ @property
110
+ def npt(self):
111
+ """Gets the npt of this MdStepParam.
112
+
113
+ 等压等温步骤模拟的时长,单位ps
114
+
115
+ :return: The npt of this MdStepParam.
116
+ :rtype: float
117
+ """
118
+ return self._npt
119
+
120
+ @npt.setter
121
+ def npt(self, npt):
122
+ """Sets the npt of this MdStepParam.
123
+
124
+ 等压等温步骤模拟的时长,单位ps
125
+
126
+ :param npt: The npt of this MdStepParam.
127
+ :type npt: float
128
+ """
129
+ self._npt = npt
130
+
131
+ @property
132
+ def simulation_time(self):
133
+ """Gets the simulation_time of this MdStepParam.
134
+
135
+ 平衡步骤模拟的时长,单位ns
136
+
137
+ :return: The simulation_time of this MdStepParam.
138
+ :rtype: float
139
+ """
140
+ return self._simulation_time
141
+
142
+ @simulation_time.setter
143
+ def simulation_time(self, simulation_time):
144
+ """Sets the simulation_time of this MdStepParam.
145
+
146
+ 平衡步骤模拟的时长,单位ns
147
+
148
+ :param simulation_time: The simulation_time of this MdStepParam.
149
+ :type simulation_time: float
150
+ """
151
+ self._simulation_time = simulation_time
152
+
153
+ def to_dict(self):
154
+ """Returns the model properties as a dict"""
155
+ result = {}
156
+
157
+ for attr, _ in six.iteritems(self.openapi_types):
158
+ value = getattr(self, attr)
159
+ if isinstance(value, list):
160
+ result[attr] = list(map(
161
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
162
+ value
163
+ ))
164
+ elif hasattr(value, "to_dict"):
165
+ result[attr] = value.to_dict()
166
+ elif isinstance(value, dict):
167
+ result[attr] = dict(map(
168
+ lambda item: (item[0], item[1].to_dict())
169
+ if hasattr(item[1], "to_dict") else item,
170
+ value.items()
171
+ ))
172
+ else:
173
+ if attr in self.sensitive_list:
174
+ result[attr] = "****"
175
+ else:
176
+ result[attr] = value
177
+
178
+ return result
179
+
180
+ def to_str(self):
181
+ """Returns the string representation of the model"""
182
+ import simplejson as json
183
+ if six.PY2:
184
+ import sys
185
+ reload(sys)
186
+ sys.setdefaultencoding("utf-8")
187
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
188
+
189
+ def __repr__(self):
190
+ """For `print`"""
191
+ return self.to_str()
192
+
193
+ def __eq__(self, other):
194
+ """Returns true if both objects are equal"""
195
+ if not isinstance(other, MdStepParam):
196
+ return False
197
+
198
+ return self.__dict__ == other.__dict__
199
+
200
+ def __ne__(self, other):
201
+ """Returns true if both objects are not equal"""
202
+ return not self == other
@@ -31,7 +31,9 @@ class ModelDto:
31
31
  'description': 'str',
32
32
  'failed_message': 'str',
33
33
  'losses': 'list[float]',
34
- 'metrics': 'list[ModelMetric]'
34
+ 'metrics': 'list[ModelMetric]',
35
+ 'base_model_id': 'str',
36
+ 'base_model_name': 'str'
35
37
  }
36
38
 
37
39
  attribute_map = {
@@ -49,10 +51,12 @@ class ModelDto:
49
51
  'description': 'description',
50
52
  'failed_message': 'failed_message',
51
53
  'losses': 'losses',
52
- 'metrics': 'metrics'
54
+ 'metrics': 'metrics',
55
+ 'base_model_id': 'base_model_id',
56
+ 'base_model_name': 'base_model_name'
53
57
  }
54
58
 
55
- def __init__(self, name=None, id=None, type=None, create_time=None, finish_time=None, creator=None, status=None, shareable=None, data_quantity=None, file=None, value_range=None, description=None, failed_message=None, losses=None, metrics=None):
59
+ def __init__(self, name=None, id=None, type=None, create_time=None, finish_time=None, creator=None, status=None, shareable=None, data_quantity=None, file=None, value_range=None, description=None, failed_message=None, losses=None, metrics=None, base_model_id=None, base_model_name=None):
56
60
  """ModelDto
57
61
 
58
62
  The model defined in huaweicloud sdk
@@ -87,6 +91,10 @@ class ModelDto:
87
91
  :type losses: list[float]
88
92
  :param metrics: 模型评估指标
89
93
  :type metrics: list[:class:`huaweicloudsdkeihealth.v1.ModelMetric`]
94
+ :param base_model_id: 基模型id
95
+ :type base_model_id: str
96
+ :param base_model_name: 基模型名称
97
+ :type base_model_name: str
90
98
  """
91
99
 
92
100
 
@@ -106,6 +114,8 @@ class ModelDto:
106
114
  self._failed_message = None
107
115
  self._losses = None
108
116
  self._metrics = None
117
+ self._base_model_id = None
118
+ self._base_model_name = None
109
119
  self.discriminator = None
110
120
 
111
121
  if name is not None:
@@ -138,6 +148,10 @@ class ModelDto:
138
148
  self.losses = losses
139
149
  if metrics is not None:
140
150
  self.metrics = metrics
151
+ if base_model_id is not None:
152
+ self.base_model_id = base_model_id
153
+ if base_model_name is not None:
154
+ self.base_model_name = base_model_name
141
155
 
142
156
  @property
143
157
  def name(self):
@@ -461,6 +475,50 @@ class ModelDto:
461
475
  """
462
476
  self._metrics = metrics
463
477
 
478
+ @property
479
+ def base_model_id(self):
480
+ """Gets the base_model_id of this ModelDto.
481
+
482
+ 基模型id
483
+
484
+ :return: The base_model_id of this ModelDto.
485
+ :rtype: str
486
+ """
487
+ return self._base_model_id
488
+
489
+ @base_model_id.setter
490
+ def base_model_id(self, base_model_id):
491
+ """Sets the base_model_id of this ModelDto.
492
+
493
+ 基模型id
494
+
495
+ :param base_model_id: The base_model_id of this ModelDto.
496
+ :type base_model_id: str
497
+ """
498
+ self._base_model_id = base_model_id
499
+
500
+ @property
501
+ def base_model_name(self):
502
+ """Gets the base_model_name of this ModelDto.
503
+
504
+ 基模型名称
505
+
506
+ :return: The base_model_name of this ModelDto.
507
+ :rtype: str
508
+ """
509
+ return self._base_model_name
510
+
511
+ @base_model_name.setter
512
+ def base_model_name(self, base_model_name):
513
+ """Sets the base_model_name of this ModelDto.
514
+
515
+ 基模型名称
516
+
517
+ :param base_model_name: The base_model_name of this ModelDto.
518
+ :type base_model_name: str
519
+ """
520
+ self._base_model_name = base_model_name
521
+
464
522
  def to_dict(self):
465
523
  """Returns the model properties as a dict"""
466
524
  result = {}
@@ -20,6 +20,7 @@ class PocketFragment:
20
20
  'source': 'DrugFileSource',
21
21
  'url': 'str',
22
22
  'format': 'str',
23
+ 'name': 'str',
23
24
  'data': 'str',
24
25
  'edited': 'EditedLigand',
25
26
  'label_sites': 'LabelSite'
@@ -29,12 +30,13 @@ class PocketFragment:
29
30
  'source': 'source',
30
31
  'url': 'url',
31
32
  'format': 'format',
33
+ 'name': 'name',
32
34
  'data': 'data',
33
35
  'edited': 'edited',
34
36
  'label_sites': 'label_sites'
35
37
  }
36
38
 
37
- def __init__(self, source=None, url=None, format=None, data=None, edited=None, label_sites=None):
39
+ def __init__(self, source=None, url=None, format=None, name=None, data=None, edited=None, label_sites=None):
38
40
  """PocketFragment
39
41
 
40
42
  The model defined in huaweicloud sdk
@@ -45,6 +47,8 @@ class PocketFragment:
45
47
  :type url: str
46
48
  :param format: 文件格式,支持PDB、SDF、MOL2、SMI,仅数据源为RAW时提供
47
49
  :type format: str
50
+ :param name: 原始配体名称,仅RAW类型时用于配体名称标识
51
+ :type name: str
48
52
  :param data: 文件原始数据,仅数据源为RAW时提供
49
53
  :type data: str
50
54
  :param edited:
@@ -58,6 +62,7 @@ class PocketFragment:
58
62
  self._source = None
59
63
  self._url = None
60
64
  self._format = None
65
+ self._name = None
61
66
  self._data = None
62
67
  self._edited = None
63
68
  self._label_sites = None
@@ -69,6 +74,8 @@ class PocketFragment:
69
74
  self.url = url
70
75
  if format is not None:
71
76
  self.format = format
77
+ if name is not None:
78
+ self.name = name
72
79
  if data is not None:
73
80
  self.data = data
74
81
  if edited is not None:
@@ -138,6 +145,28 @@ class PocketFragment:
138
145
  """
139
146
  self._format = format
140
147
 
148
+ @property
149
+ def name(self):
150
+ """Gets the name of this PocketFragment.
151
+
152
+ 原始配体名称,仅RAW类型时用于配体名称标识
153
+
154
+ :return: The name of this PocketFragment.
155
+ :rtype: str
156
+ """
157
+ return self._name
158
+
159
+ @name.setter
160
+ def name(self, name):
161
+ """Sets the name of this PocketFragment.
162
+
163
+ 原始配体名称,仅RAW类型时用于配体名称标识
164
+
165
+ :param name: The name of this PocketFragment.
166
+ :type name: str
167
+ """
168
+ self._name = name
169
+
141
170
  @property
142
171
  def data(self):
143
172
  """Gets the data of this PocketFragment.