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,167 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateDrugJobRequest:
|
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
|
+
'job_id': 'str',
|
22
|
+
'body': 'UpdateDrugJobReq'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'eihealth_project_id': 'eihealth_project_id',
|
27
|
+
'job_id': 'job_id',
|
28
|
+
'body': 'body'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, eihealth_project_id=None, job_id=None, body=None):
|
32
|
+
"""UpdateDrugJobRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param eihealth_project_id: 平台项目ID。
|
37
|
+
:type eihealth_project_id: str
|
38
|
+
:param job_id: 作业id
|
39
|
+
:type job_id: str
|
40
|
+
:param body: Body of the UpdateDrugJobRequest
|
41
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.UpdateDrugJobReq`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._eihealth_project_id = None
|
47
|
+
self._job_id = None
|
48
|
+
self._body = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.eihealth_project_id = eihealth_project_id
|
52
|
+
self.job_id = job_id
|
53
|
+
if body is not None:
|
54
|
+
self.body = body
|
55
|
+
|
56
|
+
@property
|
57
|
+
def eihealth_project_id(self):
|
58
|
+
"""Gets the eihealth_project_id of this UpdateDrugJobRequest.
|
59
|
+
|
60
|
+
平台项目ID。
|
61
|
+
|
62
|
+
:return: The eihealth_project_id of this UpdateDrugJobRequest.
|
63
|
+
:rtype: str
|
64
|
+
"""
|
65
|
+
return self._eihealth_project_id
|
66
|
+
|
67
|
+
@eihealth_project_id.setter
|
68
|
+
def eihealth_project_id(self, eihealth_project_id):
|
69
|
+
"""Sets the eihealth_project_id of this UpdateDrugJobRequest.
|
70
|
+
|
71
|
+
平台项目ID。
|
72
|
+
|
73
|
+
:param eihealth_project_id: The eihealth_project_id of this UpdateDrugJobRequest.
|
74
|
+
:type eihealth_project_id: str
|
75
|
+
"""
|
76
|
+
self._eihealth_project_id = eihealth_project_id
|
77
|
+
|
78
|
+
@property
|
79
|
+
def job_id(self):
|
80
|
+
"""Gets the job_id of this UpdateDrugJobRequest.
|
81
|
+
|
82
|
+
作业id
|
83
|
+
|
84
|
+
:return: The job_id of this UpdateDrugJobRequest.
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._job_id
|
88
|
+
|
89
|
+
@job_id.setter
|
90
|
+
def job_id(self, job_id):
|
91
|
+
"""Sets the job_id of this UpdateDrugJobRequest.
|
92
|
+
|
93
|
+
作业id
|
94
|
+
|
95
|
+
:param job_id: The job_id of this UpdateDrugJobRequest.
|
96
|
+
:type job_id: str
|
97
|
+
"""
|
98
|
+
self._job_id = job_id
|
99
|
+
|
100
|
+
@property
|
101
|
+
def body(self):
|
102
|
+
"""Gets the body of this UpdateDrugJobRequest.
|
103
|
+
|
104
|
+
:return: The body of this UpdateDrugJobRequest.
|
105
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.UpdateDrugJobReq`
|
106
|
+
"""
|
107
|
+
return self._body
|
108
|
+
|
109
|
+
@body.setter
|
110
|
+
def body(self, body):
|
111
|
+
"""Sets the body of this UpdateDrugJobRequest.
|
112
|
+
|
113
|
+
:param body: The body of this UpdateDrugJobRequest.
|
114
|
+
:type body: :class:`huaweicloudsdkeihealth.v1.UpdateDrugJobReq`
|
115
|
+
"""
|
116
|
+
self._body = body
|
117
|
+
|
118
|
+
def to_dict(self):
|
119
|
+
"""Returns the model properties as a dict"""
|
120
|
+
result = {}
|
121
|
+
|
122
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
123
|
+
value = getattr(self, attr)
|
124
|
+
if isinstance(value, list):
|
125
|
+
result[attr] = list(map(
|
126
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
127
|
+
value
|
128
|
+
))
|
129
|
+
elif hasattr(value, "to_dict"):
|
130
|
+
result[attr] = value.to_dict()
|
131
|
+
elif isinstance(value, dict):
|
132
|
+
result[attr] = dict(map(
|
133
|
+
lambda item: (item[0], item[1].to_dict())
|
134
|
+
if hasattr(item[1], "to_dict") else item,
|
135
|
+
value.items()
|
136
|
+
))
|
137
|
+
else:
|
138
|
+
if attr in self.sensitive_list:
|
139
|
+
result[attr] = "****"
|
140
|
+
else:
|
141
|
+
result[attr] = value
|
142
|
+
|
143
|
+
return result
|
144
|
+
|
145
|
+
def to_str(self):
|
146
|
+
"""Returns the string representation of the model"""
|
147
|
+
import simplejson as json
|
148
|
+
if six.PY2:
|
149
|
+
import sys
|
150
|
+
reload(sys)
|
151
|
+
sys.setdefaultencoding("utf-8")
|
152
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
153
|
+
|
154
|
+
def __repr__(self):
|
155
|
+
"""For `print`"""
|
156
|
+
return self.to_str()
|
157
|
+
|
158
|
+
def __eq__(self, other):
|
159
|
+
"""Returns true if both objects are equal"""
|
160
|
+
if not isinstance(other, UpdateDrugJobRequest):
|
161
|
+
return False
|
162
|
+
|
163
|
+
return self.__dict__ == other.__dict__
|
164
|
+
|
165
|
+
def __ne__(self, other):
|
166
|
+
"""Returns true if both objects are not equal"""
|
167
|
+
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 UpdateDrugJobResponse(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
|
+
"""UpdateDrugJobResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(UpdateDrugJobResponse, 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, UpdateDrugJobResponse):
|
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
|
@@ -18,45 +18,21 @@ class UploadDataRequest:
|
|
18
18
|
|
19
19
|
openapi_types = {
|
20
20
|
'eihealth_project_id': 'str',
|
21
|
-
'target_folder': 'str',
|
22
|
-
'part_number': 'int',
|
23
|
-
'total_part': 'int',
|
24
|
-
'multipart_id': 'str',
|
25
|
-
'file_name': 'str',
|
26
|
-
'md5': 'str',
|
27
21
|
'body': 'UploadDataRequestBody'
|
28
22
|
}
|
29
23
|
|
30
24
|
attribute_map = {
|
31
25
|
'eihealth_project_id': 'eihealth_project_id',
|
32
|
-
'target_folder': 'target_folder',
|
33
|
-
'part_number': 'part_number',
|
34
|
-
'total_part': 'total_part',
|
35
|
-
'multipart_id': 'multipart_id',
|
36
|
-
'file_name': 'file_name',
|
37
|
-
'md5': 'md5',
|
38
26
|
'body': 'body'
|
39
27
|
}
|
40
28
|
|
41
|
-
def __init__(self, eihealth_project_id=None,
|
29
|
+
def __init__(self, eihealth_project_id=None, body=None):
|
42
30
|
"""UploadDataRequest
|
43
31
|
|
44
32
|
The model defined in huaweicloud sdk
|
45
33
|
|
46
34
|
:param eihealth_project_id: 平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。
|
47
35
|
:type eihealth_project_id: str
|
48
|
-
:param target_folder: 目标文件夹
|
49
|
-
:type target_folder: str
|
50
|
-
:param part_number: 分段序号,表示第几个文件片段
|
51
|
-
:type part_number: int
|
52
|
-
:param total_part: 分段总数,上传的文件总共分成了几个片段
|
53
|
-
:type total_part: int
|
54
|
-
:param multipart_id: 分段上传任务id,除了第一个片段外,后续的片段都需要标识出任务id
|
55
|
-
:type multipart_id: str
|
56
|
-
:param file_name: 文件名称
|
57
|
-
:type file_name: str
|
58
|
-
:param md5: MD5
|
59
|
-
:type md5: str
|
60
36
|
:param body: Body of the UploadDataRequest
|
61
37
|
:type body: :class:`huaweicloudsdkeihealth.v1.UploadDataRequestBody`
|
62
38
|
"""
|
@@ -64,28 +40,10 @@ class UploadDataRequest:
|
|
64
40
|
|
65
41
|
|
66
42
|
self._eihealth_project_id = None
|
67
|
-
self._target_folder = None
|
68
|
-
self._part_number = None
|
69
|
-
self._total_part = None
|
70
|
-
self._multipart_id = None
|
71
|
-
self._file_name = None
|
72
|
-
self._md5 = None
|
73
43
|
self._body = None
|
74
44
|
self.discriminator = None
|
75
45
|
|
76
46
|
self.eihealth_project_id = eihealth_project_id
|
77
|
-
if target_folder is not None:
|
78
|
-
self.target_folder = target_folder
|
79
|
-
if part_number is not None:
|
80
|
-
self.part_number = part_number
|
81
|
-
if total_part is not None:
|
82
|
-
self.total_part = total_part
|
83
|
-
if multipart_id is not None:
|
84
|
-
self.multipart_id = multipart_id
|
85
|
-
if file_name is not None:
|
86
|
-
self.file_name = file_name
|
87
|
-
if md5 is not None:
|
88
|
-
self.md5 = md5
|
89
47
|
if body is not None:
|
90
48
|
self.body = body
|
91
49
|
|
@@ -111,138 +69,6 @@ class UploadDataRequest:
|
|
111
69
|
"""
|
112
70
|
self._eihealth_project_id = eihealth_project_id
|
113
71
|
|
114
|
-
@property
|
115
|
-
def target_folder(self):
|
116
|
-
"""Gets the target_folder of this UploadDataRequest.
|
117
|
-
|
118
|
-
目标文件夹
|
119
|
-
|
120
|
-
:return: The target_folder of this UploadDataRequest.
|
121
|
-
:rtype: str
|
122
|
-
"""
|
123
|
-
return self._target_folder
|
124
|
-
|
125
|
-
@target_folder.setter
|
126
|
-
def target_folder(self, target_folder):
|
127
|
-
"""Sets the target_folder of this UploadDataRequest.
|
128
|
-
|
129
|
-
目标文件夹
|
130
|
-
|
131
|
-
:param target_folder: The target_folder of this UploadDataRequest.
|
132
|
-
:type target_folder: str
|
133
|
-
"""
|
134
|
-
self._target_folder = target_folder
|
135
|
-
|
136
|
-
@property
|
137
|
-
def part_number(self):
|
138
|
-
"""Gets the part_number of this UploadDataRequest.
|
139
|
-
|
140
|
-
分段序号,表示第几个文件片段
|
141
|
-
|
142
|
-
:return: The part_number of this UploadDataRequest.
|
143
|
-
:rtype: int
|
144
|
-
"""
|
145
|
-
return self._part_number
|
146
|
-
|
147
|
-
@part_number.setter
|
148
|
-
def part_number(self, part_number):
|
149
|
-
"""Sets the part_number of this UploadDataRequest.
|
150
|
-
|
151
|
-
分段序号,表示第几个文件片段
|
152
|
-
|
153
|
-
:param part_number: The part_number of this UploadDataRequest.
|
154
|
-
:type part_number: int
|
155
|
-
"""
|
156
|
-
self._part_number = part_number
|
157
|
-
|
158
|
-
@property
|
159
|
-
def total_part(self):
|
160
|
-
"""Gets the total_part of this UploadDataRequest.
|
161
|
-
|
162
|
-
分段总数,上传的文件总共分成了几个片段
|
163
|
-
|
164
|
-
:return: The total_part of this UploadDataRequest.
|
165
|
-
:rtype: int
|
166
|
-
"""
|
167
|
-
return self._total_part
|
168
|
-
|
169
|
-
@total_part.setter
|
170
|
-
def total_part(self, total_part):
|
171
|
-
"""Sets the total_part of this UploadDataRequest.
|
172
|
-
|
173
|
-
分段总数,上传的文件总共分成了几个片段
|
174
|
-
|
175
|
-
:param total_part: The total_part of this UploadDataRequest.
|
176
|
-
:type total_part: int
|
177
|
-
"""
|
178
|
-
self._total_part = total_part
|
179
|
-
|
180
|
-
@property
|
181
|
-
def multipart_id(self):
|
182
|
-
"""Gets the multipart_id of this UploadDataRequest.
|
183
|
-
|
184
|
-
分段上传任务id,除了第一个片段外,后续的片段都需要标识出任务id
|
185
|
-
|
186
|
-
:return: The multipart_id of this UploadDataRequest.
|
187
|
-
:rtype: str
|
188
|
-
"""
|
189
|
-
return self._multipart_id
|
190
|
-
|
191
|
-
@multipart_id.setter
|
192
|
-
def multipart_id(self, multipart_id):
|
193
|
-
"""Sets the multipart_id of this UploadDataRequest.
|
194
|
-
|
195
|
-
分段上传任务id,除了第一个片段外,后续的片段都需要标识出任务id
|
196
|
-
|
197
|
-
:param multipart_id: The multipart_id of this UploadDataRequest.
|
198
|
-
:type multipart_id: str
|
199
|
-
"""
|
200
|
-
self._multipart_id = multipart_id
|
201
|
-
|
202
|
-
@property
|
203
|
-
def file_name(self):
|
204
|
-
"""Gets the file_name of this UploadDataRequest.
|
205
|
-
|
206
|
-
文件名称
|
207
|
-
|
208
|
-
:return: The file_name of this UploadDataRequest.
|
209
|
-
:rtype: str
|
210
|
-
"""
|
211
|
-
return self._file_name
|
212
|
-
|
213
|
-
@file_name.setter
|
214
|
-
def file_name(self, file_name):
|
215
|
-
"""Sets the file_name of this UploadDataRequest.
|
216
|
-
|
217
|
-
文件名称
|
218
|
-
|
219
|
-
:param file_name: The file_name of this UploadDataRequest.
|
220
|
-
:type file_name: str
|
221
|
-
"""
|
222
|
-
self._file_name = file_name
|
223
|
-
|
224
|
-
@property
|
225
|
-
def md5(self):
|
226
|
-
"""Gets the md5 of this UploadDataRequest.
|
227
|
-
|
228
|
-
MD5
|
229
|
-
|
230
|
-
:return: The md5 of this UploadDataRequest.
|
231
|
-
:rtype: str
|
232
|
-
"""
|
233
|
-
return self._md5
|
234
|
-
|
235
|
-
@md5.setter
|
236
|
-
def md5(self, md5):
|
237
|
-
"""Sets the md5 of this UploadDataRequest.
|
238
|
-
|
239
|
-
MD5
|
240
|
-
|
241
|
-
:param md5: The md5 of this UploadDataRequest.
|
242
|
-
:type md5: str
|
243
|
-
"""
|
244
|
-
self._md5 = md5
|
245
|
-
|
246
72
|
@property
|
247
73
|
def body(self):
|
248
74
|
"""Gets the body of this UploadDataRequest.
|
@@ -17,28 +17,70 @@ class UploadDataRequestBody:
|
|
17
17
|
sensitive_list = []
|
18
18
|
|
19
19
|
openapi_types = {
|
20
|
-
'file': 'file'
|
20
|
+
'file': 'file',
|
21
|
+
'target_folder': 'str',
|
22
|
+
'part_number': 'str',
|
23
|
+
'total_part': 'str',
|
24
|
+
'multipart_id': 'str',
|
25
|
+
'file_name': 'str',
|
26
|
+
'md5': 'str'
|
21
27
|
}
|
22
28
|
|
23
29
|
attribute_map = {
|
24
|
-
'file': 'file'
|
30
|
+
'file': 'file',
|
31
|
+
'target_folder': 'target_folder',
|
32
|
+
'part_number': 'part_number',
|
33
|
+
'total_part': 'total_part',
|
34
|
+
'multipart_id': 'multipart_id',
|
35
|
+
'file_name': 'file_name',
|
36
|
+
'md5': 'md5'
|
25
37
|
}
|
26
38
|
|
27
|
-
def __init__(self, file=None):
|
39
|
+
def __init__(self, file=None, target_folder=None, part_number=None, total_part=None, multipart_id=None, file_name=None, md5=None):
|
28
40
|
"""UploadDataRequestBody
|
29
41
|
|
30
42
|
The model defined in huaweicloud sdk
|
31
43
|
|
32
44
|
:param file: 文件流对象
|
33
45
|
:type file: :class:`huaweicloudsdkcore.http.formdata.FormFile`
|
46
|
+
:param target_folder: 目标文件夹
|
47
|
+
:type target_folder: str
|
48
|
+
:param part_number: 分段序号,表示第几个文件片段
|
49
|
+
:type part_number: str
|
50
|
+
:param total_part: 分段总数,上传的文件总共分成了几个片段
|
51
|
+
:type total_part: str
|
52
|
+
:param multipart_id: 分段上传任务id,除了第一个片段外,后续的片段都需要标识出任务id
|
53
|
+
:type multipart_id: str
|
54
|
+
:param file_name: 文件名称
|
55
|
+
:type file_name: str
|
56
|
+
:param md5: MD5
|
57
|
+
:type md5: str
|
34
58
|
"""
|
35
59
|
|
36
60
|
|
37
61
|
|
38
62
|
self._file = None
|
63
|
+
self._target_folder = None
|
64
|
+
self._part_number = None
|
65
|
+
self._total_part = None
|
66
|
+
self._multipart_id = None
|
67
|
+
self._file_name = None
|
68
|
+
self._md5 = None
|
39
69
|
self.discriminator = None
|
40
70
|
|
41
71
|
self.file = file
|
72
|
+
if target_folder is not None:
|
73
|
+
self.target_folder = target_folder
|
74
|
+
if part_number is not None:
|
75
|
+
self.part_number = part_number
|
76
|
+
if total_part is not None:
|
77
|
+
self.total_part = total_part
|
78
|
+
if multipart_id is not None:
|
79
|
+
self.multipart_id = multipart_id
|
80
|
+
if file_name is not None:
|
81
|
+
self.file_name = file_name
|
82
|
+
if md5 is not None:
|
83
|
+
self.md5 = md5
|
42
84
|
|
43
85
|
@property
|
44
86
|
def file(self):
|
@@ -62,6 +104,138 @@ class UploadDataRequestBody:
|
|
62
104
|
"""
|
63
105
|
self._file = file
|
64
106
|
|
107
|
+
@property
|
108
|
+
def target_folder(self):
|
109
|
+
"""Gets the target_folder of this UploadDataRequestBody.
|
110
|
+
|
111
|
+
目标文件夹
|
112
|
+
|
113
|
+
:return: The target_folder of this UploadDataRequestBody.
|
114
|
+
:rtype: str
|
115
|
+
"""
|
116
|
+
return self._target_folder
|
117
|
+
|
118
|
+
@target_folder.setter
|
119
|
+
def target_folder(self, target_folder):
|
120
|
+
"""Sets the target_folder of this UploadDataRequestBody.
|
121
|
+
|
122
|
+
目标文件夹
|
123
|
+
|
124
|
+
:param target_folder: The target_folder of this UploadDataRequestBody.
|
125
|
+
:type target_folder: str
|
126
|
+
"""
|
127
|
+
self._target_folder = target_folder
|
128
|
+
|
129
|
+
@property
|
130
|
+
def part_number(self):
|
131
|
+
"""Gets the part_number of this UploadDataRequestBody.
|
132
|
+
|
133
|
+
分段序号,表示第几个文件片段
|
134
|
+
|
135
|
+
:return: The part_number of this UploadDataRequestBody.
|
136
|
+
:rtype: str
|
137
|
+
"""
|
138
|
+
return self._part_number
|
139
|
+
|
140
|
+
@part_number.setter
|
141
|
+
def part_number(self, part_number):
|
142
|
+
"""Sets the part_number of this UploadDataRequestBody.
|
143
|
+
|
144
|
+
分段序号,表示第几个文件片段
|
145
|
+
|
146
|
+
:param part_number: The part_number of this UploadDataRequestBody.
|
147
|
+
:type part_number: str
|
148
|
+
"""
|
149
|
+
self._part_number = part_number
|
150
|
+
|
151
|
+
@property
|
152
|
+
def total_part(self):
|
153
|
+
"""Gets the total_part of this UploadDataRequestBody.
|
154
|
+
|
155
|
+
分段总数,上传的文件总共分成了几个片段
|
156
|
+
|
157
|
+
:return: The total_part of this UploadDataRequestBody.
|
158
|
+
:rtype: str
|
159
|
+
"""
|
160
|
+
return self._total_part
|
161
|
+
|
162
|
+
@total_part.setter
|
163
|
+
def total_part(self, total_part):
|
164
|
+
"""Sets the total_part of this UploadDataRequestBody.
|
165
|
+
|
166
|
+
分段总数,上传的文件总共分成了几个片段
|
167
|
+
|
168
|
+
:param total_part: The total_part of this UploadDataRequestBody.
|
169
|
+
:type total_part: str
|
170
|
+
"""
|
171
|
+
self._total_part = total_part
|
172
|
+
|
173
|
+
@property
|
174
|
+
def multipart_id(self):
|
175
|
+
"""Gets the multipart_id of this UploadDataRequestBody.
|
176
|
+
|
177
|
+
分段上传任务id,除了第一个片段外,后续的片段都需要标识出任务id
|
178
|
+
|
179
|
+
:return: The multipart_id of this UploadDataRequestBody.
|
180
|
+
:rtype: str
|
181
|
+
"""
|
182
|
+
return self._multipart_id
|
183
|
+
|
184
|
+
@multipart_id.setter
|
185
|
+
def multipart_id(self, multipart_id):
|
186
|
+
"""Sets the multipart_id of this UploadDataRequestBody.
|
187
|
+
|
188
|
+
分段上传任务id,除了第一个片段外,后续的片段都需要标识出任务id
|
189
|
+
|
190
|
+
:param multipart_id: The multipart_id of this UploadDataRequestBody.
|
191
|
+
:type multipart_id: str
|
192
|
+
"""
|
193
|
+
self._multipart_id = multipart_id
|
194
|
+
|
195
|
+
@property
|
196
|
+
def file_name(self):
|
197
|
+
"""Gets the file_name of this UploadDataRequestBody.
|
198
|
+
|
199
|
+
文件名称
|
200
|
+
|
201
|
+
:return: The file_name of this UploadDataRequestBody.
|
202
|
+
:rtype: str
|
203
|
+
"""
|
204
|
+
return self._file_name
|
205
|
+
|
206
|
+
@file_name.setter
|
207
|
+
def file_name(self, file_name):
|
208
|
+
"""Sets the file_name of this UploadDataRequestBody.
|
209
|
+
|
210
|
+
文件名称
|
211
|
+
|
212
|
+
:param file_name: The file_name of this UploadDataRequestBody.
|
213
|
+
:type file_name: str
|
214
|
+
"""
|
215
|
+
self._file_name = file_name
|
216
|
+
|
217
|
+
@property
|
218
|
+
def md5(self):
|
219
|
+
"""Gets the md5 of this UploadDataRequestBody.
|
220
|
+
|
221
|
+
MD5
|
222
|
+
|
223
|
+
:return: The md5 of this UploadDataRequestBody.
|
224
|
+
:rtype: str
|
225
|
+
"""
|
226
|
+
return self._md5
|
227
|
+
|
228
|
+
@md5.setter
|
229
|
+
def md5(self, md5):
|
230
|
+
"""Sets the md5 of this UploadDataRequestBody.
|
231
|
+
|
232
|
+
MD5
|
233
|
+
|
234
|
+
:param md5: The md5 of this UploadDataRequestBody.
|
235
|
+
:type md5: str
|
236
|
+
"""
|
237
|
+
self._md5 = md5
|
238
|
+
|
65
239
|
def to_dict(self):
|
66
240
|
"""Returns the model properties as a dict"""
|
67
241
|
result = {}
|