huaweicloudsdkeihealth 3.1.94__py2.py3-none-any.whl → 3.1.95__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 (60) hide show
  1. huaweicloudsdkeihealth/v1/__init__.py +44 -0
  2. huaweicloudsdkeihealth/v1/eihealth_async_client.py +1057 -52
  3. huaweicloudsdkeihealth/v1/eihealth_client.py +1057 -52
  4. huaweicloudsdkeihealth/v1/model/__init__.py +44 -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/bind_site_dto.py +30 -1
  9. huaweicloudsdkeihealth/v1/model/create_css_cluster_req.py +170 -0
  10. huaweicloudsdkeihealth/v1/model/create_css_cluster_request.py +111 -0
  11. huaweicloudsdkeihealth/v1/model/create_css_cluster_response.py +116 -0
  12. huaweicloudsdkeihealth/v1/model/create_database_req2.py +252 -0
  13. huaweicloudsdkeihealth/v1/model/create_drug_database_request.py +111 -0
  14. huaweicloudsdkeihealth/v1/model/create_drug_database_response.py +116 -0
  15. huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_req.py +198 -0
  16. huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_request.py +139 -0
  17. huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_response.py +116 -0
  18. huaweicloudsdkeihealth/v1/model/create_optm_job_req.py +30 -1
  19. huaweicloudsdkeihealth/v1/model/create_search_job_req.py +308 -0
  20. huaweicloudsdkeihealth/v1/model/create_search_job_request.py +139 -0
  21. huaweicloudsdkeihealth/v1/model/create_search_job_response.py +145 -0
  22. huaweicloudsdkeihealth/v1/model/css_cluster_dto.py +202 -0
  23. huaweicloudsdkeihealth/v1/model/database_file.py +167 -0
  24. huaweicloudsdkeihealth/v1/model/database_file_source.py +88 -0
  25. huaweicloudsdkeihealth/v1/model/delete_css_cluster_request.py +114 -0
  26. huaweicloudsdkeihealth/v1/model/delete_css_cluster_response.py +85 -0
  27. huaweicloudsdkeihealth/v1/model/delete_drug_database_request.py +114 -0
  28. huaweicloudsdkeihealth/v1/model/delete_drug_database_response.py +85 -0
  29. huaweicloudsdkeihealth/v1/model/detail_database_file.py +225 -0
  30. huaweicloudsdkeihealth/v1/model/download_data_req.py +61 -3
  31. huaweicloudsdkeihealth/v1/model/drug_database_dto.py +521 -0
  32. huaweicloudsdkeihealth/v1/model/get_archive_config_rsp.py +3 -32
  33. huaweicloudsdkeihealth/v1/model/list_css_cluster_request.py +144 -0
  34. huaweicloudsdkeihealth/v1/model/list_css_cluster_response.py +145 -0
  35. huaweicloudsdkeihealth/v1/model/list_drug_database_request.py +260 -0
  36. huaweicloudsdkeihealth/v1/model/list_drug_database_response.py +145 -0
  37. huaweicloudsdkeihealth/v1/model/list_term_tenant_css_cluster_request.py +144 -0
  38. huaweicloudsdkeihealth/v1/model/list_term_tenant_css_cluster_response.py +145 -0
  39. huaweicloudsdkeihealth/v1/model/search_type.py +88 -0
  40. huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_request.py +142 -0
  41. huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_response.py +174 -0
  42. huaweicloudsdkeihealth/v1/model/show_optm_job_response.py +30 -1
  43. huaweicloudsdkeihealth/v1/model/show_search_job_request.py +142 -0
  44. huaweicloudsdkeihealth/v1/model/show_search_job_response.py +340 -0
  45. huaweicloudsdkeihealth/v1/model/term_tenant_css_cluster_dto.py +173 -0
  46. huaweicloudsdkeihealth/v1/model/update_drug_database_req.py +114 -0
  47. huaweicloudsdkeihealth/v1/model/update_drug_database_request.py +139 -0
  48. huaweicloudsdkeihealth/v1/model/update_drug_database_response.py +85 -0
  49. huaweicloudsdkeihealth/v1/model/update_drug_job_req.py +115 -0
  50. huaweicloudsdkeihealth/v1/model/update_drug_job_request.py +167 -0
  51. huaweicloudsdkeihealth/v1/model/update_drug_job_response.py +85 -0
  52. huaweicloudsdkeihealth/v1/model/upload_data_request.py +1 -175
  53. huaweicloudsdkeihealth/v1/model/upload_data_request_body.py +177 -3
  54. huaweicloudsdkeihealth/v1/model/validate_css_connection_request.py +111 -0
  55. huaweicloudsdkeihealth/v1/model/validate_css_connection_response.py +145 -0
  56. {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.95.dist-info}/METADATA +2 -2
  57. {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.95.dist-info}/RECORD +60 -16
  58. {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.95.dist-info}/LICENSE +0 -0
  59. {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.95.dist-info}/WHEEL +0 -0
  60. {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.95.dist-info}/top_level.txt +0 -0
