huaweicloudsdkeihealth 3.1.107__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.107.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/METADATA +2 -2
  54. {huaweicloudsdkeihealth-3.1.107.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/RECORD +57 -26
  55. {huaweicloudsdkeihealth-3.1.107.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/WHEEL +1 -1
  56. {huaweicloudsdkeihealth-3.1.107.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/LICENSE +0 -0
  57. {huaweicloudsdkeihealth-3.1.107.dist-info → huaweicloudsdkeihealth-3.1.109.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,167 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class InteractionConstraintDto:
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
+ 'interactions': 'list[Interaction]',
21
+ 'exclusive': 'bool',
22
+ 'operator': 'OperatorType'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'interactions': 'interactions',
27
+ 'exclusive': 'exclusive',
28
+ 'operator': 'operator'
29
+ }
30
+
31
+ def __init__(self, interactions=None, exclusive=None, operator=None):
32
+ """InteractionConstraintDto
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param interactions: 相互作用力列表
37
+ :type interactions: list[:class:`huaweicloudsdkeihealth.v1.Interaction`]
38
+ :param exclusive: 是否排除指定的约束作用力
39
+ :type exclusive: bool
40
+ :param operator:
41
+ :type operator: :class:`huaweicloudsdkeihealth.v1.OperatorType`
42
+ """
43
+
44
+
45
+
46
+ self._interactions = None
47
+ self._exclusive = None
48
+ self._operator = None
49
+ self.discriminator = None
50
+
51
+ self.interactions = interactions
52
+ self.exclusive = exclusive
53
+ if operator is not None:
54
+ self.operator = operator
55
+
56
+ @property
57
+ def interactions(self):
58
+ """Gets the interactions of this InteractionConstraintDto.
59
+
60
+ 相互作用力列表
61
+
62
+ :return: The interactions of this InteractionConstraintDto.
63
+ :rtype: list[:class:`huaweicloudsdkeihealth.v1.Interaction`]
64
+ """
65
+ return self._interactions
66
+
67
+ @interactions.setter
68
+ def interactions(self, interactions):
69
+ """Sets the interactions of this InteractionConstraintDto.
70
+
71
+ 相互作用力列表
72
+
73
+ :param interactions: The interactions of this InteractionConstraintDto.
74
+ :type interactions: list[:class:`huaweicloudsdkeihealth.v1.Interaction`]
75
+ """
76
+ self._interactions = interactions
77
+
78
+ @property
79
+ def exclusive(self):
80
+ """Gets the exclusive of this InteractionConstraintDto.
81
+
82
+ 是否排除指定的约束作用力
83
+
84
+ :return: The exclusive of this InteractionConstraintDto.
85
+ :rtype: bool
86
+ """
87
+ return self._exclusive
88
+
89
+ @exclusive.setter
90
+ def exclusive(self, exclusive):
91
+ """Sets the exclusive of this InteractionConstraintDto.
92
+
93
+ 是否排除指定的约束作用力
94
+
95
+ :param exclusive: The exclusive of this InteractionConstraintDto.
96
+ :type exclusive: bool
97
+ """
98
+ self._exclusive = exclusive
99
+
100
+ @property
101
+ def operator(self):
102
+ """Gets the operator of this InteractionConstraintDto.
103
+
104
+ :return: The operator of this InteractionConstraintDto.
105
+ :rtype: :class:`huaweicloudsdkeihealth.v1.OperatorType`
106
+ """
107
+ return self._operator
108
+
109
+ @operator.setter
110
+ def operator(self, operator):
111
+ """Sets the operator of this InteractionConstraintDto.
112
+
113
+ :param operator: The operator of this InteractionConstraintDto.
114
+ :type operator: :class:`huaweicloudsdkeihealth.v1.OperatorType`
115
+ """
116
+ self._operator = operator
117
+
118
+ def to_dict(self):
119
+ """Returns the model properties as a dict"""
120
+ result = {}
121
+
122
+ for attr, _ in six.iteritems(self.openapi_types):
123
+ value = getattr(self, attr)
124
+ if isinstance(value, list):
125
+ result[attr] = list(map(
126
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
127
+ value
128
+ ))
129
+ elif hasattr(value, "to_dict"):
130
+ result[attr] = value.to_dict()
131
+ elif isinstance(value, dict):
132
+ result[attr] = dict(map(
133
+ lambda item: (item[0], item[1].to_dict())
134
+ if hasattr(item[1], "to_dict") else item,
135
+ value.items()
136
+ ))
137
+ else:
138
+ if attr in self.sensitive_list:
139
+ result[attr] = "****"
140
+ else:
141
+ result[attr] = value
142
+
143
+ return result
144
+
145
+ def to_str(self):
146
+ """Returns the string representation of the model"""
147
+ import simplejson as json
148
+ if six.PY2:
149
+ import sys
150
+ reload(sys)
151
+ sys.setdefaultencoding("utf-8")
152
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
153
+
154
+ def __repr__(self):
155
+ """For `print`"""
156
+ return self.to_str()
157
+
158
+ def __eq__(self, other):
159
+ """Returns true if both objects are equal"""
160
+ if not isinstance(other, InteractionConstraintDto):
161
+ return False
162
+
163
+ return self.__dict__ == other.__dict__
164
+
165
+ def __ne__(self, other):
166
+ """Returns true if both objects are not equal"""
167
+ return not self == other
@@ -0,0 +1,91 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class InteractionType:
9
+ """
10
+ allowed enum values
11
+ """
12
+ HYDROGEN_BOND = "hydrogen_bond"
13
+ HYDROPHOBIC_ACTION = "hydrophobic_action"
14
+ SALT_BRIDGE = "salt_bridge"
15
+ PI_STACKING = "pi_stacking"
16
+ PI_CATION = "pi_cation"
17
+ """
18
+ Attributes:
19
+ openapi_types (dict): The key is attribute name
20
+ and the value is attribute type.
21
+ attribute_map (dict): The key is attribute name
22
+ and the value is json key in definition.
23
+ """
24
+ sensitive_list = []
25
+
26
+ openapi_types = {
27
+ }
28
+
29
+ attribute_map = {
30
+ }
31
+
32
+ def __init__(self):
33
+ """InteractionType
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ """
38
+
39
+
40
+ self.discriminator = None
41
+
42
+ def to_dict(self):
43
+ """Returns the model properties as a dict"""
44
+ result = {}
45
+
46
+ for attr, _ in six.iteritems(self.openapi_types):
47
+ value = getattr(self, attr)
48
+ if isinstance(value, list):
49
+ result[attr] = list(map(
50
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
51
+ value
52
+ ))
53
+ elif hasattr(value, "to_dict"):
54
+ result[attr] = value.to_dict()
55
+ elif isinstance(value, dict):
56
+ result[attr] = dict(map(
57
+ lambda item: (item[0], item[1].to_dict())
58
+ if hasattr(item[1], "to_dict") else item,
59
+ value.items()
60
+ ))
61
+ else:
62
+ if attr in self.sensitive_list:
63
+ result[attr] = "****"
64
+ else:
65
+ result[attr] = value
66
+
67
+ return result
68
+
69
+ def to_str(self):
70
+ """Returns the string representation of the model"""
71
+ import simplejson as json
72
+ if six.PY2:
73
+ import sys
74
+ reload(sys)
75
+ sys.setdefaultencoding("utf-8")
76
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
77
+
78
+ def __repr__(self):
79
+ """For `print`"""
80
+ return self.to_str()
81
+
82
+ def __eq__(self, other):
83
+ """Returns true if both objects are equal"""
84
+ if not isinstance(other, InteractionType):
85
+ return False
86
+
87
+ return self.__dict__ == other.__dict__
88
+
89
+ def __ne__(self, other):
90
+ """Returns true if both objects are not equal"""
91
+ 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 ListBaseModelRequest:
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
+ 'limit': 'int',
21
+ 'offset': 'int',
22
+ 'sort_dir': 'str',
23
+ 'sort_key': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'limit': 'limit',
28
+ 'offset': 'offset',
29
+ 'sort_dir': 'sort_dir',
30
+ 'sort_key': 'sort_key'
31
+ }
32
+
33
+ def __init__(self, limit=None, offset=None, sort_dir=None, sort_key=None):
34
+ """ListBaseModelRequest
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param limit: 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]
39
+ :type limit: int
40
+ :param offset: 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]
41
+ :type offset: int
42
+ :param sort_dir: 排序规则 目前默认时间升序
43
+ :type sort_dir: str
44
+ :param sort_key: 排序规则 目前默认时间升序,支持根据create_time排序
45
+ :type sort_key: str
46
+ """
47
+
48
+
49
+
50
+ self._limit = None
51
+ self._offset = None
52
+ self._sort_dir = None
53
+ self._sort_key = None
54
+ self.discriminator = None
55
+
56
+ if limit is not None:
57
+ self.limit = limit
58
+ if offset is not None:
59
+ self.offset = offset
60
+ if sort_dir is not None:
61
+ self.sort_dir = sort_dir
62
+ if sort_key is not None:
63
+ self.sort_key = sort_key
64
+
65
+ @property
66
+ def limit(self):
67
+ """Gets the limit of this ListBaseModelRequest.
68
+
69
+ 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]
70
+
71
+ :return: The limit of this ListBaseModelRequest.
72
+ :rtype: int
73
+ """
74
+ return self._limit
75
+
76
+ @limit.setter
77
+ def limit(self, limit):
78
+ """Sets the limit of this ListBaseModelRequest.
79
+
80
+ 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]
81
+
82
+ :param limit: The limit of this ListBaseModelRequest.
83
+ :type limit: int
84
+ """
85
+ self._limit = limit
86
+
87
+ @property
88
+ def offset(self):
89
+ """Gets the offset of this ListBaseModelRequest.
90
+
91
+ 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]
92
+
93
+ :return: The offset of this ListBaseModelRequest.
94
+ :rtype: int
95
+ """
96
+ return self._offset
97
+
98
+ @offset.setter
99
+ def offset(self, offset):
100
+ """Sets the offset of this ListBaseModelRequest.
101
+
102
+ 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]
103
+
104
+ :param offset: The offset of this ListBaseModelRequest.
105
+ :type offset: int
106
+ """
107
+ self._offset = offset
108
+
109
+ @property
110
+ def sort_dir(self):
111
+ """Gets the sort_dir of this ListBaseModelRequest.
112
+
113
+ 排序规则 目前默认时间升序
114
+
115
+ :return: The sort_dir of this ListBaseModelRequest.
116
+ :rtype: str
117
+ """
118
+ return self._sort_dir
119
+
120
+ @sort_dir.setter
121
+ def sort_dir(self, sort_dir):
122
+ """Sets the sort_dir of this ListBaseModelRequest.
123
+
124
+ 排序规则 目前默认时间升序
125
+
126
+ :param sort_dir: The sort_dir of this ListBaseModelRequest.
127
+ :type sort_dir: str
128
+ """
129
+ self._sort_dir = sort_dir
130
+
131
+ @property
132
+ def sort_key(self):
133
+ """Gets the sort_key of this ListBaseModelRequest.
134
+
135
+ 排序规则 目前默认时间升序,支持根据create_time排序
136
+
137
+ :return: The sort_key of this ListBaseModelRequest.
138
+ :rtype: str
139
+ """
140
+ return self._sort_key
141
+
142
+ @sort_key.setter
143
+ def sort_key(self, sort_key):
144
+ """Sets the sort_key of this ListBaseModelRequest.
145
+
146
+ 排序规则 目前默认时间升序,支持根据create_time排序
147
+
148
+ :param sort_key: The sort_key of this ListBaseModelRequest.
149
+ :type sort_key: str
150
+ """
151
+ self._sort_key = sort_key
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, ListBaseModelRequest):
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
@@ -0,0 +1,145 @@
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 ListBaseModelResponse(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
+ 'models': 'list[BaseModelDto]',
22
+ 'count': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'models': 'models',
27
+ 'count': 'count'
28
+ }
29
+
30
+ def __init__(self, models=None, count=None):
31
+ """ListBaseModelResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param models: 模型列表
36
+ :type models: list[:class:`huaweicloudsdkeihealth.v1.BaseModelDto`]
37
+ :param count: 模型总数
38
+ :type count: int
39
+ """
40
+
41
+ super(ListBaseModelResponse, self).__init__()
42
+
43
+ self._models = None
44
+ self._count = None
45
+ self.discriminator = None
46
+
47
+ if models is not None:
48
+ self.models = models
49
+ if count is not None:
50
+ self.count = count
51
+
52
+ @property
53
+ def models(self):
54
+ """Gets the models of this ListBaseModelResponse.
55
+
56
+ 模型列表
57
+
58
+ :return: The models of this ListBaseModelResponse.
59
+ :rtype: list[:class:`huaweicloudsdkeihealth.v1.BaseModelDto`]
60
+ """
61
+ return self._models
62
+
63
+ @models.setter
64
+ def models(self, models):
65
+ """Sets the models of this ListBaseModelResponse.
66
+
67
+ 模型列表
68
+
69
+ :param models: The models of this ListBaseModelResponse.
70
+ :type models: list[:class:`huaweicloudsdkeihealth.v1.BaseModelDto`]
71
+ """
72
+ self._models = models
73
+
74
+ @property
75
+ def count(self):
76
+ """Gets the count of this ListBaseModelResponse.
77
+
78
+ 模型总数
79
+
80
+ :return: The count of this ListBaseModelResponse.
81
+ :rtype: int
82
+ """
83
+ return self._count
84
+
85
+ @count.setter
86
+ def count(self, count):
87
+ """Sets the count of this ListBaseModelResponse.
88
+
89
+ 模型总数
90
+
91
+ :param count: The count of this ListBaseModelResponse.
92
+ :type count: int
93
+ """
94
+ self._count = count
95
+
96
+ def to_dict(self):
97
+ """Returns the model properties as a dict"""
98
+ result = {}
99
+
100
+ for attr, _ in six.iteritems(self.openapi_types):
101
+ value = getattr(self, attr)
102
+ if isinstance(value, list):
103
+ result[attr] = list(map(
104
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
105
+ value
106
+ ))
107
+ elif hasattr(value, "to_dict"):
108
+ result[attr] = value.to_dict()
109
+ elif isinstance(value, dict):
110
+ result[attr] = dict(map(
111
+ lambda item: (item[0], item[1].to_dict())
112
+ if hasattr(item[1], "to_dict") else item,
113
+ value.items()
114
+ ))
115
+ else:
116
+ if attr in self.sensitive_list:
117
+ result[attr] = "****"
118
+ else:
119
+ result[attr] = value
120
+
121
+ return result
122
+
123
+ def to_str(self):
124
+ """Returns the string representation of the model"""
125
+ import simplejson as json
126
+ if six.PY2:
127
+ import sys
128
+ reload(sys)
129
+ sys.setdefaultencoding("utf-8")
130
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
131
+
132
+ def __repr__(self):
133
+ """For `print`"""
134
+ return self.to_str()
135
+
136
+ def __eq__(self, other):
137
+ """Returns true if both objects are equal"""
138
+ if not isinstance(other, ListBaseModelResponse):
139
+ return False
140
+
141
+ return self.__dict__ == other.__dict__
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ return not self == other
@@ -28,7 +28,8 @@ class ListDrugModelRequest:
28
28
  'finish_start_time': 'int',
29
29
  'finish_end_time': 'int',
30
30
  'limit': 'int',
31
- 'offset': 'int'
31
+ 'offset': 'int',
32
+ 'base_model_list': 'list[str]'
32
33
  }
