huaweicloudsdkeihealth 3.1.94__py2.py3-none-any.whl → 3.1.96__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.
- huaweicloudsdkeihealth/v1/__init__.py +44 -0
- huaweicloudsdkeihealth/v1/eihealth_async_client.py +1057 -52
- huaweicloudsdkeihealth/v1/eihealth_client.py +1057 -52
- huaweicloudsdkeihealth/v1/model/__init__.py +44 -0
- huaweicloudsdkeihealth/v1/model/add_drug_database_file_req.py +139 -0
- huaweicloudsdkeihealth/v1/model/add_drug_database_file_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/add_drug_database_file_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/bind_site_dto.py +30 -1
- huaweicloudsdkeihealth/v1/model/create_css_cluster_req.py +170 -0
- huaweicloudsdkeihealth/v1/model/create_css_cluster_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/create_css_cluster_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/create_database_req2.py +252 -0
- huaweicloudsdkeihealth/v1/model/create_drug_database_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/create_drug_database_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_req.py +198 -0
- huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/create_optm_job_req.py +30 -1
- huaweicloudsdkeihealth/v1/model/create_search_job_req.py +308 -0
- huaweicloudsdkeihealth/v1/model/create_search_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_search_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/css_cluster_dto.py +202 -0
- huaweicloudsdkeihealth/v1/model/database_file.py +167 -0
- huaweicloudsdkeihealth/v1/model/database_file_source.py +88 -0
- huaweicloudsdkeihealth/v1/model/delete_css_cluster_request.py +114 -0
- huaweicloudsdkeihealth/v1/model/delete_css_cluster_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/delete_drug_database_request.py +114 -0
- huaweicloudsdkeihealth/v1/model/delete_drug_database_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/detail_database_file.py +225 -0
- huaweicloudsdkeihealth/v1/model/download_data_req.py +61 -3
- huaweicloudsdkeihealth/v1/model/drug_database_dto.py +521 -0
- huaweicloudsdkeihealth/v1/model/get_archive_config_rsp.py +3 -32
- huaweicloudsdkeihealth/v1/model/list_css_cluster_request.py +144 -0
- huaweicloudsdkeihealth/v1/model/list_css_cluster_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_drug_database_request.py +260 -0
- huaweicloudsdkeihealth/v1/model/list_drug_database_response.py +174 -0
- huaweicloudsdkeihealth/v1/model/list_term_tenant_css_cluster_request.py +144 -0
- huaweicloudsdkeihealth/v1/model/list_term_tenant_css_cluster_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/search_type.py +88 -0
- huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_response.py +174 -0
- huaweicloudsdkeihealth/v1/model/show_optm_job_response.py +30 -1
- huaweicloudsdkeihealth/v1/model/show_search_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_search_job_response.py +340 -0
- huaweicloudsdkeihealth/v1/model/term_tenant_css_cluster_dto.py +173 -0
- huaweicloudsdkeihealth/v1/model/update_drug_database_req.py +114 -0
- huaweicloudsdkeihealth/v1/model/update_drug_database_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/update_drug_database_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/update_drug_job_req.py +115 -0
- huaweicloudsdkeihealth/v1/model/update_drug_job_request.py +167 -0
- huaweicloudsdkeihealth/v1/model/update_drug_job_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/upload_data_request.py +1 -175
- huaweicloudsdkeihealth/v1/model/upload_data_request_body.py +177 -3
- huaweicloudsdkeihealth/v1/model/validate_css_connection_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/validate_css_connection_response.py +145 -0
- {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.96.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.96.dist-info}/RECORD +60 -16
- {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.96.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.96.dist-info}/WHEEL +0 -0
- {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.96.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,340 @@
|
|
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 ShowSearchJobResponse(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
|
+
'basic_info': 'DrugJobDto',
|
22
|
+
'smiles': 'str',
|
23
|
+
'scaffold': 'str',
|
24
|
+
'top_n': 'int',
|
25
|
+
'databases': 'list[str]',
|
26
|
+
'custom_databases': 'list[str]',
|
27
|
+
'models': 'list[BasicDrugModel]',
|
28
|
+
'search_method': 'SearchType',
|
29
|
+
'part_failed_reason': 'list[FailedReasonRecord]'
|
30
|
+
}
|
31
|
+
|
32
|
+
attribute_map = {
|
33
|
+
'basic_info': 'basic_info',
|
34
|
+
'smiles': 'smiles',
|
35
|
+
'scaffold': 'scaffold',
|
36
|
+
'top_n': 'top_n',
|
37
|
+
'databases': 'databases',
|
38
|
+
'custom_databases': 'custom_databases',
|
39
|
+
'models': 'models',
|
40
|
+
'search_method': 'search_method',
|
41
|
+
'part_failed_reason': 'part_failed_reason'
|
42
|
+
}
|
43
|
+
|
44
|
+
def __init__(self, basic_info=None, smiles=None, scaffold=None, top_n=None, databases=None, custom_databases=None, models=None, search_method=None, part_failed_reason=None):
|
45
|
+
"""ShowSearchJobResponse
|
46
|
+
|
47
|
+
The model defined in huaweicloud sdk
|
48
|
+
|
49
|
+
:param basic_info:
|
50
|
+
:type basic_info: :class:`huaweicloudsdkeihealth.v1.DrugJobDto`
|
51
|
+
:param smiles: 分子SMILES表达式
|
52
|
+
:type smiles: str
|
53
|
+
:param scaffold: 分子骨架表达式
|
54
|
+
:type scaffold: str
|
55
|
+
:param top_n: 生成分子数量
|
56
|
+
:type top_n: int
|
57
|
+
:param databases: 可供搜索分子的公共数据库名称列表
|
58
|
+
:type databases: list[str]
|
59
|
+
:param custom_databases: 可供搜索分子的自定义数据库名称列表
|
60
|
+
:type custom_databases: list[str]
|
61
|
+
:param models: 模型信息
|
62
|
+
:type models: list[:class:`huaweicloudsdkeihealth.v1.BasicDrugModel`]
|
63
|
+
:param search_method:
|
64
|
+
:type search_method: :class:`huaweicloudsdkeihealth.v1.SearchType`
|
65
|
+
:param part_failed_reason: 部分失败原因和数量
|
66
|
+
:type part_failed_reason: list[:class:`huaweicloudsdkeihealth.v1.FailedReasonRecord`]
|
67
|
+
"""
|
68
|
+
|
69
|
+
super(ShowSearchJobResponse, self).__init__()
|
70
|
+
|
71
|
+
self._basic_info = None
|
72
|
+
self._smiles = None
|
73
|
+
self._scaffold = None
|
74
|
+
self._top_n = None
|
75
|
+
self._databases = None
|
76
|
+
self._custom_databases = None
|
77
|
+
self._models = None
|
78
|
+
self._search_method = None
|
79
|
+
self._part_failed_reason = None
|
80
|
+
self.discriminator = None
|
81
|
+
|
82
|
+
if basic_info is not None:
|
83
|
+
self.basic_info = basic_info
|
84
|
+
if smiles is not None:
|
85
|
+
self.smiles = smiles
|
86
|
+
if scaffold is not None:
|
87
|
+
self.scaffold = scaffold
|
88
|
+
if top_n is not None:
|
89
|
+
self.top_n = top_n
|
90
|
+
if databases is not None:
|
91
|
+
self.databases = databases
|
92
|
+
if custom_databases is not None:
|
93
|
+
self.custom_databases = custom_databases
|
94
|
+
if models is not None:
|
95
|
+
self.models = models
|
96
|
+
if search_method is not None:
|
97
|
+
self.search_method = search_method
|
98
|
+
if part_failed_reason is not None:
|
99
|
+
self.part_failed_reason = part_failed_reason
|
100
|
+
|
101
|
+
@property
|
102
|
+
def basic_info(self):
|
103
|
+
"""Gets the basic_info of this ShowSearchJobResponse.
|
104
|
+
|
105
|
+
:return: The basic_info of this ShowSearchJobResponse.
|
106
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.DrugJobDto`
|
107
|
+
"""
|
108
|
+
return self._basic_info
|
109
|
+
|
110
|
+
@basic_info.setter
|
111
|
+
def basic_info(self, basic_info):
|
112
|
+
"""Sets the basic_info of this ShowSearchJobResponse.
|
113
|
+
|
114
|
+
:param basic_info: The basic_info of this ShowSearchJobResponse.
|
115
|
+
:type basic_info: :class:`huaweicloudsdkeihealth.v1.DrugJobDto`
|
116
|
+
"""
|
117
|
+
self._basic_info = basic_info
|
118
|
+
|
119
|
+
@property
|
120
|
+
def smiles(self):
|
121
|
+
"""Gets the smiles of this ShowSearchJobResponse.
|
122
|
+
|
123
|
+
分子SMILES表达式
|
124
|
+
|
125
|
+
:return: The smiles of this ShowSearchJobResponse.
|
126
|
+
:rtype: str
|
127
|
+
"""
|
128
|
+
return self._smiles
|
129
|
+
|
130
|
+
@smiles.setter
|
131
|
+
def smiles(self, smiles):
|
132
|
+
"""Sets the smiles of this ShowSearchJobResponse.
|
133
|
+
|
134
|
+
分子SMILES表达式
|
135
|
+
|
136
|
+
:param smiles: The smiles of this ShowSearchJobResponse.
|
137
|
+
:type smiles: str
|
138
|
+
"""
|
139
|
+
self._smiles = smiles
|
140
|
+
|
141
|
+
@property
|
142
|
+
def scaffold(self):
|
143
|
+
"""Gets the scaffold of this ShowSearchJobResponse.
|
144
|
+
|
145
|
+
分子骨架表达式
|
146
|
+
|
147
|
+
:return: The scaffold of this ShowSearchJobResponse.
|
148
|
+
:rtype: str
|
149
|
+
"""
|
150
|
+
return self._scaffold
|
151
|
+
|
152
|
+
@scaffold.setter
|
153
|
+
def scaffold(self, scaffold):
|
154
|
+
"""Sets the scaffold of this ShowSearchJobResponse.
|
155
|
+
|
156
|
+
分子骨架表达式
|
157
|
+
|
158
|
+
:param scaffold: The scaffold of this ShowSearchJobResponse.
|
159
|
+
:type scaffold: str
|
160
|
+
"""
|
161
|
+
self._scaffold = scaffold
|
162
|
+
|
163
|
+
@property
|
164
|
+
def top_n(self):
|
165
|
+
"""Gets the top_n of this ShowSearchJobResponse.
|
166
|
+
|
167
|
+
生成分子数量
|
168
|
+
|
169
|
+
:return: The top_n of this ShowSearchJobResponse.
|
170
|
+
:rtype: int
|
171
|
+
"""
|
172
|
+
return self._top_n
|
173
|
+
|
174
|
+
@top_n.setter
|
175
|
+
def top_n(self, top_n):
|
176
|
+
"""Sets the top_n of this ShowSearchJobResponse.
|
177
|
+
|
178
|
+
生成分子数量
|
179
|
+
|
180
|
+
:param top_n: The top_n of this ShowSearchJobResponse.
|
181
|
+
:type top_n: int
|
182
|
+
"""
|
183
|
+
self._top_n = top_n
|
184
|
+
|
185
|
+
@property
|
186
|
+
def databases(self):
|
187
|
+
"""Gets the databases of this ShowSearchJobResponse.
|
188
|
+
|
189
|
+
可供搜索分子的公共数据库名称列表
|
190
|
+
|
191
|
+
:return: The databases of this ShowSearchJobResponse.
|
192
|
+
:rtype: list[str]
|
193
|
+
"""
|
194
|
+
return self._databases
|
195
|
+
|
196
|
+
@databases.setter
|
197
|
+
def databases(self, databases):
|
198
|
+
"""Sets the databases of this ShowSearchJobResponse.
|
199
|
+
|
200
|
+
可供搜索分子的公共数据库名称列表
|
201
|
+
|
202
|
+
:param databases: The databases of this ShowSearchJobResponse.
|
203
|
+
:type databases: list[str]
|
204
|
+
"""
|
205
|
+
self._databases = databases
|
206
|
+
|
207
|
+
@property
|
208
|
+
def custom_databases(self):
|
209
|
+
"""Gets the custom_databases of this ShowSearchJobResponse.
|
210
|
+
|
211
|
+
可供搜索分子的自定义数据库名称列表
|
212
|
+
|
213
|
+
:return: The custom_databases of this ShowSearchJobResponse.
|
214
|
+
:rtype: list[str]
|
215
|
+
"""
|
216
|
+
return self._custom_databases
|
217
|
+
|
218
|
+
@custom_databases.setter
|
219
|
+
def custom_databases(self, custom_databases):
|
220
|
+
"""Sets the custom_databases of this ShowSearchJobResponse.
|
221
|
+
|
222
|
+
可供搜索分子的自定义数据库名称列表
|
223
|
+
|
224
|
+
:param custom_databases: The custom_databases of this ShowSearchJobResponse.
|
225
|
+
:type custom_databases: list[str]
|
226
|
+
"""
|
227
|
+
self._custom_databases = custom_databases
|
228
|
+
|
229
|
+
@property
|
230
|
+
def models(self):
|
231
|
+
"""Gets the models of this ShowSearchJobResponse.
|
232
|
+
|
233
|
+
模型信息
|
234
|
+
|
235
|
+
:return: The models of this ShowSearchJobResponse.
|
236
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.BasicDrugModel`]
|
237
|
+
"""
|
238
|
+
return self._models
|
239
|
+
|
240
|
+
@models.setter
|
241
|
+
def models(self, models):
|
242
|
+
"""Sets the models of this ShowSearchJobResponse.
|
243
|
+
|
244
|
+
模型信息
|
245
|
+
|
246
|
+
:param models: The models of this ShowSearchJobResponse.
|
247
|
+
:type models: list[:class:`huaweicloudsdkeihealth.v1.BasicDrugModel`]
|
248
|
+
"""
|
249
|
+
self._models = models
|
250
|
+
|
251
|
+
@property
|
252
|
+
def search_method(self):
|
253
|
+
"""Gets the search_method of this ShowSearchJobResponse.
|
254
|
+
|
255
|
+
:return: The search_method of this ShowSearchJobResponse.
|
256
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.SearchType`
|
257
|
+
"""
|
258
|
+
return self._search_method
|
259
|
+
|
260
|
+
@search_method.setter
|
261
|
+
def search_method(self, search_method):
|
262
|
+
"""Sets the search_method of this ShowSearchJobResponse.
|
263
|
+
|
264
|
+
:param search_method: The search_method of this ShowSearchJobResponse.
|
265
|
+
:type search_method: :class:`huaweicloudsdkeihealth.v1.SearchType`
|
266
|
+
"""
|
267
|
+
self._search_method = search_method
|
268
|
+
|
269
|
+
@property
|
270
|
+
def part_failed_reason(self):
|
271
|
+
"""Gets the part_failed_reason of this ShowSearchJobResponse.
|
272
|
+
|
273
|
+
部分失败原因和数量
|
274
|
+
|
275
|
+
:return: The part_failed_reason of this ShowSearchJobResponse.
|
276
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.FailedReasonRecord`]
|
277
|
+
"""
|
278
|
+
return self._part_failed_reason
|
279
|
+
|
280
|
+
@part_failed_reason.setter
|
281
|
+
def part_failed_reason(self, part_failed_reason):
|
282
|
+
"""Sets the part_failed_reason of this ShowSearchJobResponse.
|
283
|
+
|
284
|
+
部分失败原因和数量
|
285
|
+
|
286
|
+
:param part_failed_reason: The part_failed_reason of this ShowSearchJobResponse.
|
287
|
+
:type part_failed_reason: list[:class:`huaweicloudsdkeihealth.v1.FailedReasonRecord`]
|
288
|
+
"""
|
289
|
+
self._part_failed_reason = part_failed_reason
|
290
|
+
|
291
|
+
def to_dict(self):
|
292
|
+
"""Returns the model properties as a dict"""
|
293
|
+
result = {}
|
294
|
+
|
295
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
296
|
+
value = getattr(self, attr)
|
297
|
+
if isinstance(value, list):
|
298
|
+
result[attr] = list(map(
|
299
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
300
|
+
value
|
301
|
+
))
|
302
|
+
elif hasattr(value, "to_dict"):
|
303
|
+
result[attr] = value.to_dict()
|
304
|
+
elif isinstance(value, dict):
|
305
|
+
result[attr] = dict(map(
|
306
|
+
lambda item: (item[0], item[1].to_dict())
|
307
|
+
if hasattr(item[1], "to_dict") else item,
|
308
|
+
value.items()
|
309
|
+
))
|
310
|
+
else:
|
311
|
+
if attr in self.sensitive_list:
|
312
|
+
result[attr] = "****"
|
313
|
+
else:
|
314
|
+
result[attr] = value
|
315
|
+
|
316
|
+
return result
|
317
|
+
|
318
|
+
def to_str(self):
|
319
|
+
"""Returns the string representation of the model"""
|
320
|
+
import simplejson as json
|
321
|
+
if six.PY2:
|
322
|
+
import sys
|
323
|
+
reload(sys)
|
324
|
+
sys.setdefaultencoding("utf-8")
|
325
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
326
|
+
|
327
|
+
def __repr__(self):
|
328
|
+
"""For `print`"""
|
329
|
+
return self.to_str()
|
330
|
+
|
331
|
+
def __eq__(self, other):
|
332
|
+
"""Returns true if both objects are equal"""
|
333
|
+
if not isinstance(other, ShowSearchJobResponse):
|
334
|
+
return False
|
335
|
+
|
336
|
+
return self.__dict__ == other.__dict__
|
337
|
+
|
338
|
+
def __ne__(self, other):
|
339
|
+
"""Returns true if both objects are not equal"""
|
340
|
+
return not self == other
|
@@ -0,0 +1,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class TermTenantCssClusterDto:
|
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
|
+
'css_id': 'str',
|
21
|
+
'name': 'str',
|
22
|
+
'is_active': 'bool'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'css_id': 'css_id',
|
27
|
+
'name': 'name',
|
28
|
+
'is_active': 'is_active'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, css_id=None, name=None, is_active=None):
|
32
|
+
"""TermTenantCssClusterDto
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param css_id: css集群id
|
37
|
+
:type css_id: str
|
38
|
+
:param name: css集群名称
|
39
|
+
:type name: str
|
40
|
+
:param is_active: 集群是否可用
|
41
|
+
:type is_active: bool
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._css_id = None
|
47
|
+
self._name = None
|
48
|
+
self._is_active = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if css_id is not None:
|
52
|
+
self.css_id = css_id
|
53
|
+
if name is not None:
|
54
|
+
self.name = name
|
55
|
+
if is_active is not None:
|
56
|
+
self.is_active = is_active
|
57
|
+
|
58
|
+
@property
|
59
|
+
def css_id(self):
|
60
|
+
"""Gets the css_id of this TermTenantCssClusterDto.
|
61
|
+
|
62
|
+
css集群id
|
63
|
+
|
64
|
+
:return: The css_id of this TermTenantCssClusterDto.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._css_id
|
68
|
+
|
69
|
+
@css_id.setter
|
70
|
+
def css_id(self, css_id):
|
71
|
+
"""Sets the css_id of this TermTenantCssClusterDto.
|
72
|
+
|
73
|
+
css集群id
|
74
|
+
|
75
|
+
:param css_id: The css_id of this TermTenantCssClusterDto.
|
76
|
+
:type css_id: str
|
77
|
+
"""
|
78
|
+
self._css_id = css_id
|
79
|
+
|
80
|
+
@property
|
81
|
+
def name(self):
|
82
|
+
"""Gets the name of this TermTenantCssClusterDto.
|
83
|
+
|
84
|
+
css集群名称
|
85
|
+
|
86
|
+
:return: The name of this TermTenantCssClusterDto.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._name
|
90
|
+
|
91
|
+
@name.setter
|
92
|
+
def name(self, name):
|
93
|
+
"""Sets the name of this TermTenantCssClusterDto.
|
94
|
+
|
95
|
+
css集群名称
|
96
|
+
|
97
|
+
:param name: The name of this TermTenantCssClusterDto.
|
98
|
+
:type name: str
|
99
|
+
"""
|
100
|
+
self._name = name
|
101
|
+
|
102
|
+
@property
|
103
|
+
def is_active(self):
|
104
|
+
"""Gets the is_active of this TermTenantCssClusterDto.
|
105
|
+
|
106
|
+
集群是否可用
|
107
|
+
|
108
|
+
:return: The is_active of this TermTenantCssClusterDto.
|
109
|
+
:rtype: bool
|
110
|
+
"""
|
111
|
+
return self._is_active
|
112
|
+
|
113
|
+
@is_active.setter
|
114
|
+
def is_active(self, is_active):
|
115
|
+
"""Sets the is_active of this TermTenantCssClusterDto.
|
116
|
+
|
117
|
+
集群是否可用
|
118
|
+
|
119
|
+
:param is_active: The is_active of this TermTenantCssClusterDto.
|
120
|
+
:type is_active: bool
|
121
|
+
"""
|
122
|
+
self._is_active = is_active
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, TermTenantCssClusterDto):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
return not self == other
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateDrugDatabaseReq:
|
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
|
+
'shareable': 'bool'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'shareable': 'shareable'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, shareable=None):
|
28
|
+
"""UpdateDrugDatabaseReq
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param shareable: 是否共享
|
33
|
+
:type shareable: bool
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._shareable = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.shareable = shareable
|
42
|
+
|
43
|
+
@property
|
44
|
+
def shareable(self):
|
45
|
+
"""Gets the shareable of this UpdateDrugDatabaseReq.
|
46
|
+
|
47
|
+
是否共享
|
48
|
+
|
49
|
+
:return: The shareable of this UpdateDrugDatabaseReq.
|
50
|
+
:rtype: bool
|
51
|
+
"""
|
52
|
+
return self._shareable
|
53
|
+
|
54
|
+
@shareable.setter
|
55
|
+
def shareable(self, shareable):
|
56
|
+
"""Sets the shareable of this UpdateDrugDatabaseReq.
|
57
|
+
|
58
|
+
是否共享
|
59
|
+
|
60
|
+
:param shareable: The shareable of this UpdateDrugDatabaseReq.
|
61
|
+
:type shareable: bool
|
62
|
+
"""
|
63
|
+
self._shareable = shareable
|
64
|
+
|
65
|
+
def to_dict(self):
|
66
|
+
"""Returns the model properties as a dict"""
|
67
|
+
result = {}
|
68
|
+
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
70
|
+
value = getattr(self, attr)
|
71
|
+
if isinstance(value, list):
|
72
|
+
result[attr] = list(map(
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
74
|
+
value
|
75
|
+
))
|
76
|
+
elif hasattr(value, "to_dict"):
|
77
|
+
result[attr] = value.to_dict()
|
78
|
+
elif isinstance(value, dict):
|
79
|
+
result[attr] = dict(map(
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
82
|
+
value.items()
|
83
|
+
))
|
84
|
+
else:
|
85
|
+
if attr in self.sensitive_list:
|
86
|
+
result[attr] = "****"
|
87
|
+
else:
|
88
|
+
result[attr] = value
|
89
|
+
|
90
|
+
return result
|
91
|
+
|
92
|
+
def to_str(self):
|
93
|
+
"""Returns the string representation of the model"""
|
94
|
+
import simplejson as json
|
95
|
+
if six.PY2:
|
96
|
+
import sys
|
97
|
+
reload(sys)
|
98
|
+
sys.setdefaultencoding("utf-8")
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
100
|
+
|
101
|
+
def __repr__(self):
|
102
|
+
"""For `print`"""
|
103
|
+
return self.to_str()
|
104
|
+
|
105
|
+
def __eq__(self, other):
|
106
|
+
"""Returns true if both objects are equal"""
|
107
|
+
if not isinstance(other, UpdateDrugDatabaseReq):
|
108
|
+
return False
|
109
|
+
|
110
|
+
return self.__dict__ == other.__dict__
|
111
|
+
|
112
|
+
def __ne__(self, other):
|
113
|
+
"""Returns true if both objects are not equal"""
|
114
|
+
return not self == other
|