@@ -21,6 +21,7 @@ class CreateOptmJobReq:
21
21
  'smiles': 'str',
22
22
  'molecule_file': 'DrugFile',
23
23
  'binding_site': 'BindSiteDto',
24
+ 'binding_sites': 'list[BindSiteDto]',
24
25
  'weak_constraints': 'list[WeakConstraintDto]',
25
26
  'strong_constraints': 'list[StrongConstraintDto]',
26
27
  'sampler_mixin_weight': 'float',
@@ -33,6 +34,7 @@ class CreateOptmJobReq:
33
34
  'smiles': 'smiles',
34
35
  'molecule_file': 'molecule_file',
35
36
  'binding_site': 'binding_site',
37
+ 'binding_sites': 'binding_sites',
36
38
  'weak_constraints': 'weak_constraints',
37
39
  'strong_constraints': 'strong_constraints',
38
40
  'sampler_mixin_weight': 'sampler_mixin_weight',
@@ -40,7 +42,7 @@ class CreateOptmJobReq:
40
42
  'num_trials': 'num_trials'
41
43
  }
42
44
 
43
- def __init__(self, basic_info=None, smiles=None, molecule_file=None, binding_site=None, weak_constraints=None, strong_constraints=None, sampler_mixin_weight=None, model_ids=None, num_trials=None):
45
+ def __init__(self, basic_info=None, smiles=None, molecule_file=None, binding_site=None, binding_sites=None, weak_constraints=None, strong_constraints=None, sampler_mixin_weight=None, model_ids=None, num_trials=None):
44
46
  """CreateOptmJobReq
45
47
 
46
48
  The model defined in huaweicloud sdk
@@ -53,6 +55,8 @@ class CreateOptmJobReq:
53
55
  :type molecule_file: :class:`huaweicloudsdkeihealth.v1.DrugFile`
54
56
  :param binding_site:
55
57
  :type binding_site: :class:`huaweicloudsdkeihealth.v1.BindSiteDto`
58
+ :param binding_sites: 受体列表和受体是二选一的关系,受体列表优先级最高
59
+ :type binding_sites: list[:class:`huaweicloudsdkeihealth.v1.BindSiteDto`]
56
60
  :param weak_constraints: 弱约束集合
57
61
  :type weak_constraints: list[:class:`huaweicloudsdkeihealth.v1.WeakConstraintDto`]
58
62
  :param strong_constraints: 强约束集合
@@ -71,6 +75,7 @@ class CreateOptmJobReq:
71
75
  self._smiles = None
72
76
  self._molecule_file = None
73
77
  self._binding_site = None
78
+ self._binding_sites = None
74
79
  self._weak_constraints = None
75
80
  self._strong_constraints = None
76
81
  self._sampler_mixin_weight = None
@@ -85,6 +90,8 @@ class CreateOptmJobReq:
85
90
  self.molecule_file = molecule_file
86
91
  if binding_site is not None:
87
92
  self.binding_site = binding_site
93
+ if binding_sites is not None:
94
+ self.binding_sites = binding_sites
88
95
  if weak_constraints is not None:
89
96
  self.weak_constraints = weak_constraints
90
97
  if strong_constraints is not None:
@@ -172,6 +179,28 @@ class CreateOptmJobReq:
172
179
  """
173
180
  self._binding_site = binding_site
174
181
 
182
+ @property
183
+ def binding_sites(self):
184
+ """Gets the binding_sites of this CreateOptmJobReq.
185
+
186
+ 受体列表和受体是二选一的关系,受体列表优先级最高
187
+
188
+ :return: The binding_sites of this CreateOptmJobReq.
189
+ :rtype: list[:class:`huaweicloudsdkeihealth.v1.BindSiteDto`]
190
+ """
191
+ return self._binding_sites
192
+
193
+ @binding_sites.setter
194
+ def binding_sites(self, binding_sites):
195
+ """Sets the binding_sites of this CreateOptmJobReq.
196
+
197
+ 受体列表和受体是二选一的关系,受体列表优先级最高
198
+
199
+ :param binding_sites: The binding_sites of this CreateOptmJobReq.
200
+ :type binding_sites: list[:class:`huaweicloudsdkeihealth.v1.BindSiteDto`]
201
+ """
202
+ self._binding_sites = binding_sites
203
+
175
204
  @property