33
34
 
34
35
  attribute_map = {
@@ -43,10 +44,11 @@ class ListDrugModelRequest:
43
44
  'finish_start_time': 'finish_start_time',
44
45
  'finish_end_time': 'finish_end_time',
45
46
  'limit': 'limit',
46
- 'offset': 'offset'
47
+ 'offset': 'offset',
48
+ 'base_model_list': 'base_model_list'
47
49
  }
48
50
 
49
- def __init__(self, search_key=None, creator_list=None, type_list=None, status_list=None, sort_key=None, sort_dir=None, create_start_time=None, create_end_time=None, finish_start_time=None, finish_end_time=None, limit=None, offset=None):
51
+ def __init__(self, search_key=None, creator_list=None, type_list=None, status_list=None, sort_key=None, sort_dir=None, create_start_time=None, create_end_time=None, finish_start_time=None, finish_end_time=None, limit=None, offset=None, base_model_list=None):
50
52
  """ListDrugModelRequest
51
53
 
52
54
  The model defined in huaweicloud sdk
@@ -59,7 +61,7 @@ class ListDrugModelRequest:
59
61
  :type type_list: list[str]
60
62
  :param status_list: 模型状态列表
61
63
  :type status_list: list[str]
62
- :param sort_key: 排序规则 目前默认时间降序,支持根据create_time|finish_time
64
+ :param sort_key: 排序规则 目前默认时间降序,支持根据create_time|finish_time|base_model_name
63
65
  :type sort_key: str
64
66
  :param sort_dir: 排序规则 目前默认时间降序
65
67
  :type sort_dir: str
@@ -75,6 +77,8 @@ class ListDrugModelRequest:
75
77
  :type limit: int
76
78
  :param offset: 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]
77
79
  :type offset: int
80
+ :param base_model_list: 基模型id列表
81
+ :type base_model_list: list[str]
78
82
  """
