tencentcloud-sdk-nodejs 4.1.331 → 4.1.333
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.
- package/es/common/sdk_version.js +1 -1
- package/es/services/databuddy/v20260715/databuddy_client.js +202 -103
- package/es/services/dbbrain/v20210527/dbbrain_client.js +11 -2
- package/es/services/goosefs/v20220519/goosefs_client.js +3 -0
- package/es/services/iotexplorer/v20190423/iotexplorer_client.js +39 -12
- package/es/services/rum/v20210622/rum_client.js +270 -12
- package/es/services/ssm/v20190923/ssm_client.js +6 -3
- package/es/services/tcb/v20180608/tcb_client.js +2 -17
- package/package.json +1 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/adp/v20260520/adp_client.d.ts +1 -2
- package/tencentcloud/services/adp/v20260520/adp_client.js +1 -2
- package/tencentcloud/services/adp/v20260520/adp_models.d.ts +7 -3
- package/tencentcloud/services/cdwdoris/v20211228/cdwdoris_models.d.ts +44 -11
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +25 -13
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +47 -10
- package/tencentcloud/services/cngw/v20230418/cngw_client.d.ts +20 -1
- package/tencentcloud/services/cngw/v20230418/cngw_client.js +19 -0
- package/tencentcloud/services/cngw/v20230418/cngw_models.d.ts +697 -213
- package/tencentcloud/services/csip/v20221121/csip_models.d.ts +4 -0
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +34 -22
- package/tencentcloud/services/databuddy/v20260715/databuddy_client.d.ts +301 -140
- package/tencentcloud/services/databuddy/v20260715/databuddy_client.js +425 -198
- package/tencentcloud/services/databuddy/v20260715/databuddy_models.d.ts +6125 -3540
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.d.ts +15 -3
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.js +21 -3
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_models.d.ts +554 -88
- package/tencentcloud/services/dbdc/v20201029/dbdc_models.d.ts +41 -0
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +4 -0
- package/tencentcloud/services/goosefs/v20220519/goosefs_client.d.ts +5 -1
- package/tencentcloud/services/goosefs/v20220519/goosefs_client.js +6 -0
- package/tencentcloud/services/goosefs/v20220519/goosefs_models.d.ts +169 -23
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.d.ts +49 -13
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.js +72 -18
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +436 -130
- package/tencentcloud/services/live/v20180801/live_models.d.ts +44 -61
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +4 -4
- package/tencentcloud/services/mqtt/v20240516/mqtt_models.d.ts +30 -47
- package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +28 -54
- package/tencentcloud/services/privatedns/v20201028/privatedns_models.d.ts +63 -3
- package/tencentcloud/services/rum/v20210622/rum_client.d.ts +357 -13
- package/tencentcloud/services/rum/v20210622/rum_client.js +534 -18
- package/tencentcloud/services/rum/v20210622/rum_models.d.ts +9189 -3093
- package/tencentcloud/services/ssm/v20190923/ssm_client.d.ts +9 -5
- package/tencentcloud/services/ssm/v20190923/ssm_client.js +12 -6
- package/tencentcloud/services/ssm/v20190923/ssm_models.d.ts +42 -12
- package/tencentcloud/services/tcb/v20180608/tcb_client.d.ts +5 -25
- package/tencentcloud/services/tcb/v20180608/tcb_client.js +5 -35
- package/tencentcloud/services/tcb/v20180608/tcb_models.d.ts +102 -514
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +1 -1
- package/tencentcloud/services/trro/v20220325/trro_models.d.ts +12 -0
- package/tencentcloud/services/tse/v20201207/tse_client.d.ts +2 -2
- package/tencentcloud/services/tse/v20201207/tse_client.js +1 -1
- package/tencentcloud/services/tse/v20201207/tse_models.d.ts +457 -145
- package/tencentcloud/services/vod/v20180717/vod_client.d.ts +1 -1
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +40 -22
- package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +20 -0
- package/tencentcloud/services/workbuddyenterprise/v20260709/workbuddyenterprise_models.d.ts +22 -17
- package/tencentcloud/services/wsa/v20250508/wsa_models.d.ts +1 -1
|
@@ -28,53 +28,61 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
28
28
|
super("databuddy.tencentcloudapi.com", "2026-07-15", clientConfig);
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
说明:本接口语义等同于规范动词清单中的 Detach,因兼容既有产品形态保留 Unbind 命名
|
|
31
|
+
* 添加控制台用户,该接口为控制台级接口,仅支持在中心地域调用:国内站请传入 ap-guangzhou,国际站请传入 ap-singapore;其他地域调用将返回 UnsupportedRegion。
|
|
33
32
|
*/
|
|
34
|
-
async
|
|
35
|
-
return this.request("
|
|
33
|
+
async AddConsoleUsers(req, cb) {
|
|
34
|
+
return this.request("AddConsoleUsers", req, cb);
|
|
36
35
|
}
|
|
37
36
|
/**
|
|
38
|
-
*
|
|
37
|
+
* 修改模型信息
|
|
38
|
+
使用场景:修改模型的名称或注释,按需传入NewName/NewComment字段
|
|
39
|
+
前置条件:模型必须存在
|
|
39
40
|
*/
|
|
40
|
-
async
|
|
41
|
-
return this.request("
|
|
41
|
+
async UpdateModel(req, cb) {
|
|
42
|
+
return this.request("UpdateModel", req, cb);
|
|
42
43
|
}
|
|
43
44
|
/**
|
|
44
|
-
*
|
|
45
|
+
* 查询控制台用户组列表,该接口为控制台级接口,仅支持在中心地域调用:国内站请传入 ap-guangzhou,国际站请传入 ap-singapore;其他地域调用将返回 UnsupportedRegion。
|
|
45
46
|
*/
|
|
46
|
-
async
|
|
47
|
-
return this.request("
|
|
47
|
+
async ListConsoleGroups(req, cb) {
|
|
48
|
+
return this.request("ListConsoleGroups", req, cb);
|
|
48
49
|
}
|
|
49
50
|
/**
|
|
50
|
-
*
|
|
51
|
+
* 获取view列表
|
|
51
52
|
*/
|
|
52
|
-
async
|
|
53
|
-
return this.request("
|
|
53
|
+
async ListViews(req, cb) {
|
|
54
|
+
return this.request("ListViews", req, cb);
|
|
54
55
|
}
|
|
55
56
|
/**
|
|
56
|
-
*
|
|
57
|
+
* 分页查询数据目录名称列表
|
|
57
58
|
*/
|
|
58
|
-
async
|
|
59
|
-
return this.request("
|
|
59
|
+
async ListCatalogNames(req, cb) {
|
|
60
|
+
return this.request("ListCatalogNames", req, cb);
|
|
60
61
|
}
|
|
61
62
|
/**
|
|
62
|
-
*
|
|
63
|
+
* 查询schema详情
|
|
63
64
|
*/
|
|
64
|
-
async
|
|
65
|
-
return this.request("
|
|
65
|
+
async GetSchema(req, cb) {
|
|
66
|
+
return this.request("GetSchema", req, cb);
|
|
66
67
|
}
|
|
67
68
|
/**
|
|
68
|
-
*
|
|
69
|
+
* 创建控制台用户组,该接口为控制台级接口,仅支持在中心地域调用:国内站请传入 ap-guangzhou,国际站请传入 ap-singapore;其他地域调用将返回 UnsupportedRegion。
|
|
69
70
|
*/
|
|
70
|
-
async
|
|
71
|
-
return this.request("
|
|
71
|
+
async CreateConsoleGroup(req, cb) {
|
|
72
|
+
return this.request("CreateConsoleGroup", req, cb);
|
|
72
73
|
}
|
|
73
74
|
/**
|
|
74
|
-
*
|
|
75
|
+
* 分页查询存储位置列表
|
|
76
|
+
使用场景:分页查询数据湖仓库中的存储位置详情列表,支持模式匹配和快照分页
|
|
75
77
|
*/
|
|
76
|
-
async
|
|
77
|
-
return this.request("
|
|
78
|
+
async ListLocations(req, cb) {
|
|
79
|
+
return this.request("ListLocations", req, cb);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* 终止工作流的运行
|
|
83
|
+
*/
|
|
84
|
+
async KillWorkflowRun(req, cb) {
|
|
85
|
+
return this.request("KillWorkflowRun", req, cb);
|
|
78
86
|
}
|
|
79
87
|
/**
|
|
80
88
|
* 查询工作流运行详情
|
|
@@ -83,63 +91,109 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
83
91
|
return this.request("GetWorkflowRun", req, cb);
|
|
84
92
|
}
|
|
85
93
|
/**
|
|
86
|
-
*
|
|
94
|
+
* 分页获取数据卷信息
|
|
87
95
|
*/
|
|
88
|
-
async
|
|
89
|
-
return this.request("
|
|
96
|
+
async ListVolumes(req, cb) {
|
|
97
|
+
return this.request("ListVolumes", req, cb);
|
|
90
98
|
}
|
|
91
99
|
/**
|
|
92
|
-
*
|
|
100
|
+
* 获取文件夹和文件列表
|
|
93
101
|
*/
|
|
94
|
-
async
|
|
95
|
-
return this.request("
|
|
102
|
+
async ListFiles(req, cb) {
|
|
103
|
+
return this.request("ListFiles", req, cb);
|
|
96
104
|
}
|
|
97
105
|
/**
|
|
98
|
-
*
|
|
106
|
+
* 查询工作流任务历史运行列表
|
|
99
107
|
*/
|
|
100
|
-
async
|
|
101
|
-
return this.request("
|
|
108
|
+
async ListWorkflowTaskRuns(req, cb) {
|
|
109
|
+
return this.request("ListWorkflowTaskRuns", req, cb);
|
|
102
110
|
}
|
|
103
111
|
/**
|
|
104
|
-
*
|
|
112
|
+
* 分页获取数据目录列表
|
|
105
113
|
*/
|
|
106
|
-
async
|
|
107
|
-
return this.request("
|
|
114
|
+
async ListCatalogs(req, cb) {
|
|
115
|
+
return this.request("ListCatalogs", req, cb);
|
|
108
116
|
}
|
|
109
117
|
/**
|
|
110
|
-
*
|
|
118
|
+
* 删除文件夹
|
|
119
|
+
*/
|
|
120
|
+
async DeleteFolder(req, cb) {
|
|
121
|
+
return this.request("DeleteFolder", req, cb);
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* 创建模型接口
|
|
125
|
+
*/
|
|
126
|
+
async CreateModel(req, cb) {
|
|
127
|
+
return this.request("CreateModel", req, cb);
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* 查询工作空间用户列表
|
|
131
|
+
*/
|
|
132
|
+
async ListWorkspaceUsers(req, cb) {
|
|
133
|
+
return this.request("ListWorkspaceUsers", req, cb);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* 更新文件内容与运行配置(计算资源、默认 catalog/schema、参数等),返回更新后的文件元信息。
|
|
111
137
|
|
|
112
138
|
**前置条件**
|
|
113
|
-
1. FileId
|
|
114
|
-
2.
|
|
115
|
-
3.
|
|
139
|
+
1. FileId 对应文件必须存在且为活跃状态;
|
|
140
|
+
2. 调用方对该文件有写权限;
|
|
141
|
+
3. 仅更新配置时不传 Storage;仅更新内容时不传 FileConfig;
|
|
142
|
+
4. FileConfig.ResourceId 非空时会校验资源类型与文件类型的匹配性。
|
|
116
143
|
|
|
117
144
|
**错误码(Module 均为 `Studio`)**
|
|
118
145
|
|
|
119
146
|
| 错误码(Code) | InnerCode | 描述 | 处理建议 |
|
|
120
147
|
| --- | --- | --- | --- |
|
|
121
148
|
| `MissingParameter.WorkspaceId` | 1030001 | 缺少 WorkspaceId | 请传入 WorkspaceId |
|
|
122
|
-
| `MissingParameter.FileId` | 1030003 | FileId
|
|
149
|
+
| `MissingParameter.FileId` | 1030003 | 缺少 FileId | 请传入 FileId |
|
|
123
150
|
| `InvalidParameterValue.FileType` | 1030102 | FileType 取值不支持 | FileType 取 FILE/NOTEBOOK_FILE/SQL_FILE |
|
|
124
|
-
| `
|
|
125
|
-
| `ResourceNotFound.
|
|
126
|
-
| `UnauthorizedOperation.
|
|
151
|
+
| `InvalidParameterValue.ResourceId` | 1030104 | 计算资源类型与文件类型不匹配 | Python/Notebook 选数据计算资源,SQL 选数据分析资源 |
|
|
152
|
+
| `ResourceNotFound.FileNotFound` | 1030203 | 文件不存在或已删除 | 请确认 FileId,或调用 GetFile 校验文件状态 |
|
|
153
|
+
| `UnauthorizedOperation.FileWriteDenied` | 1030302 | 对该文件无写权限 | 请联系文件负责人或空间管理员授权 |
|
|
154
|
+
| `FailedOperation.FileStorageUpdateFailed` | 1030401 | 文件内容写入存储失败 | 请稍后重试,持续失败请携带 RequestId 联系支持 |
|
|
127
155
|
| `InternalError` | 1030900 | 服务内部异常 | 请携带 RequestId 联系支持 |
|
|
128
156
|
*/
|
|
129
|
-
async
|
|
130
|
-
return this.request("
|
|
157
|
+
async UpdateFile(req, cb) {
|
|
158
|
+
return this.request("UpdateFile", req, cb);
|
|
131
159
|
}
|
|
132
160
|
/**
|
|
133
|
-
*
|
|
161
|
+
* 删除模型
|
|
134
162
|
*/
|
|
135
|
-
async
|
|
136
|
-
return this.request("
|
|
163
|
+
async DeleteModel(req, cb) {
|
|
164
|
+
return this.request("DeleteModel", req, cb);
|
|
137
165
|
}
|
|
138
166
|
/**
|
|
139
|
-
*
|
|
167
|
+
* 工作流运行列表
|
|
140
168
|
*/
|
|
141
|
-
async
|
|
142
|
-
return this.request("
|
|
169
|
+
async ListWorkflowRuns(req, cb) {
|
|
170
|
+
return this.request("ListWorkflowRuns", req, cb);
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* 查询任务运行详情
|
|
174
|
+
*/
|
|
175
|
+
async GetWorkflowTaskRun(req, cb) {
|
|
176
|
+
return this.request("GetWorkflowTaskRun", req, cb);
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* 查询工作空间详情
|
|
180
|
+
*/
|
|
181
|
+
async GetWorkspace(req, cb) {
|
|
182
|
+
return this.request("GetWorkspace", req, cb);
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* 修改表字段描述
|
|
186
|
+
使用场景:修改表中一个或多个字段的注释
|
|
187
|
+
前置条件:用户需对目标表有写权限;字段名必须存在于目标表中
|
|
188
|
+
*/
|
|
189
|
+
async UpdateTableColumn(req, cb) {
|
|
190
|
+
return this.request("UpdateTableColumn", req, cb);
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* 查询工作流列表
|
|
194
|
+
*/
|
|
195
|
+
async ListWorkflows(req, cb) {
|
|
196
|
+
return this.request("ListWorkflows", req, cb);
|
|
143
197
|
}
|
|
144
198
|
/**
|
|
145
199
|
* 删除catalog
|
|
@@ -148,40 +202,42 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
148
202
|
return this.request("DeleteCatalog", req, cb);
|
|
149
203
|
}
|
|
150
204
|
/**
|
|
151
|
-
*
|
|
205
|
+
* 修改表信息
|
|
206
|
+
使用场景:修改表的名称或注释,按需传入NewName/NewComment字段
|
|
207
|
+
前置条件:表必须存在
|
|
152
208
|
*/
|
|
153
|
-
async
|
|
154
|
-
return this.request("
|
|
209
|
+
async UpdateTable(req, cb) {
|
|
210
|
+
return this.request("UpdateTable", req, cb);
|
|
155
211
|
}
|
|
156
212
|
/**
|
|
157
|
-
*
|
|
213
|
+
* 资产统一搜索
|
|
158
214
|
*/
|
|
159
|
-
async
|
|
160
|
-
return this.request("
|
|
215
|
+
async SearchAsset(req, cb) {
|
|
216
|
+
return this.request("SearchAsset", req, cb);
|
|
161
217
|
}
|
|
162
218
|
/**
|
|
163
|
-
*
|
|
219
|
+
* 创建模型版本
|
|
164
220
|
*/
|
|
165
|
-
async
|
|
166
|
-
return this.request("
|
|
221
|
+
async CreateModelVersion(req, cb) {
|
|
222
|
+
return this.request("CreateModelVersion", req, cb);
|
|
167
223
|
}
|
|
168
224
|
/**
|
|
169
|
-
*
|
|
225
|
+
* 修改工作空间用户角色
|
|
170
226
|
*/
|
|
171
|
-
async
|
|
172
|
-
return this.request("
|
|
227
|
+
async UpdateWorkspaceUsersRoles(req, cb) {
|
|
228
|
+
return this.request("UpdateWorkspaceUsersRoles", req, cb);
|
|
173
229
|
}
|
|
174
230
|
/**
|
|
175
|
-
*
|
|
231
|
+
* 更新文件夹(支持重命名+移动)
|
|
176
232
|
*/
|
|
177
|
-
async
|
|
178
|
-
return this.request("
|
|
233
|
+
async UpdateFolder(req, cb) {
|
|
234
|
+
return this.request("UpdateFolder", req, cb);
|
|
179
235
|
}
|
|
180
236
|
/**
|
|
181
|
-
*
|
|
237
|
+
* 删除工作流
|
|
182
238
|
*/
|
|
183
|
-
async
|
|
184
|
-
return this.request("
|
|
239
|
+
async DeleteWorkflow(req, cb) {
|
|
240
|
+
return this.request("DeleteWorkflow", req, cb);
|
|
185
241
|
}
|
|
186
242
|
/**
|
|
187
243
|
* 获取schema列表
|
|
@@ -189,12 +245,175 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
189
245
|
async ListSchemas(req, cb) {
|
|
190
246
|
return this.request("ListSchemas", req, cb);
|
|
191
247
|
}
|
|
248
|
+
/**
|
|
249
|
+
* 创建数据目录接口
|
|
250
|
+
*/
|
|
251
|
+
async CreateCatalog(req, cb) {
|
|
252
|
+
return this.request("CreateCatalog", req, cb);
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* 创建工作空间角色
|
|
256
|
+
*/
|
|
257
|
+
async CreateWorkspaceRole(req, cb) {
|
|
258
|
+
return this.request("CreateWorkspaceRole", req, cb);
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* 启动计算资源
|
|
262
|
+
*/
|
|
263
|
+
async StartCompute(req, cb) {
|
|
264
|
+
return this.request("StartCompute", req, cb);
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* 创建文件夹
|
|
268
|
+
*/
|
|
269
|
+
async CreateFolder(req, cb) {
|
|
270
|
+
return this.request("CreateFolder", req, cb);
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* 获取table列表
|
|
274
|
+
*/
|
|
275
|
+
async ListTables(req, cb) {
|
|
276
|
+
return this.request("ListTables", req, cb);
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* 修改存储位置
|
|
280
|
+
使用场景:修改存储位置的名称、描述或属性信息
|
|
281
|
+
前置条件:存储位置名称必须存在
|
|
282
|
+
错误码:MetaLakeNotFound - 存储位置不存在
|
|
283
|
+
*/
|
|
284
|
+
async UpdateLocation(req, cb) {
|
|
285
|
+
return this.request("UpdateLocation", req, cb);
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* 查询存储位置详情
|
|
289
|
+
使用场景:根据存储位置名获取单个存储位置的详细信息
|
|
290
|
+
前置条件:存储位置名称必须存在
|
|
291
|
+
错误码:MetaLakeNotFound - 存储位置不存在
|
|
292
|
+
*/
|
|
293
|
+
async GetLocation(req, cb) {
|
|
294
|
+
return this.request("GetLocation", req, cb);
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* 修改控制台用户角色,该接口为控制台级接口,仅支持在中心地域调用:国内站请传入 ap-guangzhou,国际站请传入 ap-singapore;其他地域调用将返回 UnsupportedRegion。
|
|
298
|
+
*/
|
|
299
|
+
async UpdateConsoleUsers(req, cb) {
|
|
300
|
+
return this.request("UpdateConsoleUsers", req, cb);
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* 添加工作空间用户组
|
|
304
|
+
*/
|
|
305
|
+
async AddWorkspaceGroups(req, cb) {
|
|
306
|
+
return this.request("AddWorkspaceGroups", req, cb);
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* 查询控制台用户组成员列表,该接口为控制台级接口,仅支持在中心地域调用:国内站请传入 ap-guangzhou,国际站请传入 ap-singapore;其他地域调用将返回 UnsupportedRegion。
|
|
310
|
+
*/
|
|
311
|
+
async ListConsoleGroupUsers(req, cb) {
|
|
312
|
+
return this.request("ListConsoleGroupUsers", req, cb);
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* 创建存储位置
|
|
316
|
+
使用场景:在数据湖仓库中创建新的存储位置
|
|
317
|
+
*/
|
|
318
|
+
async CreateLocation(req, cb) {
|
|
319
|
+
return this.request("CreateLocation", req, cb);
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* 更新工作空间角色
|
|
323
|
+
*/
|
|
324
|
+
async UpdateWorkspaceRole(req, cb) {
|
|
325
|
+
return this.request("UpdateWorkspaceRole", req, cb);
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* 修改数据目录信息
|
|
329
|
+
使用场景:修改数据目录的注释,按需传入NewComment字段
|
|
330
|
+
前置条件:数据目录必须存在
|
|
331
|
+
*/
|
|
332
|
+
async UpdateCatalog(req, cb) {
|
|
333
|
+
return this.request("UpdateCatalog", req, cb);
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* 修改模型版本信息
|
|
337
|
+
使用场景:修改模型版本的别名或注释,按需传入对应字段
|
|
338
|
+
前置条件:模型版本必须存在
|
|
339
|
+
*/
|
|
340
|
+
async UpdateModelVersion(req, cb) {
|
|
341
|
+
return this.request("UpdateModelVersion", req, cb);
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* 删除工作空间
|
|
345
|
+
*/
|
|
346
|
+
async DeleteWorkspace(req, cb) {
|
|
347
|
+
return this.request("DeleteWorkspace", req, cb);
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* 更新工作流
|
|
351
|
+
*/
|
|
352
|
+
async UpdateWorkflow(req, cb) {
|
|
353
|
+
return this.request("UpdateWorkflow", req, cb);
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* 修改数据卷信息
|
|
357
|
+
使用场景:修改数据卷的名称或注释,按需传入NewName/NewComment字段
|
|
358
|
+
前置条件:数据卷必须存在
|
|
359
|
+
*/
|
|
360
|
+
async UpdateVolume(req, cb) {
|
|
361
|
+
return this.request("UpdateVolume", req, cb);
|
|
362
|
+
}
|
|
192
363
|
/**
|
|
193
364
|
* 修改工作空间,该接口为控制台级接口,仅支持在中心地域调用:国内站请传入 ap-guangzhou,国际站请传入 ap-singapore;其他地域调用将返回 UnsupportedRegion。
|
|
194
365
|
*/
|
|
195
366
|
async UpdateWorkspace(req, cb) {
|
|
196
367
|
return this.request("UpdateWorkspace", req, cb);
|
|
197
368
|
}
|
|
369
|
+
/**
|
|
370
|
+
* 修改schema信息
|
|
371
|
+
使用场景:修改schema的注释,按需传入NewComment字段
|
|
372
|
+
前置条件:schema必须存在
|
|
373
|
+
*/
|
|
374
|
+
async UpdateSchema(req, cb) {
|
|
375
|
+
return this.request("UpdateSchema", req, cb);
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* 获取模型详情
|
|
379
|
+
*/
|
|
380
|
+
async GetModel(req, cb) {
|
|
381
|
+
return this.request("GetModel", req, cb);
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* 创建数据卷接口
|
|
385
|
+
*/
|
|
386
|
+
async CreateVolume(req, cb) {
|
|
387
|
+
return this.request("CreateVolume", req, cb);
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* 获取文件夹详情
|
|
391
|
+
*/
|
|
392
|
+
async GetFolder(req, cb) {
|
|
393
|
+
return this.request("GetFolder", req, cb);
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* 删除存储位置
|
|
397
|
+
使用场景:删除指定的存储位置
|
|
398
|
+
前置条件:存储位置名称必须存在
|
|
399
|
+
错误码:MetaLakeNotFound - 存储位置不存在
|
|
400
|
+
*/
|
|
401
|
+
async DeleteLocation(req, cb) {
|
|
402
|
+
return this.request("DeleteLocation", req, cb);
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* 解绑工作流Bundle信息
|
|
406
|
+
说明:本接口语义等同于规范动词清单中的 Detach,因兼容既有产品形态保留 Unbind 命名
|
|
407
|
+
*/
|
|
408
|
+
async UnbindWorkflowBundle(req, cb) {
|
|
409
|
+
return this.request("UnbindWorkflowBundle", req, cb);
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* 获取模型详情
|
|
413
|
+
*/
|
|
414
|
+
async GetVolume(req, cb) {
|
|
415
|
+
return this.request("GetVolume", req, cb);
|
|
416
|
+
}
|
|
198
417
|
/**
|
|
199
418
|
* 将文件移入回收站(软删除),同时清理该文件的版本记录与执行结果快照。
|
|
200
419
|
|
|
@@ -219,10 +438,10 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
219
438
|
return this.request("DeleteFile", req, cb);
|
|
220
439
|
}
|
|
221
440
|
/**
|
|
222
|
-
*
|
|
441
|
+
* 删除view
|
|
223
442
|
*/
|
|
224
|
-
async
|
|
225
|
-
return this.request("
|
|
443
|
+
async DeleteView(req, cb) {
|
|
444
|
+
return this.request("DeleteView", req, cb);
|
|
226
445
|
}
|
|
227
446
|
/**
|
|
228
447
|
* 更新工作空间用户组角色
|
|
@@ -230,36 +449,6 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
230
449
|
async UpdateWorkspaceGroupsRoles(req, cb) {
|
|
231
450
|
return this.request("UpdateWorkspaceGroupsRoles", req, cb);
|
|
232
451
|
}
|
|
233
|
-
/**
|
|
234
|
-
* 创建数据目录接口
|
|
235
|
-
*/
|
|
236
|
-
async CreateCatalog(req, cb) {
|
|
237
|
-
return this.request("CreateCatalog", req, cb);
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* 删除schema
|
|
241
|
-
*/
|
|
242
|
-
async DeleteSchema(req, cb) {
|
|
243
|
-
return this.request("DeleteSchema", req, cb);
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* 创建工作空间角色
|
|
247
|
-
*/
|
|
248
|
-
async CreateWorkspaceRole(req, cb) {
|
|
249
|
-
return this.request("CreateWorkspaceRole", req, cb);
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* 启动计算资源
|
|
253
|
-
*/
|
|
254
|
-
async StartCompute(req, cb) {
|
|
255
|
-
return this.request("StartCompute", req, cb);
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* 创建文件夹
|
|
259
|
-
*/
|
|
260
|
-
async CreateFolder(req, cb) {
|
|
261
|
-
return this.request("CreateFolder", req, cb);
|
|
262
|
-
}
|
|
263
452
|
/**
|
|
264
453
|
* 查询控制台用户列表,该接口为控制台级接口,仅支持在中心地域调用:国内站请传入 ap-guangzhou,国际站请传入 ap-singapore;其他地域调用将返回 UnsupportedRegion。
|
|
265
454
|
*/
|
|
@@ -279,186 +468,224 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
279
468
|
return this.request("StopCompute", req, cb);
|
|
280
469
|
}
|
|
281
470
|
/**
|
|
282
|
-
*
|
|
471
|
+
* 创建用户组
|
|
283
472
|
*/
|
|
284
|
-
async
|
|
285
|
-
return this.request("
|
|
473
|
+
async AddWorkspaceUsers(req, cb) {
|
|
474
|
+
return this.request("AddWorkspaceUsers", req, cb);
|
|
286
475
|
}
|
|
287
476
|
/**
|
|
288
|
-
*
|
|
477
|
+
* 移除工作空间用户组
|
|
289
478
|
*/
|
|
290
|
-
async
|
|
291
|
-
return this.request("
|
|
479
|
+
async RemoveWorkspaceGroups(req, cb) {
|
|
480
|
+
return this.request("RemoveWorkspaceGroups", req, cb);
|
|
292
481
|
}
|
|
293
482
|
/**
|
|
294
|
-
*
|
|
483
|
+
* 查询工作空间用户组列表
|
|
295
484
|
*/
|
|
296
|
-
async
|
|
297
|
-
return this.request("
|
|
485
|
+
async ListWorkspaceGroups(req, cb) {
|
|
486
|
+
return this.request("ListWorkspaceGroups", req, cb);
|
|
298
487
|
}
|
|
299
488
|
/**
|
|
300
|
-
*
|
|
489
|
+
* 查询控制台角色列表,该接口为控制台级接口,仅支持在中心地域调用:国内站请传入 ap-guangzhou,国际站请传入 ap-singapore;其他地域调用将返回 UnsupportedRegion。
|
|
301
490
|
*/
|
|
302
|
-
async
|
|
303
|
-
return this.request("
|
|
491
|
+
async ListConsoleRoles(req, cb) {
|
|
492
|
+
return this.request("ListConsoleRoles", req, cb);
|
|
304
493
|
}
|
|
305
494
|
/**
|
|
306
|
-
*
|
|
495
|
+
* 修改控制台用户组,该接口为控制台级接口,仅支持在中心地域调用:国内站请传入 ap-guangzhou,国际站请传入 ap-singapore;其他地域调用将返回 UnsupportedRegion。
|
|
307
496
|
*/
|
|
308
|
-
async
|
|
309
|
-
return this.request("
|
|
497
|
+
async UpdateConsoleGroup(req, cb) {
|
|
498
|
+
return this.request("UpdateConsoleGroup", req, cb);
|
|
310
499
|
}
|
|
311
500
|
/**
|
|
312
|
-
*
|
|
501
|
+
* 删除table
|
|
313
502
|
*/
|
|
314
|
-
async
|
|
315
|
-
return this.request("
|
|
503
|
+
async DeleteTable(req, cb) {
|
|
504
|
+
return this.request("DeleteTable", req, cb);
|
|
316
505
|
}
|
|
317
506
|
/**
|
|
318
|
-
*
|
|
507
|
+
* 创建工作流
|
|
319
508
|
*/
|
|
320
|
-
async
|
|
321
|
-
return this.request("
|
|
509
|
+
async CreateWorkflow(req, cb) {
|
|
510
|
+
return this.request("CreateWorkflow", req, cb);
|
|
322
511
|
}
|
|
323
512
|
/**
|
|
324
|
-
*
|
|
513
|
+
* 重跑工作流
|
|
325
514
|
*/
|
|
326
|
-
async
|
|
327
|
-
return this.request("
|
|
515
|
+
async RerunWorkflowRun(req, cb) {
|
|
516
|
+
return this.request("RerunWorkflowRun", req, cb);
|
|
328
517
|
}
|
|
329
518
|
/**
|
|
330
|
-
*
|
|
519
|
+
* 删除工作空间角色
|
|
331
520
|
*/
|
|
332
|
-
async
|
|
333
|
-
return this.request("
|
|
521
|
+
async DeleteWorkspaceRole(req, cb) {
|
|
522
|
+
return this.request("DeleteWorkspaceRole", req, cb);
|
|
334
523
|
}
|
|
335
524
|
/**
|
|
336
|
-
*
|
|
525
|
+
* 分页查询数据库名称列表
|
|
337
526
|
*/
|
|
338
|
-
async
|
|
339
|
-
return this.request("
|
|
527
|
+
async ListSchemaNames(req, cb) {
|
|
528
|
+
return this.request("ListSchemaNames", req, cb);
|
|
340
529
|
}
|
|
341
530
|
/**
|
|
342
|
-
*
|
|
531
|
+
* 获取工作流详细信息
|
|
343
532
|
*/
|
|
344
|
-
async
|
|
345
|
-
return this.request("
|
|
533
|
+
async GetWorkflow(req, cb) {
|
|
534
|
+
return this.request("GetWorkflow", req, cb);
|
|
346
535
|
}
|
|
347
536
|
/**
|
|
348
|
-
*
|
|
537
|
+
* 创建schema
|
|
349
538
|
*/
|
|
350
|
-
async
|
|
351
|
-
return this.request("
|
|
539
|
+
async CreateSchema(req, cb) {
|
|
540
|
+
return this.request("CreateSchema", req, cb);
|
|
352
541
|
}
|
|
353
542
|
/**
|
|
354
|
-
*
|
|
543
|
+
* 分页获取模型信息
|
|
355
544
|
*/
|
|
356
|
-
async
|
|
357
|
-
return this.request("
|
|
545
|
+
async ListModels(req, cb) {
|
|
546
|
+
return this.request("ListModels", req, cb);
|
|
358
547
|
}
|
|
359
548
|
/**
|
|
360
|
-
*
|
|
549
|
+
* 删除控制台用户组,该接口为控制台级接口,仅支持在中心地域调用:国内站请传入 ap-guangzhou,国际站请传入 ap-singapore;其他地域调用将返回 UnsupportedRegion。
|
|
361
550
|
*/
|
|
362
|
-
async
|
|
363
|
-
return this.request("
|
|
551
|
+
async DeleteConsoleGroups(req, cb) {
|
|
552
|
+
return this.request("DeleteConsoleGroups", req, cb);
|
|
364
553
|
}
|
|
365
554
|
/**
|
|
366
|
-
*
|
|
555
|
+
* 查询工作空间列表,该接口为控制台级接口,仅支持在中心地域调用:国内站请传入 ap-guangzhou,国际站请传入 ap-singapore;其他地域调用将返回 UnsupportedRegion。
|
|
556
|
+
*/
|
|
557
|
+
async ListWorkspaces(req, cb) {
|
|
558
|
+
return this.request("ListWorkspaces", req, cb);
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* 获取文件的元信息,可选包含文件内容,支持按版本读取历史快照。
|
|
367
562
|
|
|
368
563
|
**前置条件**
|
|
369
|
-
1. FileId
|
|
370
|
-
2.
|
|
371
|
-
3.
|
|
372
|
-
4. FileConfig.ResourceId 非空时会校验资源类型与文件类型的匹配性。
|
|
564
|
+
1. FileId 与 FilePath 二选一,至少传一个;同时传时以 FileId 为准;
|
|
565
|
+
2. 对应文件必须存在,且调用方对该文件有读权限;
|
|
566
|
+
3. 传 VersionId 时该版本必须存在。
|
|
373
567
|
|
|
374
568
|
**错误码(Module 均为 `Studio`)**
|
|
375
569
|
|
|
376
570
|
| 错误码(Code) | InnerCode | 描述 | 处理建议 |
|
|
377
571
|
| --- | --- | --- | --- |
|
|
378
572
|
| `MissingParameter.WorkspaceId` | 1030001 | 缺少 WorkspaceId | 请传入 WorkspaceId |
|
|
379
|
-
| `MissingParameter.FileId` | 1030003 |
|
|
573
|
+
| `MissingParameter.FileId` | 1030003 | FileId 与 FilePath 同时为空 | FileId 与 FilePath 二选一,至少传一个 |
|
|
380
574
|
| `InvalidParameterValue.FileType` | 1030102 | FileType 取值不支持 | FileType 取 FILE/NOTEBOOK_FILE/SQL_FILE |
|
|
381
|
-
| `
|
|
382
|
-
| `ResourceNotFound.
|
|
383
|
-
| `UnauthorizedOperation.
|
|
384
|
-
| `FailedOperation.FileStorageUpdateFailed` | 1030401 | 文件内容写入存储失败 | 请稍后重试,持续失败请携带 RequestId 联系支持 |
|
|
575
|
+
| `ResourceNotFound.FileNotFound` | 1030203 | 文件不存在或已删除 | 请确认 FileId 或 FilePath |
|
|
576
|
+
| `ResourceNotFound.FileVersionNotFound` | 1030205 | 指定的文件版本不存在 | 请确认 VersionId,或调用 ListFileVersions 获取 |
|
|
577
|
+
| `UnauthorizedOperation.FileReadDenied` | 1030304 | 对该文件无读权限 | 请联系文件负责人或空间管理员授权 |
|
|
385
578
|
| `InternalError` | 1030900 | 服务内部异常 | 请携带 RequestId 联系支持 |
|
|
386
579
|
*/
|
|
387
|
-
async
|
|
388
|
-
return this.request("
|
|
580
|
+
async GetFile(req, cb) {
|
|
581
|
+
return this.request("GetFile", req, cb);
|
|
389
582
|
}
|
|
390
583
|
/**
|
|
391
|
-
*
|
|
584
|
+
* 分页查询数据表名称列表
|
|
392
585
|
*/
|
|
393
|
-
async
|
|
394
|
-
return this.request("
|
|
586
|
+
async ListTableNames(req, cb) {
|
|
587
|
+
return this.request("ListTableNames", req, cb);
|
|
395
588
|
}
|
|
396
589
|
/**
|
|
397
|
-
*
|
|
590
|
+
* 查询view详情
|
|
398
591
|
*/
|
|
399
|
-
async
|
|
400
|
-
return this.request("
|
|
592
|
+
async GetView(req, cb) {
|
|
593
|
+
return this.request("GetView", req, cb);
|
|
401
594
|
}
|
|
402
595
|
/**
|
|
403
|
-
*
|
|
596
|
+
* 查询特征表列表
|
|
404
597
|
*/
|
|
405
|
-
async
|
|
406
|
-
return this.request("
|
|
598
|
+
async ListFeatureTables(req, cb) {
|
|
599
|
+
return this.request("ListFeatureTables", req, cb);
|
|
407
600
|
}
|
|
408
601
|
/**
|
|
409
|
-
*
|
|
410
|
-
|
|
411
|
-
**前置条件**
|
|
412
|
-
1. WorkspaceId 对应工作空间存在,且调用方为该工作空间成员;
|
|
413
|
-
2. ParentFolderPath 对应的父文件夹必须存在,且调用方对其有写权限(根目录传 `/`);
|
|
414
|
-
3. FileName 在同一父文件夹下不能重名(含后缀比较);
|
|
415
|
-
4. FileName 后缀必须与 FileType 匹配(`.ipynb`↔`NOTEBOOK_FILE`、`.sql`↔`SQL_FILE`);
|
|
416
|
-
5. 需带文件内容创建时通过 Storage 传入(大文件走 COS 中转,小文件放 Storage.Content)。
|
|
602
|
+
* 批量获取表的元数据。使用场景:根据表的全名列表(catalogName.schemaName.tableName)批量获取表的详细元数据信息。前置条件:需要有对应workspace的读权限,仅返回当前workspace有权限的catalog下的表。权限校验:通过getAuthedCatalogNames获取有权限的catalogName进行过滤,不在权限范围内的表会被静默跳过。限制:FullNames最大支持20个表全名
|
|
417
603
|
*/
|
|
418
|
-
async
|
|
419
|
-
return this.request("
|
|
604
|
+
async GetTables(req, cb) {
|
|
605
|
+
return this.request("GetTables", req, cb);
|
|
420
606
|
}
|
|
421
607
|
/**
|
|
422
|
-
*
|
|
608
|
+
* 创建工作空间,该接口为控制台级接口,仅支持在中心地域调用:国内站请传入 ap-guangzhou,国际站请传入 ap-singapore;其他地域调用将返回 UnsupportedRegion。
|
|
423
609
|
*/
|
|
424
|
-
async
|
|
425
|
-
return this.request("
|
|
610
|
+
async CreateWorkspace(req, cb) {
|
|
611
|
+
return this.request("CreateWorkspace", req, cb);
|
|
426
612
|
}
|
|
427
613
|
/**
|
|
428
|
-
*
|
|
614
|
+
* 删除数据卷
|
|
429
615
|
*/
|
|
430
|
-
async
|
|
431
|
-
return this.request("
|
|
616
|
+
async DeleteVolume(req, cb) {
|
|
617
|
+
return this.request("DeleteVolume", req, cb);
|
|
432
618
|
}
|
|
433
619
|
/**
|
|
434
|
-
*
|
|
620
|
+
* 获取模型版本详情
|
|
435
621
|
*/
|
|
436
|
-
async
|
|
437
|
-
return this.request("
|
|
622
|
+
async GetModelVersion(req, cb) {
|
|
623
|
+
return this.request("GetModelVersion", req, cb);
|
|
438
624
|
}
|
|
439
625
|
/**
|
|
440
|
-
*
|
|
626
|
+
* 删除schema
|
|
441
627
|
*/
|
|
442
|
-
async
|
|
443
|
-
return this.request("
|
|
628
|
+
async DeleteSchema(req, cb) {
|
|
629
|
+
return this.request("DeleteSchema", req, cb);
|
|
444
630
|
}
|
|
445
631
|
/**
|
|
446
|
-
*
|
|
632
|
+
* 分页查询视图名称列表
|
|
447
633
|
*/
|
|
448
|
-
async
|
|
449
|
-
return this.request("
|
|
634
|
+
async ListViewNames(req, cb) {
|
|
635
|
+
return this.request("ListViewNames", req, cb);
|
|
450
636
|
}
|
|
451
637
|
/**
|
|
452
|
-
*
|
|
638
|
+
* 运行工作流
|
|
453
639
|
*/
|
|
454
|
-
async
|
|
455
|
-
return this.request("
|
|
640
|
+
async RunWorkflow(req, cb) {
|
|
641
|
+
return this.request("RunWorkflow", req, cb);
|
|
456
642
|
}
|
|
457
643
|
/**
|
|
458
|
-
*
|
|
644
|
+
* 查询catalog详情
|
|
459
645
|
*/
|
|
460
|
-
async
|
|
461
|
-
return this.request("
|
|
646
|
+
async GetCatalog(req, cb) {
|
|
647
|
+
return this.request("GetCatalog", req, cb);
|
|
648
|
+
}
|
|
649
|
+
/**
|
|
650
|
+
* 修改视图信息
|
|
651
|
+
使用场景:修改视图的名称或注释,按需传入NewName/NewComment字段
|
|
652
|
+
前置条件:视图必须存在
|
|
653
|
+
*/
|
|
654
|
+
async UpdateView(req, cb) {
|
|
655
|
+
return this.request("UpdateView", req, cb);
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* 修改函数信息
|
|
659
|
+
使用场景:修改函数的注释,按需传入NewComment字段
|
|
660
|
+
前置条件:函数必须存在
|
|
661
|
+
*/
|
|
662
|
+
async UpdateFunction(req, cb) {
|
|
663
|
+
return this.request("UpdateFunction", req, cb);
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* 查询工作空间用户组用户列表
|
|
667
|
+
*/
|
|
668
|
+
async ListWorkspaceGroupUsers(req, cb) {
|
|
669
|
+
return this.request("ListWorkspaceGroupUsers", req, cb);
|
|
670
|
+
}
|
|
671
|
+
/**
|
|
672
|
+
* 在Studio(统一开发 IDE)的工作空间文件树中新建一个文件(Notebook/SQL/Python等),创建成功后返回文件的完整元信息。
|
|
673
|
+
|
|
674
|
+
**前置条件**
|
|
675
|
+
1. WorkspaceId 对应工作空间存在,且调用方为该工作空间成员;
|
|
676
|
+
2. ParentFolderPath 对应的父文件夹必须存在,且调用方对其有写权限(根目录传 `/`);
|
|
677
|
+
3. FileName 在同一父文件夹下不能重名(含后缀比较);
|
|
678
|
+
4. FileName 后缀必须与 FileType 匹配(`.ipynb`↔`NOTEBOOK_FILE`、`.sql`↔`SQL_FILE`);
|
|
679
|
+
5. 需带文件内容创建时通过 Storage 传入(大文件走 COS 中转,小文件放 Storage.Content)。
|
|
680
|
+
*/
|
|
681
|
+
async CreateFile(req, cb) {
|
|
682
|
+
return this.request("CreateFile", req, cb);
|
|
683
|
+
}
|
|
684
|
+
/**
|
|
685
|
+
* 查询table详情
|
|
686
|
+
*/
|
|
687
|
+
async GetTable(req, cb) {
|
|
688
|
+
return this.request("GetTable", req, cb);
|
|
462
689
|
}
|
|
463
690
|
}
|
|
464
691
|
exports.Client = Client;
|