176
205
  def weak_constraints(self):
177
206
  """Gets the weak_constraints of this CreateOptmJobReq.
@@ -0,0 +1,308 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateSearchJobReq:
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
+ 'basic_info': 'CreateDrugJobBasicInfo',
21
+ 'smiles': 'str',
22
+ 'scaffold': 'str',
23
+ 'top_n': 'int',
24
+ 'databases': 'list[str]',
25
+ 'custom_databases': 'list[str]',
26
+ 'model_ids': 'list[str]',
27
+ 'search_method': 'SearchType'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'basic_info': 'basic_info',
32
+ 'smiles': 'smiles',
33
+ 'scaffold': 'scaffold',
34
+ 'top_n': 'top_n',
35
+ 'databases': 'databases',
36
+ 'custom_databases': 'custom_databases',
37
+ 'model_ids': 'model_ids',
38
+ 'search_method': 'search_method'
39
+ }
40
+
41
+ def __init__(self, basic_info=None, smiles=None, scaffold=None, top_n=None, databases=None, custom_databases=None, model_ids=None, search_method=None):
42
+ """CreateSearchJobReq
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param basic_info:
47
+ :type basic_info: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo`
48
+ :param smiles: 分子SMILES表达式
49
+ :type smiles: str
50
+ :param scaffold: 分子骨架表达式
51
+ :type scaffold: str
52
+ :param top_n: 最相似的top_n个
53
+ :type top_n: int
54
+ :param databases: 可供搜索分子的公共数据库名称列表
55
+ :type databases: list[str]
56
+ :param custom_databases: 可供搜索分子的自定义数据库id列表
57
+ :type custom_databases: list[str]
58
+ :param model_ids: 模型id列表
59
+ :type model_ids: list[str]
60
+ :param search_method:
61
+ :type search_method: :class:`huaweicloudsdkeihealth.v1.SearchType`
62
+ """
63
+
64
+
65
+
66
+ self._basic_info = None
67
+ self._smiles = None
68
+ self._scaffold = None
69
+ self._top_n = None
70
+ self._databases = None
71
+ self._custom_databases = None
72
+ self._model_ids = None
73
+ self._search_method = None
74
+ self.discriminator = None
75
+
76
+ self.basic_info = basic_info
77
+ self.smiles = smiles
78
+ if scaffold is not None:
79
+ self.scaffold = scaffold
80
+ if top_n is not None:
81
+ self.top_n = top_n
82
+ if databases is not None:
83
+ self.databases = databases
84
+ if custom_databases is not None:
85
+ self.custom_databases = custom_databases
86
+ if model_ids is not None:
87
+ self.model_ids = model_ids
88
+ if search_method is not None:
89
+ self.search_method = search_method
90
+
91
+ @property
92
+ def basic_info(self):
93
+ """Gets the basic_info of this CreateSearchJobReq.
94
+
95
+ :return: The basic_info of this CreateSearchJobReq.
96
+ :rtype: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo`
97
+ """
98
+ return self._basic_info
99
+
100
+ @basic_info.setter
101
+ def basic_info(self, basic_info):
102
+ """Sets the basic_info of this CreateSearchJobReq.
103
+
104
+ :param basic_info: The basic_info of this CreateSearchJobReq.
105
+ :type basic_info: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo`
106
+ """
107
+ self._basic_info = basic_info
108
+
109
+ @property
110
+ def smiles(self):
111
+ """Gets the smiles of this CreateSearchJobReq.
112
+
113
+ 分子SMILES表达式
114
+
115
+ :return: The smiles of this CreateSearchJobReq.
116
+ :rtype: str
117
+ """
118
+ return self._smiles
119
+
120
+ @smiles.setter
121
+ def smiles(self, smiles):
122
+ """Sets the smiles of this CreateSearchJobReq.
123
+
124
+ 分子SMILES表达式
125
+
126
+ :param smiles: The smiles of this CreateSearchJobReq.
127
+ :type smiles: str
128
+ """
129
+ self._smiles = smiles
130
+
131
+ @property
132
+ def scaffold(self):
133
+ """Gets the scaffold of this CreateSearchJobReq.
134
+
135
+ 分子骨架表达式
136
+
137
+ :return: The scaffold of this CreateSearchJobReq.
138
+ :rtype: str
139
+ """
140
+ return self._scaffold
141
+
142
+ @scaffold.setter
143
+ def scaffold(self, scaffold):
144
+ """Sets the scaffold of this CreateSearchJobReq.
145
+
146
+ 分子骨架表达式
147
+
148
+ :param scaffold: The scaffold of this CreateSearchJobReq.
149
+ :type scaffold: str
150
+ """
151
+ self._scaffold = scaffold
152
+
153
+ @property
154
+ def top_n(self):
155
+ """Gets the top_n of this CreateSearchJobReq.
156
+
157
+ 最相似的top_n个
158
+
159
+ :return: The top_n of this CreateSearchJobReq.
160
+ :rtype: int
161
+ """
162
+ return self._top_n
163
+
164
+ @top_n.setter
165
+ def top_n(self, top_n):
166
+ """Sets the top_n of this CreateSearchJobReq.
167
+
168
+ 最相似的top_n个
169
+
170
+ :param top_n: The top_n of this CreateSearchJobReq.
171
+ :type top_n: int
172
+ """
173
+ self._top_n = top_n
174
+
175
+ @property
176
+ def databases(self):
177
+ """Gets the databases of this CreateSearchJobReq.
178
+
179
+ 可供搜索分子的公共数据库名称列表
180
+
181
+ :return: The databases of this CreateSearchJobReq.
182
+ :rtype: list[str]
183
+ """
184
+ return self._databases
185
+
186
+ @databases.setter
187
+ def databases(self, databases):
188
+ """Sets the databases of this CreateSearchJobReq.
189
+
190
+ 可供搜索分子的公共数据库名称列表
191
+
192
+ :param databases: The databases of this CreateSearchJobReq.
193
+ :type databases: list[str]
194
+ """
195
+ self._databases = databases
196
+
197
+ @property
198
+ def custom_databases(self):
199
+ """Gets the custom_databases of this CreateSearchJobReq.
200
+
201
+ 可供搜索分子的自定义数据库id列表
202
+
203
+ :return: The custom_databases of this CreateSearchJobReq.
204
+ :rtype: list[str]
205
+ """
206
+ return self._custom_databases
207
+
208
+ @custom_databases.setter
209
+ def custom_databases(self, custom_databases):
210
+ """Sets the custom_databases of this CreateSearchJobReq.
211
+
212
+ 可供搜索分子的自定义数据库id列表
213
+
214
+ :param custom_databases: The custom_databases of this CreateSearchJobReq.
215
+ :type custom_databases: list[str]
216
+ """
217
+ self._custom_databases = custom_databases
218
+
219
+ @property
220
+ def model_ids(self):
221
+ """Gets the model_ids of this CreateSearchJobReq.
222
+
223
+ 模型id列表
224
+
225
+ :return: The model_ids of this CreateSearchJobReq.
226
+ :rtype: list[str]
227
+ """
228
+ return self._model_ids
229
+
230
+ @model_ids.setter
231
+ def model_ids(self, model_ids):
232
+ """Sets the model_ids of this CreateSearchJobReq.
233
+
234
+ 模型id列表
235
+
236
+ :param model_ids: The model_ids of this CreateSearchJobReq.
237
+ :type model_ids: list[str]
238
+ """
239
+ self._model_ids = model_ids
240
+
241
+ @property
242
+ def search_method(self):
243
+ """Gets the search_method of this CreateSearchJobReq.
244
+
245
+ :return: The search_method of this CreateSearchJobReq.
246
+ :rtype: :class:`huaweicloudsdkeihealth.v1.SearchType`
247
+ """
248
+ return self._search_method
249
+
250
+ @search_method.setter
251
+ def search_method(self, search_method):
252
+ """Sets the search_method of this CreateSearchJobReq.
253
+
254
+ :param search_method: The search_method of this CreateSearchJobReq.
255
+ :type search_method: :class:`huaweicloudsdkeihealth.v1.SearchType`
256
+ """
257
+ self._search_method = search_method
258
+
259
+ def to_dict(self):
260
+ """Returns the model properties as a dict"""
261
+ result = {}
262
+
263
+ for attr, _ in six.iteritems(self.openapi_types):
264
+ value = getattr(self, attr)
265
+ if isinstance(value, list):
266
+ result[attr] = list(map(
267
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
268
+ value
269
+ ))
270
+ elif hasattr(value, "to_dict"):
271
+ result[attr] = value.to_dict()
272
+ elif isinstance(value, dict):
273
+ result[attr] = dict(map(
274
+ lambda item: (item[0], item[1].to_dict())
275
+ if hasattr(item[1], "to_dict") else item,
276
+ value.items()
277
+ ))
278
+ else:
279
+ if attr in self.sensitive_list:
280
+ result[attr] = "****"
281
+ else:
282
+ result[attr] = value
283
+
284
+ return result
285
+
286
+ def to_str(self):
287
+ """Returns the string representation of the model"""
288
+ import simplejson as json
289
+ if six.PY2:
290
+ import sys
291
+ reload(sys)
292
+ sys.setdefaultencoding("utf-8")
293
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
294
+
295
+ def __repr__(self):
296
+ """For `print`"""
297
+ return self.to_str()
298
+
299
+ def __eq__(self, other):
300
+ """Returns true if both objects are equal"""
301
+ if not isinstance(other, CreateSearchJobReq):
302
+ return False
303
+
304
+ return self.__dict__ == other.__dict__
305
+
306
+ def __ne__(self, other):
307
+ """Returns true if both objects are not equal"""
308
+ 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 CreateSearchJobRequest:
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': 'CreateSearchJobReq'
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
+ """CreateSearchJobRequest
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 CreateSearchJobRequest
37
+ :type body: :class:`huaweicloudsdkeihealth.v1.CreateSearchJobReq`
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 CreateSearchJobRequest.
53
+
54
+ 平台项目ID。
55
+
56
+ :return: The eihealth_project_id of this CreateSearchJobRequest.
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 CreateSearchJobRequest.
64
+
65
+ 平台项目ID。
66
+
67
+ :param eihealth_project_id: The eihealth_project_id of this CreateSearchJobRequest.
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 CreateSearchJobRequest.
75
+
76
+ :return: The body of this CreateSearchJobRequest.
77
+ :rtype: :class:`huaweicloudsdkeihealth.v1.CreateSearchJobReq`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ """Sets the body of this CreateSearchJobRequest.
84
+
85
+ :param body: The body of this CreateSearchJobRequest.
86
+ :type body: :class:`huaweicloudsdkeihealth.v1.CreateSearchJobReq`
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, CreateSearchJobRequest):
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,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 CreateSearchJobResponse(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
+ 'limit_concurrency': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'id': 'id',
27
+ 'limit_concurrency': 'limit_concurrency'
28
+ }
29
+
30
+ def __init__(self, id=None, limit_concurrency=None):
31
+ """CreateSearchJobResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param id: 作业id
36
+ :type id: str
37
+ :param limit_concurrency: 限制的并发量
38
+ :type limit_concurrency: int
39
+ """
40
+
41
+ super(CreateSearchJobResponse, self).__init__()
42
+
43
+ self._id = None
44
+ self._limit_concurrency = None
45
+ self.discriminator = None
46
+
47
+ if id is not None:
48
+ self.id = id
49
+ if limit_concurrency is not None:
50
+ self.limit_concurrency = limit_concurrency
51
+
52
+ @property
53
+ def id(self):
54
+ """Gets the id of this CreateSearchJobResponse.
55
+
56
+ 作业id
57
+
58
+ :return: The id of this CreateSearchJobResponse.
59
+ :rtype: str
60
+ """
61
+ return self._id
62
+
63
+ @id.setter
64
+ def id(self, id):
65
+ """Sets the id of this CreateSearchJobResponse.
66
+
67
+ 作业id
68
+
69
+ :param id: The id of this CreateSearchJobResponse.
70
+ :type id: str
71
+ """
72
+ self._id = id
73
+
74
+ @property
75
+ def limit_concurrency(self):
76
+ """Gets the limit_concurrency of this CreateSearchJobResponse.
77
+
78
+ 限制的并发量
79
+
80
+ :return: The limit_concurrency of this CreateSearchJobResponse.
81
+ :rtype: int
82
+ """
83
+ return self._limit_concurrency
84
+
85
+ @limit_concurrency.setter
86
+ def limit_concurrency(self, limit_concurrency):
87
+ """Sets the limit_concurrency of this CreateSearchJobResponse.
88
+
89
+ 限制的并发量
90
+
91
+ :param limit_concurrency: The limit_concurrency of this CreateSearchJobResponse.
92
+ :type limit_concurrency: int
93
+ """
94
+ self._limit_concurrency = limit_concurrency
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, CreateSearchJobResponse):
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