79
83
 
80
84
 
@@ -91,6 +95,7 @@ class ListDrugModelRequest:
91
95
  self._finish_end_time = None
92
96
  self._limit = None
93
97
  self._offset = None
98
+ self._base_model_list = None
94
99
  self.discriminator = None
95
100
 
96
101
  if search_key is not None:
@@ -117,6 +122,8 @@ class ListDrugModelRequest:
117
122
  self.limit = limit
118
123
  if offset is not None:
119
124
  self.offset = offset
125
+ if base_model_list is not None:
126
+ self.base_model_list = base_model_list
120
127
 
121
128
  @property
122
129
  def search_key(self):
@@ -210,7 +217,7 @@ class ListDrugModelRequest:
210
217
  def sort_key(self):
211
218
  """Gets the sort_key of this ListDrugModelRequest.
212
219
 
213
- 排序规则 目前默认时间降序,支持根据create_time|finish_time
220
+ 排序规则 目前默认时间降序,支持根据create_time|finish_time|base_model_name
214
221
 
215
222
  :return: The sort_key of this ListDrugModelRequest.
216
223
  :rtype: str
@@ -221,7 +228,7 @@ class ListDrugModelRequest:
221
228
  def sort_key(self, sort_key):
222
229
  """Sets the sort_key of this ListDrugModelRequest.
