huaweicloudsdkeihealth 3.1.94__py2.py3-none-any.whl → 3.1.96__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkeihealth/v1/__init__.py +44 -0
- huaweicloudsdkeihealth/v1/eihealth_async_client.py +1057 -52
- huaweicloudsdkeihealth/v1/eihealth_client.py +1057 -52
- huaweicloudsdkeihealth/v1/model/__init__.py +44 -0
- huaweicloudsdkeihealth/v1/model/add_drug_database_file_req.py +139 -0
- huaweicloudsdkeihealth/v1/model/add_drug_database_file_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/add_drug_database_file_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/bind_site_dto.py +30 -1
- huaweicloudsdkeihealth/v1/model/create_css_cluster_req.py +170 -0
- huaweicloudsdkeihealth/v1/model/create_css_cluster_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/create_css_cluster_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/create_database_req2.py +252 -0
- huaweicloudsdkeihealth/v1/model/create_drug_database_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/create_drug_database_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_req.py +198 -0
- huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/create_optm_job_req.py +30 -1
- huaweicloudsdkeihealth/v1/model/create_search_job_req.py +308 -0
- huaweicloudsdkeihealth/v1/model/create_search_job_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/create_search_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/css_cluster_dto.py +202 -0
- huaweicloudsdkeihealth/v1/model/database_file.py +167 -0
- huaweicloudsdkeihealth/v1/model/database_file_source.py +88 -0
- huaweicloudsdkeihealth/v1/model/delete_css_cluster_request.py +114 -0
- huaweicloudsdkeihealth/v1/model/delete_css_cluster_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/delete_drug_database_request.py +114 -0
- huaweicloudsdkeihealth/v1/model/delete_drug_database_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/detail_database_file.py +225 -0
- huaweicloudsdkeihealth/v1/model/download_data_req.py +61 -3
- huaweicloudsdkeihealth/v1/model/drug_database_dto.py +521 -0
- huaweicloudsdkeihealth/v1/model/get_archive_config_rsp.py +3 -32
- huaweicloudsdkeihealth/v1/model/list_css_cluster_request.py +144 -0
- huaweicloudsdkeihealth/v1/model/list_css_cluster_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_drug_database_request.py +260 -0
- huaweicloudsdkeihealth/v1/model/list_drug_database_response.py +174 -0
- huaweicloudsdkeihealth/v1/model/list_term_tenant_css_cluster_request.py +144 -0
- huaweicloudsdkeihealth/v1/model/list_term_tenant_css_cluster_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/search_type.py +88 -0
- huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_response.py +174 -0
- huaweicloudsdkeihealth/v1/model/show_optm_job_response.py +30 -1
- huaweicloudsdkeihealth/v1/model/show_search_job_request.py +142 -0
- huaweicloudsdkeihealth/v1/model/show_search_job_response.py +340 -0
- huaweicloudsdkeihealth/v1/model/term_tenant_css_cluster_dto.py +173 -0
- huaweicloudsdkeihealth/v1/model/update_drug_database_req.py +114 -0
- huaweicloudsdkeihealth/v1/model/update_drug_database_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/update_drug_database_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/update_drug_job_req.py +115 -0
- huaweicloudsdkeihealth/v1/model/update_drug_job_request.py +167 -0
- huaweicloudsdkeihealth/v1/model/update_drug_job_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/upload_data_request.py +1 -175
- huaweicloudsdkeihealth/v1/model/upload_data_request_body.py +177 -3
- huaweicloudsdkeihealth/v1/model/validate_css_connection_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/validate_css_connection_response.py +145 -0
- {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.96.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.96.dist-info}/RECORD +60 -16
- {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.96.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.96.dist-info}/WHEEL +0 -0
- {huaweicloudsdkeihealth-3.1.94.dist-info → huaweicloudsdkeihealth-3.1.96.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateDrugDatabaseRequest:
|
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
|
+
'body': 'CreateDatabaseReq2'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
"""CreateDrugDatabaseRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the CreateDrugDatabaseRequest
|
33
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.CreateDatabaseReq2`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._body = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if body is not None:
|
42
|
+
self.body = body
|
43
|
+
|
44
|
+
@property
|
45
|
+
def body(self):
|
46
|
+
"""Gets the body of this CreateDrugDatabaseRequest.
|
47
|
+
|
48
|
+
:return: The body of this CreateDrugDatabaseRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.CreateDatabaseReq2`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
"""Sets the body of this CreateDrugDatabaseRequest.
|
56
|
+
|
57
|
+
:param body: The body of this CreateDrugDatabaseRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.CreateDatabaseReq2`
|
59
|
+
"""
|
60
|
+
self._body = body
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
+
value = getattr(self, attr)
|
68
|
+
if isinstance(value, list):
|
69
|
+
result[attr] = list(map(
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
+
value
|
72
|
+
))
|
73
|
+
elif hasattr(value, "to_dict"):
|
74
|
+
result[attr] = value.to_dict()
|
75
|
+
elif isinstance(value, dict):
|
76
|
+
result[attr] = dict(map(
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
79
|
+
value.items()
|
80
|
+
))
|
81
|
+
else:
|
82
|
+
if attr in self.sensitive_list:
|
83
|
+
result[attr] = "****"
|
84
|
+
else:
|
85
|
+
result[attr] = value
|
86
|
+
|
87
|
+
return result
|
88
|
+
|
89
|
+
def to_str(self):
|
90
|
+
"""Returns the string representation of the model"""
|
91
|
+
import simplejson as json
|
92
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, CreateDrugDatabaseRequest):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
return not self == other
|
@@ -0,0 +1,116 @@
|
|
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 CreateDrugDatabaseResponse(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
|
+
'id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'id': 'id'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, id=None):
|
29
|
+
"""CreateDrugDatabaseResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param id: 数据库id
|
34
|
+
:type id: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(CreateDrugDatabaseResponse, self).__init__()
|
38
|
+
|
39
|
+
self._id = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if id is not None:
|
43
|
+
self.id = id
|
44
|
+
|
45
|
+
@property
|
46
|
+
def id(self):
|
47
|
+
"""Gets the id of this CreateDrugDatabaseResponse.
|
48
|
+
|
49
|
+
数据库id
|
50
|
+
|
51
|
+
:return: The id of this CreateDrugDatabaseResponse.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._id
|
55
|
+
|
56
|
+
@id.setter
|
57
|
+
def id(self, id):
|
58
|
+
"""Sets the id of this CreateDrugDatabaseResponse.
|
59
|
+
|
60
|
+
数据库id
|
61
|
+
|
62
|
+
:param id: The id of this CreateDrugDatabaseResponse.
|
63
|
+
:type id: str
|
64
|
+
"""
|
65
|
+
self._id = id
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, CreateDrugDatabaseResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|
@@ -0,0 +1,198 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateMolBatchDownloadTaskReq:
|
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
|
+
'job_id': 'str',
|
21
|
+
'job_result_url': 'str',
|
22
|
+
'mode': 'str',
|
23
|
+
'selected': 'list[int]'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'job_id': 'job_id',
|
28
|
+
'job_result_url': 'job_result_url',
|
29
|
+
'mode': 'mode',
|
30
|
+
'selected': 'selected'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, job_id=None, job_result_url=None, mode=None, selected=None):
|
34
|
+
"""CreateMolBatchDownloadTaskReq
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param job_id: 作业ID
|
39
|
+
:type job_id: str
|
40
|
+
:param job_result_url: 作业结果文件url
|
41
|
+
:type job_result_url: str
|
42
|
+
:param mode: 下载类型:MOL(小分子)、COMPLEX(复合物)
|
43
|
+
:type mode: str
|
44
|
+
:param selected: 选中下载的分子下标
|
45
|
+
:type selected: list[int]
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._job_id = None
|
51
|
+
self._job_result_url = None
|
52
|
+
self._mode = None
|
53
|
+
self._selected = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.job_id = job_id
|
57
|
+
self.job_result_url = job_result_url
|
58
|
+
self.mode = mode
|
59
|
+
self.selected = selected
|
60
|
+
|
61
|
+
@property
|
62
|
+
def job_id(self):
|
63
|
+
"""Gets the job_id of this CreateMolBatchDownloadTaskReq.
|
64
|
+
|
65
|
+
作业ID
|
66
|
+
|
67
|
+
:return: The job_id of this CreateMolBatchDownloadTaskReq.
|
68
|
+
:rtype: str
|
69
|
+
"""
|
70
|
+
return self._job_id
|
71
|
+
|
72
|
+
@job_id.setter
|
73
|
+
def job_id(self, job_id):
|
74
|
+
"""Sets the job_id of this CreateMolBatchDownloadTaskReq.
|
75
|
+
|
76
|
+
作业ID
|
77
|
+
|
78
|
+
:param job_id: The job_id of this CreateMolBatchDownloadTaskReq.
|
79
|
+
:type job_id: str
|
80
|
+
"""
|
81
|
+
self._job_id = job_id
|
82
|
+
|
83
|
+
@property
|
84
|
+
def job_result_url(self):
|
85
|
+
"""Gets the job_result_url of this CreateMolBatchDownloadTaskReq.
|
86
|
+
|
87
|
+
作业结果文件url
|
88
|
+
|
89
|
+
:return: The job_result_url of this CreateMolBatchDownloadTaskReq.
|
90
|
+
:rtype: str
|
91
|
+
"""
|
92
|
+
return self._job_result_url
|
93
|
+
|
94
|
+
@job_result_url.setter
|
95
|
+
def job_result_url(self, job_result_url):
|
96
|
+
"""Sets the job_result_url of this CreateMolBatchDownloadTaskReq.
|
97
|
+
|
98
|
+
作业结果文件url
|
99
|
+
|
100
|
+
:param job_result_url: The job_result_url of this CreateMolBatchDownloadTaskReq.
|
101
|
+
:type job_result_url: str
|
102
|
+
"""
|
103
|
+
self._job_result_url = job_result_url
|
104
|
+
|
105
|
+
@property
|
106
|
+
def mode(self):
|
107
|
+
"""Gets the mode of this CreateMolBatchDownloadTaskReq.
|
108
|
+
|
109
|
+
下载类型:MOL(小分子)、COMPLEX(复合物)
|
110
|
+
|
111
|
+
:return: The mode of this CreateMolBatchDownloadTaskReq.
|
112
|
+
:rtype: str
|
113
|
+
"""
|
114
|
+
return self._mode
|
115
|
+
|
116
|
+
@mode.setter
|
117
|
+
def mode(self, mode):
|
118
|
+
"""Sets the mode of this CreateMolBatchDownloadTaskReq.
|
119
|
+
|
120
|
+
下载类型:MOL(小分子)、COMPLEX(复合物)
|
121
|
+
|
122
|
+
:param mode: The mode of this CreateMolBatchDownloadTaskReq.
|
123
|
+
:type mode: str
|
124
|
+
"""
|
125
|
+
self._mode = mode
|
126
|
+
|
127
|
+
@property
|
128
|
+
def selected(self):
|
129
|
+
"""Gets the selected of this CreateMolBatchDownloadTaskReq.
|
130
|
+
|
131
|
+
选中下载的分子下标
|
132
|
+
|
133
|
+
:return: The selected of this CreateMolBatchDownloadTaskReq.
|
134
|
+
:rtype: list[int]
|
135
|
+
"""
|
136
|
+
return self._selected
|
137
|
+
|
138
|
+
@selected.setter
|
139
|
+
def selected(self, selected):
|
140
|
+
"""Sets the selected of this CreateMolBatchDownloadTaskReq.
|
141
|
+
|
142
|
+
选中下载的分子下标
|
143
|
+
|
144
|
+
:param selected: The selected of this CreateMolBatchDownloadTaskReq.
|
145
|
+
:type selected: list[int]
|
146
|
+
"""
|
147
|
+
self._selected = selected
|
148
|
+
|
149
|
+
def to_dict(self):
|
150
|
+
"""Returns the model properties as a dict"""
|
151
|
+
result = {}
|
152
|
+
|
153
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
154
|
+
value = getattr(self, attr)
|
155
|
+
if isinstance(value, list):
|
156
|
+
result[attr] = list(map(
|
157
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
158
|
+
value
|
159
|
+
))
|
160
|
+
elif hasattr(value, "to_dict"):
|
161
|
+
result[attr] = value.to_dict()
|
162
|
+
elif isinstance(value, dict):
|
163
|
+
result[attr] = dict(map(
|
164
|
+
lambda item: (item[0], item[1].to_dict())
|
165
|
+
if hasattr(item[1], "to_dict") else item,
|
166
|
+
value.items()
|
167
|
+
))
|
168
|
+
else:
|
169
|
+
if attr in self.sensitive_list:
|
170
|
+
result[attr] = "****"
|
171
|
+
else:
|
172
|
+
result[attr] = value
|
173
|
+
|
174
|
+
return result
|
175
|
+
|
176
|
+
def to_str(self):
|
177
|
+
"""Returns the string representation of the model"""
|
178
|
+
import simplejson as json
|
179
|
+
if six.PY2:
|
180
|
+
import sys
|
181
|
+
reload(sys)
|
182
|
+
sys.setdefaultencoding("utf-8")
|
183
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
184
|
+
|
185
|
+
def __repr__(self):
|
186
|
+
"""For `print`"""
|
187
|
+
return self.to_str()
|
188
|
+
|
189
|
+
def __eq__(self, other):
|
190
|
+
"""Returns true if both objects are equal"""
|
191
|
+
if not isinstance(other, CreateMolBatchDownloadTaskReq):
|
192
|
+
return False
|
193
|
+
|
194
|
+
return self.__dict__ == other.__dict__
|
195
|
+
|
196
|
+
def __ne__(self, other):
|
197
|
+
"""Returns true if both objects are not equal"""
|
198
|
+
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 CreateMolBatchDownloadTaskRequest:
|
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': 'CreateMolBatchDownloadTaskReq'
|
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
|
+
"""CreateMolBatchDownloadTaskRequest
|
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 CreateMolBatchDownloadTaskRequest
|
37
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.CreateMolBatchDownloadTaskReq`
|
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 CreateMolBatchDownloadTaskRequest.
|
53
|
+
|
54
|
+
平台项目ID。
|
55
|
+
|
56
|
+
:return: The eihealth_project_id of this CreateMolBatchDownloadTaskRequest.
|
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 CreateMolBatchDownloadTaskRequest.
|
64
|
+
|
65
|
+
平台项目ID。
|
66
|
+
|
67
|
+
:param eihealth_project_id: The eihealth_project_id of this CreateMolBatchDownloadTaskRequest.
|
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 CreateMolBatchDownloadTaskRequest.
|
75
|
+
|
76
|
+
:return: The body of this CreateMolBatchDownloadTaskRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.CreateMolBatchDownloadTaskReq`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
"""Sets the body of this CreateMolBatchDownloadTaskRequest.
|
84
|
+
|
85
|
+
:param body: The body of this CreateMolBatchDownloadTaskRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.CreateMolBatchDownloadTaskReq`
|
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, CreateMolBatchDownloadTaskRequest):
|
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,116 @@
|
|
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 CreateMolBatchDownloadTaskResponse(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
|
+
'id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'id': 'id'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, id=None):
|
29
|
+
"""CreateMolBatchDownloadTaskResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param id: 任务ID
|
34
|
+
:type id: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(CreateMolBatchDownloadTaskResponse, self).__init__()
|
38
|
+
|
39
|
+
self._id = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if id is not None:
|
43
|
+
self.id = id
|
44
|
+
|
45
|
+
@property
|
46
|
+
def id(self):
|
47
|
+
"""Gets the id of this CreateMolBatchDownloadTaskResponse.
|
48
|
+
|
49
|
+
任务ID
|
50
|
+
|
51
|
+
:return: The id of this CreateMolBatchDownloadTaskResponse.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._id
|
55
|
+
|
56
|
+
@id.setter
|
57
|
+
def id(self, id):
|
58
|
+
"""Sets the id of this CreateMolBatchDownloadTaskResponse.
|
59
|
+
|
60
|
+
任务ID
|
61
|
+
|
62
|
+
:param id: The id of this CreateMolBatchDownloadTaskResponse.
|
63
|
+
:type id: str
|
64
|
+
"""
|
65
|
+
self._id = id
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, CreateMolBatchDownloadTaskResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|