huaweicloudsdkeihealth 3.1.93__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.
- 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 +145 -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.93.dist-info → huaweicloudsdkeihealth-3.1.95.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.93.dist-info → huaweicloudsdkeihealth-3.1.95.dist-info}/RECORD +60 -16
- {huaweicloudsdkeihealth-3.1.93.dist-info → huaweicloudsdkeihealth-3.1.95.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.93.dist-info → huaweicloudsdkeihealth-3.1.95.dist-info}/WHEEL +0 -0
- {huaweicloudsdkeihealth-3.1.93.dist-info → huaweicloudsdkeihealth-3.1.95.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListCssClusterRequest:
|
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
|
+
'limit': 'int',
|
21
|
+
'offset': 'int'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'limit': 'limit',
|
26
|
+
'offset': 'offset'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, limit=None, offset=None):
|
30
|
+
"""ListCssClusterRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param limit: 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]
|
35
|
+
:type limit: int
|
36
|
+
:param offset: 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]
|
37
|
+
:type offset: int
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._limit = None
|
43
|
+
self._offset = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if limit is not None:
|
47
|
+
self.limit = limit
|
48
|
+
if offset is not None:
|
49
|
+
self.offset = offset
|
50
|
+
|
51
|
+
@property
|
52
|
+
def limit(self):
|
53
|
+
"""Gets the limit of this ListCssClusterRequest.
|
54
|
+
|
55
|
+
限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]
|
56
|
+
|
57
|
+
:return: The limit of this ListCssClusterRequest.
|
58
|
+
:rtype: int
|
59
|
+
"""
|
60
|
+
return self._limit
|
61
|
+
|
62
|
+
@limit.setter
|
63
|
+
def limit(self, limit):
|
64
|
+
"""Sets the limit of this ListCssClusterRequest.
|
65
|
+
|
66
|
+
限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]
|
67
|
+
|
68
|
+
:param limit: The limit of this ListCssClusterRequest.
|
69
|
+
:type limit: int
|
70
|
+
"""
|
71
|
+
self._limit = limit
|
72
|
+
|
73
|
+
@property
|
74
|
+
def offset(self):
|
75
|
+
"""Gets the offset of this ListCssClusterRequest.
|
76
|
+
|
77
|
+
偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]
|
78
|
+
|
79
|
+
:return: The offset of this ListCssClusterRequest.
|
80
|
+
:rtype: int
|
81
|
+
"""
|
82
|
+
return self._offset
|
83
|
+
|
84
|
+
@offset.setter
|
85
|
+
def offset(self, offset):
|
86
|
+
"""Sets the offset of this ListCssClusterRequest.
|
87
|
+
|
88
|
+
偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]
|
89
|
+
|
90
|
+
:param offset: The offset of this ListCssClusterRequest.
|
91
|
+
:type offset: int
|
92
|
+
"""
|
93
|
+
self._offset = offset
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, ListCssClusterRequest):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
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 ListCssClusterResponse(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
|
+
'css_clusters': 'list[CssClusterDto]',
|
22
|
+
'count': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'css_clusters': 'css_clusters',
|
27
|
+
'count': 'count'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, css_clusters=None, count=None):
|
31
|
+
"""ListCssClusterResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param css_clusters: CSS集群列表
|
36
|
+
:type css_clusters: list[:class:`huaweicloudsdkeihealth.v1.CssClusterDto`]
|
37
|
+
:param count: css集群总数
|
38
|
+
:type count: int
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListCssClusterResponse, self).__init__()
|
42
|
+
|
43
|
+
self._css_clusters = None
|
44
|
+
self._count = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if css_clusters is not None:
|
48
|
+
self.css_clusters = css_clusters
|
49
|
+
if count is not None:
|
50
|
+
self.count = count
|
51
|
+
|
52
|
+
@property
|
53
|
+
def css_clusters(self):
|
54
|
+
"""Gets the css_clusters of this ListCssClusterResponse.
|
55
|
+
|
56
|
+
CSS集群列表
|
57
|
+
|
58
|
+
:return: The css_clusters of this ListCssClusterResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.CssClusterDto`]
|
60
|
+
"""
|
61
|
+
return self._css_clusters
|
62
|
+
|
63
|
+
@css_clusters.setter
|
64
|
+
def css_clusters(self, css_clusters):
|
65
|
+
"""Sets the css_clusters of this ListCssClusterResponse.
|
66
|
+
|
67
|
+
CSS集群列表
|
68
|
+
|
69
|
+
:param css_clusters: The css_clusters of this ListCssClusterResponse.
|
70
|
+
:type css_clusters: list[:class:`huaweicloudsdkeihealth.v1.CssClusterDto`]
|
71
|
+
"""
|
72
|
+
self._css_clusters = css_clusters
|
73
|
+
|
74
|
+
@property
|
75
|
+
def count(self):
|
76
|
+
"""Gets the count of this ListCssClusterResponse.
|
77
|
+
|
78
|
+
css集群总数
|
79
|
+
|
80
|
+
:return: The count of this ListCssClusterResponse.
|
81
|
+
:rtype: int
|
82
|
+
"""
|
83
|
+
return self._count
|
84
|
+
|
85
|
+
@count.setter
|
86
|
+
def count(self, count):
|
87
|
+
"""Sets the count of this ListCssClusterResponse.
|
88
|
+
|
89
|
+
css集群总数
|
90
|
+
|
91
|
+
:param count: The count of this ListCssClusterResponse.
|
92
|
+
:type count: int
|
93
|
+
"""
|
94
|
+
self._count = count
|
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, ListCssClusterResponse):
|
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
|
@@ -0,0 +1,260 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListDrugDatabaseRequest:
|
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
|
+
'search_key': 'str',
|
21
|
+
'type': 'str',
|
22
|
+
'sort_key': 'str',
|
23
|
+
'sort_dir': 'str',
|
24
|
+
'limit': 'int',
|
25
|
+
'offset': 'int'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'search_key': 'search_key',
|
30
|
+
'type': 'type',
|
31
|
+
'sort_key': 'sort_key',
|
32
|
+
'sort_dir': 'sort_dir',
|
33
|
+
'limit': 'limit',
|
34
|
+
'offset': 'offset'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, search_key=None, type=None, sort_key=None, sort_dir=None, limit=None, offset=None):
|
38
|
+
"""ListDrugDatabaseRequest
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param search_key: 数据库名称搜索
|
43
|
+
:type search_key: str
|
44
|
+
:param type: 数据库类型搜索
|
45
|
+
:type type: str
|
46
|
+
:param sort_key: 排序规则 目前默认时间降序,支持根据create_time|update_time
|
47
|
+
:type sort_key: str
|
48
|
+
:param sort_dir: 排序规则 目前默认时间降序
|
49
|
+
:type sort_dir: str
|
50
|
+
:param limit: 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]
|
51
|
+
:type limit: int
|
52
|
+
:param offset: 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]
|
53
|
+
:type offset: int
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._search_key = None
|
59
|
+
self._type = None
|
60
|
+
self._sort_key = None
|
61
|
+
self._sort_dir = None
|
62
|
+
self._limit = None
|
63
|
+
self._offset = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
if search_key is not None:
|
67
|
+
self.search_key = search_key
|
68
|
+
if type is not None:
|
69
|
+
self.type = type
|
70
|
+
if sort_key is not None:
|
71
|
+
self.sort_key = sort_key
|
72
|
+
if sort_dir is not None:
|
73
|
+
self.sort_dir = sort_dir
|
74
|
+
if limit is not None:
|
75
|
+
self.limit = limit
|
76
|
+
if offset is not None:
|
77
|
+
self.offset = offset
|
78
|
+
|
79
|
+
@property
|
80
|
+
def search_key(self):
|
81
|
+
"""Gets the search_key of this ListDrugDatabaseRequest.
|
82
|
+
|
83
|
+
数据库名称搜索
|
84
|
+
|
85
|
+
:return: The search_key of this ListDrugDatabaseRequest.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._search_key
|
89
|
+
|
90
|
+
@search_key.setter
|
91
|
+
def search_key(self, search_key):
|
92
|
+
"""Sets the search_key of this ListDrugDatabaseRequest.
|
93
|
+
|
94
|
+
数据库名称搜索
|
95
|
+
|
96
|
+
:param search_key: The search_key of this ListDrugDatabaseRequest.
|
97
|
+
:type search_key: str
|
98
|
+
"""
|
99
|
+
self._search_key = search_key
|
100
|
+
|
101
|
+
@property
|
102
|
+
def type(self):
|
103
|
+
"""Gets the type of this ListDrugDatabaseRequest.
|
104
|
+
|
105
|
+
数据库类型搜索
|
106
|
+
|
107
|
+
:return: The type of this ListDrugDatabaseRequest.
|
108
|
+
:rtype: str
|
109
|
+
"""
|
110
|
+
return self._type
|
111
|
+
|
112
|
+
@type.setter
|
113
|
+
def type(self, type):
|
114
|
+
"""Sets the type of this ListDrugDatabaseRequest.
|
115
|
+
|
116
|
+
数据库类型搜索
|
117
|
+
|
118
|
+
:param type: The type of this ListDrugDatabaseRequest.
|
119
|
+
:type type: str
|
120
|
+
"""
|
121
|
+
self._type = type
|
122
|
+
|
123
|
+
@property
|
124
|
+
def sort_key(self):
|
125
|
+
"""Gets the sort_key of this ListDrugDatabaseRequest.
|
126
|
+
|
127
|
+
排序规则 目前默认时间降序,支持根据create_time|update_time
|
128
|
+
|
129
|
+
:return: The sort_key of this ListDrugDatabaseRequest.
|
130
|
+
:rtype: str
|
131
|
+
"""
|
132
|
+
return self._sort_key
|
133
|
+
|
134
|
+
@sort_key.setter
|
135
|
+
def sort_key(self, sort_key):
|
136
|
+
"""Sets the sort_key of this ListDrugDatabaseRequest.
|
137
|
+
|
138
|
+
排序规则 目前默认时间降序,支持根据create_time|update_time
|
139
|
+
|
140
|
+
:param sort_key: The sort_key of this ListDrugDatabaseRequest.
|
141
|
+
:type sort_key: str
|
142
|
+
"""
|
143
|
+
self._sort_key = sort_key
|
144
|
+
|
145
|
+
@property
|
146
|
+
def sort_dir(self):
|
147
|
+
"""Gets the sort_dir of this ListDrugDatabaseRequest.
|
148
|
+
|
149
|
+
排序规则 目前默认时间降序
|
150
|
+
|
151
|
+
:return: The sort_dir of this ListDrugDatabaseRequest.
|
152
|
+
:rtype: str
|
153
|
+
"""
|
154
|
+
return self._sort_dir
|
155
|
+
|
156
|
+
@sort_dir.setter
|
157
|
+
def sort_dir(self, sort_dir):
|
158
|
+
"""Sets the sort_dir of this ListDrugDatabaseRequest.
|
159
|
+
|
160
|
+
排序规则 目前默认时间降序
|
161
|
+
|
162
|
+
:param sort_dir: The sort_dir of this ListDrugDatabaseRequest.
|
163
|
+
:type sort_dir: str
|
164
|
+
"""
|
165
|
+
self._sort_dir = sort_dir
|
166
|
+
|
167
|
+
@property
|
168
|
+
def limit(self):
|
169
|
+
"""Gets the limit of this ListDrugDatabaseRequest.
|
170
|
+
|
171
|
+
限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]
|
172
|
+
|
173
|
+
:return: The limit of this ListDrugDatabaseRequest.
|
174
|
+
:rtype: int
|
175
|
+
"""
|
176
|
+
return self._limit
|
177
|
+
|
178
|
+
@limit.setter
|
179
|
+
def limit(self, limit):
|
180
|
+
"""Sets the limit of this ListDrugDatabaseRequest.
|
181
|
+
|
182
|
+
限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]
|
183
|
+
|
184
|
+
:param limit: The limit of this ListDrugDatabaseRequest.
|
185
|
+
:type limit: int
|
186
|
+
"""
|
187
|
+
self._limit = limit
|
188
|
+
|
189
|
+
@property
|
190
|
+
def offset(self):
|
191
|
+
"""Gets the offset of this ListDrugDatabaseRequest.
|
192
|
+
|
193
|
+
偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]
|
194
|
+
|
195
|
+
:return: The offset of this ListDrugDatabaseRequest.
|
196
|
+
:rtype: int
|
197
|
+
"""
|
198
|
+
return self._offset
|
199
|
+
|
200
|
+
@offset.setter
|
201
|
+
def offset(self, offset):
|
202
|
+
"""Sets the offset of this ListDrugDatabaseRequest.
|
203
|
+
|
204
|
+
偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]
|
205
|
+
|
206
|
+
:param offset: The offset of this ListDrugDatabaseRequest.
|
207
|
+
:type offset: int
|
208
|
+
"""
|
209
|
+
self._offset = offset
|
210
|
+
|
211
|
+
def to_dict(self):
|
212
|
+
"""Returns the model properties as a dict"""
|
213
|
+
result = {}
|
214
|
+
|
215
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
216
|
+
value = getattr(self, attr)
|
217
|
+
if isinstance(value, list):
|
218
|
+
result[attr] = list(map(
|
219
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
220
|
+
value
|
221
|
+
))
|
222
|
+
elif hasattr(value, "to_dict"):
|
223
|
+
result[attr] = value.to_dict()
|
224
|
+
elif isinstance(value, dict):
|
225
|
+
result[attr] = dict(map(
|
226
|
+
lambda item: (item[0], item[1].to_dict())
|
227
|
+
if hasattr(item[1], "to_dict") else item,
|
228
|
+
value.items()
|
229
|
+
))
|
230
|
+
else:
|
231
|
+
if attr in self.sensitive_list:
|
232
|
+
result[attr] = "****"
|
233
|
+
else:
|
234
|
+
result[attr] = value
|
235
|
+
|
236
|
+
return result
|
237
|
+
|
238
|
+
def to_str(self):
|
239
|
+
"""Returns the string representation of the model"""
|
240
|
+
import simplejson as json
|
241
|
+
if six.PY2:
|
242
|
+
import sys
|
243
|
+
reload(sys)
|
244
|
+
sys.setdefaultencoding("utf-8")
|
245
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
246
|
+
|
247
|
+
def __repr__(self):
|
248
|
+
"""For `print`"""
|
249
|
+
return self.to_str()
|
250
|
+
|
251
|
+
def __eq__(self, other):
|
252
|
+
"""Returns true if both objects are equal"""
|
253
|
+
if not isinstance(other, ListDrugDatabaseRequest):
|
254
|
+
return False
|
255
|
+
|
256
|
+
return self.__dict__ == other.__dict__
|
257
|
+
|
258
|
+
def __ne__(self, other):
|
259
|
+
"""Returns true if both objects are not equal"""
|
260
|
+
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 ListDrugDatabaseResponse(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
|
+
'databases': 'list[DrugDatabaseDto]',
|
22
|
+
'count': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'databases': 'databases',
|
27
|
+
'count': 'count'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, databases=None, count=None):
|
31
|
+
"""ListDrugDatabaseResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param databases: 数据库列表
|
36
|
+
:type databases: list[:class:`huaweicloudsdkeihealth.v1.DrugDatabaseDto`]
|
37
|
+
:param count: 数据库总数
|
38
|
+
:type count: int
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListDrugDatabaseResponse, self).__init__()
|
42
|
+
|
43
|
+
self._databases = None
|
44
|
+
self._count = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if databases is not None:
|
48
|
+
self.databases = databases
|
49
|
+
if count is not None:
|
50
|
+
self.count = count
|
51
|
+
|
52
|
+
@property
|
53
|
+
def databases(self):
|
54
|
+
"""Gets the databases of this ListDrugDatabaseResponse.
|
55
|
+
|
56
|
+
数据库列表
|
57
|
+
|
58
|
+
:return: The databases of this ListDrugDatabaseResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.DrugDatabaseDto`]
|
60
|
+
"""
|
61
|
+
return self._databases
|
62
|
+
|
63
|
+
@databases.setter
|
64
|
+
def databases(self, databases):
|
65
|
+
"""Sets the databases of this ListDrugDatabaseResponse.
|
66
|
+
|
67
|
+
数据库列表
|
68
|
+
|
69
|
+
:param databases: The databases of this ListDrugDatabaseResponse.
|
70
|
+
:type databases: list[:class:`huaweicloudsdkeihealth.v1.DrugDatabaseDto`]
|
71
|
+
"""
|
72
|
+
self._databases = databases
|
73
|
+
|
74
|
+
@property
|
75
|
+
def count(self):
|
76
|
+
"""Gets the count of this ListDrugDatabaseResponse.
|
77
|
+
|
78
|
+
数据库总数
|
79
|
+
|
80
|
+
:return: The count of this ListDrugDatabaseResponse.
|
81
|
+
:rtype: int
|
82
|
+
"""
|
83
|
+
return self._count
|
84
|
+
|
85
|
+
@count.setter
|
86
|
+
def count(self, count):
|
87
|
+
"""Sets the count of this ListDrugDatabaseResponse.
|
88
|
+
|
89
|
+
数据库总数
|
90
|
+
|
91
|
+
:param count: The count of this ListDrugDatabaseResponse.
|
92
|
+
:type count: int
|
93
|
+
"""
|
94
|
+
self._count = count
|
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, ListDrugDatabaseResponse):
|
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
|