223
230
 
224
- 排序规则 目前默认时间降序,支持根据create_time|finish_time
231
+ 排序规则 目前默认时间降序,支持根据create_time|finish_time|base_model_name
225
232
 
226
233
  :param sort_key: The sort_key of this ListDrugModelRequest.
227
234
  :type sort_key: str
@@ -382,6 +389,28 @@ class ListDrugModelRequest:
382
389
  """
383
390
  self._offset = offset
384
391
 
392
+ @property
393
+ def base_model_list(self):
394
+ """Gets the base_model_list of this ListDrugModelRequest.
395
+
396
+ 基模型id列表
397
+
398
+ :return: The base_model_list of this ListDrugModelRequest.
399
+ :rtype: list[str]
400
+ """
401
+ return self._base_model_list
402
+
403
+ @base_model_list.setter
404
+ def base_model_list(self, base_model_list):
405
+ """Sets the base_model_list of this ListDrugModelRequest.
406
+
407
+ 基模型id列表
408
+
409
+ :param base_model_list: The base_model_list of this ListDrugModelRequest.
410
+ :type base_model_list: list[str]
411
+ """
412
+ self._base_model_list = base_model_list
413
+
385
414
  def to_dict(self):
386
415
  """Returns the model properties as a dict"""
387
416
  result = {}