tencentcloud-sdk-nodejs-tione 4.1.338 → 4.1.340

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.
@@ -34,12 +34,6 @@ class Client extends TencentCloudCommon.AbstractClient {
34
34
  async DescribeTrainingModelVersion(req, cb) {
35
35
  return this.request("DescribeTrainingModelVersion", req, cb);
36
36
  }
37
- /**
38
- * 修改一个 AuthToken
39
- */
40
- async ModifyModelServiceAuthToken(req, cb) {
41
- return this.request("ModifyModelServiceAuthToken", req, cb);
42
- }
43
37
  /**
44
38
  * 查询单个服务
45
39
  */
@@ -52,6 +46,12 @@ class Client extends TencentCloudCommon.AbstractClient {
52
46
  async DescribeBillingSpecs(req, cb) {
53
47
  return this.request("DescribeBillingSpecs", req, cb);
54
48
  }
49
+ /**
50
+ * 查询单个服务组
51
+ */
52
+ async DescribeModelServiceGroup(req, cb) {
53
+ return this.request("DescribeModelServiceGroup", req, cb);
54
+ }
55
55
  /**
56
56
  * 导入模型
57
57
  */
@@ -59,112 +59,379 @@ class Client extends TencentCloudCommon.AbstractClient {
59
59
  return this.request("CreateTrainingModel", req, cb);
60
60
  }
61
61
  /**
62
- * 本接口(DescribeBillingSpecsPrice)用于查询按量计费计费项价格。
62
+ * 删除Notebook
63
63
  */
64
- async DescribeBillingSpecsPrice(req, cb) {
65
- return this.request("DescribeBillingSpecsPrice", req, cb);
64
+ async DeleteNotebook(req, cb) {
65
+ return this.request("DeleteNotebook", req, cb);
66
66
  }
67
67
  /**
68
- * 展示服务的调用信息
68
+ * 模型加速之后的模型版本列表
69
69
  */
70
- async DescribeModelServiceCallInfo(req, cb) {
71
- return this.request("DescribeModelServiceCallInfo", req, cb);
70
+ async DescribeModelAccelerateVersions(req, cb) {
71
+ return this.request("DescribeModelAccelerateVersions", req, cb);
72
72
  }
73
73
  /**
74
- * 启动模型训练任务
74
+ * 修改自定义角色的权限规则
75
75
  */
76
- async StartTrainingTask(req, cb) {
77
- return this.request("StartTrainingTask", req, cb);
76
+ async ModifyRoleAccessRules(req, cb) {
77
+ return this.request("ModifyRoleAccessRules", req, cb);
78
78
  }
79
79
  /**
80
- * DescribeMountInstance
80
+ * 非数据源挂载时获取实例列表
81
81
  */
82
- async DescribeMountInstance(req, cb) {
83
- return this.request("DescribeMountInstance", req, cb);
82
+ async DescribeMountInstances(req, cb) {
83
+ return this.request("DescribeMountInstances", req, cb);
84
84
  }
85
85
  /**
86
- * 训练任务详情
86
+ * 获取角色下已授权的用户列表
87
87
  */
88
- async DescribeTrainingTask(req, cb) {
89
- return this.request("DescribeTrainingTask", req, cb);
88
+ async DescribeRoleUsers(req, cb) {
89
+ return this.request("DescribeRoleUsers", req, cb);
90
90
  }
91
91
  /**
92
- * 获取挂载限制列表
92
+ * 根据服务组id删除服务组下所有模型服务
93
93
  */
94
- async DescribeMountLimits(req, cb) {
95
- return this.request("DescribeMountLimits", req, cb);
94
+ async DeleteModelServiceGroup(req, cb) {
95
+ return this.request("DeleteModelServiceGroup", req, cb);
96
96
  }
97
97
  /**
98
- * 获取任务式建模训练任务,Notebook,在线服务和批量预测任务的事件API
98
+ * 公共算法版本列表
99
99
  */
100
- async DescribeEvents(req, cb) {
101
- return this.request("DescribeEvents", req, cb);
100
+ async DescribePublicAlgoVersionList(req, cb) {
101
+ return this.request("DescribePublicAlgoVersionList", req, cb);
102
102
  }
103
103
  /**
104
- * 获取内置镜像列表
104
+ * 更新用户授权
105
105
  */
106
- async DescribeBuildInImages(req, cb) {
107
- return this.request("DescribeBuildInImages", req, cb);
106
+ async ModifyUserGrant(req, cb) {
107
+ return this.request("ModifyUserGrant", req, cb);
108
108
  }
109
109
  /**
110
- * 启动Notebook
110
+ * 开启CLS日志投递
111
111
  */
112
- async StartNotebook(req, cb) {
113
- return this.request("StartNotebook", req, cb);
112
+ async EnableTrainingTaskClsConfig(req, cb) {
113
+ return this.request("EnableTrainingTaskClsConfig", req, cb);
114
114
  }
115
115
  /**
116
- * 查询工作空间列表
116
+ * 修改一个 AuthToken
117
117
  */
118
- async DescribeWorkspaces(req, cb) {
119
- return this.request("DescribeWorkspaces", req, cb);
118
+ async ModifyModelServiceAuthToken(req, cb) {
119
+ return this.request("ModifyModelServiceAuthToken", req, cb);
120
120
  }
121
121
  /**
122
- * 删除数据集
122
+ * 获取数据源列表
123
123
  */
124
- async DeleteDataset(req, cb) {
125
- return this.request("DeleteDataset", req, cb);
124
+ async DescribeDataSources(req, cb) {
125
+ return this.request("DescribeDataSources", req, cb);
126
126
  }
127
127
  /**
128
- * 创建模型训练任务
128
+ * 生成Notebook访问链接
129
129
  */
130
- async CreateTrainingTask(req, cb) {
131
- return this.request("CreateTrainingTask", req, cb);
130
+ async CreatePresignedNotebookUrl(req, cb) {
131
+ return this.request("CreatePresignedNotebookUrl", req, cb);
132
132
  }
133
133
  /**
134
- * 修改服务鉴权配置
134
+ * 创建挂载限制
135
135
  */
136
- async ModifyModelServiceAuthorization(req, cb) {
137
- return this.request("ModifyModelServiceAuthorization", req, cb);
136
+ async CreateMountLimit(req, cb) {
137
+ return this.request("CreateMountLimit", req, cb);
138
138
  }
139
139
  /**
140
- * 修改Notebook
140
+ * 删除数据源
141
141
  */
142
- async ModifyNotebook(req, cb) {
143
- return this.request("ModifyNotebook", req, cb);
142
+ async DeleteDataSource(req, cb) {
143
+ return this.request("DeleteDataSource", req, cb);
144
144
  }
145
145
  /**
146
- * 删除Notebook
146
+ * 停止模型加速任务
147
147
  */
148
- async DeleteNotebook(req, cb) {
149
- return this.request("DeleteNotebook", req, cb);
148
+ async StopModelAccelerateTask(req, cb) {
149
+ return this.request("StopModelAccelerateTask", req, cb);
150
150
  }
151
151
  /**
152
- * 删除一个 AuthToken
152
+ * 创建数据源
153
153
  */
154
- async DeleteModelServiceAuthToken(req, cb) {
155
- return this.request("DeleteModelServiceAuthToken", req, cb);
154
+ async CreateDataSource(req, cb) {
155
+ return this.request("CreateDataSource", req, cb);
156
156
  }
157
157
  /**
158
- * 获取数据源详情
158
+ * # DescribeWorkspaceQuotas 接口文档
159
+
160
+ ## 接口描述
161
+
162
+ 查询指定工作空间下的配额配置和配额列表。该接口用于获取主账号在某个工作空间下的配额管理配置,包括是否启用配额管理、默认配额值以及针对子账号或用户组的具体配额分配情况。
163
+
164
+ 支持三种配额类型:
165
+ - **CBS**:CBS存储配额管理
166
+ - **Notebook**:开发机数量配额管理
167
+ - **PostPaySpec**:托管按量资源规格限制
168
+
169
+
170
+
171
+ ## 请求参数
172
+
173
+ ### 公共参数(HTTP Header)
174
+ | 参数名 | 类型 | 必填 | 描述 |
175
+ |--------|------|------|------|
176
+ | X-TC-Uin | string | 是 | 主账号Uin |
177
+ | X-TC-ProjectId | uint32 | 是 | 工作空间ID |
178
+
179
+ ### 请求体参数
180
+ | 参数名 | 类型 | 必填 | 描述 |
181
+ |--------|------|------|------|
182
+ | QuotaType | string | 是 | 配额类型,可选值:<br>- `CBS`:CBS存储配额<br>- `Notebook`:开发机数量配额<br>- `PostPaySpec`:托管按量资源规格限制 |
183
+
184
+ ## 响应参数
185
+
186
+ | 参数名 | 类型 | 描述 |
187
+ |--------|------|------|
188
+ | QuotaType | string | 配额类型 |
189
+ | QuotaEnabled | bool | 是否启用配额管理功能 |
190
+ | DefaultQuota | WorkspaceQuota | 默认配额配置(当QuotaEnabled为false时为空对象) |
191
+ | Quotas | ][WorkspaceQuota | 配额列表,包含所有子账号或用户组的配额配置(仅当QuotaEnabled为true时返回) |
192
+
193
+ ### WorkspaceQuota
194
+
195
+ | 参数名 | 类型 | 描述 |
196
+ |--------|------|------|
197
+ | Id | string | 配额ID,格式:<br>- 用户配额:`{quota_type}-{uin}-{subuin}-{TiProjectId}`<br>- 用户组配额:`{quota_type}-{uin}-{groupid}-{TiProjectId}`<br>- 默认配额:`{quota_type}-{uin}-default-{TiProjectId}` |
198
+ | QuotaType | string | 配额类型 |
199
+ | Uin | string | 主账号Uin |
200
+ | SubUin | string | 子账号Uin(当TargetType为USER时有值) |
201
+ | SubUinName | string | 子账号名称(当TargetType为USER时有值) |
202
+ | QuotaValue | uint32 | 配额值:<br>- CBS:容量(GiB),默认100,范围10-10000<br>- Notebook:数量(个),默认1,范围1-999<br>- PostPaySpec:无意义,关注QuotaData字段 |
203
+ | QuotaData | []string | 配额数据(JSON数组格式):<br>- 当QuotaType为PostPaySpec时,存储允许使用的规格ID列表 |
204
+ | TargetType | string | 配额目标类型:<br>- `USER`:用户配额<br>- `USER_GROUP`:用户组配额 |
205
+ | GroupId | string | 用户组ID(当TargetType为USER_GROUP时有值) |
206
+ | GroupName | string | 用户组名称(当TargetType为USER_GROUP时有值) |
207
+ | TiProjectId | string | 工作空间ID |
208
+
209
+ ## 业务逻辑
210
+
211
+ 1. **参数校验**:验证QuotaType参数是否合法
212
+ 2. **查询配额配置**:根据主账号Uin、工作空间ID和配额类型查询配额配置
213
+ 3. **配置不存在**:
214
+ - 返回系统默认的配额启用状态和默认配额值
215
+ - CBS默认启用,默认值100GiB
216
+ - Notebook默认启用,默认值1个
217
+ - PostPaySpec默认不启用
218
+ 4. **配置存在但未启用**:
219
+ - QuotaEnabled返回false
220
+ - DefaultQuota返回空对象
221
+ - Quotas不返回
222
+ 5. **配置存在且已启用**:
223
+ - QuotaEnabled返回true
224
+ - DefaultQuota返回配置的默认配额值
225
+ - Quotas返回所有子账号或用户组的配额列表
226
+ - 自动反序列化QuotaData字段(JSON数组)
227
+
228
+ ## 使用场景
229
+
230
+ 1. **配额管理页面初始化**:获取当前工作空间的配额配置状态
231
+ 2. **配额列表展示**:展示所有子账号或用户组的配额分配情况
232
+ 3. **配额编辑前查询**:在修改配额前获取当前配置
233
+ 4. **权限控制判断**:判断是否启用了配额管理功能
234
+
235
+ ## 错误码
236
+
237
+ | 错误码 | 描述 | 解决方案 |
238
+ |--------|------|----------|
239
+ | InvalidParameterValue | 参数值错误 | 检查QuotaType参数是否为合法值(CBS/Notebook/PostPaySpec) |
240
+ | FailedOperation.QueryDatabaseFail | 数据库查询失败 | 稍后重试或联系管理员 |
241
+
242
+ ## 请求示例
243
+
244
+ ```json
245
+ {
246
+ "QuotaType": "CBS"
247
+ }
248
+ ```
249
+
250
+ **HTTP Header:**
251
+ ```
252
+ X-TC-Uin: 100012345678
253
+ X-TC-ProjectId: 123456
254
+ ```
255
+
256
+ ## 响应示例
257
+
258
+ ### 示例1:配额已启用且有配额列表
259
+
260
+ ```json
261
+ {
262
+ "QuotaType": "CBS",
263
+ "QuotaEnabled": true,
264
+ "DefaultQuota": {
265
+ "Id": "CBS-100012345678-default-123456",
266
+ "QuotaType": "CBS",
267
+ "Uin": "100012345678",
268
+ "SubUin": "",
269
+ "SubUinName": "",
270
+ "QuotaValue": 100,
271
+ "QuotaData": [],
272
+ "TargetType": "",
273
+ "GroupId": "",
274
+ "GroupName": "",
275
+ "TiProjectId": "123456"
276
+ },
277
+ "Quotas": [
278
+ {
279
+ "Id": "CBS-100012345678-100012345679-123456",
280
+ "QuotaType": "CBS",
281
+ "Uin": "100012345678",
282
+ "SubUin": "100012345679",
283
+ "SubUinName": "张三",
284
+ "QuotaValue": 200,
285
+ "QuotaData": [],
286
+ "TargetType": "USER",
287
+ "GroupId": "",
288
+ "GroupName": "",
289
+ "TiProjectId": "123456"
290
+ },
291
+ {
292
+ "Id": "CBS-100012345678-group001-123456",
293
+ "QuotaType": "CBS",
294
+ "Uin": "100012345678",
295
+ "SubUin": "",
296
+ "SubUinName": "",
297
+ "QuotaValue": 500,
298
+ "QuotaData": [],
299
+ "TargetType": "USER_GROUP",
300
+ "GroupId": "group001",
301
+ "GroupName": "开发组",
302
+ "TiProjectId": "123456"
303
+ }
304
+ ]
305
+ }
306
+ ```
307
+
308
+ ### 示例2:配额未启用
309
+
310
+ ```json
311
+ {
312
+ "QuotaType": "PostPaySpec",
313
+ "QuotaEnabled": false,
314
+ "DefaultQuota": {},
315
+ "Quotas": []
316
+ }
317
+ ```
318
+
319
+ ### 示例3:PostPaySpec类型配额(带QuotaData)
320
+
321
+ ```json
322
+ {
323
+ "QuotaType": "PostPaySpec",
324
+ "QuotaEnabled": true,
325
+ "DefaultQuota": {
326
+ "Id": "PostPaySpec-100012345678-default-123456",
327
+ "QuotaType": "PostPaySpec",
328
+ "Uin": "100012345678",
329
+ "SubUin": "",
330
+ "SubUinName": "",
331
+ "QuotaValue": 0,
332
+ "QuotaData": ["spec-001", "spec-002", "spec-003"],
333
+ "TargetType": "",
334
+ "GroupId": "",
335
+ "GroupName": "",
336
+ "TiProjectId": "123456"
337
+ },
338
+ "Quotas": [
339
+ {
340
+ "Id": "PostPaySpec-100012345678-100012345679-123456",
341
+ "QuotaType": "PostPaySpec",
342
+ "Uin": "100012345678",
343
+ "SubUin": "100012345679",
344
+ "SubUinName": "李四",
345
+ "QuotaValue": 0,
346
+ "QuotaData": ["spec-001", "spec-002"],
347
+ "TargetType": "USER",
348
+ "GroupId": "",
349
+ "GroupName": "",
350
+ "TiProjectId": "123456"
351
+ }
352
+ ]
353
+ }
354
+ ```
355
+
356
+ ## 注意事项
357
+
358
+ 1. **配额继承规则**:
359
+ - 如果子账号或用户组没有单独配置配额,则使用DefaultQuota的值
360
+ - 用户组配额优先级高于默认配额,用户配额优先级最高
361
+
362
+ 2. **QuotaData字段**:
363
+ - 仅在QuotaType为PostPaySpec时有实际意义
364
+ - 存储的是允许使用的规格ID列表
365
+ - 其他类型的配额该字段为空数组
366
+
367
+ 3. **TargetType字段**:
368
+ - DefaultQuota的TargetType为空字符串
369
+ - Quotas列表中的每个配额都有明确的TargetType
370
+
371
+ 4. **配额值单位**:
372
+ - CBS配额:GiB(1 GiB = 1024 MiB)
373
+ - Notebook配额:个数
374
+
375
+ 5. **性能优化**:
376
+ - 接口会一次性返回所有配额列表,避免多次查询
377
+ - 建议前端做好缓存,减少重复请求
378
+ */
379
+ async DescribeWorkspaceQuotas(req, cb) {
380
+ return this.request("DescribeWorkspaceQuotas", req, cb);
381
+ }
382
+ /**
383
+ * 查看任务式建模训练任务,Notebook,在线服务和批量预测任务日志下载任务状态API
159
384
  */
160
- async DescribeDataSource(req, cb) {
161
- return this.request("DescribeDataSource", req, cb);
385
+ async DescribeExport(req, cb) {
386
+ return this.request("DescribeExport", req, cb);
162
387
  }
163
388
  /**
164
- * 用于查询模型服务能否开启热更新
389
+ * Notebook详情
165
390
  */
166
- async DescribeModelServiceHotUpdated(req, cb) {
167
- return this.request("DescribeModelServiceHotUpdated", req, cb);
391
+ async DescribeNotebook(req, cb) {
392
+ return this.request("DescribeNotebook", req, cb);
393
+ }
394
+ /**
395
+ * 创建任务式建模训练任务,Notebook,在线服务和批量预测任务日志下载任务API
396
+ */
397
+ async CreateExport(req, cb) {
398
+ return this.request("CreateExport", req, cb);
399
+ }
400
+ /**
401
+ * 删除挂载限制。注意:删除挂载限制后,该存储对应的所有数据源也会被删除
402
+ */
403
+ async DeleteMountLimit(req, cb) {
404
+ return this.request("DeleteMountLimit", req, cb);
405
+ }
406
+ /**
407
+ * 查询工作空间详情
408
+ */
409
+ async DescribeWorkspace(req, cb) {
410
+ return this.request("DescribeWorkspace", req, cb);
411
+ }
412
+ /**
413
+ * 获取角色列表
414
+ */
415
+ async DescribeRoles(req, cb) {
416
+ return this.request("DescribeRoles", req, cb);
417
+ }
418
+ /**
419
+ * Notebook列表
420
+ */
421
+ async DescribeNotebooks(req, cb) {
422
+ return this.request("DescribeNotebooks", req, cb);
423
+ }
424
+ /**
425
+ * 本接口(DescribeBillingSpecsPrice)用于查询按量计费计费项价格。
426
+ */
427
+ async DescribeBillingSpecsPrice(req, cb) {
428
+ return this.request("DescribeBillingSpecsPrice", req, cb);
429
+ }
430
+ /**
431
+ * DescribeMountInstance
432
+ */
433
+ async DescribeMountInstance(req, cb) {
434
+ return this.request("DescribeMountInstance", req, cb);
168
435
  }
169
436
  /**
170
437
  * 查询模型优化任务详情
@@ -188,148 +455,198 @@ class Client extends TencentCloudCommon.AbstractClient {
188
455
  return this.request("ModifyNotebookTags", req, cb);
189
456
  }
190
457
  /**
191
- * 删除模型
458
+ * 创建Notebook
192
459
  */
193
- async DeleteTrainingModel(req, cb) {
194
- return this.request("DeleteTrainingModel", req, cb);
460
+ async CreateNotebook(req, cb) {
461
+ return this.request("CreateNotebook", req, cb);
195
462
  }
196
463
  /**
197
- * 更新推理服务组流量分配
464
+ * 查询工作空间列表
198
465
  */
199
- async ModifyServiceGroupWeights(req, cb) {
200
- return this.request("ModifyServiceGroupWeights", req, cb);
466
+ async DescribeWorkspaces(req, cb) {
467
+ return this.request("DescribeWorkspaces", req, cb);
201
468
  }
202
469
  /**
203
- * 创建数据集
470
+ * 查询资源组关联的工作空间列表
204
471
  */
205
- async CreateDataset(req, cb) {
206
- return this.request("CreateDataset", req, cb);
472
+ async DescribeBillingResourceGroupAttachedWorkspaces(req, cb) {
473
+ return this.request("DescribeBillingResourceGroupAttachedWorkspaces", req, cb);
207
474
  }
208
475
  /**
209
- * 创建Notebook
476
+ * 删除权限角色
210
477
  */
211
- async CreateNotebook(req, cb) {
212
- return this.request("CreateNotebook", req, cb);
478
+ async DeleteRole(req, cb) {
479
+ return this.request("DeleteRole", req, cb);
213
480
  }
214
481
  /**
215
- * 本接口(DescribeAnnotatedTaskList)用于查询用户标注任务详细信息列表;支持各种过滤条件;
482
+ * ## DescribeWorkspaceQuotaUsage 接口文档
483
+
484
+ ### 接口描述
485
+ 查询工作空间配额用量信息。该接口用于查询指定工作空间下某个子账号的配额使用情况,支持多种配额类型(CBS存储配额、Notebook开发机数量配额、托管按量资源规格限制)。
486
+
487
+ ### 错误码
488
+
489
+ | 错误码 | 说明 |
490
+ |--------|------|
491
+ | InvalidParameterValue | 参数值无效(如必填参数为空、QuotaType不在枚举范围内) |
492
+ | FailedOperation.QueryDatabaseFail | 数据库查询失败 |
493
+
494
+ ### 示例
495
+
496
+ **请求示例**:
497
+ ```json
498
+ {
499
+ "QuotaType": "Notebook",
500
+ "SupervisorUin": "100012345678",
501
+ "SupervisorSubUin": "100012345679",
502
+ "TiProjectId": "ti-proj-123456"
503
+ }
504
+ ```
505
+
506
+ **响应示例**:
507
+ ```json
508
+ {
509
+ "QuotaType": "Notebook",
510
+ "QuotaEnabled": true,
511
+ "TotalQuota": 10,
512
+ "UsedQuota": 3,
513
+ }
514
+ ```
515
+ */
516
+ async DescribeWorkspaceQuotaUsage(req, cb) {
517
+ return this.request("DescribeWorkspaceQuotaUsage", req, cb);
518
+ }
519
+ /**
520
+ * 根据服务id删除模型服务
216
521
  */
217
- async DescribeAnnotatedTaskList(req, cb) {
218
- return this.request("DescribeAnnotatedTaskList", req, cb);
522
+ async DeleteModelService(req, cb) {
523
+ return this.request("DeleteModelService", req, cb);
219
524
  }
220
525
  /**
221
- * 非数据源挂载时获取实例列表
526
+ * 停止模型训练任务
222
527
  */
223
- async DescribeMountInstances(req, cb) {
224
- return this.request("DescribeMountInstances", req, cb);
528
+ async StopTrainingTask(req, cb) {
529
+ return this.request("StopTrainingTask", req, cb);
225
530
  }
226
531
  /**
227
- * 查询资源组关联的工作空间列表
532
+ * 修改角色下用户的授权状态
228
533
  */
229
- async DescribeBillingResourceGroupAttachedWorkspaces(req, cb) {
230
- return this.request("DescribeBillingResourceGroupAttachedWorkspaces", req, cb);
534
+ async ModifyRoleUserGrant(req, cb) {
535
+ return this.request("ModifyRoleUserGrant", req, cb);
231
536
  }
232
537
  /**
233
- * 批量查询子账号Linux用户信息
538
+ * 停止Notebook
234
539
  */
235
- async DescribeSubAccountLinuxUserInfos(req, cb) {
236
- return this.request("DescribeSubAccountLinuxUserInfos", req, cb);
540
+ async StopNotebook(req, cb) {
541
+ return this.request("StopNotebook", req, cb);
237
542
  }
238
543
  /**
239
- * 创建挂载限制
544
+ * 展示服务的调用信息
240
545
  */
241
- async UpdateMountLimit(req, cb) {
242
- return this.request("UpdateMountLimit", req, cb);
546
+ async DescribeModelServiceCallInfo(req, cb) {
547
+ return this.request("DescribeModelServiceCallInfo", req, cb);
243
548
  }
244
549
  /**
245
- * 根据服务组id删除服务组下所有模型服务
550
+ * 训练任务列表
246
551
  */
247
- async DeleteModelServiceGroup(req, cb) {
248
- return this.request("DeleteModelServiceGroup", req, cb);
552
+ async DescribeTrainingTasks(req, cb) {
553
+ return this.request("DescribeTrainingTasks", req, cb);
249
554
  }
250
555
  /**
251
- * 公共算法版本列表
556
+ * 获取任务式建模训练任务,Notebook,在线服务和批量预测任务的事件API
252
557
  */
253
- async DescribePublicAlgoVersionList(req, cb) {
254
- return this.request("DescribePublicAlgoVersionList", req, cb);
558
+ async DescribeEvents(req, cb) {
559
+ return this.request("DescribeEvents", req, cb);
255
560
  }
256
561
  /**
257
- * 更新数据源
562
+ * 获取内置镜像列表
258
563
  */
259
- async UpdateDataSource(req, cb) {
260
- return this.request("UpdateDataSource", req, cb);
564
+ async DescribeBuildInImages(req, cb) {
565
+ return this.request("DescribeBuildInImages", req, cb);
261
566
  }
262
567
  /**
263
- * 训练任务pod列表
568
+ * 启动Notebook
264
569
  */
265
- async DescribeTrainingTaskPods(req, cb) {
266
- return this.request("DescribeTrainingTaskPods", req, cb);
570
+ async StartNotebook(req, cb) {
571
+ return this.request("StartNotebook", req, cb);
267
572
  }
268
573
  /**
269
- * 上报训练自定义指标
574
+ * 删除一个 AuthToken
270
575
  */
271
- async PushTrainingMetrics(req, cb) {
272
- return this.request("PushTrainingMetrics", req, cb);
576
+ async DeleteModelServiceAuthToken(req, cb) {
577
+ return this.request("DeleteModelServiceAuthToken", req, cb);
273
578
  }
274
579
  /**
275
- * 停止模型训练任务
580
+ * 获取数据源详情
276
581
  */
277
- async StopTrainingTask(req, cb) {
278
- return this.request("StopTrainingTask", req, cb);
582
+ async DescribeDataSource(req, cb) {
583
+ return this.request("DescribeDataSource", req, cb);
279
584
  }
280
585
  /**
281
- * 模型版本列表
586
+ * 删除模型
282
587
  */
283
- async DescribeTrainingModelVersions(req, cb) {
284
- return this.request("DescribeTrainingModelVersions", req, cb);
588
+ async DeleteTrainingModel(req, cb) {
589
+ return this.request("DeleteTrainingModel", req, cb);
285
590
  }
286
591
  /**
287
- * 保存镜像
592
+ * 本接口(DescribeAnnotatedTaskList)用于查询用户标注任务详细信息列表;支持各种过滤条件;
288
593
  */
289
- async CreateNotebookImage(req, cb) {
290
- return this.request("CreateNotebookImage", req, cb);
594
+ async DescribeAnnotatedTaskList(req, cb) {
595
+ return this.request("DescribeAnnotatedTaskList", req, cb);
291
596
  }
292
597
  /**
293
- * 获取单个训练任务实例的登录链接
598
+ * 启动模型训练任务
294
599
  */
295
- async DescribeTrainingTaskPodUrl(req, cb) {
296
- return this.request("DescribeTrainingTaskPodUrl", req, cb);
600
+ async StartTrainingTask(req, cb) {
601
+ return this.request("StartTrainingTask", req, cb);
297
602
  }
298
603
  /**
299
- * 用于创建、发布一个新的模型服务
604
+ * 创建数据集
300
605
  */
301
- async CreateModelService(req, cb) {
302
- return this.request("CreateModelService", req, cb);
606
+ async CreateDataset(req, cb) {
607
+ return this.request("CreateDataset", req, cb);
303
608
  }
304
609
  /**
305
- * 获取数据源列表
610
+ * 更新数据源
306
611
  */
307
- async DescribeDataSources(req, cb) {
308
- return this.request("DescribeDataSources", req, cb);
612
+ async UpdateDataSource(req, cb) {
613
+ return this.request("UpdateDataSource", req, cb);
309
614
  }
310
615
  /**
311
- * 更新子账号Linux用户信息
616
+ * 上报训练自定义指标
312
617
  */
313
- async UpdateSubAccountLinuxUserInfo(req, cb) {
314
- return this.request("UpdateSubAccountLinuxUserInfo", req, cb);
618
+ async PushTrainingMetrics(req, cb) {
619
+ return this.request("PushTrainingMetrics", req, cb);
315
620
  }
316
621
  /**
317
- * 生成Notebook访问链接
622
+ * 创建挂载限制
318
623
  */
319
- async CreatePresignedNotebookUrl(req, cb) {
320
- return this.request("CreatePresignedNotebookUrl", req, cb);
624
+ async UpdateMountLimit(req, cb) {
625
+ return this.request("UpdateMountLimit", req, cb);
321
626
  }
322
627
  /**
323
- * 获取任务式建模训练任务,Notebook,在线服务和批量预测任务的日志API
628
+ * 模型版本列表
324
629
  */
325
- async DescribeLogs(req, cb) {
326
- return this.request("DescribeLogs", req, cb);
630
+ async DescribeTrainingModelVersions(req, cb) {
631
+ return this.request("DescribeTrainingModelVersions", req, cb);
327
632
  }
328
633
  /**
329
- * 根据服务id删除模型服务
634
+ * 用于创建、发布一个新的模型服务
330
635
  */
331
- async DeleteModelService(req, cb) {
332
- return this.request("DeleteModelService", req, cb);
636
+ async CreateModelService(req, cb) {
637
+ return this.request("CreateModelService", req, cb);
638
+ }
639
+ /**
640
+ * 更新子账号Linux用户信息
641
+ */
642
+ async UpdateSubAccountLinuxUserInfo(req, cb) {
643
+ return this.request("UpdateSubAccountLinuxUserInfo", req, cb);
644
+ }
645
+ /**
646
+ * 获取任务式建模训练任务,Notebook,在线服务和批量预测任务的日志API
647
+ */
648
+ async DescribeLogs(req, cb) {
649
+ return this.request("DescribeLogs", req, cb);
333
650
  }
334
651
  /**
335
652
  * 查询数据集列表
@@ -338,162 +655,186 @@ class Client extends TencentCloudCommon.AbstractClient {
338
655
  return this.request("DescribeDatasets", req, cb);
339
656
  }
340
657
  /**
341
- * 创建一个 AuthToken
658
+ * 查询资源组节点运行中的任务
342
659
  */
343
- async CreateModelServiceAuthToken(req, cb) {
344
- return this.request("CreateModelServiceAuthToken", req, cb);
660
+ async DescribeBillingResourceInstanceRunningJobs(req, cb) {
661
+ return this.request("DescribeBillingResourceInstanceRunningJobs", req, cb);
345
662
  }
346
663
  /**
347
- * 创建挂载限制
664
+ * 用于更新模型服务
348
665
  */
349
- async CreateMountLimit(req, cb) {
350
- return this.request("CreateMountLimit", req, cb);
666
+ async ModifyModelService(req, cb) {
667
+ return this.request("ModifyModelService", req, cb);
351
668
  }
352
669
  /**
353
- * 删除数据源
670
+ * 列取访问权限规则列表
354
671
  */
355
- async DeleteDataSource(req, cb) {
356
- return this.request("DeleteDataSource", req, cb);
672
+ async DescribeAccessRules(req, cb) {
673
+ return this.request("DescribeAccessRules", req, cb);
357
674
  }
358
675
  /**
359
- * 训练任务列表
676
+ * 训练任务详情
360
677
  */
361
- async DescribeTrainingTasks(req, cb) {
362
- return this.request("DescribeTrainingTasks", req, cb);
678
+ async DescribeTrainingTask(req, cb) {
679
+ return this.request("DescribeTrainingTask", req, cb);
363
680
  }
364
681
  /**
365
- * 用于更新模型服务
682
+ * 该接口用于查询内置镜像列表
366
683
  */
367
- async ModifyModelService(req, cb) {
368
- return this.request("ModifyModelService", req, cb);
684
+ async DescribePresetImageList(req, cb) {
685
+ return this.request("DescribePresetImageList", req, cb);
369
686
  }
370
687
  /**
371
- * Notebook列表
688
+ * 修改Notebook
372
689
  */
373
- async DescribeNotebooks(req, cb) {
374
- return this.request("DescribeNotebooks", req, cb);
690
+ async ModifyNotebook(req, cb) {
691
+ return this.request("ModifyNotebook", req, cb);
375
692
  }
376
693
  /**
377
- * 删除训练任务
694
+ * 查询资源组列表
378
695
  */
379
- async DeleteTrainingTask(req, cb) {
380
- return this.request("DeleteTrainingTask", req, cb);
696
+ async DescribeBillingResourceGroups(req, cb) {
697
+ return this.request("DescribeBillingResourceGroups", req, cb);
381
698
  }
382
699
  /**
383
- * 模型加速之后的模型版本列表
700
+ * 列举在线推理服务组
384
701
  */
385
- async DescribeModelAccelerateVersions(req, cb) {
386
- return this.request("DescribeModelAccelerateVersions", req, cb);
702
+ async DescribeModelServiceGroups(req, cb) {
703
+ return this.request("DescribeModelServiceGroups", req, cb);
387
704
  }
388
705
  /**
389
- * 停止模型加速任务
706
+ * 删除任务式建模训练任务,Notebook,在线服务和批量预测任务日志导出任务API
390
707
  */
391
- async StopModelAccelerateTask(req, cb) {
392
- return this.request("StopModelAccelerateTask", req, cb);
708
+ async DeleteExport(req, cb) {
709
+ return this.request("DeleteExport", req, cb);
393
710
  }
394
711
  /**
395
- * 查询资源组节点运行中的任务
712
+ * 获取单个训练任务实例的登录链接
396
713
  */
397
- async DescribeBillingResourceInstanceRunningJobs(req, cb) {
398
- return this.request("DescribeBillingResourceInstanceRunningJobs", req, cb);
714
+ async DescribeTrainingTaskPodUrl(req, cb) {
715
+ return this.request("DescribeTrainingTaskPodUrl", req, cb);
399
716
  }
400
717
  /**
401
- * 创建数据源
718
+ * 批量查询子账号Linux用户信息
402
719
  */
403
- async CreateDataSource(req, cb) {
404
- return this.request("CreateDataSource", req, cb);
720
+ async DescribeSubAccountLinuxUserInfos(req, cb) {
721
+ return this.request("DescribeSubAccountLinuxUserInfos", req, cb);
405
722
  }
406
723
  /**
407
- * 查询单个服务组
724
+ * 获取挂载限制列表
408
725
  */
409
- async DescribeModelServiceGroup(req, cb) {
410
- return this.request("DescribeModelServiceGroup", req, cb);
726
+ async DescribeMountLimits(req, cb) {
727
+ return this.request("DescribeMountLimits", req, cb);
411
728
  }
412
729
  /**
413
- * 查询平台镜像信息
730
+ * 创建自定义角色
414
731
  */
415
- async DescribePlatformImages(req, cb) {
416
- return this.request("DescribePlatformImages", req, cb);
732
+ async CreateRole(req, cb) {
733
+ return this.request("CreateRole", req, cb);
417
734
  }
418
735
  /**
419
- * 查询资源组节点列表
736
+ * 删除数据集
420
737
  */
421
- async DescribeBillingResourceGroup(req, cb) {
422
- return this.request("DescribeBillingResourceGroup", req, cb);
738
+ async DeleteDataset(req, cb) {
739
+ return this.request("DeleteDataset", req, cb);
423
740
  }
424
741
  /**
425
- * 该接口用于查询内置镜像列表
742
+ * 创建模型训练任务
426
743
  */
427
- async DescribePresetImageList(req, cb) {
428
- return this.request("DescribePresetImageList", req, cb);
744
+ async CreateTrainingTask(req, cb) {
745
+ return this.request("CreateTrainingTask", req, cb);
429
746
  }
430
747
  /**
431
- * 查看任务式建模训练任务,Notebook,在线服务和批量预测任务日志下载任务状态API
748
+ * 更新空间用户列表
432
749
  */
433
- async DescribeExport(req, cb) {
434
- return this.request("DescribeExport", req, cb);
750
+ async ModifyWorkspaceMembers(req, cb) {
751
+ return this.request("ModifyWorkspaceMembers", req, cb);
435
752
  }
436
753
  /**
437
- * Notebook详情
754
+ * 修改服务鉴权配置
438
755
  */
439
- async DescribeNotebook(req, cb) {
440
- return this.request("DescribeNotebook", req, cb);
756
+ async ModifyModelServiceAuthorization(req, cb) {
757
+ return this.request("ModifyModelServiceAuthorization", req, cb);
441
758
  }
442
759
  /**
443
- * 开启CLS日志投递
760
+ * 训练任务pod列表
444
761
  */
445
- async EnableTrainingTaskClsConfig(req, cb) {
446
- return this.request("EnableTrainingTaskClsConfig", req, cb);
762
+ async DescribeTrainingTaskPods(req, cb) {
763
+ return this.request("DescribeTrainingTaskPods", req, cb);
447
764
  }
448
765
  /**
449
- * 删除模型版本
766
+ * 查询空间成员列表
450
767
  */
451
- async DeleteTrainingModelVersion(req, cb) {
452
- return this.request("DeleteTrainingModelVersion", req, cb);
768
+ async DescribeWorkspaceMembers(req, cb) {
769
+ return this.request("DescribeWorkspaceMembers", req, cb);
453
770
  }
454
771
  /**
455
- * 查询资源组列表
772
+ * 创建一个 AuthToken
456
773
  */
457
- async DescribeBillingResourceGroups(req, cb) {
458
- return this.request("DescribeBillingResourceGroups", req, cb);
774
+ async CreateModelServiceAuthToken(req, cb) {
775
+ return this.request("CreateModelServiceAuthToken", req, cb);
459
776
  }
460
777
  /**
461
- * 已废弃,收敛到统一接口
462
-
463
- 查询推理镜像模板
464
- */
465
- async DescribeInferTemplates(req, cb) {
466
- return this.request("DescribeInferTemplates", req, cb);
778
+ * 更新推理服务组流量分配
779
+ */
780
+ async ModifyServiceGroupWeights(req, cb) {
781
+ return this.request("ModifyServiceGroupWeights", req, cb);
467
782
  }
468
783
  /**
469
- * 列举在线推理服务组
784
+ * 用于查询模型服务能否开启热更新
470
785
  */
471
- async DescribeModelServiceGroups(req, cb) {
472
- return this.request("DescribeModelServiceGroups", req, cb);
786
+ async DescribeModelServiceHotUpdated(req, cb) {
787
+ return this.request("DescribeModelServiceHotUpdated", req, cb);
473
788
  }
474
789
  /**
475
- * 删除任务式建模训练任务,Notebook,在线服务和批量预测任务日志导出任务API
790
+ * 保存镜像
476
791
  */
477
- async DeleteExport(req, cb) {
478
- return this.request("DeleteExport", req, cb);
792
+ async CreateNotebookImage(req, cb) {
793
+ return this.request("CreateNotebookImage", req, cb);
479
794
  }
480
795
  /**
481
- * 创建任务式建模训练任务,Notebook,在线服务和批量预测任务日志下载任务API
796
+ * 获取角色详情
482
797
  */
483
- async CreateExport(req, cb) {
484
- return this.request("CreateExport", req, cb);
798
+ async DescribeRole(req, cb) {
799
+ return this.request("DescribeRole", req, cb);
485
800
  }
486
801
  /**
487
- * 删除挂载限制。注意:删除挂载限制后,该存储对应的所有数据源也会被删除
802
+ * 删除训练任务
488
803
  */
489
- async DeleteMountLimit(req, cb) {
490
- return this.request("DeleteMountLimit", req, cb);
804
+ async DeleteTrainingTask(req, cb) {
805
+ return this.request("DeleteTrainingTask", req, cb);
491
806
  }
492
807
  /**
493
- * 停止Notebook
808
+ * 查询平台镜像信息
494
809
  */
495
- async StopNotebook(req, cb) {
496
- return this.request("StopNotebook", req, cb);
810
+ async DescribePlatformImages(req, cb) {
811
+ return this.request("DescribePlatformImages", req, cb);
812
+ }
813
+ /**
814
+ * 修改自定义角色
815
+ */
816
+ async ModifyRole(req, cb) {
817
+ return this.request("ModifyRole", req, cb);
818
+ }
819
+ /**
820
+ * 查询资源组节点列表
821
+ */
822
+ async DescribeBillingResourceGroup(req, cb) {
823
+ return this.request("DescribeBillingResourceGroup", req, cb);
824
+ }
825
+ /**
826
+ * 删除模型版本
827
+ */
828
+ async DeleteTrainingModelVersion(req, cb) {
829
+ return this.request("DeleteTrainingModelVersion", req, cb);
830
+ }
831
+ /**
832
+ * 已废弃,收敛到统一接口
833
+
834
+ 查询推理镜像模板
835
+ */
836
+ async DescribeInferTemplates(req, cb) {
837
+ return this.request("DescribeInferTemplates", req, cb);
497
838
  }
498
839
  }
499
840
  exports.Client = Client;