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,114 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DeleteDrugDatabaseRequest:
|
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
|
+
'database_id': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'database_id': 'database_id'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, database_id=None):
|
28
|
+
"""DeleteDrugDatabaseRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param database_id: 数据库id
|
33
|
+
:type database_id: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._database_id = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.database_id = database_id
|
42
|
+
|
43
|
+
@property
|
44
|
+
def database_id(self):
|
45
|
+
"""Gets the database_id of this DeleteDrugDatabaseRequest.
|
46
|
+
|
47
|
+
数据库id
|
48
|
+
|
49
|
+
:return: The database_id of this DeleteDrugDatabaseRequest.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._database_id
|
53
|
+
|
54
|
+
@database_id.setter
|
55
|
+
def database_id(self, database_id):
|
56
|
+
"""Sets the database_id of this DeleteDrugDatabaseRequest.
|
57
|
+
|
58
|
+
数据库id
|
59
|
+
|
60
|
+
:param database_id: The database_id of this DeleteDrugDatabaseRequest.
|
61
|
+
:type database_id: str
|
62
|
+
"""
|
63
|
+
self._database_id = database_id
|
64
|
+
|
65
|
+
def to_dict(self):
|
66
|
+
"""Returns the model properties as a dict"""
|
67
|
+
result = {}
|
68
|
+
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
70
|
+
value = getattr(self, attr)
|
71
|
+
if isinstance(value, list):
|
72
|
+
result[attr] = list(map(
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
74
|
+
value
|
75
|
+
))
|
76
|
+
elif hasattr(value, "to_dict"):
|
77
|
+
result[attr] = value.to_dict()
|
78
|
+
elif isinstance(value, dict):
|
79
|
+
result[attr] = dict(map(
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
82
|
+
value.items()
|
83
|
+
))
|
84
|
+
else:
|
85
|
+
if attr in self.sensitive_list:
|
86
|
+
result[attr] = "****"
|
87
|
+
else:
|
88
|
+
result[attr] = value
|
89
|
+
|
90
|
+
return result
|
91
|
+
|
92
|
+
def to_str(self):
|
93
|
+
"""Returns the string representation of the model"""
|
94
|
+
import simplejson as json
|
95
|
+
if six.PY2:
|
96
|
+
import sys
|
97
|
+
reload(sys)
|
98
|
+
sys.setdefaultencoding("utf-8")
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
100
|
+
|
101
|
+
def __repr__(self):
|
102
|
+
"""For `print`"""
|
103
|
+
return self.to_str()
|
104
|
+
|
105
|
+
def __eq__(self, other):
|
106
|
+
"""Returns true if both objects are equal"""
|
107
|
+
if not isinstance(other, DeleteDrugDatabaseRequest):
|
108
|
+
return False
|
109
|
+
|
110
|
+
return self.__dict__ == other.__dict__
|
111
|
+
|
112
|
+
def __ne__(self, other):
|
113
|
+
"""Returns true if both objects are not equal"""
|
114
|
+
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 DeleteDrugDatabaseResponse(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
|
+
"""DeleteDrugDatabaseResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(DeleteDrugDatabaseResponse, 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, DeleteDrugDatabaseResponse):
|
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,225 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DetailDatabaseFile:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'source': 'DatabaseFileSource',
|
21
|
+
'url': 'str',
|
22
|
+
'eihealth_project_id': 'str',
|
23
|
+
'status': 'str',
|
24
|
+
'failed_reason': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'source': 'source',
|
29
|
+
'url': 'url',
|
30
|
+
'eihealth_project_id': 'eihealth_project_id',
|
31
|
+
'status': 'status',
|
32
|
+
'failed_reason': 'failed_reason'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, source=None, url=None, eihealth_project_id=None, status=None, failed_reason=None):
|
36
|
+
"""DetailDatabaseFile
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param source:
|
41
|
+
:type source: :class:`huaweicloudsdkeihealth.v1.DatabaseFileSource`
|
42
|
+
:param url: 文件URL,用户私有数据中心为项目路径、公共数据场景为obs地址
|
43
|
+
:type url: str
|
44
|
+
:param eihealth_project_id: 数据库文件所在项目id,仅文件为数据中心时填写
|
45
|
+
:type eihealth_project_id: str
|
46
|
+
:param status: 数据库文件写入状态
|
47
|
+
:type status: str
|
48
|
+
:param failed_reason: 失败原因
|
49
|
+
:type failed_reason: str
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._source = None
|
55
|
+
self._url = None
|
56
|
+
self._eihealth_project_id = None
|
57
|
+
self._status = None
|
58
|
+
self._failed_reason = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
self.source = source
|
62
|
+
self.url = url
|
63
|
+
if eihealth_project_id is not None:
|
64
|
+
self.eihealth_project_id = eihealth_project_id
|
65
|
+
if status is not None:
|
66
|
+
self.status = status
|
67
|
+
if failed_reason is not None:
|
68
|
+
self.failed_reason = failed_reason
|
69
|
+
|
70
|
+
@property
|
71
|
+
def source(self):
|
72
|
+
"""Gets the source of this DetailDatabaseFile.
|
73
|
+
|
74
|
+
:return: The source of this DetailDatabaseFile.
|
75
|
+
:rtype: :class:`huaweicloudsdkeihealth.v1.DatabaseFileSource`
|
76
|
+
"""
|
77
|
+
return self._source
|
78
|
+
|
79
|
+
@source.setter
|
80
|
+
def source(self, source):
|
81
|
+
"""Sets the source of this DetailDatabaseFile.
|
82
|
+
|
83
|
+
:param source: The source of this DetailDatabaseFile.
|
84
|
+
:type source: :class:`huaweicloudsdkeihealth.v1.DatabaseFileSource`
|
85
|
+
"""
|
86
|
+
self._source = source
|
87
|
+
|
88
|
+
@property
|
89
|
+
def url(self):
|
90
|
+
"""Gets the url of this DetailDatabaseFile.
|
91
|
+
|
92
|
+
文件URL,用户私有数据中心为项目路径、公共数据场景为obs地址
|
93
|
+
|
94
|
+
:return: The url of this DetailDatabaseFile.
|
95
|
+
:rtype: str
|
96
|
+
"""
|
97
|
+
return self._url
|
98
|
+
|
99
|
+
@url.setter
|
100
|
+
def url(self, url):
|
101
|
+
"""Sets the url of this DetailDatabaseFile.
|
102
|
+
|
103
|
+
文件URL,用户私有数据中心为项目路径、公共数据场景为obs地址
|
104
|
+
|
105
|
+
:param url: The url of this DetailDatabaseFile.
|
106
|
+
:type url: str
|
107
|
+
"""
|
108
|
+
self._url = url
|
109
|
+
|
110
|
+
@property
|
111
|
+
def eihealth_project_id(self):
|
112
|
+
"""Gets the eihealth_project_id of this DetailDatabaseFile.
|
113
|
+
|
114
|
+
数据库文件所在项目id,仅文件为数据中心时填写
|
115
|
+
|
116
|
+
:return: The eihealth_project_id of this DetailDatabaseFile.
|
117
|
+
:rtype: str
|
118
|
+
"""
|
119
|
+
return self._eihealth_project_id
|
120
|
+
|
121
|
+
@eihealth_project_id.setter
|
122
|
+
def eihealth_project_id(self, eihealth_project_id):
|
123
|
+
"""Sets the eihealth_project_id of this DetailDatabaseFile.
|
124
|
+
|
125
|
+
数据库文件所在项目id,仅文件为数据中心时填写
|
126
|
+
|
127
|
+
:param eihealth_project_id: The eihealth_project_id of this DetailDatabaseFile.
|
128
|
+
:type eihealth_project_id: str
|
129
|
+
"""
|
130
|
+
self._eihealth_project_id = eihealth_project_id
|
131
|
+
|
132
|
+
@property
|
133
|
+
def status(self):
|
134
|
+
"""Gets the status of this DetailDatabaseFile.
|
135
|
+
|
136
|
+
数据库文件写入状态
|
137
|
+
|
138
|
+
:return: The status of this DetailDatabaseFile.
|
139
|
+
:rtype: str
|
140
|
+
"""
|
141
|
+
return self._status
|
142
|
+
|
143
|
+
@status.setter
|
144
|
+
def status(self, status):
|
145
|
+
"""Sets the status of this DetailDatabaseFile.
|
146
|
+
|
147
|
+
数据库文件写入状态
|
148
|
+
|
149
|
+
:param status: The status of this DetailDatabaseFile.
|
150
|
+
:type status: str
|
151
|
+
"""
|
152
|
+
self._status = status
|
153
|
+
|
154
|
+
@property
|
155
|
+
def failed_reason(self):
|
156
|
+
"""Gets the failed_reason of this DetailDatabaseFile.
|
157
|
+
|
158
|
+
失败原因
|
159
|
+
|
160
|
+
:return: The failed_reason of this DetailDatabaseFile.
|
161
|
+
:rtype: str
|
162
|
+
"""
|
163
|
+
return self._failed_reason
|
164
|
+
|
165
|
+
@failed_reason.setter
|
166
|
+
def failed_reason(self, failed_reason):
|
167
|
+
"""Sets the failed_reason of this DetailDatabaseFile.
|
168
|
+
|
169
|
+
失败原因
|
170
|
+
|
171
|
+
:param failed_reason: The failed_reason of this DetailDatabaseFile.
|
172
|
+
:type failed_reason: str
|
173
|
+
"""
|
174
|
+
self._failed_reason = failed_reason
|
175
|
+
|
176
|
+
def to_dict(self):
|
177
|
+
"""Returns the model properties as a dict"""
|
178
|
+
result = {}
|
179
|
+
|
180
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
181
|
+
value = getattr(self, attr)
|
182
|
+
if isinstance(value, list):
|
183
|
+
result[attr] = list(map(
|
184
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
185
|
+
value
|
186
|
+
))
|
187
|
+
elif hasattr(value, "to_dict"):
|
188
|
+
result[attr] = value.to_dict()
|
189
|
+
elif isinstance(value, dict):
|
190
|
+
result[attr] = dict(map(
|
191
|
+
lambda item: (item[0], item[1].to_dict())
|
192
|
+
if hasattr(item[1], "to_dict") else item,
|
193
|
+
value.items()
|
194
|
+
))
|
195
|
+
else:
|
196
|
+
if attr in self.sensitive_list:
|
197
|
+
result[attr] = "****"
|
198
|
+
else:
|
199
|
+
result[attr] = value
|
200
|
+
|
201
|
+
return result
|
202
|
+
|
203
|
+
def to_str(self):
|
204
|
+
"""Returns the string representation of the model"""
|
205
|
+
import simplejson as json
|
206
|
+
if six.PY2:
|
207
|
+
import sys
|
208
|
+
reload(sys)
|
209
|
+
sys.setdefaultencoding("utf-8")
|
210
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
211
|
+
|
212
|
+
def __repr__(self):
|
213
|
+
"""For `print`"""
|
214
|
+
return self.to_str()
|
215
|
+
|
216
|
+
def __eq__(self, other):
|
217
|
+
"""Returns true if both objects are equal"""
|
218
|
+
if not isinstance(other, DetailDatabaseFile):
|
219
|
+
return False
|
220
|
+
|
221
|
+
return self.__dict__ == other.__dict__
|
222
|
+
|
223
|
+
def __ne__(self, other):
|
224
|
+
"""Returns true if both objects are not equal"""
|
225
|
+
return not self == other
|
@@ -18,15 +18,19 @@ class DownloadDataReq:
|
|
18
18
|
|
19
19
|
openapi_types = {
|
20
20
|
'type': 'DownloadDataTypeEnum',
|
21
|
-
'url': 'str'
|
21
|
+
'url': 'str',
|
22
|
+
'range_start': 'int',
|
23
|
+
'range_end': 'int'
|
22
24
|
}
|
23
25
|
|
24
26
|
attribute_map = {
|
25
27
|
'type': 'type',
|
26
|
-
'url': 'url'
|
28
|
+
'url': 'url',
|
29
|
+
'range_start': 'range_start',
|
30
|
+
'range_end': 'range_end'
|
27
31
|
}
|
28
32
|
|
29
|
-
def __init__(self, type=None, url=None):
|
33
|
+
def __init__(self, type=None, url=None, range_start=None, range_end=None):
|
30
34
|
"""DownloadDataReq
|
31
35
|
|
32
36
|
The model defined in huaweicloud sdk
|
@@ -35,18 +39,28 @@ class DownloadDataReq:
|
|
35
39
|
:type type: :class:`huaweicloudsdkeihealth.v1.DownloadDataTypeEnum`
|
36
40
|
:param url: 资源地址(支持https、obs地址)
|
37
41
|
:type url: str
|
42
|
+
:param range_start: 指定下载对象的开始位置
|
43
|
+
:type range_start: int
|
44
|
+
:param range_end: 指定下载对象的结束位置
|
45
|
+
:type range_end: int
|
38
46
|
"""
|
39
47
|
|
40
48
|
|
41
49
|
|
42
50
|
self._type = None
|
43
51
|
self._url = None
|
52
|
+
self._range_start = None
|
53
|
+
self._range_end = None
|
44
54
|
self.discriminator = None
|
45
55
|
|
46
56
|
if type is not None:
|
47
57
|
self.type = type
|
48
58
|
if url is not None:
|
49
59
|
self.url = url
|
60
|
+
if range_start is not None:
|
61
|
+
self.range_start = range_start
|
62
|
+
if range_end is not None:
|
63
|
+
self.range_end = range_end
|
50
64
|
|
51
65
|
@property
|
52
66
|
def type(self):
|
@@ -88,6 +102,50 @@ class DownloadDataReq:
|
|
88
102
|
"""
|
89
103
|
self._url = url
|
90
104
|
|
105
|
+
@property
|
106
|
+
def range_start(self):
|
107
|
+
"""Gets the range_start of this DownloadDataReq.
|
108
|
+
|
109
|
+
指定下载对象的开始位置
|
110
|
+
|
111
|
+
:return: The range_start of this DownloadDataReq.
|
112
|
+
:rtype: int
|
113
|
+
"""
|
114
|
+
return self._range_start
|
115
|
+
|
116
|
+
@range_start.setter
|
117
|
+
def range_start(self, range_start):
|
118
|
+
"""Sets the range_start of this DownloadDataReq.
|
119
|
+
|
120
|
+
指定下载对象的开始位置
|
121
|
+
|
122
|
+
:param range_start: The range_start of this DownloadDataReq.
|
123
|
+
:type range_start: int
|
124
|
+
"""
|
125
|
+
self._range_start = range_start
|
126
|
+
|
127
|
+
@property
|
128
|
+
def range_end(self):
|
129
|
+
"""Gets the range_end of this DownloadDataReq.
|
130
|
+
|
131
|
+
指定下载对象的结束位置
|
132
|
+
|
133
|
+
:return: The range_end of this DownloadDataReq.
|
134
|
+
:rtype: int
|
135
|
+
"""
|
136
|
+
return self._range_end
|
137
|
+
|
138
|
+
@range_end.setter
|
139
|
+
def range_end(self, range_end):
|
140
|
+
"""Sets the range_end of this DownloadDataReq.
|
141
|
+
|
142
|
+
指定下载对象的结束位置
|
143
|
+
|
144
|
+
:param range_end: The range_end of this DownloadDataReq.
|
145
|
+
:type range_end: int
|
146
|
+
"""
|
147
|
+
self._range_end = range_end
|
148
|
+
|
91
149
|
def to_dict(self):
|
92
150
|
"""Returns the model properties as a dict"""
|
93
151
|
result = {}
|