huaweicloudsdkeihealth 3.1.122__py2.py3-none-any.whl → 3.1.124__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 +24 -0
- huaweicloudsdkeihealth/v1/eihealth_async_client.py +492 -0
- huaweicloudsdkeihealth/v1/eihealth_client.py +492 -0
- huaweicloudsdkeihealth/v1/model/__init__.py +24 -0
- huaweicloudsdkeihealth/v1/model/bound_box_dto.py +171 -0
- huaweicloudsdkeihealth/v1/model/clustering_drug_file.py +197 -0
- huaweicloudsdkeihealth/v1/model/clustering_file_source.py +89 -0
- huaweicloudsdkeihealth/v1/model/convert_file.py +197 -0
- huaweicloudsdkeihealth/v1/model/create_clustering_job_req.py +134 -0
- huaweicloudsdkeihealth/v1/model/create_clustering_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_clustering_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/create_favorite_req.py +254 -0
- huaweicloudsdkeihealth/v1/model/create_favorite_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_favorite_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/create_mol_docking_job_req.py +163 -0
- huaweicloudsdkeihealth/v1/model/create_mol_docking_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_mol_docking_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/delete_favorite_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/delete_favorite_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/favorite_dto.py +376 -0
- huaweicloudsdkeihealth/v1/model/list_favorite_request.py +433 -0
- huaweicloudsdkeihealth/v1/model/list_favorite_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/optimization_mode.py +1 -0
- huaweicloudsdkeihealth/v1/model/receptor_dto.py +280 -0
- huaweicloudsdkeihealth/v1/model/run_format_converter_req.py +166 -0
- huaweicloudsdkeihealth/v1/model/run_format_converter_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/run_format_converter_response.py +112 -0
- huaweicloudsdkeihealth/v1/model/show_clustering_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_clustering_job_response.py +191 -0
- {huaweicloudsdkeihealth-3.1.122.dist-info → huaweicloudsdkeihealth-3.1.124.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.122.dist-info → huaweicloudsdkeihealth-3.1.124.dist-info}/RECORD +34 -10
- {huaweicloudsdkeihealth-3.1.122.dist-info → huaweicloudsdkeihealth-3.1.124.dist-info}/WHEEL +1 -1
- {huaweicloudsdkeihealth-3.1.122.dist-info → huaweicloudsdkeihealth-3.1.124.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.122.dist-info → huaweicloudsdkeihealth-3.1.124.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,280 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ReceptorDto:
|
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
|
+
'name': 'str',
|
21
|
+
'receptor': 'ReceptorDrugFile',
|
22
|
+
'bounding_box': 'BoundBoxDto',
|
23
|
+
'remove_ion': 'bool',
|
24
|
+
'remove_water': 'bool',
|
25
|
+
'remove_ligand': 'bool',
|
26
|
+
'add_hydrogen': 'bool'
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
'name': 'name',
|
31
|
+
'receptor': 'receptor',
|
32
|
+
'bounding_box': 'bounding_box',
|
33
|
+
'remove_ion': 'remove_ion',
|
34
|
+
'remove_water': 'remove_water',
|
35
|
+
'remove_ligand': 'remove_ligand',
|
36
|
+
'add_hydrogen': 'add_hydrogen'
|
37
|
+
}
|
38
|
+
|
39
|
+
def __init__(self, name=None, receptor=None, bounding_box=None, remove_ion=None, remove_water=None, remove_ligand=None, add_hydrogen=None):
|
40
|
+
"""ReceptorDto
|
41
|
+
|
42
|
+
The model defined in huaweicloud sdk
|
43
|
+
|
44
|
+
:param name: 靶点名称。
|
45
|
+
:type name: str
|
46
|
+
:param receptor:
|
47
|
+
:type receptor: :class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile`
|
48
|
+
:param bounding_box:
|
49
|
+
:type bounding_box: :class:`huaweicloudsdkeihealth.v1.BoundBoxDto`
|
50
|
+
:param remove_ion: 去除受体中的离子。
|
51
|
+
:type remove_ion: bool
|
52
|
+
:param remove_water: 去除受体中的水分子。
|
53
|
+
:type remove_water: bool
|
54
|
+
:param remove_ligand: 去除受体中的配体分子。
|
55
|
+
:type remove_ligand: bool
|
56
|
+
:param add_hydrogen: 增加氢原子。
|
57
|
+
:type add_hydrogen: bool
|
58
|
+
"""
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
self._name = None
|
63
|
+
self._receptor = None
|
64
|
+
self._bounding_box = None
|
65
|
+
self._remove_ion = None
|
66
|
+
self._remove_water = None
|
67
|
+
self._remove_ligand = None
|
68
|
+
self._add_hydrogen = None
|
69
|
+
self.discriminator = None
|
70
|
+
|
71
|
+
if name is not None:
|
72
|
+
self.name = name
|
73
|
+
self.receptor = receptor
|
74
|
+
if bounding_box is not None:
|
75
|
+
self.bounding_box = bounding_box
|
76
|
+
if remove_ion is not None:
|
77
|
+
self.remove_ion = remove_ion
|
78
|
+
if remove_water is not None:
|
79
|
+
self.remove_water = remove_water
|
80
|
+
if remove_ligand is not None:
|
81
|
+
self.remove_ligand = remove_ligand
|
82
|
+
if add_hydrogen is not None:
|
83
|
+
self.add_hydrogen = add_hydrogen
|
84
|
+
|
85
|
+
@property
|
86
|
+
def name(self):
|
87
|
+
"""Gets the name of this ReceptorDto.
|
88
|
+
|
89
|
+
靶点名称。
|
90
|
+
|
91
|
+
:return: The name of this ReceptorDto.
|
92
|
+
:rtype: str
|
93
|
+
"""
|
94
|
+
return self._name
|
95
|
+
|
96
|
+
@name.setter
|
97
|
+
def name(self, name):
|
98
|
+
"""Sets the name of this ReceptorDto.
|
99
|
+
|
100
|
+
靶点名称。
|
101
|
+
|
102
|
+
:param name: The name of this ReceptorDto.
|
103
|
+
:type name: str
|
104
|
+
"""
|
105
|
+
self._name = name
|
106
|
+
|
107
|
+
@property
|
108
|
+
def receptor(self):
|
109
|
+
"""Gets the receptor of this ReceptorDto.
|
110
|
+
|
111
|
+
:return: The receptor of this ReceptorDto.
|
112
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile`
|
113
|
+
"""
|
114
|
+
return self._receptor
|
115
|
+
|
116
|
+
@receptor.setter
|
117
|
+
def receptor(self, receptor):
|
118
|
+
"""Sets the receptor of this ReceptorDto.
|
119
|
+
|
120
|
+
:param receptor: The receptor of this ReceptorDto.
|
121
|
+
:type receptor: :class:`huaweicloudsdkeihealth.v1.ReceptorDrugFile`
|
122
|
+
"""
|
123
|
+
self._receptor = receptor
|
124
|
+
|
125
|
+
@property
|
126
|
+
def bounding_box(self):
|
127
|
+
"""Gets the bounding_box of this ReceptorDto.
|
128
|
+
|
129
|
+
:return: The bounding_box of this ReceptorDto.
|
130
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.BoundBoxDto`
|
131
|
+
"""
|
132
|
+
return self._bounding_box
|
133
|
+
|
134
|
+
@bounding_box.setter
|
135
|
+
def bounding_box(self, bounding_box):
|
136
|
+
"""Sets the bounding_box of this ReceptorDto.
|
137
|
+
|
138
|
+
:param bounding_box: The bounding_box of this ReceptorDto.
|
139
|
+
:type bounding_box: :class:`huaweicloudsdkeihealth.v1.BoundBoxDto`
|
140
|
+
"""
|
141
|
+
self._bounding_box = bounding_box
|
142
|
+
|
143
|
+
@property
|
144
|
+
def remove_ion(self):
|
145
|
+
"""Gets the remove_ion of this ReceptorDto.
|
146
|
+
|
147
|
+
去除受体中的离子。
|
148
|
+
|
149
|
+
:return: The remove_ion of this ReceptorDto.
|
150
|
+
:rtype: bool
|
151
|
+
"""
|
152
|
+
return self._remove_ion
|
153
|
+
|
154
|
+
@remove_ion.setter
|
155
|
+
def remove_ion(self, remove_ion):
|
156
|
+
"""Sets the remove_ion of this ReceptorDto.
|
157
|
+
|
158
|
+
去除受体中的离子。
|
159
|
+
|
160
|
+
:param remove_ion: The remove_ion of this ReceptorDto.
|
161
|
+
:type remove_ion: bool
|
162
|
+
"""
|
163
|
+
self._remove_ion = remove_ion
|
164
|
+
|
165
|
+
@property
|
166
|
+
def remove_water(self):
|
167
|
+
"""Gets the remove_water of this ReceptorDto.
|
168
|
+
|
169
|
+
去除受体中的水分子。
|
170
|
+
|
171
|
+
:return: The remove_water of this ReceptorDto.
|
172
|
+
:rtype: bool
|
173
|
+
"""
|
174
|
+
return self._remove_water
|
175
|
+
|
176
|
+
@remove_water.setter
|
177
|
+
def remove_water(self, remove_water):
|
178
|
+
"""Sets the remove_water of this ReceptorDto.
|
179
|
+
|
180
|
+
去除受体中的水分子。
|
181
|
+
|
182
|
+
:param remove_water: The remove_water of this ReceptorDto.
|
183
|
+
:type remove_water: bool
|
184
|
+
"""
|
185
|
+
self._remove_water = remove_water
|
186
|
+
|
187
|
+
@property
|
188
|
+
def remove_ligand(self):
|
189
|
+
"""Gets the remove_ligand of this ReceptorDto.
|
190
|
+
|
191
|
+
去除受体中的配体分子。
|
192
|
+
|
193
|
+
:return: The remove_ligand of this ReceptorDto.
|
194
|
+
:rtype: bool
|
195
|
+
"""
|
196
|
+
return self._remove_ligand
|
197
|
+
|
198
|
+
@remove_ligand.setter
|
199
|
+
def remove_ligand(self, remove_ligand):
|
200
|
+
"""Sets the remove_ligand of this ReceptorDto.
|
201
|
+
|
202
|
+
去除受体中的配体分子。
|
203
|
+
|
204
|
+
:param remove_ligand: The remove_ligand of this ReceptorDto.
|
205
|
+
:type remove_ligand: bool
|
206
|
+
"""
|
207
|
+
self._remove_ligand = remove_ligand
|
208
|
+
|
209
|
+
@property
|
210
|
+
def add_hydrogen(self):
|
211
|
+
"""Gets the add_hydrogen of this ReceptorDto.
|
212
|
+
|
213
|
+
增加氢原子。
|
214
|
+
|
215
|
+
:return: The add_hydrogen of this ReceptorDto.
|
216
|
+
:rtype: bool
|
217
|
+
"""
|
218
|
+
return self._add_hydrogen
|
219
|
+
|
220
|
+
@add_hydrogen.setter
|
221
|
+
def add_hydrogen(self, add_hydrogen):
|
222
|
+
"""Sets the add_hydrogen of this ReceptorDto.
|
223
|
+
|
224
|
+
增加氢原子。
|
225
|
+
|
226
|
+
:param add_hydrogen: The add_hydrogen of this ReceptorDto.
|
227
|
+
:type add_hydrogen: bool
|
228
|
+
"""
|
229
|
+
self._add_hydrogen = add_hydrogen
|
230
|
+
|
231
|
+
def to_dict(self):
|
232
|
+
"""Returns the model properties as a dict"""
|
233
|
+
result = {}
|
234
|
+
|
235
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
236
|
+
value = getattr(self, attr)
|
237
|
+
if isinstance(value, list):
|
238
|
+
result[attr] = list(map(
|
239
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
240
|
+
value
|
241
|
+
))
|
242
|
+
elif hasattr(value, "to_dict"):
|
243
|
+
result[attr] = value.to_dict()
|
244
|
+
elif isinstance(value, dict):
|
245
|
+
result[attr] = dict(map(
|
246
|
+
lambda item: (item[0], item[1].to_dict())
|
247
|
+
if hasattr(item[1], "to_dict") else item,
|
248
|
+
value.items()
|
249
|
+
))
|
250
|
+
else:
|
251
|
+
if attr in self.sensitive_list:
|
252
|
+
result[attr] = "****"
|
253
|
+
else:
|
254
|
+
result[attr] = value
|
255
|
+
|
256
|
+
return result
|
257
|
+
|
258
|
+
def to_str(self):
|
259
|
+
"""Returns the string representation of the model"""
|
260
|
+
import simplejson as json
|
261
|
+
if six.PY2:
|
262
|
+
import sys
|
263
|
+
reload(sys)
|
264
|
+
sys.setdefaultencoding("utf-8")
|
265
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
266
|
+
|
267
|
+
def __repr__(self):
|
268
|
+
"""For `print`"""
|
269
|
+
return self.to_str()
|
270
|
+
|
271
|
+
def __eq__(self, other):
|
272
|
+
"""Returns true if both objects are equal"""
|
273
|
+
if not isinstance(other, ReceptorDto):
|
274
|
+
return False
|
275
|
+
|
276
|
+
return self.__dict__ == other.__dict__
|
277
|
+
|
278
|
+
def __ne__(self, other):
|
279
|
+
"""Returns true if both objects are not equal"""
|
280
|
+
return not self == other
|
@@ -0,0 +1,166 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class RunFormatConverterReq:
|
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
|
+
'file': 'ConvertFile',
|
21
|
+
'in_format': 'str',
|
22
|
+
'out_format': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'file': 'file',
|
27
|
+
'in_format': 'in_format',
|
28
|
+
'out_format': 'out_format'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, file=None, in_format=None, out_format=None):
|
32
|
+
"""RunFormatConverterReq
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param file:
|
37
|
+
:type file: :class:`huaweicloudsdkeihealth.v1.ConvertFile`
|
38
|
+
:param in_format: 待转换文件格式,支持PDB、SDF、MOL2、SMI。
|
39
|
+
:type in_format: str
|
40
|
+
:param out_format: 转换后文件格式,支持PDB、SDF、MOL2、SMI。
|
41
|
+
:type out_format: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._file = None
|
47
|
+
self._in_format = None
|
48
|
+
self._out_format = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.file = file
|
52
|
+
self.in_format = in_format
|
53
|
+
self.out_format = out_format
|
54
|
+
|
55
|
+
@property
|
56
|
+
def file(self):
|
57
|
+
"""Gets the file of this RunFormatConverterReq.
|
58
|
+
|
59
|
+
:return: The file of this RunFormatConverterReq.
|
60
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ConvertFile`
|
61
|
+
"""
|
62
|
+
return self._file
|
63
|
+
|
64
|
+
@file.setter
|
65
|
+
def file(self, file):
|
66
|
+
"""Sets the file of this RunFormatConverterReq.
|
67
|
+
|
68
|
+
:param file: The file of this RunFormatConverterReq.
|
69
|
+
:type file: :class:`huaweicloudsdkeihealth.v1.ConvertFile`
|
70
|
+
"""
|
71
|
+
self._file = file
|
72
|
+
|
73
|
+
@property
|
74
|
+
def in_format(self):
|
75
|
+
"""Gets the in_format of this RunFormatConverterReq.
|
76
|
+
|
77
|
+
待转换文件格式,支持PDB、SDF、MOL2、SMI。
|
78
|
+
|
79
|
+
:return: The in_format of this RunFormatConverterReq.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._in_format
|
83
|
+
|
84
|
+
@in_format.setter
|
85
|
+
def in_format(self, in_format):
|
86
|
+
"""Sets the in_format of this RunFormatConverterReq.
|
87
|
+
|
88
|
+
待转换文件格式,支持PDB、SDF、MOL2、SMI。
|
89
|
+
|
90
|
+
:param in_format: The in_format of this RunFormatConverterReq.
|
91
|
+
:type in_format: str
|
92
|
+
"""
|
93
|
+
self._in_format = in_format
|
94
|
+
|
95
|
+
@property
|
96
|
+
def out_format(self):
|
97
|
+
"""Gets the out_format of this RunFormatConverterReq.
|
98
|
+
|
99
|
+
转换后文件格式,支持PDB、SDF、MOL2、SMI。
|
100
|
+
|
101
|
+
:return: The out_format of this RunFormatConverterReq.
|
102
|
+
:rtype: str
|
103
|
+
"""
|
104
|
+
return self._out_format
|
105
|
+
|
106
|
+
@out_format.setter
|
107
|
+
def out_format(self, out_format):
|
108
|
+
"""Sets the out_format of this RunFormatConverterReq.
|
109
|
+
|
110
|
+
转换后文件格式,支持PDB、SDF、MOL2、SMI。
|
111
|
+
|
112
|
+
:param out_format: The out_format of this RunFormatConverterReq.
|
113
|
+
:type out_format: str
|
114
|
+
"""
|
115
|
+
self._out_format = out_format
|
116
|
+
|
117
|
+
def to_dict(self):
|
118
|
+
"""Returns the model properties as a dict"""
|
119
|
+
result = {}
|
120
|
+
|
121
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
122
|
+
value = getattr(self, attr)
|
123
|
+
if isinstance(value, list):
|
124
|
+
result[attr] = list(map(
|
125
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
126
|
+
value
|
127
|
+
))
|
128
|
+
elif hasattr(value, "to_dict"):
|
129
|
+
result[attr] = value.to_dict()
|
130
|
+
elif isinstance(value, dict):
|
131
|
+
result[attr] = dict(map(
|
132
|
+
lambda item: (item[0], item[1].to_dict())
|
133
|
+
if hasattr(item[1], "to_dict") else item,
|
134
|
+
value.items()
|
135
|
+
))
|
136
|
+
else:
|
137
|
+
if attr in self.sensitive_list:
|
138
|
+
result[attr] = "****"
|
139
|
+
else:
|
140
|
+
result[attr] = value
|
141
|
+
|
142
|
+
return result
|
143
|
+
|
144
|
+
def to_str(self):
|
145
|
+
"""Returns the string representation of the model"""
|
146
|
+
import simplejson as json
|
147
|
+
if six.PY2:
|
148
|
+
import sys
|
149
|
+
reload(sys)
|
150
|
+
sys.setdefaultencoding("utf-8")
|
151
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
152
|
+
|
153
|
+
def __repr__(self):
|
154
|
+
"""For `print`"""
|
155
|
+
return self.to_str()
|
156
|
+
|
157
|
+
def __eq__(self, other):
|
158
|
+
"""Returns true if both objects are equal"""
|
159
|
+
if not isinstance(other, RunFormatConverterReq):
|
160
|
+
return False
|
161
|
+
|
162
|
+
return self.__dict__ == other.__dict__
|
163
|
+
|
164
|
+
def __ne__(self, other):
|
165
|
+
"""Returns true if both objects are not equal"""
|
166
|
+
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 RunFormatConverterRequest:
|
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': 'RunFormatConverterReq'
|
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
|
+
"""RunFormatConverterRequest
|
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 RunFormatConverterRequest
|
37
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.RunFormatConverterReq`
|
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 RunFormatConverterRequest.
|
53
|
+
|
54
|
+
平台项目ID。
|
55
|
+
|
56
|
+
:return: The eihealth_project_id of this RunFormatConverterRequest.
|
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 RunFormatConverterRequest.
|
64
|
+
|
65
|
+
平台项目ID。
|
66
|
+
|
67
|
+
:param eihealth_project_id: The eihealth_project_id of this RunFormatConverterRequest.
|
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 RunFormatConverterRequest.
|
75
|
+
|
76
|
+
:return: The body of this RunFormatConverterRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.RunFormatConverterReq`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
"""Sets the body of this RunFormatConverterRequest.
|
84
|
+
|
85
|
+
:param body: The body of this RunFormatConverterRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.RunFormatConverterReq`
|
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, RunFormatConverterRequest):
|
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,112 @@
|
|
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 RunFormatConverterResponse(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
|
+
'body': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'body': 'body'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, body=None):
|
29
|
+
"""RunFormatConverterResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param body:
|
34
|
+
:type body: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(RunFormatConverterResponse, self).__init__()
|
38
|
+
|
39
|
+
self._body = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if body is not None:
|
43
|
+
self.body = body
|
44
|
+
|
45
|
+
@property
|
46
|
+
def body(self):
|
47
|
+
"""Gets the body of this RunFormatConverterResponse.
|
48
|
+
|
49
|
+
:return: The body of this RunFormatConverterResponse.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._body
|
53
|
+
|
54
|
+
@body.setter
|
55
|
+
def body(self, body):
|
56
|
+
"""Sets the body of this RunFormatConverterResponse.
|
57
|
+
|
58
|
+
:param body: The body of this RunFormatConverterResponse.
|
59
|
+
:type body: str
|
60
|
+
"""
|
61
|
+
self._body = body
|
62
|
+
|
63
|
+
def to_dict(self):
|
64
|
+
"""Returns the model properties as a dict"""
|
65
|
+
result = {}
|
66
|
+
|
67
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
68
|
+
value = getattr(self, attr)
|
69
|
+
if isinstance(value, list):
|
70
|
+
result[attr] = list(map(
|
71
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
72
|
+
value
|
73
|
+
))
|
74
|
+
elif hasattr(value, "to_dict"):
|
75
|
+
result[attr] = value.to_dict()
|
76
|
+
elif isinstance(value, dict):
|
77
|
+
result[attr] = dict(map(
|
78
|
+
lambda item: (item[0], item[1].to_dict())
|
79
|
+
if hasattr(item[1], "to_dict") else item,
|
80
|
+
value.items()
|
81
|
+
))
|
82
|
+
else:
|
83
|
+
if attr in self.sensitive_list:
|
84
|
+
result[attr] = "****"
|
85
|
+
else:
|
86
|
+
result[attr] = value
|
87
|
+
|
88
|
+
return result
|
89
|
+
|
90
|
+
def to_str(self):
|
91
|
+
"""Returns the string representation of the model"""
|
92
|
+
import simplejson as json
|
93
|
+
if six.PY2:
|
94
|
+
import sys
|
95
|
+
reload(sys)
|
96
|
+
sys.setdefaultencoding("utf-8")
|
97
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
98
|
+
|
99
|
+
def __repr__(self):
|
100
|
+
"""For `print`"""
|
101
|
+
return self.to_str()
|
102
|
+
|
103
|
+
def __eq__(self, other):
|
104
|
+
"""Returns true if both objects are equal"""
|
105
|
+
if not isinstance(other, RunFormatConverterResponse):
|
106
|
+
return False
|
107
|
+
|
108
|
+
return self.__dict__ == other.__dict__
|
109
|
+
|
110
|
+
def __ne__(self, other):
|
111
|
+
"""Returns true if both objects are not equal"""
|
112
|
+
return not self == other
|