tencentcloud-sdk-python-databuddy 3.1.175__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.
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: tencentcloud-sdk-python-databuddy
3
+ Version: 3.1.175
4
+ Summary: Tencent Cloud Databuddy SDK for Python
5
+ Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
+ Author: Tencent Cloud
7
+ Maintainer-email: tencentcloudapi@tencent.com
8
+ License: Apache License 2.0
9
+ Platform: any
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 2.7
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.6
17
+ Classifier: Programming Language :: Python :: 3.7
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.175
19
+
20
+ ============================
21
+ Tencent Cloud SDK for Python
22
+ ============================
23
+
24
+ Tencent Cloud Python Databuddy SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
25
+ The SDK works on Python versions:
26
+
27
+ * 2.7 and greater, including 3.x
28
+
29
+ Quick Start
30
+ -----------
31
+
32
+ First, install the library:
33
+
34
+ .. code-block:: sh
35
+
36
+ $ pip install tencentcloud-sdk-python-common
37
+ $ pip install tencentcloud-sdk-python-databuddy
38
+
39
+ or download source code from github and install:
40
+
41
+ .. code-block:: sh
42
+
43
+ $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
44
+ $ cd tencentcloud-sdk-python
45
+ $ python package.py --components common databuddy
46
+
@@ -0,0 +1,27 @@
1
+ ============================
2
+ Tencent Cloud SDK for Python
3
+ ============================
4
+
5
+ Tencent Cloud Python Databuddy SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
6
+ The SDK works on Python versions:
7
+
8
+ * 2.7 and greater, including 3.x
9
+
10
+ Quick Start
11
+ -----------
12
+
13
+ First, install the library:
14
+
15
+ .. code-block:: sh
16
+
17
+ $ pip install tencentcloud-sdk-python-common
18
+ $ pip install tencentcloud-sdk-python-databuddy
19
+
20
+ or download source code from github and install:
21
+
22
+ .. code-block:: sh
23
+
24
+ $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
25
+ $ cd tencentcloud-sdk-python
26
+ $ python package.py --components common databuddy
27
+
@@ -0,0 +1,7 @@
1
+ [bdist_wheel]
2
+ universal = 1
3
+
4
+ [egg_info]
5
+ tag_build =
6
+ tag_date = 0
7
+
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env python
2
+ import os
3
+ from setuptools import setup, find_packages
4
+
5
+ import tencentcloud
6
+
7
+ ROOT = os.path.dirname(__file__)
8
+
9
+ setup(
10
+ name='tencentcloud-sdk-python-databuddy',
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.175,<4.0.0"],
12
+
13
+ version=tencentcloud.__version__,
14
+ description='Tencent Cloud Databuddy SDK for Python',
15
+ long_description=open('README.rst').read(),
16
+ author='Tencent Cloud',
17
+ url='https://github.com/TencentCloud/tencentcloud-sdk-python',
18
+ maintainer_email="tencentcloudapi@tencent.com",
19
+ scripts=[],
20
+ packages=find_packages(exclude=["tests*"]),
21
+ license="Apache License 2.0",
22
+ platforms='any',
23
+ classifiers=[
24
+ 'Development Status :: 5 - Production/Stable',
25
+ 'Intended Audience :: Developers',
26
+ 'License :: OSI Approved :: Apache Software License',
27
+ 'Programming Language :: Python',
28
+ 'Programming Language :: Python :: 2.7',
29
+ 'Programming Language :: Python :: 3',
30
+ 'Programming Language :: Python :: 3.6',
31
+ 'Programming Language :: Python :: 3.7',
32
+ ],
33
+ )
@@ -0,0 +1,17 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 1999-2018 Tencent Ltd.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+ __version__ = '3.1.175'
@@ -0,0 +1,478 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ import json
17
+
18
+ from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
19
+ from tencentcloud.common.abstract_client import AbstractClient
20
+ from tencentcloud.databuddy.v20260715 import models
21
+
22
+
23
+ class DatabuddyClient(AbstractClient):
24
+ _apiVersion = '2026-07-15'
25
+ _endpoint = 'databuddy.tencentcloudapi.com'
26
+ _service = 'databuddy'
27
+
28
+
29
+ def CreateFile(self, request):
30
+ r"""在Studio(统一开发 IDE)的工作空间文件树中新建一个文件(Notebook/SQL/Python等),创建成功后返回文件的完整元信息。
31
+
32
+ **前置条件**
33
+ 1. WorkspaceId 对应工作空间存在,且调用方为该工作空间成员;
34
+ 2. ParentFolderPath 对应的父文件夹必须存在,且调用方对其有写权限(根目录传 `/`);
35
+ 3. FileName 在同一父文件夹下不能重名(含后缀比较);
36
+ 4. FileName 后缀必须与 FileType 匹配(`.ipynb`↔`NOTEBOOK_FILE`、`.sql`↔`SQL_FILE`);
37
+ 5. 需带文件内容创建时通过 Storage 传入(大文件走 COS 中转,小文件放 Storage.Content)。
38
+
39
+ :param request: Request instance for CreateFile.
40
+ :type request: :class:`tencentcloud.databuddy.v20260715.models.CreateFileRequest`
41
+ :rtype: :class:`tencentcloud.databuddy.v20260715.models.CreateFileResponse`
42
+
43
+ """
44
+ try:
45
+ params = request._serialize()
46
+ headers = request.headers
47
+ body = self.call("CreateFile", params, headers=headers)
48
+ response = json.loads(body)
49
+ model = models.CreateFileResponse()
50
+ model._deserialize(response["Response"])
51
+ return model
52
+ except Exception as e:
53
+ if isinstance(e, TencentCloudSDKException):
54
+ raise
55
+ else:
56
+ raise TencentCloudSDKException(type(e).__name__, str(e))
57
+
58
+
59
+ def CreateWorkflow(self, request):
60
+ r"""创建工作流
61
+
62
+ :param request: Request instance for CreateWorkflow.
63
+ :type request: :class:`tencentcloud.databuddy.v20260715.models.CreateWorkflowRequest`
64
+ :rtype: :class:`tencentcloud.databuddy.v20260715.models.CreateWorkflowResponse`
65
+
66
+ """
67
+ try:
68
+ params = request._serialize()
69
+ headers = request.headers
70
+ body = self.call("CreateWorkflow", params, headers=headers)
71
+ response = json.loads(body)
72
+ model = models.CreateWorkflowResponse()
73
+ model._deserialize(response["Response"])
74
+ return model
75
+ except Exception as e:
76
+ if isinstance(e, TencentCloudSDKException):
77
+ raise
78
+ else:
79
+ raise TencentCloudSDKException(type(e).__name__, str(e))
80
+
81
+
82
+ def DeleteFile(self, request):
83
+ r"""将文件移入回收站(软删除),同时清理该文件的版本记录与执行结果快照。
84
+
85
+ **前置条件**
86
+ 1. FileId 对应文件必须存在且为活跃状态;
87
+ 2. 调用方对该文件有删除权限;
88
+ 3. 文件未被工作流任务引用。
89
+
90
+ **错误码(Module 均为 `Studio`)**
91
+
92
+ | 错误码(Code) | InnerCode | 描述 | 处理建议 |
93
+ | --- | --- | --- | --- |
94
+ | `MissingParameter.WorkspaceId` | 1030001 | 缺少 WorkspaceId | 请传入 WorkspaceId |
95
+ | `MissingParameter.FileId` | 1030003 | 缺少 FileId | 请传入 FileId |
96
+ | `InvalidParameterValue.FileType` | 1030102 | FileType 取值不支持 | FileType 取 FILE/NOTEBOOK_FILE/SQL_FILE |
97
+ | `ResourceNotFound.FileNotFound` | 1030203 | 文件不存在或已删除 | 请确认 FileId |
98
+ | `ResourceInUse.FileReferencedByTask` | 1030204 | 文件被工作流任务引用,不允许删除 | 请先解除任务引用后再删除 |
99
+ | `UnauthorizedOperation.FileDeleteDenied` | 1030303 | 对该文件无删除权限 | 请联系文件负责人或空间管理员授权 |
100
+ | `InternalError` | 1030900 | 服务内部异常 | 请携带 RequestId 联系支持 |
101
+
102
+ :param request: Request instance for DeleteFile.
103
+ :type request: :class:`tencentcloud.databuddy.v20260715.models.DeleteFileRequest`
104
+ :rtype: :class:`tencentcloud.databuddy.v20260715.models.DeleteFileResponse`
105
+
106
+ """
107
+ try:
108
+ params = request._serialize()
109
+ headers = request.headers
110
+ body = self.call("DeleteFile", params, headers=headers)
111
+ response = json.loads(body)
112
+ model = models.DeleteFileResponse()
113
+ model._deserialize(response["Response"])
114
+ return model
115
+ except Exception as e:
116
+ if isinstance(e, TencentCloudSDKException):
117
+ raise
118
+ else:
119
+ raise TencentCloudSDKException(type(e).__name__, str(e))
120
+
121
+
122
+ def DeleteWorkflow(self, request):
123
+ r"""删除工作流
124
+
125
+ :param request: Request instance for DeleteWorkflow.
126
+ :type request: :class:`tencentcloud.databuddy.v20260715.models.DeleteWorkflowRequest`
127
+ :rtype: :class:`tencentcloud.databuddy.v20260715.models.DeleteWorkflowResponse`
128
+
129
+ """
130
+ try:
131
+ params = request._serialize()
132
+ headers = request.headers
133
+ body = self.call("DeleteWorkflow", params, headers=headers)
134
+ response = json.loads(body)
135
+ model = models.DeleteWorkflowResponse()
136
+ model._deserialize(response["Response"])
137
+ return model
138
+ except Exception as e:
139
+ if isinstance(e, TencentCloudSDKException):
140
+ raise
141
+ else:
142
+ raise TencentCloudSDKException(type(e).__name__, str(e))
143
+
144
+
145
+ def GetFile(self, request):
146
+ r"""获取文件的元信息,可选包含文件内容,支持按版本读取历史快照。
147
+
148
+ **前置条件**
149
+ 1. FileId 与 FilePath 二选一,至少传一个;同时传时以 FileId 为准;
150
+ 2. 对应文件必须存在,且调用方对该文件有读权限;
151
+ 3. 传 VersionId 时该版本必须存在。
152
+
153
+ **错误码(Module 均为 `Studio`)**
154
+
155
+ | 错误码(Code) | InnerCode | 描述 | 处理建议 |
156
+ | --- | --- | --- | --- |
157
+ | `MissingParameter.WorkspaceId` | 1030001 | 缺少 WorkspaceId | 请传入 WorkspaceId |
158
+ | `MissingParameter.FileId` | 1030003 | FileId 与 FilePath 同时为空 | FileId 与 FilePath 二选一,至少传一个 |
159
+ | `InvalidParameterValue.FileType` | 1030102 | FileType 取值不支持 | FileType 取 FILE/NOTEBOOK_FILE/SQL_FILE |
160
+ | `ResourceNotFound.FileNotFound` | 1030203 | 文件不存在或已删除 | 请确认 FileId 或 FilePath |
161
+ | `ResourceNotFound.FileVersionNotFound` | 1030205 | 指定的文件版本不存在 | 请确认 VersionId,或调用 ListFileVersions 获取 |
162
+ | `UnauthorizedOperation.FileReadDenied` | 1030304 | 对该文件无读权限 | 请联系文件负责人或空间管理员授权 |
163
+ | `InternalError` | 1030900 | 服务内部异常 | 请携带 RequestId 联系支持 |
164
+
165
+ :param request: Request instance for GetFile.
166
+ :type request: :class:`tencentcloud.databuddy.v20260715.models.GetFileRequest`
167
+ :rtype: :class:`tencentcloud.databuddy.v20260715.models.GetFileResponse`
168
+
169
+ """
170
+ try:
171
+ params = request._serialize()
172
+ headers = request.headers
173
+ body = self.call("GetFile", params, headers=headers)
174
+ response = json.loads(body)
175
+ model = models.GetFileResponse()
176
+ model._deserialize(response["Response"])
177
+ return model
178
+ except Exception as e:
179
+ if isinstance(e, TencentCloudSDKException):
180
+ raise
181
+ else:
182
+ raise TencentCloudSDKException(type(e).__name__, str(e))
183
+
184
+
185
+ def GetWorkflow(self, request):
186
+ r"""获取工作流详细信息
187
+
188
+ :param request: Request instance for GetWorkflow.
189
+ :type request: :class:`tencentcloud.databuddy.v20260715.models.GetWorkflowRequest`
190
+ :rtype: :class:`tencentcloud.databuddy.v20260715.models.GetWorkflowResponse`
191
+
192
+ """
193
+ try:
194
+ params = request._serialize()
195
+ headers = request.headers
196
+ body = self.call("GetWorkflow", params, headers=headers)
197
+ response = json.loads(body)
198
+ model = models.GetWorkflowResponse()
199
+ model._deserialize(response["Response"])
200
+ return model
201
+ except Exception as e:
202
+ if isinstance(e, TencentCloudSDKException):
203
+ raise
204
+ else:
205
+ raise TencentCloudSDKException(type(e).__name__, str(e))
206
+
207
+
208
+ def GetWorkflowRun(self, request):
209
+ r"""查询工作流运行详情
210
+
211
+ :param request: Request instance for GetWorkflowRun.
212
+ :type request: :class:`tencentcloud.databuddy.v20260715.models.GetWorkflowRunRequest`
213
+ :rtype: :class:`tencentcloud.databuddy.v20260715.models.GetWorkflowRunResponse`
214
+
215
+ """
216
+ try:
217
+ params = request._serialize()
218
+ headers = request.headers
219
+ body = self.call("GetWorkflowRun", params, headers=headers)
220
+ response = json.loads(body)
221
+ model = models.GetWorkflowRunResponse()
222
+ model._deserialize(response["Response"])
223
+ return model
224
+ except Exception as e:
225
+ if isinstance(e, TencentCloudSDKException):
226
+ raise
227
+ else:
228
+ raise TencentCloudSDKException(type(e).__name__, str(e))
229
+
230
+
231
+ def GetWorkflowTaskRun(self, request):
232
+ r"""查询任务运行详情
233
+
234
+ :param request: Request instance for GetWorkflowTaskRun.
235
+ :type request: :class:`tencentcloud.databuddy.v20260715.models.GetWorkflowTaskRunRequest`
236
+ :rtype: :class:`tencentcloud.databuddy.v20260715.models.GetWorkflowTaskRunResponse`
237
+
238
+ """
239
+ try:
240
+ params = request._serialize()
241
+ headers = request.headers
242
+ body = self.call("GetWorkflowTaskRun", params, headers=headers)
243
+ response = json.loads(body)
244
+ model = models.GetWorkflowTaskRunResponse()
245
+ model._deserialize(response["Response"])
246
+ return model
247
+ except Exception as e:
248
+ if isinstance(e, TencentCloudSDKException):
249
+ raise
250
+ else:
251
+ raise TencentCloudSDKException(type(e).__name__, str(e))
252
+
253
+
254
+ def KillWorkflowRun(self, request):
255
+ r"""终止工作流的运行
256
+
257
+ :param request: Request instance for KillWorkflowRun.
258
+ :type request: :class:`tencentcloud.databuddy.v20260715.models.KillWorkflowRunRequest`
259
+ :rtype: :class:`tencentcloud.databuddy.v20260715.models.KillWorkflowRunResponse`
260
+
261
+ """
262
+ try:
263
+ params = request._serialize()
264
+ headers = request.headers
265
+ body = self.call("KillWorkflowRun", params, headers=headers)
266
+ response = json.loads(body)
267
+ model = models.KillWorkflowRunResponse()
268
+ model._deserialize(response["Response"])
269
+ return model
270
+ except Exception as e:
271
+ if isinstance(e, TencentCloudSDKException):
272
+ raise
273
+ else:
274
+ raise TencentCloudSDKException(type(e).__name__, str(e))
275
+
276
+
277
+ def ListWorkflowRuns(self, request):
278
+ r"""工作流运行列表
279
+
280
+ :param request: Request instance for ListWorkflowRuns.
281
+ :type request: :class:`tencentcloud.databuddy.v20260715.models.ListWorkflowRunsRequest`
282
+ :rtype: :class:`tencentcloud.databuddy.v20260715.models.ListWorkflowRunsResponse`
283
+
284
+ """
285
+ try:
286
+ params = request._serialize()
287
+ headers = request.headers
288
+ body = self.call("ListWorkflowRuns", params, headers=headers)
289
+ response = json.loads(body)
290
+ model = models.ListWorkflowRunsResponse()
291
+ model._deserialize(response["Response"])
292
+ return model
293
+ except Exception as e:
294
+ if isinstance(e, TencentCloudSDKException):
295
+ raise
296
+ else:
297
+ raise TencentCloudSDKException(type(e).__name__, str(e))
298
+
299
+
300
+ def ListWorkflowTaskRuns(self, request):
301
+ r"""查询工作流任务历史运行列表
302
+
303
+ :param request: Request instance for ListWorkflowTaskRuns.
304
+ :type request: :class:`tencentcloud.databuddy.v20260715.models.ListWorkflowTaskRunsRequest`
305
+ :rtype: :class:`tencentcloud.databuddy.v20260715.models.ListWorkflowTaskRunsResponse`
306
+
307
+ """
308
+ try:
309
+ params = request._serialize()
310
+ headers = request.headers
311
+ body = self.call("ListWorkflowTaskRuns", params, headers=headers)
312
+ response = json.loads(body)
313
+ model = models.ListWorkflowTaskRunsResponse()
314
+ model._deserialize(response["Response"])
315
+ return model
316
+ except Exception as e:
317
+ if isinstance(e, TencentCloudSDKException):
318
+ raise
319
+ else:
320
+ raise TencentCloudSDKException(type(e).__name__, str(e))
321
+
322
+
323
+ def ListWorkflows(self, request):
324
+ r"""查询工作流列表
325
+
326
+ :param request: Request instance for ListWorkflows.
327
+ :type request: :class:`tencentcloud.databuddy.v20260715.models.ListWorkflowsRequest`
328
+ :rtype: :class:`tencentcloud.databuddy.v20260715.models.ListWorkflowsResponse`
329
+
330
+ """
331
+ try:
332
+ params = request._serialize()
333
+ headers = request.headers
334
+ body = self.call("ListWorkflows", params, headers=headers)
335
+ response = json.loads(body)
336
+ model = models.ListWorkflowsResponse()
337
+ model._deserialize(response["Response"])
338
+ return model
339
+ except Exception as e:
340
+ if isinstance(e, TencentCloudSDKException):
341
+ raise
342
+ else:
343
+ raise TencentCloudSDKException(type(e).__name__, str(e))
344
+
345
+
346
+ def RerunWorkflowRun(self, request):
347
+ r"""重跑工作流
348
+
349
+ :param request: Request instance for RerunWorkflowRun.
350
+ :type request: :class:`tencentcloud.databuddy.v20260715.models.RerunWorkflowRunRequest`
351
+ :rtype: :class:`tencentcloud.databuddy.v20260715.models.RerunWorkflowRunResponse`
352
+
353
+ """
354
+ try:
355
+ params = request._serialize()
356
+ headers = request.headers
357
+ body = self.call("RerunWorkflowRun", params, headers=headers)
358
+ response = json.loads(body)
359
+ model = models.RerunWorkflowRunResponse()
360
+ model._deserialize(response["Response"])
361
+ return model
362
+ except Exception as e:
363
+ if isinstance(e, TencentCloudSDKException):
364
+ raise
365
+ else:
366
+ raise TencentCloudSDKException(type(e).__name__, str(e))
367
+
368
+
369
+ def RunWorkflow(self, request):
370
+ r"""运行工作流
371
+
372
+ :param request: Request instance for RunWorkflow.
373
+ :type request: :class:`tencentcloud.databuddy.v20260715.models.RunWorkflowRequest`
374
+ :rtype: :class:`tencentcloud.databuddy.v20260715.models.RunWorkflowResponse`
375
+
376
+ """
377
+ try:
378
+ params = request._serialize()
379
+ headers = request.headers
380
+ body = self.call("RunWorkflow", params, headers=headers)
381
+ response = json.loads(body)
382
+ model = models.RunWorkflowResponse()
383
+ model._deserialize(response["Response"])
384
+ return model
385
+ except Exception as e:
386
+ if isinstance(e, TencentCloudSDKException):
387
+ raise
388
+ else:
389
+ raise TencentCloudSDKException(type(e).__name__, str(e))
390
+
391
+
392
+ def UnbindWorkflowBundle(self, request):
393
+ r"""解绑工作流Bundle信息
394
+ 说明:本接口语义等同于规范动词清单中的 Detach,因兼容既有产品形态保留 Unbind 命名
395
+
396
+ :param request: Request instance for UnbindWorkflowBundle.
397
+ :type request: :class:`tencentcloud.databuddy.v20260715.models.UnbindWorkflowBundleRequest`
398
+ :rtype: :class:`tencentcloud.databuddy.v20260715.models.UnbindWorkflowBundleResponse`
399
+
400
+ """
401
+ try:
402
+ params = request._serialize()
403
+ headers = request.headers
404
+ body = self.call("UnbindWorkflowBundle", params, headers=headers)
405
+ response = json.loads(body)
406
+ model = models.UnbindWorkflowBundleResponse()
407
+ model._deserialize(response["Response"])
408
+ return model
409
+ except Exception as e:
410
+ if isinstance(e, TencentCloudSDKException):
411
+ raise
412
+ else:
413
+ raise TencentCloudSDKException(type(e).__name__, str(e))
414
+
415
+
416
+ def UpdateFile(self, request):
417
+ r"""更新文件内容与运行配置(计算资源、默认 catalog/schema、参数等),返回更新后的文件元信息。
418
+
419
+ **前置条件**
420
+ 1. FileId 对应文件必须存在且为活跃状态;
421
+ 2. 调用方对该文件有写权限;
422
+ 3. 仅更新配置时不传 Storage;仅更新内容时不传 FileConfig;
423
+ 4. FileConfig.ResourceId 非空时会校验资源类型与文件类型的匹配性。
424
+
425
+ **错误码(Module 均为 `Studio`)**
426
+
427
+ | 错误码(Code) | InnerCode | 描述 | 处理建议 |
428
+ | --- | --- | --- | --- |
429
+ | `MissingParameter.WorkspaceId` | 1030001 | 缺少 WorkspaceId | 请传入 WorkspaceId |
430
+ | `MissingParameter.FileId` | 1030003 | 缺少 FileId | 请传入 FileId |
431
+ | `InvalidParameterValue.FileType` | 1030102 | FileType 取值不支持 | FileType 取 FILE/NOTEBOOK_FILE/SQL_FILE |
432
+ | `InvalidParameterValue.ResourceId` | 1030104 | 计算资源类型与文件类型不匹配 | Python/Notebook 选数据计算资源,SQL 选数据分析资源 |
433
+ | `ResourceNotFound.FileNotFound` | 1030203 | 文件不存在或已删除 | 请确认 FileId,或调用 GetFile 校验文件状态 |
434
+ | `UnauthorizedOperation.FileWriteDenied` | 1030302 | 对该文件无写权限 | 请联系文件负责人或空间管理员授权 |
435
+ | `FailedOperation.FileStorageUpdateFailed` | 1030401 | 文件内容写入存储失败 | 请稍后重试,持续失败请携带 RequestId 联系支持 |
436
+ | `InternalError` | 1030900 | 服务内部异常 | 请携带 RequestId 联系支持 |
437
+
438
+ :param request: Request instance for UpdateFile.
439
+ :type request: :class:`tencentcloud.databuddy.v20260715.models.UpdateFileRequest`
440
+ :rtype: :class:`tencentcloud.databuddy.v20260715.models.UpdateFileResponse`
441
+
442
+ """
443
+ try:
444
+ params = request._serialize()
445
+ headers = request.headers
446
+ body = self.call("UpdateFile", params, headers=headers)
447
+ response = json.loads(body)
448
+ model = models.UpdateFileResponse()
449
+ model._deserialize(response["Response"])
450
+ return model
451
+ except Exception as e:
452
+ if isinstance(e, TencentCloudSDKException):
453
+ raise
454
+ else:
455
+ raise TencentCloudSDKException(type(e).__name__, str(e))
456
+
457
+
458
+ def UpdateWorkflow(self, request):
459
+ r"""更新工作流
460
+
461
+ :param request: Request instance for UpdateWorkflow.
462
+ :type request: :class:`tencentcloud.databuddy.v20260715.models.UpdateWorkflowRequest`
463
+ :rtype: :class:`tencentcloud.databuddy.v20260715.models.UpdateWorkflowResponse`
464
+
465
+ """
466
+ try:
467
+ params = request._serialize()
468
+ headers = request.headers
469
+ body = self.call("UpdateWorkflow", params, headers=headers)
470
+ response = json.loads(body)
471
+ model = models.UpdateWorkflowResponse()
472
+ model._deserialize(response["Response"])
473
+ return model
474
+ except Exception as e:
475
+ if isinstance(e, TencentCloudSDKException):
476
+ raise
477
+ else:
478
+ raise TencentCloudSDKException(type(e).__name__, str(e))