huaweicloudsdkeihealth 3.1.122__py2.py3-none-any.whl → 3.1.123__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.123.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.122.dist-info → huaweicloudsdkeihealth-3.1.123.dist-info}/RECORD +34 -10
- {huaweicloudsdkeihealth-3.1.122.dist-info → huaweicloudsdkeihealth-3.1.123.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.122.dist-info → huaweicloudsdkeihealth-3.1.123.dist-info}/WHEEL +0 -0
- {huaweicloudsdkeihealth-3.1.122.dist-info → huaweicloudsdkeihealth-3.1.123.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,171 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BoundBoxDto:
|
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
|
+
'center': 'list[float]',
|
21
|
+
'size': 'list[float]',
|
22
|
+
'padding': 'float'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'center': 'center',
|
27
|
+
'size': 'size',
|
28
|
+
'padding': 'padding'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, center=None, size=None, padding=None):
|
32
|
+
"""BoundBoxDto
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param center: 口袋中心坐标,x、y、z轴的坐标。
|
37
|
+
:type center: list[float]
|
38
|
+
:param size: 口袋尺寸大小,x、y、z轴的大小。
|
39
|
+
:type size: list[float]
|
40
|
+
:param padding: 填充。
|
41
|
+
:type padding: float
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._center = None
|
47
|
+
self._size = None
|
48
|
+
self._padding = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.center = center
|
52
|
+
self.size = size
|
53
|
+
if padding is not None:
|
54
|
+
self.padding = padding
|
55
|
+
|
56
|
+
@property
|
57
|
+
def center(self):
|
58
|
+
"""Gets the center of this BoundBoxDto.
|
59
|
+
|
60
|
+
口袋中心坐标,x、y、z轴的坐标。
|
61
|
+
|
62
|
+
:return: The center of this BoundBoxDto.
|
63
|
+
:rtype: list[float]
|
64
|
+
"""
|
65
|
+
return self._center
|
66
|
+
|
67
|
+
@center.setter
|
68
|
+
def center(self, center):
|
69
|
+
"""Sets the center of this BoundBoxDto.
|
70
|
+
|
71
|
+
口袋中心坐标,x、y、z轴的坐标。
|
72
|
+
|
73
|
+
:param center: The center of this BoundBoxDto.
|
74
|
+
:type center: list[float]
|
75
|
+
"""
|
76
|
+
self._center = center
|
77
|
+
|
78
|
+
@property
|
79
|
+
def size(self):
|
80
|
+
"""Gets the size of this BoundBoxDto.
|
81
|
+
|
82
|
+
口袋尺寸大小,x、y、z轴的大小。
|
83
|
+
|
84
|
+
:return: The size of this BoundBoxDto.
|
85
|
+
:rtype: list[float]
|
86
|
+
"""
|
87
|
+
return self._size
|
88
|
+
|
89
|
+
@size.setter
|
90
|
+
def size(self, size):
|
91
|
+
"""Sets the size of this BoundBoxDto.
|
92
|
+
|
93
|
+
口袋尺寸大小,x、y、z轴的大小。
|
94
|
+
|
95
|
+
:param size: The size of this BoundBoxDto.
|
96
|
+
:type size: list[float]
|
97
|
+
"""
|
98
|
+
self._size = size
|
99
|
+
|
100
|
+
@property
|
101
|
+
def padding(self):
|
102
|
+
"""Gets the padding of this BoundBoxDto.
|
103
|
+
|
104
|
+
填充。
|
105
|
+
|
106
|
+
:return: The padding of this BoundBoxDto.
|
107
|
+
:rtype: float
|
108
|
+
"""
|
109
|
+
return self._padding
|
110
|
+
|
111
|
+
@padding.setter
|
112
|
+
def padding(self, padding):
|
113
|
+
"""Sets the padding of this BoundBoxDto.
|
114
|
+
|
115
|
+
填充。
|
116
|
+
|
117
|
+
:param padding: The padding of this BoundBoxDto.
|
118
|
+
:type padding: float
|
119
|
+
"""
|
120
|
+
self._padding = padding
|
121
|
+
|
122
|
+
def to_dict(self):
|
123
|
+
"""Returns the model properties as a dict"""
|
124
|
+
result = {}
|
125
|
+
|
126
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
127
|
+
value = getattr(self, attr)
|
128
|
+
if isinstance(value, list):
|
129
|
+
result[attr] = list(map(
|
130
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
131
|
+
value
|
132
|
+
))
|
133
|
+
elif hasattr(value, "to_dict"):
|
134
|
+
result[attr] = value.to_dict()
|
135
|
+
elif isinstance(value, dict):
|
136
|
+
result[attr] = dict(map(
|
137
|
+
lambda item: (item[0], item[1].to_dict())
|
138
|
+
if hasattr(item[1], "to_dict") else item,
|
139
|
+
value.items()
|
140
|
+
))
|
141
|
+
else:
|
142
|
+
if attr in self.sensitive_list:
|
143
|
+
result[attr] = "****"
|
144
|
+
else:
|
145
|
+
result[attr] = value
|
146
|
+
|
147
|
+
return result
|
148
|
+
|
149
|
+
def to_str(self):
|
150
|
+
"""Returns the string representation of the model"""
|
151
|
+
import simplejson as json
|
152
|
+
if six.PY2:
|
153
|
+
import sys
|
154
|
+
reload(sys)
|
155
|
+
sys.setdefaultencoding("utf-8")
|
156
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
157
|
+
|
158
|
+
def __repr__(self):
|
159
|
+
"""For `print`"""
|
160
|
+
return self.to_str()
|
161
|
+
|
162
|
+
def __eq__(self, other):
|
163
|
+
"""Returns true if both objects are equal"""
|
164
|
+
if not isinstance(other, BoundBoxDto):
|
165
|
+
return False
|
166
|
+
|
167
|
+
return self.__dict__ == other.__dict__
|
168
|
+
|
169
|
+
def __ne__(self, other):
|
170
|
+
"""Returns true if both objects are not equal"""
|
171
|
+
return not self == other
|
@@ -0,0 +1,197 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ClusteringDrugFile:
|
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
|
+
'source': 'ClusteringFileSource',
|
21
|
+
'url': 'str',
|
22
|
+
'format': 'str',
|
23
|
+
'data': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'source': 'source',
|
28
|
+
'url': 'url',
|
29
|
+
'format': 'format',
|
30
|
+
'data': 'data'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, source=None, url=None, format=None, data=None):
|
34
|
+
"""ClusteringDrugFile
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param source:
|
39
|
+
:type source: :class:`huaweicloudsdkeihealth.v1.ClusteringFileSource`
|
40
|
+
:param url: 文件URL,当数据源为用户私有数据中心为项目路径,为公共数据场景时为obs地址。
|
41
|
+
:type url: str
|
42
|
+
:param format: 文件格式,支持SMI,仅数据源为RAW时提供。
|
43
|
+
:type format: str
|
44
|
+
:param data: 文件原始数据,仅数据源为RAW时提供。
|
45
|
+
:type data: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._source = None
|
51
|
+
self._url = None
|
52
|
+
self._format = None
|
53
|
+
self._data = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.source = source
|
57
|
+
if url is not None:
|
58
|
+
self.url = url
|
59
|
+
if format is not None:
|
60
|
+
self.format = format
|
61
|
+
if data is not None:
|
62
|
+
self.data = data
|
63
|
+
|
64
|
+
@property
|
65
|
+
def source(self):
|
66
|
+
"""Gets the source of this ClusteringDrugFile.
|
67
|
+
|
68
|
+
:return: The source of this ClusteringDrugFile.
|
69
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.ClusteringFileSource`
|
70
|
+
"""
|
71
|
+
return self._source
|
72
|
+
|
73
|
+
@source.setter
|
74
|
+
def source(self, source):
|
75
|
+
"""Sets the source of this ClusteringDrugFile.
|
76
|
+
|
77
|
+
:param source: The source of this ClusteringDrugFile.
|
78
|
+
:type source: :class:`huaweicloudsdkeihealth.v1.ClusteringFileSource`
|
79
|
+
"""
|
80
|
+
self._source = source
|
81
|
+
|
82
|
+
@property
|
83
|
+
def url(self):
|
84
|
+
"""Gets the url of this ClusteringDrugFile.
|
85
|
+
|
86
|
+
文件URL,当数据源为用户私有数据中心为项目路径,为公共数据场景时为obs地址。
|
87
|
+
|
88
|
+
:return: The url of this ClusteringDrugFile.
|
89
|
+
:rtype: str
|
90
|
+
"""
|
91
|
+
return self._url
|
92
|
+
|
93
|
+
@url.setter
|
94
|
+
def url(self, url):
|
95
|
+
"""Sets the url of this ClusteringDrugFile.
|
96
|
+
|
97
|
+
文件URL,当数据源为用户私有数据中心为项目路径,为公共数据场景时为obs地址。
|
98
|
+
|
99
|
+
:param url: The url of this ClusteringDrugFile.
|
100
|
+
:type url: str
|
101
|
+
"""
|
102
|
+
self._url = url
|
103
|
+
|
104
|
+
@property
|
105
|
+
def format(self):
|
106
|
+
"""Gets the format of this ClusteringDrugFile.
|
107
|
+
|
108
|
+
文件格式,支持SMI,仅数据源为RAW时提供。
|
109
|
+
|
110
|
+
:return: The format of this ClusteringDrugFile.
|
111
|
+
:rtype: str
|
112
|
+
"""
|
113
|
+
return self._format
|
114
|
+
|
115
|
+
@format.setter
|
116
|
+
def format(self, format):
|
117
|
+
"""Sets the format of this ClusteringDrugFile.
|
118
|
+
|
119
|
+
文件格式,支持SMI,仅数据源为RAW时提供。
|
120
|
+
|
121
|
+
:param format: The format of this ClusteringDrugFile.
|
122
|
+
:type format: str
|
123
|
+
"""
|
124
|
+
self._format = format
|
125
|
+
|
126
|
+
@property
|
127
|
+
def data(self):
|
128
|
+
"""Gets the data of this ClusteringDrugFile.
|
129
|
+
|
130
|
+
文件原始数据,仅数据源为RAW时提供。
|
131
|
+
|
132
|
+
:return: The data of this ClusteringDrugFile.
|
133
|
+
:rtype: str
|
134
|
+
"""
|
135
|
+
return self._data
|
136
|
+
|
137
|
+
@data.setter
|
138
|
+
def data(self, data):
|
139
|
+
"""Sets the data of this ClusteringDrugFile.
|
140
|
+
|
141
|
+
文件原始数据,仅数据源为RAW时提供。
|
142
|
+
|
143
|
+
:param data: The data of this ClusteringDrugFile.
|
144
|
+
:type data: str
|
145
|
+
"""
|
146
|
+
self._data = data
|
147
|
+
|
148
|
+
def to_dict(self):
|
149
|
+
"""Returns the model properties as a dict"""
|
150
|
+
result = {}
|
151
|
+
|
152
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
153
|
+
value = getattr(self, attr)
|
154
|
+
if isinstance(value, list):
|
155
|
+
result[attr] = list(map(
|
156
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
157
|
+
value
|
158
|
+
))
|
159
|
+
elif hasattr(value, "to_dict"):
|
160
|
+
result[attr] = value.to_dict()
|
161
|
+
elif isinstance(value, dict):
|
162
|
+
result[attr] = dict(map(
|
163
|
+
lambda item: (item[0], item[1].to_dict())
|
164
|
+
if hasattr(item[1], "to_dict") else item,
|
165
|
+
value.items()
|
166
|
+
))
|
167
|
+
else:
|
168
|
+
if attr in self.sensitive_list:
|
169
|
+
result[attr] = "****"
|
170
|
+
else:
|
171
|
+
result[attr] = value
|
172
|
+
|
173
|
+
return result
|
174
|
+
|
175
|
+
def to_str(self):
|
176
|
+
"""Returns the string representation of the model"""
|
177
|
+
import simplejson as json
|
178
|
+
if six.PY2:
|
179
|
+
import sys
|
180
|
+
reload(sys)
|
181
|
+
sys.setdefaultencoding("utf-8")
|
182
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
183
|
+
|
184
|
+
def __repr__(self):
|
185
|
+
"""For `print`"""
|
186
|
+
return self.to_str()
|
187
|
+
|
188
|
+
def __eq__(self, other):
|
189
|
+
"""Returns true if both objects are equal"""
|
190
|
+
if not isinstance(other, ClusteringDrugFile):
|
191
|
+
return False
|
192
|
+
|
193
|
+
return self.__dict__ == other.__dict__
|
194
|
+
|
195
|
+
def __ne__(self, other):
|
196
|
+
"""Returns true if both objects are not equal"""
|
197
|
+
return not self == other
|
@@ -0,0 +1,89 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ClusteringFileSource:
|
9
|
+
"""
|
10
|
+
allowed enum values
|
11
|
+
"""
|
12
|
+
PRIVATE = "PRIVATE"
|
13
|
+
PUBLIC = "PUBLIC"
|
14
|
+
RAW = "RAW"
|
15
|
+
"""
|
16
|
+
Attributes:
|
17
|
+
openapi_types (dict): The key is attribute name
|
18
|
+
and the value is attribute type.
|
19
|
+
attribute_map (dict): The key is attribute name
|
20
|
+
and the value is json key in definition.
|
21
|
+
"""
|
22
|
+
sensitive_list = []
|
23
|
+
|
24
|
+
openapi_types = {
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self):
|
31
|
+
"""ClusteringFileSource
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
"""
|
36
|
+
|
37
|
+
|
38
|
+
self.discriminator = None
|
39
|
+
|
40
|
+
def to_dict(self):
|
41
|
+
"""Returns the model properties as a dict"""
|
42
|
+
result = {}
|
43
|
+
|
44
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
45
|
+
value = getattr(self, attr)
|
46
|
+
if isinstance(value, list):
|
47
|
+
result[attr] = list(map(
|
48
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
49
|
+
value
|
50
|
+
))
|
51
|
+
elif hasattr(value, "to_dict"):
|
52
|
+
result[attr] = value.to_dict()
|
53
|
+
elif isinstance(value, dict):
|
54
|
+
result[attr] = dict(map(
|
55
|
+
lambda item: (item[0], item[1].to_dict())
|
56
|
+
if hasattr(item[1], "to_dict") else item,
|
57
|
+
value.items()
|
58
|
+
))
|
59
|
+
else:
|
60
|
+
if attr in self.sensitive_list:
|
61
|
+
result[attr] = "****"
|
62
|
+
else:
|
63
|
+
result[attr] = value
|
64
|
+
|
65
|
+
return result
|
66
|
+
|
67
|
+
def to_str(self):
|
68
|
+
"""Returns the string representation of the model"""
|
69
|
+
import simplejson as json
|
70
|
+
if six.PY2:
|
71
|
+
import sys
|
72
|
+
reload(sys)
|
73
|
+
sys.setdefaultencoding("utf-8")
|
74
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
75
|
+
|
76
|
+
def __repr__(self):
|
77
|
+
"""For `print`"""
|
78
|
+
return self.to_str()
|
79
|
+
|
80
|
+
def __eq__(self, other):
|
81
|
+
"""Returns true if both objects are equal"""
|
82
|
+
if not isinstance(other, ClusteringFileSource):
|
83
|
+
return False
|
84
|
+
|
85
|
+
return self.__dict__ == other.__dict__
|
86
|
+
|
87
|
+
def __ne__(self, other):
|
88
|
+
"""Returns true if both objects are not equal"""
|
89
|
+
return not self == other
|
@@ -0,0 +1,197 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ConvertFile:
|
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
|
+
'source': 'DrugFileSource',
|
21
|
+
'url': 'str',
|
22
|
+
'format': 'str',
|
23
|
+
'data': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'source': 'source',
|
28
|
+
'url': 'url',
|
29
|
+
'format': 'format',
|
30
|
+
'data': 'data'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, source=None, url=None, format=None, data=None):
|
34
|
+
"""ConvertFile
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param source:
|
39
|
+
:type source: :class:`huaweicloudsdkeihealth.v1.DrugFileSource`
|
40
|
+
:param url: 文件URL,当数据源为外部网络数据时为https地址,为用户私有数据中心时为项目路径,为公共数据场景时为obs地址。
|
41
|
+
:type url: str
|
42
|
+
:param format: 文件格式,仅支持PDB、SDF、MOL2、SMI,仅数据源为RAW时提供。
|
43
|
+
:type format: str
|
44
|
+
:param data: 文件原始数据,仅数据源为RAW时提供。
|
45
|
+
:type data: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._source = None
|
51
|
+
self._url = None
|
52
|
+
self._format = None
|
53
|
+
self._data = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.source = source
|
57
|
+
if url is not None:
|
58
|
+
self.url = url
|
59
|
+
if format is not None:
|
60
|
+
self.format = format
|
61
|
+
if data is not None:
|
62
|
+
self.data = data
|
63
|
+
|
64
|
+
@property
|
65
|
+
def source(self):
|
66
|
+
"""Gets the source of this ConvertFile.
|
67
|
+
|
68
|
+
:return: The source of this ConvertFile.
|
69
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.DrugFileSource`
|
70
|
+
"""
|
71
|
+
return self._source
|
72
|
+
|
73
|
+
@source.setter
|
74
|
+
def source(self, source):
|
75
|
+
"""Sets the source of this ConvertFile.
|
76
|
+
|
77
|
+
:param source: The source of this ConvertFile.
|
78
|
+
:type source: :class:`huaweicloudsdkeihealth.v1.DrugFileSource`
|
79
|
+
"""
|
80
|
+
self._source = source
|
81
|
+
|
82
|
+
@property
|
83
|
+
def url(self):
|
84
|
+
"""Gets the url of this ConvertFile.
|
85
|
+
|
86
|
+
文件URL,当数据源为外部网络数据时为https地址,为用户私有数据中心时为项目路径,为公共数据场景时为obs地址。
|
87
|
+
|
88
|
+
:return: The url of this ConvertFile.
|
89
|
+
:rtype: str
|
90
|
+
"""
|
91
|
+
return self._url
|
92
|
+
|
93
|
+
@url.setter
|
94
|
+
def url(self, url):
|
95
|
+
"""Sets the url of this ConvertFile.
|
96
|
+
|
97
|
+
文件URL,当数据源为外部网络数据时为https地址,为用户私有数据中心时为项目路径,为公共数据场景时为obs地址。
|
98
|
+
|
99
|
+
:param url: The url of this ConvertFile.
|
100
|
+
:type url: str
|
101
|
+
"""
|
102
|
+
self._url = url
|
103
|
+
|
104
|
+
@property
|
105
|
+
def format(self):
|
106
|
+
"""Gets the format of this ConvertFile.
|
107
|
+
|
108
|
+
文件格式,仅支持PDB、SDF、MOL2、SMI,仅数据源为RAW时提供。
|
109
|
+
|
110
|
+
:return: The format of this ConvertFile.
|
111
|
+
:rtype: str
|
112
|
+
"""
|
113
|
+
return self._format
|
114
|
+
|
115
|
+
@format.setter
|
116
|
+
def format(self, format):
|
117
|
+
"""Sets the format of this ConvertFile.
|
118
|
+
|
119
|
+
文件格式,仅支持PDB、SDF、MOL2、SMI,仅数据源为RAW时提供。
|
120
|
+
|
121
|
+
:param format: The format of this ConvertFile.
|
122
|
+
:type format: str
|
123
|
+
"""
|
124
|
+
self._format = format
|
125
|
+
|
126
|
+
@property
|
127
|
+
def data(self):
|
128
|
+
"""Gets the data of this ConvertFile.
|
129
|
+
|
130
|
+
文件原始数据,仅数据源为RAW时提供。
|
131
|
+
|
132
|
+
:return: The data of this ConvertFile.
|
133
|
+
:rtype: str
|
134
|
+
"""
|
135
|
+
return self._data
|
136
|
+
|
137
|
+
@data.setter
|
138
|
+
def data(self, data):
|
139
|
+
"""Sets the data of this ConvertFile.
|
140
|
+
|
141
|
+
文件原始数据,仅数据源为RAW时提供。
|
142
|
+
|
143
|
+
:param data: The data of this ConvertFile.
|
144
|
+
:type data: str
|
145
|
+
"""
|
146
|
+
self._data = data
|
147
|
+
|
148
|
+
def to_dict(self):
|
149
|
+
"""Returns the model properties as a dict"""
|
150
|
+
result = {}
|
151
|
+
|
152
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
153
|
+
value = getattr(self, attr)
|
154
|
+
if isinstance(value, list):
|
155
|
+
result[attr] = list(map(
|
156
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
157
|
+
value
|
158
|
+
))
|
159
|
+
elif hasattr(value, "to_dict"):
|
160
|
+
result[attr] = value.to_dict()
|
161
|
+
elif isinstance(value, dict):
|
162
|
+
result[attr] = dict(map(
|
163
|
+
lambda item: (item[0], item[1].to_dict())
|
164
|
+
if hasattr(item[1], "to_dict") else item,
|
165
|
+
value.items()
|
166
|
+
))
|
167
|
+
else:
|
168
|
+
if attr in self.sensitive_list:
|
169
|
+
result[attr] = "****"
|
170
|
+
else:
|
171
|
+
result[attr] = value
|
172
|
+
|
173
|
+
return result
|
174
|
+
|
175
|
+
def to_str(self):
|
176
|
+
"""Returns the string representation of the model"""
|
177
|
+
import simplejson as json
|
178
|
+
if six.PY2:
|
179
|
+
import sys
|
180
|
+
reload(sys)
|
181
|
+
sys.setdefaultencoding("utf-8")
|
182
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
183
|
+
|
184
|
+
def __repr__(self):
|
185
|
+
"""For `print`"""
|
186
|
+
return self.to_str()
|
187
|
+
|
188
|
+
def __eq__(self, other):
|
189
|
+
"""Returns true if both objects are equal"""
|
190
|
+
if not isinstance(other, ConvertFile):
|
191
|
+
return False
|
192
|
+
|
193
|
+
return self.__dict__ == other.__dict__
|
194
|
+
|
195
|
+
def __ne__(self, other):
|
196
|
+
"""Returns true if both objects are not equal"""
|
197
|
+
return not self == other
|