huaweicloudsdkeihealth 3.1.121__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.121.dist-info → huaweicloudsdkeihealth-3.1.123.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.121.dist-info → huaweicloudsdkeihealth-3.1.123.dist-info}/RECORD +34 -10
- {huaweicloudsdkeihealth-3.1.121.dist-info → huaweicloudsdkeihealth-3.1.123.dist-info}/WHEEL +1 -1
- {huaweicloudsdkeihealth-3.1.121.dist-info → huaweicloudsdkeihealth-3.1.123.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.121.dist-info → huaweicloudsdkeihealth-3.1.123.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DeleteFavoriteRequest:
|
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
|
+
'favorite_id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'eihealth_project_id': 'eihealth_project_id',
|
26
|
+
'favorite_id': 'favorite_id'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, eihealth_project_id=None, favorite_id=None):
|
30
|
+
"""DeleteFavoriteRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param eihealth_project_id: 平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。
|
35
|
+
:type eihealth_project_id: str
|
36
|
+
:param favorite_id: 收藏ID。
|
37
|
+
:type favorite_id: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._eihealth_project_id = None
|
43
|
+
self._favorite_id = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.eihealth_project_id = eihealth_project_id
|
47
|
+
self.favorite_id = favorite_id
|
48
|
+
|
49
|
+
@property
|
50
|
+
def eihealth_project_id(self):
|
51
|
+
"""Gets the eihealth_project_id of this DeleteFavoriteRequest.
|
52
|
+
|
53
|
+
平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。
|
54
|
+
|
55
|
+
:return: The eihealth_project_id of this DeleteFavoriteRequest.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._eihealth_project_id
|
59
|
+
|
60
|
+
@eihealth_project_id.setter
|
61
|
+
def eihealth_project_id(self, eihealth_project_id):
|
62
|
+
"""Sets the eihealth_project_id of this DeleteFavoriteRequest.
|
63
|
+
|
64
|
+
平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。
|
65
|
+
|
66
|
+
:param eihealth_project_id: The eihealth_project_id of this DeleteFavoriteRequest.
|
67
|
+
:type eihealth_project_id: str
|
68
|
+
"""
|
69
|
+
self._eihealth_project_id = eihealth_project_id
|
70
|
+
|
71
|
+
@property
|
72
|
+
def favorite_id(self):
|
73
|
+
"""Gets the favorite_id of this DeleteFavoriteRequest.
|
74
|
+
|
75
|
+
收藏ID。
|
76
|
+
|
77
|
+
:return: The favorite_id of this DeleteFavoriteRequest.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._favorite_id
|
81
|
+
|
82
|
+
@favorite_id.setter
|
83
|
+
def favorite_id(self, favorite_id):
|
84
|
+
"""Sets the favorite_id of this DeleteFavoriteRequest.
|
85
|
+
|
86
|
+
收藏ID。
|
87
|
+
|
88
|
+
:param favorite_id: The favorite_id of this DeleteFavoriteRequest.
|
89
|
+
:type favorite_id: str
|
90
|
+
"""
|
91
|
+
self._favorite_id = favorite_id
|
92
|
+
|
93
|
+
def to_dict(self):
|
94
|
+
"""Returns the model properties as a dict"""
|
95
|
+
result = {}
|
96
|
+
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
98
|
+
value = getattr(self, attr)
|
99
|
+
if isinstance(value, list):
|
100
|
+
result[attr] = list(map(
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
102
|
+
value
|
103
|
+
))
|
104
|
+
elif hasattr(value, "to_dict"):
|
105
|
+
result[attr] = value.to_dict()
|
106
|
+
elif isinstance(value, dict):
|
107
|
+
result[attr] = dict(map(
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
110
|
+
value.items()
|
111
|
+
))
|
112
|
+
else:
|
113
|
+
if attr in self.sensitive_list:
|
114
|
+
result[attr] = "****"
|
115
|
+
else:
|
116
|
+
result[attr] = value
|
117
|
+
|
118
|
+
return result
|
119
|
+
|
120
|
+
def to_str(self):
|
121
|
+
"""Returns the string representation of the model"""
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
128
|
+
|
129
|
+
def __repr__(self):
|
130
|
+
"""For `print`"""
|
131
|
+
return self.to_str()
|
132
|
+
|
133
|
+
def __eq__(self, other):
|
134
|
+
"""Returns true if both objects are equal"""
|
135
|
+
if not isinstance(other, DeleteFavoriteRequest):
|
136
|
+
return False
|
137
|
+
|
138
|
+
return self.__dict__ == other.__dict__
|
139
|
+
|
140
|
+
def __ne__(self, other):
|
141
|
+
"""Returns true if both objects are not equal"""
|
142
|
+
return not self == other
|
@@ -0,0 +1,85 @@
|
|
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 DeleteFavoriteResponse(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
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
}
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
"""DeleteFavoriteResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(DeleteFavoriteResponse, self).__init__()
|
34
|
+
self.discriminator = None
|
35
|
+
|
36
|
+
def to_dict(self):
|
37
|
+
"""Returns the model properties as a dict"""
|
38
|
+
result = {}
|
39
|
+
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
41
|
+
value = getattr(self, attr)
|
42
|
+
if isinstance(value, list):
|
43
|
+
result[attr] = list(map(
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
45
|
+
value
|
46
|
+
))
|
47
|
+
elif hasattr(value, "to_dict"):
|
48
|
+
result[attr] = value.to_dict()
|
49
|
+
elif isinstance(value, dict):
|
50
|
+
result[attr] = dict(map(
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
53
|
+
value.items()
|
54
|
+
))
|
55
|
+
else:
|
56
|
+
if attr in self.sensitive_list:
|
57
|
+
result[attr] = "****"
|
58
|
+
else:
|
59
|
+
result[attr] = value
|
60
|
+
|
61
|
+
return result
|
62
|
+
|
63
|
+
def to_str(self):
|
64
|
+
"""Returns the string representation of the model"""
|
65
|
+
import simplejson as json
|
66
|
+
if six.PY2:
|
67
|
+
import sys
|
68
|
+
reload(sys)
|
69
|
+
sys.setdefaultencoding("utf-8")
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
71
|
+
|
72
|
+
def __repr__(self):
|
73
|
+
"""For `print`"""
|
74
|
+
return self.to_str()
|
75
|
+
|
76
|
+
def __eq__(self, other):
|
77
|
+
"""Returns true if both objects are equal"""
|
78
|
+
if not isinstance(other, DeleteFavoriteResponse):
|
79
|
+
return False
|
80
|
+
|
81
|
+
return self.__dict__ == other.__dict__
|
82
|
+
|
83
|
+
def __ne__(self, other):
|
84
|
+
"""Returns true if both objects are not equal"""
|
85
|
+
return not self == other
|
@@ -0,0 +1,376 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class FavoriteDto:
|
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
|
+
'id': 'str',
|
21
|
+
'type': 'str',
|
22
|
+
'user_id': 'str',
|
23
|
+
'user_name': 'str',
|
24
|
+
'create_time': 'str',
|
25
|
+
'resource_id': 'str',
|
26
|
+
'resource_name': 'str',
|
27
|
+
'resource_type': 'str',
|
28
|
+
'display_info': 'str',
|
29
|
+
'location_info': 'str'
|
30
|
+
}
|
31
|
+
|
32
|
+
attribute_map = {
|
33
|
+
'id': 'id',
|
34
|
+
'type': 'type',
|
35
|
+
'user_id': 'user_id',
|
36
|
+
'user_name': 'user_name',
|
37
|
+
'create_time': 'create_time',
|
38
|
+
'resource_id': 'resource_id',
|
39
|
+
'resource_name': 'resource_name',
|
40
|
+
'resource_type': 'resource_type',
|
41
|
+
'display_info': 'display_info',
|
42
|
+
'location_info': 'location_info'
|
43
|
+
}
|
44
|
+
|
45
|
+
def __init__(self, id=None, type=None, user_id=None, user_name=None, create_time=None, resource_id=None, resource_name=None, resource_type=None, display_info=None, location_info=None):
|
46
|
+
"""FavoriteDto
|
47
|
+
|
48
|
+
The model defined in huaweicloud sdk
|
49
|
+
|
50
|
+
:param id: 收藏ID。
|
51
|
+
:type id: str
|
52
|
+
:param type: 收藏类型。
|
53
|
+
:type type: str
|
54
|
+
:param user_id: 收藏者的用户ID。
|
55
|
+
:type user_id: str
|
56
|
+
:param user_name: 收藏者的用户名称。
|
57
|
+
:type user_name: str
|
58
|
+
:param create_time: 收藏时间。
|
59
|
+
:type create_time: str
|
60
|
+
:param resource_id: 资源ID。
|
61
|
+
:type resource_id: str
|
62
|
+
:param resource_name: 资源名称。
|
63
|
+
:type resource_name: str
|
64
|
+
:param resource_type: 资源类型。
|
65
|
+
:type resource_type: str
|
66
|
+
:param display_info: 展示信息。
|
67
|
+
:type display_info: str
|
68
|
+
:param location_info: 定位信息。
|
69
|
+
:type location_info: str
|
70
|
+
"""
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
self._id = None
|
75
|
+
self._type = None
|
76
|
+
self._user_id = None
|
77
|
+
self._user_name = None
|
78
|
+
self._create_time = None
|
79
|
+
self._resource_id = None
|
80
|
+
self._resource_name = None
|
81
|
+
self._resource_type = None
|
82
|
+
self._display_info = None
|
83
|
+
self._location_info = None
|
84
|
+
self.discriminator = None
|
85
|
+
|
86
|
+
if id is not None:
|
87
|
+
self.id = id
|
88
|
+
if type is not None:
|
89
|
+
self.type = type
|
90
|
+
if user_id is not None:
|
91
|
+
self.user_id = user_id
|
92
|
+
if user_name is not None:
|
93
|
+
self.user_name = user_name
|
94
|
+
if create_time is not None:
|
95
|
+
self.create_time = create_time
|
96
|
+
if resource_id is not None:
|
97
|
+
self.resource_id = resource_id
|
98
|
+
if resource_name is not None:
|
99
|
+
self.resource_name = resource_name
|
100
|
+
if resource_type is not None:
|
101
|
+
self.resource_type = resource_type
|
102
|
+
if display_info is not None:
|
103
|
+
self.display_info = display_info
|
104
|
+
if location_info is not None:
|
105
|
+
self.location_info = location_info
|
106
|
+
|
107
|
+
@property
|
108
|
+
def id(self):
|
109
|
+
"""Gets the id of this FavoriteDto.
|
110
|
+
|
111
|
+
收藏ID。
|
112
|
+
|
113
|
+
:return: The id of this FavoriteDto.
|
114
|
+
:rtype: str
|
115
|
+
"""
|
116
|
+
return self._id
|
117
|
+
|
118
|
+
@id.setter
|
119
|
+
def id(self, id):
|
120
|
+
"""Sets the id of this FavoriteDto.
|
121
|
+
|
122
|
+
收藏ID。
|
123
|
+
|
124
|
+
:param id: The id of this FavoriteDto.
|
125
|
+
:type id: str
|
126
|
+
"""
|
127
|
+
self._id = id
|
128
|
+
|
129
|
+
@property
|
130
|
+
def type(self):
|
131
|
+
"""Gets the type of this FavoriteDto.
|
132
|
+
|
133
|
+
收藏类型。
|
134
|
+
|
135
|
+
:return: The type of this FavoriteDto.
|
136
|
+
:rtype: str
|
137
|
+
"""
|
138
|
+
return self._type
|
139
|
+
|
140
|
+
@type.setter
|
141
|
+
def type(self, type):
|
142
|
+
"""Sets the type of this FavoriteDto.
|
143
|
+
|
144
|
+
收藏类型。
|
145
|
+
|
146
|
+
:param type: The type of this FavoriteDto.
|
147
|
+
:type type: str
|
148
|
+
"""
|
149
|
+
self._type = type
|
150
|
+
|
151
|
+
@property
|
152
|
+
def user_id(self):
|
153
|
+
"""Gets the user_id of this FavoriteDto.
|
154
|
+
|
155
|
+
收藏者的用户ID。
|
156
|
+
|
157
|
+
:return: The user_id of this FavoriteDto.
|
158
|
+
:rtype: str
|
159
|
+
"""
|
160
|
+
return self._user_id
|
161
|
+
|
162
|
+
@user_id.setter
|
163
|
+
def user_id(self, user_id):
|
164
|
+
"""Sets the user_id of this FavoriteDto.
|
165
|
+
|
166
|
+
收藏者的用户ID。
|
167
|
+
|
168
|
+
:param user_id: The user_id of this FavoriteDto.
|
169
|
+
:type user_id: str
|
170
|
+
"""
|
171
|
+
self._user_id = user_id
|
172
|
+
|
173
|
+
@property
|
174
|
+
def user_name(self):
|
175
|
+
"""Gets the user_name of this FavoriteDto.
|
176
|
+
|
177
|
+
收藏者的用户名称。
|
178
|
+
|
179
|
+
:return: The user_name of this FavoriteDto.
|
180
|
+
:rtype: str
|
181
|
+
"""
|
182
|
+
return self._user_name
|
183
|
+
|
184
|
+
@user_name.setter
|
185
|
+
def user_name(self, user_name):
|
186
|
+
"""Sets the user_name of this FavoriteDto.
|
187
|
+
|
188
|
+
收藏者的用户名称。
|
189
|
+
|
190
|
+
:param user_name: The user_name of this FavoriteDto.
|
191
|
+
:type user_name: str
|
192
|
+
"""
|
193
|
+
self._user_name = user_name
|
194
|
+
|
195
|
+
@property
|
196
|
+
def create_time(self):
|
197
|
+
"""Gets the create_time of this FavoriteDto.
|
198
|
+
|
199
|
+
收藏时间。
|
200
|
+
|
201
|
+
:return: The create_time of this FavoriteDto.
|
202
|
+
:rtype: str
|
203
|
+
"""
|
204
|
+
return self._create_time
|
205
|
+
|
206
|
+
@create_time.setter
|
207
|
+
def create_time(self, create_time):
|
208
|
+
"""Sets the create_time of this FavoriteDto.
|
209
|
+
|
210
|
+
收藏时间。
|
211
|
+
|
212
|
+
:param create_time: The create_time of this FavoriteDto.
|
213
|
+
:type create_time: str
|
214
|
+
"""
|
215
|
+
self._create_time = create_time
|
216
|
+
|
217
|
+
@property
|
218
|
+
def resource_id(self):
|
219
|
+
"""Gets the resource_id of this FavoriteDto.
|
220
|
+
|
221
|
+
资源ID。
|
222
|
+
|
223
|
+
:return: The resource_id of this FavoriteDto.
|
224
|
+
:rtype: str
|
225
|
+
"""
|
226
|
+
return self._resource_id
|
227
|
+
|
228
|
+
@resource_id.setter
|
229
|
+
def resource_id(self, resource_id):
|
230
|
+
"""Sets the resource_id of this FavoriteDto.
|
231
|
+
|
232
|
+
资源ID。
|
233
|
+
|
234
|
+
:param resource_id: The resource_id of this FavoriteDto.
|
235
|
+
:type resource_id: str
|
236
|
+
"""
|
237
|
+
self._resource_id = resource_id
|
238
|
+
|
239
|
+
@property
|
240
|
+
def resource_name(self):
|
241
|
+
"""Gets the resource_name of this FavoriteDto.
|
242
|
+
|
243
|
+
资源名称。
|
244
|
+
|
245
|
+
:return: The resource_name of this FavoriteDto.
|
246
|
+
:rtype: str
|
247
|
+
"""
|
248
|
+
return self._resource_name
|
249
|
+
|
250
|
+
@resource_name.setter
|
251
|
+
def resource_name(self, resource_name):
|
252
|
+
"""Sets the resource_name of this FavoriteDto.
|
253
|
+
|
254
|
+
资源名称。
|
255
|
+
|
256
|
+
:param resource_name: The resource_name of this FavoriteDto.
|
257
|
+
:type resource_name: str
|
258
|
+
"""
|
259
|
+
self._resource_name = resource_name
|
260
|
+
|
261
|
+
@property
|
262
|
+
def resource_type(self):
|
263
|
+
"""Gets the resource_type of this FavoriteDto.
|
264
|
+
|
265
|
+
资源类型。
|
266
|
+
|
267
|
+
:return: The resource_type of this FavoriteDto.
|
268
|
+
:rtype: str
|
269
|
+
"""
|
270
|
+
return self._resource_type
|
271
|
+
|
272
|
+
@resource_type.setter
|
273
|
+
def resource_type(self, resource_type):
|
274
|
+
"""Sets the resource_type of this FavoriteDto.
|
275
|
+
|
276
|
+
资源类型。
|
277
|
+
|
278
|
+
:param resource_type: The resource_type of this FavoriteDto.
|
279
|
+
:type resource_type: str
|
280
|
+
"""
|
281
|
+
self._resource_type = resource_type
|
282
|
+
|
283
|
+
@property
|
284
|
+
def display_info(self):
|
285
|
+
"""Gets the display_info of this FavoriteDto.
|
286
|
+
|
287
|
+
展示信息。
|
288
|
+
|
289
|
+
:return: The display_info of this FavoriteDto.
|
290
|
+
:rtype: str
|
291
|
+
"""
|
292
|
+
return self._display_info
|
293
|
+
|
294
|
+
@display_info.setter
|
295
|
+
def display_info(self, display_info):
|
296
|
+
"""Sets the display_info of this FavoriteDto.
|
297
|
+
|
298
|
+
展示信息。
|
299
|
+
|
300
|
+
:param display_info: The display_info of this FavoriteDto.
|
301
|
+
:type display_info: str
|
302
|
+
"""
|
303
|
+
self._display_info = display_info
|
304
|
+
|
305
|
+
@property
|
306
|
+
def location_info(self):
|
307
|
+
"""Gets the location_info of this FavoriteDto.
|
308
|
+
|
309
|
+
定位信息。
|
310
|
+
|
311
|
+
:return: The location_info of this FavoriteDto.
|
312
|
+
:rtype: str
|
313
|
+
"""
|
314
|
+
return self._location_info
|
315
|
+
|
316
|
+
@location_info.setter
|
317
|
+
def location_info(self, location_info):
|
318
|
+
"""Sets the location_info of this FavoriteDto.
|
319
|
+
|
320
|
+
定位信息。
|
321
|
+
|
322
|
+
:param location_info: The location_info of this FavoriteDto.
|
323
|
+
:type location_info: str
|
324
|
+
"""
|
325
|
+
self._location_info = location_info
|
326
|
+
|
327
|
+
def to_dict(self):
|
328
|
+
"""Returns the model properties as a dict"""
|
329
|
+
result = {}
|
330
|
+
|
331
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
332
|
+
value = getattr(self, attr)
|
333
|
+
if isinstance(value, list):
|
334
|
+
result[attr] = list(map(
|
335
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
336
|
+
value
|
337
|
+
))
|
338
|
+
elif hasattr(value, "to_dict"):
|
339
|
+
result[attr] = value.to_dict()
|
340
|
+
elif isinstance(value, dict):
|
341
|
+
result[attr] = dict(map(
|
342
|
+
lambda item: (item[0], item[1].to_dict())
|
343
|
+
if hasattr(item[1], "to_dict") else item,
|
344
|
+
value.items()
|
345
|
+
))
|
346
|
+
else:
|
347
|
+
if attr in self.sensitive_list:
|
348
|
+
result[attr] = "****"
|
349
|
+
else:
|
350
|
+
result[attr] = value
|
351
|
+
|
352
|
+
return result
|
353
|
+
|
354
|
+
def to_str(self):
|
355
|
+
"""Returns the string representation of the model"""
|
356
|
+
import simplejson as json
|
357
|
+
if six.PY2:
|
358
|
+
import sys
|
359
|
+
reload(sys)
|
360
|
+
sys.setdefaultencoding("utf-8")
|
361
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
362
|
+
|
363
|
+
def __repr__(self):
|
364
|
+
"""For `print`"""
|
365
|
+
return self.to_str()
|
366
|
+
|
367
|
+
def __eq__(self, other):
|
368
|
+
"""Returns true if both objects are equal"""
|
369
|
+
if not isinstance(other, FavoriteDto):
|
370
|
+
return False
|
371
|
+
|
372
|
+
return self.__dict__ == other.__dict__
|
373
|
+
|
374
|
+
def __ne__(self, other):
|
375
|
+
"""Returns true if both objects are not equal"""
|
376
|
+
return not self == other
|