baiducloud-python-sdk-bls 0.0.1__tar.gz → 0.0.3__tar.gz
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.
- baiducloud-python-sdk-bls-0.0.3/ChangeLog.md +12 -0
- {baiducloud-python-sdk-bls-0.0.1/baiducloud_python_sdk_bls.egg-info → baiducloud-python-sdk-bls-0.0.3}/PKG-INFO +1 -1
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/__init__.py +1 -1
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/api/bls_client.py +137 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/__init__.py +15 -0
- baiducloud-python-sdk-bls-0.0.3/baiducloud_python_sdk_bls/models/create_download_result.py +58 -0
- baiducloud-python-sdk-bls-0.0.3/baiducloud_python_sdk_bls/models/create_download_task_request.py +153 -0
- baiducloud-python-sdk-bls-0.0.3/baiducloud_python_sdk_bls/models/create_download_task_response.py +86 -0
- baiducloud-python-sdk-bls-0.0.1/baiducloud_python_sdk_bls/models/update_project_response.py → baiducloud-python-sdk-bls-0.0.3/baiducloud_python_sdk_bls/models/create_project_response.py +5 -5
- baiducloud-python-sdk-bls-0.0.3/baiducloud_python_sdk_bls/models/delete_download_task_request.py +58 -0
- baiducloud-python-sdk-bls-0.0.3/baiducloud_python_sdk_bls/models/delete_download_task_response.py +78 -0
- baiducloud-python-sdk-bls-0.0.3/baiducloud_python_sdk_bls/models/describe_download_task_request.py +58 -0
- baiducloud-python-sdk-bls-0.0.3/baiducloud_python_sdk_bls/models/describe_download_task_response.py +86 -0
- baiducloud-python-sdk-bls-0.0.3/baiducloud_python_sdk_bls/models/download_link_result.py +74 -0
- baiducloud-python-sdk-bls-0.0.3/baiducloud_python_sdk_bls/models/download_task_list_result.py +100 -0
- baiducloud-python-sdk-bls-0.0.3/baiducloud_python_sdk_bls/models/download_task_result.py +60 -0
- baiducloud-python-sdk-bls-0.0.3/baiducloud_python_sdk_bls/models/get_download_task_link_request.py +58 -0
- baiducloud-python-sdk-bls-0.0.3/baiducloud_python_sdk_bls/models/get_download_task_link_response.py +86 -0
- baiducloud-python-sdk-bls-0.0.3/baiducloud_python_sdk_bls/models/list_download_task_request.py +100 -0
- baiducloud-python-sdk-bls-0.0.3/baiducloud_python_sdk_bls/models/list_download_task_response.py +86 -0
- baiducloud-python-sdk-bls-0.0.3/baiducloud_python_sdk_bls/models/task.py +232 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/update_project_request.py +11 -3
- baiducloud-python-sdk-bls-0.0.1/baiducloud_python_sdk_bls/models/create_project_response.py → baiducloud-python-sdk-bls-0.0.3/baiducloud_python_sdk_bls/models/update_project_response.py +5 -5
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3/baiducloud_python_sdk_bls.egg-info}/PKG-INFO +1 -1
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls.egg-info/SOURCES.txt +15 -0
- baiducloud-python-sdk-bls-0.0.1/ChangeLog.md +0 -4
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/LICENSE +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/MANIFEST.in +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/README-CN.md +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/README.md +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/api/__init__.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/bucket.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/create_project_request.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/dataset_scan_info.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/delete_project_request.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/delete_project_response.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/describe_project_request.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/describe_project_response.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/list_project_request.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/list_project_response.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/log_record.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/log_tag.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/project.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/project_list_result.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/project_result.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/pull_log_record_request.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/pull_log_record_response.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/push_log_record_request.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/push_log_record_response.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/query_log_histogram_request.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/query_log_histogram_response.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/query_log_record_request.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/query_log_record_response.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/result_set.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/search_info.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/search_statistic.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls/models/statistics.py +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls.egg-info/dependency_links.txt +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls.egg-info/requires.txt +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/baiducloud_python_sdk_bls.egg-info/top_level.txt +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/setup.cfg +0 -0
- {baiducloud-python-sdk-bls-0.0.1 → baiducloud-python-sdk-bls-0.0.3}/setup.py +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
2026-06-16 Version: 0.0.3
|
|
2
|
+
BLS新增下载任务相关接口并更新日志组字段
|
|
3
|
+
- 涉及产品: BLS,新增创建、查询、列表、删除、获取链接五个下载任务接口
|
|
4
|
+
- 涉及产品: BLS,updateProject接口description字段类型改为string并新增top字段
|
|
5
|
+
|
|
6
|
+
2026-05-29 Version: 0.0.2
|
|
7
|
+
- 涉及产品: BLS,SDK版本更新
|
|
8
|
+
|
|
9
|
+
2026-05-29 Version: 0.0.1
|
|
10
|
+
- 涉及产品: BLS,新增日志组创建、更新、删除、列表及详情接口
|
|
11
|
+
- 涉及产品: BLS,新增日志推送与获取接口
|
|
12
|
+
- 涉及产品: BLS,新增日志检索分析及直方图查询接口
|
|
@@ -11,9 +11,14 @@ from baiducloud_python_sdk_core.bce_base_client import BceBaseClient
|
|
|
11
11
|
from baiducloud_python_sdk_core.http import bce_http_client
|
|
12
12
|
from baiducloud_python_sdk_core.http import handler
|
|
13
13
|
from baiducloud_python_sdk_core.http import http_methods
|
|
14
|
+
from baiducloud_python_sdk_bls.models.create_download_task_response import CreateDownloadTaskResponse
|
|
14
15
|
from baiducloud_python_sdk_bls.models.create_project_response import CreateProjectResponse
|
|
16
|
+
from baiducloud_python_sdk_bls.models.delete_download_task_response import DeleteDownloadTaskResponse
|
|
15
17
|
from baiducloud_python_sdk_bls.models.delete_project_response import DeleteProjectResponse
|
|
18
|
+
from baiducloud_python_sdk_bls.models.describe_download_task_response import DescribeDownloadTaskResponse
|
|
16
19
|
from baiducloud_python_sdk_bls.models.describe_project_response import DescribeProjectResponse
|
|
20
|
+
from baiducloud_python_sdk_bls.models.get_download_task_link_response import GetDownloadTaskLinkResponse
|
|
21
|
+
from baiducloud_python_sdk_bls.models.list_download_task_response import ListDownloadTaskResponse
|
|
17
22
|
from baiducloud_python_sdk_bls.models.list_project_response import ListProjectResponse
|
|
18
23
|
from baiducloud_python_sdk_bls.models.pull_log_record_response import PullLogRecordResponse
|
|
19
24
|
from baiducloud_python_sdk_bls.models.push_log_record_response import PushLogRecordResponse
|
|
@@ -39,10 +44,14 @@ class BlsClient(BceBaseClient):
|
|
|
39
44
|
|
|
40
45
|
CONSTANT_LOGRECORD = b'logrecord'
|
|
41
46
|
|
|
47
|
+
CONSTANT_DOWNLOAD = b'download'
|
|
48
|
+
|
|
42
49
|
CONSTANT_LIST = b'list'
|
|
43
50
|
|
|
44
51
|
CONSTANT_LOGHISTOGRAM = b'loghistogram'
|
|
45
52
|
|
|
53
|
+
CONSTANT_LINK = b'link'
|
|
54
|
+
|
|
46
55
|
def __init__(self, config=None):
|
|
47
56
|
"""
|
|
48
57
|
Initialize the bls client.
|
|
@@ -52,6 +61,32 @@ class BlsClient(BceBaseClient):
|
|
|
52
61
|
"""
|
|
53
62
|
bce_base_client.BceBaseClient.__init__(self, config)
|
|
54
63
|
|
|
64
|
+
def create_download_task(self, request, config=None):
|
|
65
|
+
"""
|
|
66
|
+
create_download_task
|
|
67
|
+
|
|
68
|
+
:param request: Request entity containing all parameters
|
|
69
|
+
:type request: BlsClientRequest
|
|
70
|
+
:param config: Optional request configuration override
|
|
71
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
72
|
+
|
|
73
|
+
:return: API response containing CreateDownloadTaskResponse data
|
|
74
|
+
:rtype: CreateDownloadTaskResponse
|
|
75
|
+
|
|
76
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
77
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
78
|
+
"""
|
|
79
|
+
path = utils.append_uri(BlsClient.VERSION_V2, BlsClient.CONSTANT_LOGSTORE, BlsClient.CONSTANT_DOWNLOAD)
|
|
80
|
+
headers = None
|
|
81
|
+
merged_config = self._create_request_with_host(request, config)
|
|
82
|
+
return self._send_request(
|
|
83
|
+
http_methods.POST,
|
|
84
|
+
path=path,
|
|
85
|
+
body=request.to_json_string(),
|
|
86
|
+
config=merged_config,
|
|
87
|
+
model=CreateDownloadTaskResponse,
|
|
88
|
+
)
|
|
89
|
+
|
|
55
90
|
def create_project(self, request, config=None):
|
|
56
91
|
"""
|
|
57
92
|
create_project
|
|
@@ -78,6 +113,30 @@ class BlsClient(BceBaseClient):
|
|
|
78
113
|
model=CreateProjectResponse,
|
|
79
114
|
)
|
|
80
115
|
|
|
116
|
+
def delete_download_task(self, request, config=None):
|
|
117
|
+
"""
|
|
118
|
+
delete_download_task
|
|
119
|
+
|
|
120
|
+
:param request: Request entity containing all parameters
|
|
121
|
+
:type request: BlsClientRequest
|
|
122
|
+
:param config: Optional request configuration override
|
|
123
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
124
|
+
|
|
125
|
+
:return: API response containing DeleteDownloadTaskResponse data
|
|
126
|
+
:rtype: DeleteDownloadTaskResponse
|
|
127
|
+
|
|
128
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
129
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
130
|
+
"""
|
|
131
|
+
path = utils.append_uri(
|
|
132
|
+
BlsClient.VERSION_V2, BlsClient.CONSTANT_LOGSTORE, BlsClient.CONSTANT_DOWNLOAD, request.uuid
|
|
133
|
+
)
|
|
134
|
+
headers = None
|
|
135
|
+
merged_config = self._create_request_with_host(request, config)
|
|
136
|
+
return self._send_request(
|
|
137
|
+
http_methods.DELETE, path=path, config=merged_config, model=DeleteDownloadTaskResponse
|
|
138
|
+
)
|
|
139
|
+
|
|
81
140
|
def delete_project(self, request, config=None):
|
|
82
141
|
"""
|
|
83
142
|
delete_project
|
|
@@ -98,6 +157,30 @@ class BlsClient(BceBaseClient):
|
|
|
98
157
|
merged_config = self._create_request_with_host(request, config)
|
|
99
158
|
return self._send_request(http_methods.DELETE, path=path, config=merged_config, model=DeleteProjectResponse)
|
|
100
159
|
|
|
160
|
+
def describe_download_task(self, request, config=None):
|
|
161
|
+
"""
|
|
162
|
+
describe_download_task
|
|
163
|
+
|
|
164
|
+
:param request: Request entity containing all parameters
|
|
165
|
+
:type request: BlsClientRequest
|
|
166
|
+
:param config: Optional request configuration override
|
|
167
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
168
|
+
|
|
169
|
+
:return: API response containing DescribeDownloadTaskResponse data
|
|
170
|
+
:rtype: DescribeDownloadTaskResponse
|
|
171
|
+
|
|
172
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
173
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
174
|
+
"""
|
|
175
|
+
path = utils.append_uri(
|
|
176
|
+
BlsClient.VERSION_V2, BlsClient.CONSTANT_LOGSTORE, BlsClient.CONSTANT_DOWNLOAD, request.uuid
|
|
177
|
+
)
|
|
178
|
+
headers = None
|
|
179
|
+
merged_config = self._create_request_with_host(request, config)
|
|
180
|
+
return self._send_request(
|
|
181
|
+
http_methods.GET, path=path, config=merged_config, model=DescribeDownloadTaskResponse
|
|
182
|
+
)
|
|
183
|
+
|
|
101
184
|
def describe_project(self, request, config=None):
|
|
102
185
|
"""
|
|
103
186
|
describe_project
|
|
@@ -118,6 +201,60 @@ class BlsClient(BceBaseClient):
|
|
|
118
201
|
merged_config = self._create_request_with_host(request, config)
|
|
119
202
|
return self._send_request(http_methods.GET, path=path, config=merged_config, model=DescribeProjectResponse)
|
|
120
203
|
|
|
204
|
+
def get_download_task_link(self, request, config=None):
|
|
205
|
+
"""
|
|
206
|
+
get_download_task_link
|
|
207
|
+
|
|
208
|
+
:param request: Request entity containing all parameters
|
|
209
|
+
:type request: BlsClientRequest
|
|
210
|
+
:param config: Optional request configuration override
|
|
211
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
212
|
+
|
|
213
|
+
:return: API response containing GetDownloadTaskLinkResponse data
|
|
214
|
+
:rtype: GetDownloadTaskLinkResponse
|
|
215
|
+
|
|
216
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
217
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
218
|
+
"""
|
|
219
|
+
path = utils.append_uri(
|
|
220
|
+
BlsClient.VERSION_V2,
|
|
221
|
+
BlsClient.CONSTANT_LOGSTORE,
|
|
222
|
+
BlsClient.CONSTANT_DOWNLOAD,
|
|
223
|
+
BlsClient.CONSTANT_LINK,
|
|
224
|
+
request.uuid,
|
|
225
|
+
)
|
|
226
|
+
headers = None
|
|
227
|
+
merged_config = self._create_request_with_host(request, config)
|
|
228
|
+
return self._send_request(http_methods.GET, path=path, config=merged_config, model=GetDownloadTaskLinkResponse)
|
|
229
|
+
|
|
230
|
+
def list_download_task(self, request, config=None):
|
|
231
|
+
"""
|
|
232
|
+
list_download_task
|
|
233
|
+
|
|
234
|
+
:param request: Request entity containing all parameters
|
|
235
|
+
:type request: BlsClientRequest
|
|
236
|
+
:param config: Optional request configuration override
|
|
237
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
238
|
+
|
|
239
|
+
:return: API response containing ListDownloadTaskResponse data
|
|
240
|
+
:rtype: ListDownloadTaskResponse
|
|
241
|
+
|
|
242
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
243
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
244
|
+
"""
|
|
245
|
+
path = utils.append_uri(
|
|
246
|
+
BlsClient.VERSION_V2, BlsClient.CONSTANT_LOGSTORE, BlsClient.CONSTANT_DOWNLOAD, BlsClient.CONSTANT_LIST
|
|
247
|
+
)
|
|
248
|
+
headers = None
|
|
249
|
+
merged_config = self._create_request_with_host(request, config)
|
|
250
|
+
return self._send_request(
|
|
251
|
+
http_methods.POST,
|
|
252
|
+
path=path,
|
|
253
|
+
body=request.to_json_string(),
|
|
254
|
+
config=merged_config,
|
|
255
|
+
model=ListDownloadTaskResponse,
|
|
256
|
+
)
|
|
257
|
+
|
|
121
258
|
def list_project(self, request, config=None):
|
|
122
259
|
"""
|
|
123
260
|
list_project
|
|
@@ -3,11 +3,22 @@ Models for bls SDK.
|
|
|
3
3
|
"""
|
|
4
4
|
|
|
5
5
|
from .bucket import Bucket
|
|
6
|
+
from .create_download_result import CreateDownloadResult
|
|
7
|
+
from .create_download_task_request import CreateDownloadTaskRequest
|
|
8
|
+
from .create_download_task_response import CreateDownloadTaskResponse
|
|
6
9
|
from .create_project_request import CreateProjectRequest
|
|
7
10
|
from .create_project_response import CreateProjectResponse
|
|
8
11
|
from .dataset_scan_info import DatasetScanInfo
|
|
12
|
+
from .delete_download_task_response import DeleteDownloadTaskResponse
|
|
9
13
|
from .delete_project_response import DeleteProjectResponse
|
|
14
|
+
from .describe_download_task_response import DescribeDownloadTaskResponse
|
|
10
15
|
from .describe_project_response import DescribeProjectResponse
|
|
16
|
+
from .download_link_result import DownloadLinkResult
|
|
17
|
+
from .download_task_list_result import DownloadTaskListResult
|
|
18
|
+
from .download_task_result import DownloadTaskResult
|
|
19
|
+
from .get_download_task_link_response import GetDownloadTaskLinkResponse
|
|
20
|
+
from .list_download_task_request import ListDownloadTaskRequest
|
|
21
|
+
from .list_download_task_response import ListDownloadTaskResponse
|
|
11
22
|
from .list_project_request import ListProjectRequest
|
|
12
23
|
from .list_project_response import ListProjectResponse
|
|
13
24
|
from .log_record import LogRecord
|
|
@@ -24,10 +35,14 @@ from .result_set import ResultSet
|
|
|
24
35
|
from .search_info import SearchInfo
|
|
25
36
|
from .search_statistic import SearchStatistic
|
|
26
37
|
from .statistics import Statistics
|
|
38
|
+
from .task import Task
|
|
27
39
|
from .update_project_request import UpdateProjectRequest
|
|
28
40
|
from .update_project_response import UpdateProjectResponse
|
|
29
41
|
from .describe_project_request import DescribeProjectRequest
|
|
30
42
|
from .delete_project_request import DeleteProjectRequest
|
|
31
43
|
from .query_log_record_request import QueryLogRecordRequest
|
|
44
|
+
from .describe_download_task_request import DescribeDownloadTaskRequest
|
|
45
|
+
from .delete_download_task_request import DeleteDownloadTaskRequest
|
|
32
46
|
from .query_log_histogram_request import QueryLogHistogramRequest
|
|
33
47
|
from .pull_log_record_request import PullLogRecordRequest
|
|
48
|
+
from .get_download_task_link_request import GetDownloadTaskLinkRequest
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""
|
|
2
|
+
CreateDownloadResult information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateDownloadResult(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
CreateDownloadResult
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, uuid=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize CreateDownloadResult instance.
|
|
16
|
+
|
|
17
|
+
:param uuid:
|
|
18
|
+
:type uuid: str (optional)
|
|
19
|
+
"""
|
|
20
|
+
super().__init__()
|
|
21
|
+
self.uuid = uuid
|
|
22
|
+
|
|
23
|
+
def to_dict(self):
|
|
24
|
+
"""
|
|
25
|
+
Convert the model instance to a dictionary representation.
|
|
26
|
+
|
|
27
|
+
Nested model objects are recursively converted to dictionaries.
|
|
28
|
+
|
|
29
|
+
:return: Dictionary representation of the model
|
|
30
|
+
:rtype: dict
|
|
31
|
+
"""
|
|
32
|
+
_map = super().to_dict()
|
|
33
|
+
if _map is not None:
|
|
34
|
+
return _map
|
|
35
|
+
result = dict()
|
|
36
|
+
if self.uuid is not None:
|
|
37
|
+
result['uuid'] = self.uuid
|
|
38
|
+
return result
|
|
39
|
+
|
|
40
|
+
def from_dict(self, m):
|
|
41
|
+
"""
|
|
42
|
+
Populate the model instance from a dictionary.
|
|
43
|
+
|
|
44
|
+
Nested dictionaries are recursively converted to model objects.
|
|
45
|
+
|
|
46
|
+
:param m: Dictionary containing model data
|
|
47
|
+
:type m: dict
|
|
48
|
+
|
|
49
|
+
:return: Self reference for method chaining
|
|
50
|
+
:rtype: CreateDownloadResult
|
|
51
|
+
|
|
52
|
+
:raises TypeError: If input is not a dictionary type
|
|
53
|
+
:raises ValueError: If nested model conversion fails
|
|
54
|
+
"""
|
|
55
|
+
m = m or dict()
|
|
56
|
+
if m.get('uuid') is not None:
|
|
57
|
+
self.uuid = m.get('uuid')
|
|
58
|
+
return self
|
baiducloud-python-sdk-bls-0.0.3/baiducloud_python_sdk_bls/models/create_download_task_request.py
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for CreateDownloadTaskRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateDownloadTaskRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for CreateDownloadTaskRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(
|
|
16
|
+
self,
|
|
17
|
+
log_store_name,
|
|
18
|
+
query_start_time,
|
|
19
|
+
query_end_time,
|
|
20
|
+
name=None,
|
|
21
|
+
project=None,
|
|
22
|
+
log_stream_name=None,
|
|
23
|
+
query=None,
|
|
24
|
+
format=None,
|
|
25
|
+
limit=None,
|
|
26
|
+
order=None,
|
|
27
|
+
file_dir=None,
|
|
28
|
+
):
|
|
29
|
+
"""
|
|
30
|
+
Initialize CreateDownloadTaskRequest request entity.
|
|
31
|
+
|
|
32
|
+
:param name: 下载任务名称
|
|
33
|
+
:type name: str (optional)
|
|
34
|
+
|
|
35
|
+
:param project: 日志组名称,默认default
|
|
36
|
+
:type project: str (optional)
|
|
37
|
+
|
|
38
|
+
:param log_store_name: 日志集名称
|
|
39
|
+
:type log_store_name: str (required)
|
|
40
|
+
|
|
41
|
+
:param log_stream_name: 日志流名称,默认在全部日志流中下载数据
|
|
42
|
+
:type log_stream_name: str (optional)
|
|
43
|
+
|
|
44
|
+
:param query: 检索语句,默认下载全部数据
|
|
45
|
+
:type query: str (optional)
|
|
46
|
+
|
|
47
|
+
:param query_start_time: 日志开始时间,UTC时间,格式ISO8601,例如:2020-01-10T13:23:34Z
|
|
48
|
+
:type query_start_time: str (required)
|
|
49
|
+
|
|
50
|
+
:param query_end_time: 日志结束时间,UTC时间,格式ISO8601,例如:2020-01-10T13:23:34Z
|
|
51
|
+
:type query_end_time: str (required)
|
|
52
|
+
|
|
53
|
+
:param format: 下载文件的格式,默认json,支持 json,csv
|
|
54
|
+
:type format: str (optional)
|
|
55
|
+
|
|
56
|
+
:param limit: 下载日志的行数,默认1000000,最大1000000
|
|
57
|
+
:type limit: int (optional)
|
|
58
|
+
|
|
59
|
+
:param order: 排序方式,默认desc,按照时间倒序排序,支持desc和asc
|
|
60
|
+
:type order: str (optional)
|
|
61
|
+
|
|
62
|
+
:param file_dir: file_dir parameter
|
|
63
|
+
:type file_dir: str (optional)
|
|
64
|
+
"""
|
|
65
|
+
super().__init__()
|
|
66
|
+
self.name = name
|
|
67
|
+
self.project = project
|
|
68
|
+
self.log_store_name = log_store_name
|
|
69
|
+
self.log_stream_name = log_stream_name
|
|
70
|
+
self.query = query
|
|
71
|
+
self.query_start_time = query_start_time
|
|
72
|
+
self.query_end_time = query_end_time
|
|
73
|
+
self.format = format
|
|
74
|
+
self.limit = limit
|
|
75
|
+
self.order = order
|
|
76
|
+
self.file_dir = file_dir
|
|
77
|
+
|
|
78
|
+
def to_dict(self):
|
|
79
|
+
"""
|
|
80
|
+
Convert the request entity to a dictionary representation.
|
|
81
|
+
|
|
82
|
+
Nested model objects are recursively converted to dictionaries.
|
|
83
|
+
|
|
84
|
+
:return: Dictionary representation of the request
|
|
85
|
+
:rtype: dict
|
|
86
|
+
"""
|
|
87
|
+
_map = super().to_dict()
|
|
88
|
+
if _map is not None:
|
|
89
|
+
return _map
|
|
90
|
+
result = dict()
|
|
91
|
+
if self.name is not None:
|
|
92
|
+
result['name'] = self.name
|
|
93
|
+
if self.project is not None:
|
|
94
|
+
result['project'] = self.project
|
|
95
|
+
if self.log_store_name is not None:
|
|
96
|
+
result['logStoreName'] = self.log_store_name
|
|
97
|
+
if self.log_stream_name is not None:
|
|
98
|
+
result['logStreamName'] = self.log_stream_name
|
|
99
|
+
if self.query is not None:
|
|
100
|
+
result['query'] = self.query
|
|
101
|
+
if self.query_start_time is not None:
|
|
102
|
+
result['queryStartTime'] = self.query_start_time
|
|
103
|
+
if self.query_end_time is not None:
|
|
104
|
+
result['queryEndTime'] = self.query_end_time
|
|
105
|
+
if self.format is not None:
|
|
106
|
+
result['format'] = self.format
|
|
107
|
+
if self.limit is not None:
|
|
108
|
+
result['limit'] = self.limit
|
|
109
|
+
if self.order is not None:
|
|
110
|
+
result['order'] = self.order
|
|
111
|
+
if self.file_dir is not None:
|
|
112
|
+
result['fileDir'] = self.file_dir
|
|
113
|
+
return result
|
|
114
|
+
|
|
115
|
+
def from_dict(self, m):
|
|
116
|
+
"""
|
|
117
|
+
Populate the request entity from a dictionary.
|
|
118
|
+
|
|
119
|
+
Nested dictionaries are recursively converted to model objects.
|
|
120
|
+
|
|
121
|
+
:param m: Dictionary containing request data
|
|
122
|
+
:type m: dict
|
|
123
|
+
|
|
124
|
+
:return: Self reference for method chaining
|
|
125
|
+
:rtype: CreateDownloadTaskRequest
|
|
126
|
+
|
|
127
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
128
|
+
:raises ValueError: If nested model conversion fails
|
|
129
|
+
"""
|
|
130
|
+
m = m or dict()
|
|
131
|
+
if m.get('name') is not None:
|
|
132
|
+
self.name = m.get('name')
|
|
133
|
+
if m.get('project') is not None:
|
|
134
|
+
self.project = m.get('project')
|
|
135
|
+
if m.get('logStoreName') is not None:
|
|
136
|
+
self.log_store_name = m.get('logStoreName')
|
|
137
|
+
if m.get('logStreamName') is not None:
|
|
138
|
+
self.log_stream_name = m.get('logStreamName')
|
|
139
|
+
if m.get('query') is not None:
|
|
140
|
+
self.query = m.get('query')
|
|
141
|
+
if m.get('queryStartTime') is not None:
|
|
142
|
+
self.query_start_time = m.get('queryStartTime')
|
|
143
|
+
if m.get('queryEndTime') is not None:
|
|
144
|
+
self.query_end_time = m.get('queryEndTime')
|
|
145
|
+
if m.get('format') is not None:
|
|
146
|
+
self.format = m.get('format')
|
|
147
|
+
if m.get('limit') is not None:
|
|
148
|
+
self.limit = m.get('limit')
|
|
149
|
+
if m.get('order') is not None:
|
|
150
|
+
self.order = m.get('order')
|
|
151
|
+
if m.get('fileDir') is not None:
|
|
152
|
+
self.file_dir = m.get('fileDir')
|
|
153
|
+
return self
|
baiducloud-python-sdk-bls-0.0.3/baiducloud_python_sdk_bls/models/create_download_task_response.py
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for CreateDownloadTaskResponse information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
from baiducloud_python_sdk_bls.models.create_download_result import CreateDownloadResult
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class CreateDownloadTaskResponse(BceResponse):
|
|
10
|
+
"""
|
|
11
|
+
CreateDownloadTaskResponse
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, success=None, code=None, message=None, result=None):
|
|
15
|
+
"""
|
|
16
|
+
Initialize CreateDownloadTaskResponse response.
|
|
17
|
+
|
|
18
|
+
:param success: 请求是否成功
|
|
19
|
+
:type success: bool (optional)
|
|
20
|
+
|
|
21
|
+
:param code: 请求码,成功为OK,错误为具体的错误码
|
|
22
|
+
:type code: str (optional)
|
|
23
|
+
|
|
24
|
+
:param message: 请求成功为空,失败为具体的错误信息
|
|
25
|
+
:type message: str (optional)
|
|
26
|
+
|
|
27
|
+
:param result: result field
|
|
28
|
+
:type result: CreateDownloadResult (optional)
|
|
29
|
+
"""
|
|
30
|
+
super().__init__()
|
|
31
|
+
self.success = success
|
|
32
|
+
self.code = code
|
|
33
|
+
self.message = message
|
|
34
|
+
self.result = result
|
|
35
|
+
|
|
36
|
+
def to_dict(self):
|
|
37
|
+
"""
|
|
38
|
+
Convert the response instance to a dictionary representation.
|
|
39
|
+
|
|
40
|
+
Includes metadata from the parent BceResponse class.
|
|
41
|
+
Nested model objects are recursively converted to dictionaries.
|
|
42
|
+
|
|
43
|
+
:return: Dictionary representation of the response
|
|
44
|
+
:rtype: dict
|
|
45
|
+
"""
|
|
46
|
+
_map = super().to_dict()
|
|
47
|
+
if _map is not None:
|
|
48
|
+
return _map
|
|
49
|
+
result = dict()
|
|
50
|
+
if self.metadata is not None:
|
|
51
|
+
result['metadata'] = dict(self.metadata)
|
|
52
|
+
if self.success is not None:
|
|
53
|
+
result['success'] = self.success
|
|
54
|
+
if self.code is not None:
|
|
55
|
+
result['code'] = self.code
|
|
56
|
+
if self.message is not None:
|
|
57
|
+
result['message'] = self.message
|
|
58
|
+
if self.result is not None:
|
|
59
|
+
result['result'] = self.result.to_dict()
|
|
60
|
+
return result
|
|
61
|
+
|
|
62
|
+
def from_dict(self, m):
|
|
63
|
+
"""
|
|
64
|
+
Populate the response instance from a dictionary.
|
|
65
|
+
|
|
66
|
+
Nested dictionaries are recursively converted to model objects.
|
|
67
|
+
|
|
68
|
+
:param m: Dictionary containing response data
|
|
69
|
+
:type m: dict
|
|
70
|
+
|
|
71
|
+
:return: Self reference for method chaining
|
|
72
|
+
:rtype: CreateDownloadTaskResponse
|
|
73
|
+
|
|
74
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
75
|
+
:raises ValueError: If nested model conversion fails
|
|
76
|
+
"""
|
|
77
|
+
m = m or dict()
|
|
78
|
+
if m.get('success') is not None:
|
|
79
|
+
self.success = m.get('success')
|
|
80
|
+
if m.get('code') is not None:
|
|
81
|
+
self.code = m.get('code')
|
|
82
|
+
if m.get('message') is not None:
|
|
83
|
+
self.message = m.get('message')
|
|
84
|
+
if m.get('result') is not None:
|
|
85
|
+
self.result = CreateDownloadResult().from_dict(m.get('result'))
|
|
86
|
+
return self
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"""
|
|
2
|
-
Request entity for
|
|
2
|
+
Request entity for CreateProjectResponse information.
|
|
3
3
|
"""
|
|
4
4
|
|
|
5
5
|
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class
|
|
8
|
+
class CreateProjectResponse(BceResponse):
|
|
9
9
|
"""
|
|
10
|
-
|
|
10
|
+
CreateProjectResponse
|
|
11
11
|
"""
|
|
12
12
|
|
|
13
13
|
def __init__(self, success=None, code=None, message=None):
|
|
14
14
|
"""
|
|
15
|
-
Initialize
|
|
15
|
+
Initialize CreateProjectResponse response.
|
|
16
16
|
|
|
17
17
|
:param success: 请求是否成功
|
|
18
18
|
:type success: bool (optional)
|
|
@@ -62,7 +62,7 @@ class UpdateProjectResponse(BceResponse):
|
|
|
62
62
|
:type m: dict
|
|
63
63
|
|
|
64
64
|
:return: Self reference for method chaining
|
|
65
|
-
:rtype:
|
|
65
|
+
:rtype: CreateProjectResponse
|
|
66
66
|
|
|
67
67
|
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
68
68
|
:raises ValueError: If nested model conversion fails
|
baiducloud-python-sdk-bls-0.0.3/baiducloud_python_sdk_bls/models/delete_download_task_request.py
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteDownloadTaskRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteDownloadTaskRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteDownloadTaskRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, uuid):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteDownloadTaskRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param uuid: uuid parameter
|
|
20
|
+
:type uuid: str (required)
|
|
21
|
+
"""
|
|
22
|
+
super().__init__()
|
|
23
|
+
self.uuid = uuid
|
|
24
|
+
|
|
25
|
+
def to_dict(self):
|
|
26
|
+
"""
|
|
27
|
+
Convert the request entity to a dictionary representation.
|
|
28
|
+
|
|
29
|
+
Nested model objects are recursively converted to dictionaries.
|
|
30
|
+
|
|
31
|
+
:return: Dictionary representation of the request
|
|
32
|
+
:rtype: dict
|
|
33
|
+
"""
|
|
34
|
+
_map = super().to_dict()
|
|
35
|
+
if _map is not None:
|
|
36
|
+
return _map
|
|
37
|
+
result = dict()
|
|
38
|
+
return result
|
|
39
|
+
|
|
40
|
+
def from_dict(self, m):
|
|
41
|
+
"""
|
|
42
|
+
Populate the request entity from a dictionary.
|
|
43
|
+
|
|
44
|
+
Nested dictionaries are recursively converted to model objects.
|
|
45
|
+
|
|
46
|
+
:param m: Dictionary containing request data
|
|
47
|
+
:type m: dict
|
|
48
|
+
|
|
49
|
+
:return: Self reference for method chaining
|
|
50
|
+
:rtype: DeleteDownloadTaskRequest
|
|
51
|
+
|
|
52
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
53
|
+
:raises ValueError: If nested model conversion fails
|
|
54
|
+
"""
|
|
55
|
+
m = m or dict()
|
|
56
|
+
if m.get('uuid') is not None:
|
|
57
|
+
self.uuid = m.get('uuid')
|
|
58
|
+
return self
|