tencentcloud-sdk-nodejs-tione 4.1.354 → 4.1.357
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/services/tione/v20211111/tione_client.js +332 -38
- package/package.json +1 -1
- package/tencentcloud/services/tione/v20211111/tione_client.d.ts +721 -327
- package/tencentcloud/services/tione/v20211111/tione_client.js +953 -363
- package/tencentcloud/services/tione/v20211111/tione_models.d.ts +12864 -5085
|
@@ -34,6 +34,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
34
34
|
async DescribeTrainingModelVersion(req, cb) {
|
|
35
35
|
return this.request("DescribeTrainingModelVersion", req, cb);
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* 修改主观评测任务标签
|
|
39
|
+
*/
|
|
40
|
+
async ModifySubevalTags(req, cb) {
|
|
41
|
+
return this.request("ModifySubevalTags", req, cb);
|
|
42
|
+
}
|
|
37
43
|
/**
|
|
38
44
|
* 查询单个服务
|
|
39
45
|
*/
|
|
@@ -52,6 +58,18 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
52
58
|
async DescribeModelServiceGroup(req, cb) {
|
|
53
59
|
return this.request("DescribeModelServiceGroup", req, cb);
|
|
54
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* 查看任务式建模训练任务,Notebook,在线服务和批量预测任务日志下载任务状态API
|
|
63
|
+
*/
|
|
64
|
+
async DescribeExport(req, cb) {
|
|
65
|
+
return this.request("DescribeExport", req, cb);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* 查询空间成员列表
|
|
69
|
+
*/
|
|
70
|
+
async DescribeWorkspaceMembers(req, cb) {
|
|
71
|
+
return this.request("DescribeWorkspaceMembers", req, cb);
|
|
72
|
+
}
|
|
55
73
|
/**
|
|
56
74
|
* 导入模型
|
|
57
75
|
*/
|
|
@@ -64,6 +82,24 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
64
82
|
async DeleteNotebook(req, cb) {
|
|
65
83
|
return this.request("DeleteNotebook", req, cb);
|
|
66
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* 创建评测项
|
|
87
|
+
*/
|
|
88
|
+
async CreateEvaluationSet(req, cb) {
|
|
89
|
+
return this.request("CreateEvaluationSet", req, cb);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* 获取自动评测复用已有结果的 execution 候选
|
|
93
|
+
*/
|
|
94
|
+
async DescribeObjectiveEvaluationReuseCandidates(req, cb) {
|
|
95
|
+
return this.request("DescribeObjectiveEvaluationReuseCandidates", req, cb);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* 模型评测第三方API连通性测试
|
|
99
|
+
*/
|
|
100
|
+
async DescribeLLMAPIConnectivity(req, cb) {
|
|
101
|
+
return this.request("DescribeLLMAPIConnectivity", req, cb);
|
|
102
|
+
}
|
|
67
103
|
/**
|
|
68
104
|
* 模型加速之后的模型版本列表
|
|
69
105
|
*/
|
|
@@ -71,10 +107,22 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
71
107
|
return this.request("DescribeModelAccelerateVersions", req, cb);
|
|
72
108
|
}
|
|
73
109
|
/**
|
|
74
|
-
*
|
|
110
|
+
* 获取性能评测任务列表
|
|
75
111
|
*/
|
|
76
|
-
async
|
|
77
|
-
return this.request("
|
|
112
|
+
async DescribePerformanceEvaluationList(req, cb) {
|
|
113
|
+
return this.request("DescribePerformanceEvaluationList", req, cb);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* 获取性能评测详情
|
|
117
|
+
*/
|
|
118
|
+
async DescribePerformanceEvaluation(req, cb) {
|
|
119
|
+
return this.request("DescribePerformanceEvaluation", req, cb);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* 获取评测打分模板名称列表
|
|
123
|
+
*/
|
|
124
|
+
async DescribeEvaluationJudgeTemplateList(req, cb) {
|
|
125
|
+
return this.request("DescribeEvaluationJudgeTemplateList", req, cb);
|
|
78
126
|
}
|
|
79
127
|
/**
|
|
80
128
|
* 非数据源挂载时获取实例列表
|
|
@@ -83,10 +131,16 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
83
131
|
return this.request("DescribeMountInstances", req, cb);
|
|
84
132
|
}
|
|
85
133
|
/**
|
|
86
|
-
*
|
|
134
|
+
* 获取打分模板输入提示
|
|
87
135
|
*/
|
|
88
|
-
async
|
|
89
|
-
return this.request("
|
|
136
|
+
async DescribeJudgeTemplateHints(req, cb) {
|
|
137
|
+
return this.request("DescribeJudgeTemplateHints", req, cb);
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* 创建评测任务配置
|
|
141
|
+
*/
|
|
142
|
+
async CreateEvaluationCustomSpec(req, cb) {
|
|
143
|
+
return this.request("CreateEvaluationCustomSpec", req, cb);
|
|
90
144
|
}
|
|
91
145
|
/**
|
|
92
146
|
* 根据服务组id删除服务组下所有模型服务
|
|
@@ -100,6 +154,24 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
100
154
|
async DescribePublicAlgoVersionList(req, cb) {
|
|
101
155
|
return this.request("DescribePublicAlgoVersionList", req, cb);
|
|
102
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* 删除已上传的指标配置文件
|
|
159
|
+
*/
|
|
160
|
+
async DeleteUploadedDatasetMetricsFile(req, cb) {
|
|
161
|
+
return this.request("DeleteUploadedDatasetMetricsFile", req, cb);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* 获取评测任务配置
|
|
165
|
+
*/
|
|
166
|
+
async DescribeEvaluationCustomSpecList(req, cb) {
|
|
167
|
+
return this.request("DescribeEvaluationCustomSpecList", req, cb);
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* 对比大模型评测
|
|
171
|
+
*/
|
|
172
|
+
async DescribeComparisonResults(req, cb) {
|
|
173
|
+
return this.request("DescribeComparisonResults", req, cb);
|
|
174
|
+
}
|
|
103
175
|
/**
|
|
104
176
|
* 更新用户授权
|
|
105
177
|
*/
|
|
@@ -113,10 +185,28 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
113
185
|
return this.request("EnableTrainingTaskClsConfig", req, cb);
|
|
114
186
|
}
|
|
115
187
|
/**
|
|
116
|
-
*
|
|
188
|
+
* 获取已上传的聚合指标配置文件
|
|
117
189
|
*/
|
|
118
|
-
async
|
|
119
|
-
return this.request("
|
|
190
|
+
async DescribeUploadedAggregatedMetricsFiles(req, cb) {
|
|
191
|
+
return this.request("DescribeUploadedAggregatedMetricsFiles", req, cb);
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* 获取单个训练任务实例的登录链接
|
|
195
|
+
*/
|
|
196
|
+
async DescribeTrainingTaskPodUrl(req, cb) {
|
|
197
|
+
return this.request("DescribeTrainingTaskPodUrl", req, cb);
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* 创建评测打分模板
|
|
201
|
+
*/
|
|
202
|
+
async CreateEvaluationJudgeTemplate(req, cb) {
|
|
203
|
+
return this.request("CreateEvaluationJudgeTemplate", req, cb);
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* 获取基线标准列表
|
|
207
|
+
*/
|
|
208
|
+
async DescribeBaselineList(req, cb) {
|
|
209
|
+
return this.request("DescribeBaselineList", req, cb);
|
|
120
210
|
}
|
|
121
211
|
/**
|
|
122
212
|
* 获取数据源列表
|
|
@@ -124,6 +214,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
124
214
|
async DescribeDataSources(req, cb) {
|
|
125
215
|
return this.request("DescribeDataSources", req, cb);
|
|
126
216
|
}
|
|
217
|
+
/**
|
|
218
|
+
* 查询评测路径名称
|
|
219
|
+
*/
|
|
220
|
+
async DescribeEvaluationPathName(req, cb) {
|
|
221
|
+
return this.request("DescribeEvaluationPathName", req, cb);
|
|
222
|
+
}
|
|
127
223
|
/**
|
|
128
224
|
* 生成Notebook访问链接
|
|
129
225
|
*/
|
|
@@ -143,10 +239,40 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
143
239
|
return this.request("DeleteDataSource", req, cb);
|
|
144
240
|
}
|
|
145
241
|
/**
|
|
146
|
-
*
|
|
242
|
+
* 获取聚合指标对比结果
|
|
147
243
|
*/
|
|
148
|
-
async
|
|
149
|
-
return this.request("
|
|
244
|
+
async DescribeAggregatedMetricsOutputFile(req, cb) {
|
|
245
|
+
return this.request("DescribeAggregatedMetricsOutputFile", req, cb);
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* 获取客观评测详情
|
|
249
|
+
*/
|
|
250
|
+
async DescribeObjectiveEvaluation(req, cb) {
|
|
251
|
+
return this.request("DescribeObjectiveEvaluation", req, cb);
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* 删除性能评测接口
|
|
255
|
+
*/
|
|
256
|
+
async DeletePerformanceEvaluation(req, cb) {
|
|
257
|
+
return this.request("DeletePerformanceEvaluation", req, cb);
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* 修改主观评测名称
|
|
261
|
+
*/
|
|
262
|
+
async ModifySubjectiveEvaluationName(req, cb) {
|
|
263
|
+
return this.request("ModifySubjectiveEvaluationName", req, cb);
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* 按模型身份聚合评测模板任务,返回可参与任务报告对比的模型列表;筛选在服务端聚合与分页之前生效
|
|
267
|
+
*/
|
|
268
|
+
async DescribeEvaluationComparisonModelList(req, cb) {
|
|
269
|
+
return this.request("DescribeEvaluationComparisonModelList", req, cb);
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* 创建聚合指标配置
|
|
273
|
+
*/
|
|
274
|
+
async CreateAggregatedMetricConfig(req, cb) {
|
|
275
|
+
return this.request("CreateAggregatedMetricConfig", req, cb);
|
|
150
276
|
}
|
|
151
277
|
/**
|
|
152
278
|
* 创建数据源
|
|
@@ -155,378 +281,289 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
155
281
|
return this.request("CreateDataSource", req, cb);
|
|
156
282
|
}
|
|
157
283
|
/**
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
284
|
+
* 获取评测后单条评测数据集内容
|
|
285
|
+
*/
|
|
286
|
+
async DescribeJudgedDatum(req, cb) {
|
|
287
|
+
return this.request("DescribeJudgedDatum", req, cb);
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* 获取跨账号日志数量直方图
|
|
291
|
+
*/
|
|
292
|
+
async DescribeCrossAccountLogHistogram(req, cb) {
|
|
293
|
+
return this.request("DescribeCrossAccountLogHistogram", req, cb);
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* 获取单条评测结果详情
|
|
297
|
+
*/
|
|
298
|
+
async DescribeJudgedDatumScoringDetail(req, cb) {
|
|
299
|
+
return this.request("DescribeJudgedDatumScoringDetail", req, cb);
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* 按已选基线查询可对比的评测项、指标选项和基线指标值;任一基线不存在、无权限或类别为 CAPABILITY 时整体失败,不返回部分结果
|
|
303
|
+
*/
|
|
304
|
+
async DescribeBaselineComparisonData(req, cb) {
|
|
305
|
+
return this.request("DescribeBaselineComparisonData", req, cb);
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Notebook详情
|
|
309
|
+
*/
|
|
310
|
+
async DescribeNotebook(req, cb) {
|
|
311
|
+
return this.request("DescribeNotebook", req, cb);
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* 编辑基线标准
|
|
315
|
+
*/
|
|
316
|
+
async ModifyBaseline(req, cb) {
|
|
317
|
+
return this.request("ModifyBaseline", req, cb);
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* 修改客观评测任务标签
|
|
321
|
+
*/
|
|
322
|
+
async ModifyObjevalTags(req, cb) {
|
|
323
|
+
return this.request("ModifyObjevalTags", req, cb);
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* 获取评测打分模板内容
|
|
327
|
+
*/
|
|
328
|
+
async DescribeEvaluationJudgeTemplateContent(req, cb) {
|
|
329
|
+
return this.request("DescribeEvaluationJudgeTemplateContent", req, cb);
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* 获取主观评测推理进度接口
|
|
333
|
+
*/
|
|
334
|
+
async DescribeSubjectiveEvaluationProgress(req, cb) {
|
|
335
|
+
return this.request("DescribeSubjectiveEvaluationProgress", req, cb);
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* 创建评测模板
|
|
339
|
+
*/
|
|
340
|
+
async CreateEvaluationTemplate(req, cb) {
|
|
341
|
+
return this.request("CreateEvaluationTemplate", req, cb);
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* 创建任务式建模训练任务,Notebook,在线服务和批量预测任务日志下载任务API
|
|
345
|
+
*/
|
|
346
|
+
async CreateExport(req, cb) {
|
|
347
|
+
return this.request("CreateExport", req, cb);
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* 按供应商删除待评测模型服务配置,并同步删除其下所属模型
|
|
351
|
+
*/
|
|
352
|
+
async DeleteEvaluationModelInfo(req, cb) {
|
|
353
|
+
return this.request("DeleteEvaluationModelInfo", req, cb);
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* 删除挂载限制。注意:删除挂载限制后,该存储对应的所有数据源也会被删除
|
|
357
|
+
*/
|
|
358
|
+
async DeleteMountLimit(req, cb) {
|
|
359
|
+
return this.request("DeleteMountLimit", req, cb);
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* 查询工作空间详情
|
|
363
|
+
*/
|
|
364
|
+
async DescribeWorkspace(req, cb) {
|
|
365
|
+
return this.request("DescribeWorkspace", req, cb);
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* 获取指标调试待评测服务响应:创建异步请求
|
|
369
|
+
*/
|
|
370
|
+
async DescribeEvaluationJudgeAdjustmentResponse(req, cb) {
|
|
371
|
+
return this.request("DescribeEvaluationJudgeAdjustmentResponse", req, cb);
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Notebook列表
|
|
375
|
+
*/
|
|
376
|
+
async DescribeNotebooks(req, cb) {
|
|
377
|
+
return this.request("DescribeNotebooks", req, cb);
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* 本接口(DescribeBillingSpecsPrice)用于查询按量计费计费项价格。
|
|
381
|
+
*/
|
|
382
|
+
async DescribeBillingSpecsPrice(req, cb) {
|
|
383
|
+
return this.request("DescribeBillingSpecsPrice", req, cb);
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* 创建客观评测草稿
|
|
387
|
+
*/
|
|
388
|
+
async CreateObjectiveEvaluationDraft(req, cb) {
|
|
389
|
+
return this.request("CreateObjectiveEvaluationDraft", req, cb);
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* 查询工作空间列表
|
|
393
|
+
*/
|
|
394
|
+
async DescribeWorkspaces(req, cb) {
|
|
395
|
+
return this.request("DescribeWorkspaces", req, cb);
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* DescribeMountInstance
|
|
399
|
+
*/
|
|
400
|
+
async DescribeMountInstance(req, cb) {
|
|
401
|
+
return this.request("DescribeMountInstance", req, cb);
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* 删除基线标准
|
|
405
|
+
*/
|
|
406
|
+
async DeleteBaseline(req, cb) {
|
|
407
|
+
return this.request("DeleteBaseline", req, cb);
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* 修改Notebook
|
|
411
|
+
*/
|
|
412
|
+
async ModifyNotebook(req, cb) {
|
|
413
|
+
return this.request("ModifyNotebook", req, cb);
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* 创建一个供应商及其下至少一个模型配置,返回供应商 ID 和模型 ID 列表
|
|
417
|
+
*/
|
|
418
|
+
async CreateEvaluationModelInfo(req, cb) {
|
|
419
|
+
return this.request("CreateEvaluationModelInfo", req, cb);
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* 下载对比结果
|
|
423
|
+
*/
|
|
424
|
+
async DescribeComparisonsOutputs(req, cb) {
|
|
425
|
+
return this.request("DescribeComparisonsOutputs", req, cb);
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* 该接口支持与自行部署的大模型的聊天。
|
|
229
429
|
|
|
230
|
-
|
|
231
|
-
|
|
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
|
-
- 建议前端做好缓存,减少重复请求
|
|
430
|
+
使用该接口调用时需要携带腾讯云的密钥信息用于身份信息鉴权,建议通过腾讯云的云 API SDK调用,具体可以参考
|
|
431
|
+
https://cloud.tencent.com/document/product/1278/85305
|
|
378
432
|
*/
|
|
379
|
-
async
|
|
380
|
-
return this.request("
|
|
433
|
+
async ChatCompletion(req, cb) {
|
|
434
|
+
return this.request("ChatCompletion", req, cb);
|
|
381
435
|
}
|
|
382
436
|
/**
|
|
383
|
-
*
|
|
437
|
+
* 修改Notebook标签
|
|
384
438
|
*/
|
|
385
|
-
async
|
|
386
|
-
return this.request("
|
|
439
|
+
async ModifyNotebookTags(req, cb) {
|
|
440
|
+
return this.request("ModifyNotebookTags", req, cb);
|
|
387
441
|
}
|
|
388
442
|
/**
|
|
389
|
-
*
|
|
443
|
+
* 编辑客观评测接口
|
|
390
444
|
*/
|
|
391
|
-
async
|
|
392
|
-
return this.request("
|
|
445
|
+
async ModifyObjectiveEvaluation(req, cb) {
|
|
446
|
+
return this.request("ModifyObjectiveEvaluation", req, cb);
|
|
393
447
|
}
|
|
394
448
|
/**
|
|
395
|
-
*
|
|
449
|
+
* 创建Notebook
|
|
396
450
|
*/
|
|
397
|
-
async
|
|
398
|
-
return this.request("
|
|
451
|
+
async CreateNotebook(req, cb) {
|
|
452
|
+
return this.request("CreateNotebook", req, cb);
|
|
399
453
|
}
|
|
400
454
|
/**
|
|
401
|
-
*
|
|
455
|
+
* 获取主观评测详情
|
|
402
456
|
*/
|
|
403
|
-
async
|
|
404
|
-
return this.request("
|
|
457
|
+
async DescribeSubjectiveEvaluation(req, cb) {
|
|
458
|
+
return this.request("DescribeSubjectiveEvaluation", req, cb);
|
|
405
459
|
}
|
|
406
460
|
/**
|
|
407
|
-
*
|
|
461
|
+
* 删除聚合指标配置
|
|
408
462
|
*/
|
|
409
|
-
async
|
|
410
|
-
return this.request("
|
|
463
|
+
async DeleteAggregatedMetricConfig(req, cb) {
|
|
464
|
+
return this.request("DeleteAggregatedMetricConfig", req, cb);
|
|
411
465
|
}
|
|
412
466
|
/**
|
|
413
|
-
*
|
|
467
|
+
* 查询资源组关联的工作空间列表
|
|
414
468
|
*/
|
|
415
|
-
async
|
|
416
|
-
return this.request("
|
|
469
|
+
async DescribeBillingResourceGroupAttachedWorkspaces(req, cb) {
|
|
470
|
+
return this.request("DescribeBillingResourceGroupAttachedWorkspaces", req, cb);
|
|
417
471
|
}
|
|
418
472
|
/**
|
|
419
|
-
*
|
|
473
|
+
* 获取聚合指标配置
|
|
420
474
|
*/
|
|
421
|
-
async
|
|
422
|
-
return this.request("
|
|
475
|
+
async DescribeAggregatedMetricConfigs(req, cb) {
|
|
476
|
+
return this.request("DescribeAggregatedMetricConfigs", req, cb);
|
|
423
477
|
}
|
|
424
478
|
/**
|
|
425
|
-
*
|
|
479
|
+
* 删除权限角色
|
|
426
480
|
*/
|
|
427
|
-
async
|
|
428
|
-
return this.request("
|
|
481
|
+
async DeleteRole(req, cb) {
|
|
482
|
+
return this.request("DeleteRole", req, cb);
|
|
429
483
|
}
|
|
430
484
|
/**
|
|
431
|
-
*
|
|
485
|
+
* 获取跨账号日志主题列表
|
|
432
486
|
*/
|
|
433
|
-
async
|
|
434
|
-
return this.request("
|
|
487
|
+
async DescribeCrossAccountTopics(req, cb) {
|
|
488
|
+
return this.request("DescribeCrossAccountTopics", req, cb);
|
|
435
489
|
}
|
|
436
490
|
/**
|
|
437
|
-
*
|
|
491
|
+
* 停止性能评测接口
|
|
438
492
|
*/
|
|
439
|
-
async
|
|
440
|
-
return this.request("
|
|
493
|
+
async StopPerformanceEvaluation(req, cb) {
|
|
494
|
+
return this.request("StopPerformanceEvaluation", req, cb);
|
|
441
495
|
}
|
|
442
496
|
/**
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
*/
|
|
448
|
-
async ChatCompletion(req, cb) {
|
|
449
|
-
return this.request("ChatCompletion", req, cb);
|
|
497
|
+
* 列举在线推理服务组
|
|
498
|
+
*/
|
|
499
|
+
async DescribeModelServiceGroups(req, cb) {
|
|
500
|
+
return this.request("DescribeModelServiceGroups", req, cb);
|
|
450
501
|
}
|
|
451
502
|
/**
|
|
452
|
-
*
|
|
503
|
+
* 获取角色详情
|
|
453
504
|
*/
|
|
454
|
-
async
|
|
455
|
-
return this.request("
|
|
505
|
+
async DescribeRole(req, cb) {
|
|
506
|
+
return this.request("DescribeRole", req, cb);
|
|
456
507
|
}
|
|
457
508
|
/**
|
|
458
|
-
*
|
|
509
|
+
* 获取已上传文件解析后的指标配置
|
|
459
510
|
*/
|
|
460
|
-
async
|
|
461
|
-
return this.request("
|
|
511
|
+
async DescribeUploadedDatasetMetricsConfig(req, cb) {
|
|
512
|
+
return this.request("DescribeUploadedDatasetMetricsConfig", req, cb);
|
|
462
513
|
}
|
|
463
514
|
/**
|
|
464
|
-
*
|
|
515
|
+
* 停止模型训练任务
|
|
465
516
|
*/
|
|
466
|
-
async
|
|
467
|
-
return this.request("
|
|
517
|
+
async StopTrainingTask(req, cb) {
|
|
518
|
+
return this.request("StopTrainingTask", req, cb);
|
|
468
519
|
}
|
|
469
520
|
/**
|
|
470
|
-
*
|
|
521
|
+
* 获取性能评测整体结果
|
|
471
522
|
*/
|
|
472
|
-
async
|
|
473
|
-
return this.request("
|
|
523
|
+
async DescribePerformanceEvaluationMetrics(req, cb) {
|
|
524
|
+
return this.request("DescribePerformanceEvaluationMetrics", req, cb);
|
|
474
525
|
}
|
|
475
526
|
/**
|
|
476
|
-
*
|
|
527
|
+
* 创建基线标准
|
|
477
528
|
*/
|
|
478
|
-
async
|
|
479
|
-
return this.request("
|
|
529
|
+
async CreateBaseline(req, cb) {
|
|
530
|
+
return this.request("CreateBaseline", req, cb);
|
|
480
531
|
}
|
|
481
532
|
/**
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
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);
|
|
533
|
+
* 编辑待评测模型服务配置;按供应商编辑与单独编辑模型互斥,Supplier 与 ModelInfo 必须且只能填写一个
|
|
534
|
+
*/
|
|
535
|
+
async ModifyEvaluationModelInfo(req, cb) {
|
|
536
|
+
return this.request("ModifyEvaluationModelInfo", req, cb);
|
|
518
537
|
}
|
|
519
538
|
/**
|
|
520
|
-
*
|
|
539
|
+
* 对在线服务的回复进行打分
|
|
521
540
|
*/
|
|
522
|
-
async
|
|
523
|
-
return this.request("
|
|
541
|
+
async SubmitEvaluationScore(req, cb) {
|
|
542
|
+
return this.request("SubmitEvaluationScore", req, cb);
|
|
524
543
|
}
|
|
525
544
|
/**
|
|
526
|
-
*
|
|
545
|
+
* 删除评测项
|
|
527
546
|
*/
|
|
528
|
-
async
|
|
529
|
-
return this.request("
|
|
547
|
+
async DeleteEvaluationSet(req, cb) {
|
|
548
|
+
return this.request("DeleteEvaluationSet", req, cb);
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* 修改自定义角色的权限规则
|
|
552
|
+
*/
|
|
553
|
+
async ModifyRoleAccessRules(req, cb) {
|
|
554
|
+
return this.request("ModifyRoleAccessRules", req, cb);
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* 获取指标调试待评测服务响应:获取异步结果
|
|
558
|
+
*/
|
|
559
|
+
async DescribeEvaluationJudgeAdjustmentAsyncResponse(req, cb) {
|
|
560
|
+
return this.request("DescribeEvaluationJudgeAdjustmentAsyncResponse", req, cb);
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* 编辑性能评测任务最终指标配置
|
|
564
|
+
*/
|
|
565
|
+
async ModifyPerformanceEvaluationConclusionConfig(req, cb) {
|
|
566
|
+
return this.request("ModifyPerformanceEvaluationConclusionConfig", req, cb);
|
|
530
567
|
}
|
|
531
568
|
/**
|
|
532
569
|
* 修改角色下用户的授权状态
|
|
@@ -534,24 +571,54 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
534
571
|
async ModifyRoleUserGrant(req, cb) {
|
|
535
572
|
return this.request("ModifyRoleUserGrant", req, cb);
|
|
536
573
|
}
|
|
574
|
+
/**
|
|
575
|
+
* 停止模型加速任务
|
|
576
|
+
*/
|
|
577
|
+
async StopModelAccelerateTask(req, cb) {
|
|
578
|
+
return this.request("StopModelAccelerateTask", req, cb);
|
|
579
|
+
}
|
|
537
580
|
/**
|
|
538
581
|
* 停止Notebook
|
|
539
582
|
*/
|
|
540
583
|
async StopNotebook(req, cb) {
|
|
541
584
|
return this.request("StopNotebook", req, cb);
|
|
542
585
|
}
|
|
586
|
+
/**
|
|
587
|
+
* 创建主观评测接口
|
|
588
|
+
*/
|
|
589
|
+
async CreateSubjectiveEvaluation(req, cb) {
|
|
590
|
+
return this.request("CreateSubjectiveEvaluation", req, cb);
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* 获取性能评测复用已有结果的执行记录候选结果
|
|
594
|
+
*/
|
|
595
|
+
async DescribePerformanceEvaluationReuseCandidates(req, cb) {
|
|
596
|
+
return this.request("DescribePerformanceEvaluationReuseCandidates", req, cb);
|
|
597
|
+
}
|
|
543
598
|
/**
|
|
544
599
|
* 展示服务的调用信息
|
|
545
600
|
*/
|
|
546
601
|
async DescribeModelServiceCallInfo(req, cb) {
|
|
547
602
|
return this.request("DescribeModelServiceCallInfo", req, cb);
|
|
548
603
|
}
|
|
604
|
+
/**
|
|
605
|
+
* 停止客观评测接口
|
|
606
|
+
*/
|
|
607
|
+
async StopObjectiveEvaluation(req, cb) {
|
|
608
|
+
return this.request("StopObjectiveEvaluation", req, cb);
|
|
609
|
+
}
|
|
549
610
|
/**
|
|
550
611
|
* 训练任务列表
|
|
551
612
|
*/
|
|
552
613
|
async DescribeTrainingTasks(req, cb) {
|
|
553
614
|
return this.request("DescribeTrainingTasks", req, cb);
|
|
554
615
|
}
|
|
616
|
+
/**
|
|
617
|
+
* 编辑主观评测接口
|
|
618
|
+
*/
|
|
619
|
+
async ModifySubjectiveEvaluation(req, cb) {
|
|
620
|
+
return this.request("ModifySubjectiveEvaluation", req, cb);
|
|
621
|
+
}
|
|
555
622
|
/**
|
|
556
623
|
* 获取任务式建模训练任务,Notebook,在线服务和批量预测任务的事件API
|
|
557
624
|
*/
|
|
@@ -570,6 +637,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
570
637
|
async StartNotebook(req, cb) {
|
|
571
638
|
return this.request("StartNotebook", req, cb);
|
|
572
639
|
}
|
|
640
|
+
/**
|
|
641
|
+
* 修改性能评测接口
|
|
642
|
+
*/
|
|
643
|
+
async ModifyPerformanceEvaluation(req, cb) {
|
|
644
|
+
return this.request("ModifyPerformanceEvaluation", req, cb);
|
|
645
|
+
}
|
|
573
646
|
/**
|
|
574
647
|
* 删除一个 AuthToken
|
|
575
648
|
*/
|
|
@@ -582,12 +655,36 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
582
655
|
async DescribeDataSource(req, cb) {
|
|
583
656
|
return this.request("DescribeDataSource", req, cb);
|
|
584
657
|
}
|
|
658
|
+
/**
|
|
659
|
+
* 获取角色下已授权的用户列表
|
|
660
|
+
*/
|
|
661
|
+
async DescribeRoleUsers(req, cb) {
|
|
662
|
+
return this.request("DescribeRoleUsers", req, cb);
|
|
663
|
+
}
|
|
664
|
+
/**
|
|
665
|
+
* 按已选模型返回模板清单、对比分组的执行记录候选与评测项指标选项;Models 与 ModelTemplateSelections 必须且只能填写一个
|
|
666
|
+
*/
|
|
667
|
+
async DescribeEvaluationComparisonContext(req, cb) {
|
|
668
|
+
return this.request("DescribeEvaluationComparisonContext", req, cb);
|
|
669
|
+
}
|
|
585
670
|
/**
|
|
586
671
|
* 删除模型
|
|
587
672
|
*/
|
|
588
673
|
async DeleteTrainingModel(req, cb) {
|
|
589
674
|
return this.request("DeleteTrainingModel", req, cb);
|
|
590
675
|
}
|
|
676
|
+
/**
|
|
677
|
+
* 获取客观评测草稿
|
|
678
|
+
*/
|
|
679
|
+
async DescribeObjectiveEvaluationDraft(req, cb) {
|
|
680
|
+
return this.request("DescribeObjectiveEvaluationDraft", req, cb);
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* 获取客观评测任务列表
|
|
684
|
+
*/
|
|
685
|
+
async DescribeObjectiveEvaluations(req, cb) {
|
|
686
|
+
return this.request("DescribeObjectiveEvaluations", req, cb);
|
|
687
|
+
}
|
|
591
688
|
/**
|
|
592
689
|
* 本接口(DescribeAnnotatedTaskList)用于查询用户标注任务详细信息列表;支持各种过滤条件;
|
|
593
690
|
*/
|
|
@@ -607,10 +704,16 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
607
704
|
return this.request("CreateDataset", req, cb);
|
|
608
705
|
}
|
|
609
706
|
/**
|
|
610
|
-
*
|
|
707
|
+
* 获取已上传文件解析后的指标配置
|
|
611
708
|
*/
|
|
612
|
-
async
|
|
613
|
-
return this.request("
|
|
709
|
+
async DescribeUploadedAggregatedMetricsConfig(req, cb) {
|
|
710
|
+
return this.request("DescribeUploadedAggregatedMetricsConfig", req, cb);
|
|
711
|
+
}
|
|
712
|
+
/**
|
|
713
|
+
* 获取打分页面的信息
|
|
714
|
+
*/
|
|
715
|
+
async DescribeScoringDetail(req, cb) {
|
|
716
|
+
return this.request("DescribeScoringDetail", req, cb);
|
|
614
717
|
}
|
|
615
718
|
/**
|
|
616
719
|
* 上报训练自定义指标
|
|
@@ -619,10 +722,16 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
619
722
|
return this.request("PushTrainingMetrics", req, cb);
|
|
620
723
|
}
|
|
621
724
|
/**
|
|
622
|
-
*
|
|
725
|
+
* 获取上传指标配置COS临时目录凭证
|
|
623
726
|
*/
|
|
624
|
-
async
|
|
625
|
-
return this.request("
|
|
727
|
+
async DescribeDatasetMetricsFilesCredential(req, cb) {
|
|
728
|
+
return this.request("DescribeDatasetMetricsFilesCredential", req, cb);
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* 获取评测模板
|
|
732
|
+
*/
|
|
733
|
+
async DescribeEvaluationTemplateList(req, cb) {
|
|
734
|
+
return this.request("DescribeEvaluationTemplateList", req, cb);
|
|
626
735
|
}
|
|
627
736
|
/**
|
|
628
737
|
* 模型版本列表
|
|
@@ -630,6 +739,24 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
630
739
|
async DescribeTrainingModelVersions(req, cb) {
|
|
631
740
|
return this.request("DescribeTrainingModelVersions", req, cb);
|
|
632
741
|
}
|
|
742
|
+
/**
|
|
743
|
+
* 获取角色列表
|
|
744
|
+
*/
|
|
745
|
+
async DescribeRoles(req, cb) {
|
|
746
|
+
return this.request("DescribeRoles", req, cb);
|
|
747
|
+
}
|
|
748
|
+
/**
|
|
749
|
+
* 获取已上传的指标配置文件
|
|
750
|
+
*/
|
|
751
|
+
async DescribeUploadedDatasetMetricsFiles(req, cb) {
|
|
752
|
+
return this.request("DescribeUploadedDatasetMetricsFiles", req, cb);
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* 修改评测整体指标权重
|
|
756
|
+
*/
|
|
757
|
+
async ModifyObjectiveEvaluationMetricsWeights(req, cb) {
|
|
758
|
+
return this.request("ModifyObjectiveEvaluationMetricsWeights", req, cb);
|
|
759
|
+
}
|
|
633
760
|
/**
|
|
634
761
|
* 用于创建、发布一个新的模型服务
|
|
635
762
|
*/
|
|
@@ -637,10 +764,16 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
637
764
|
return this.request("CreateModelService", req, cb);
|
|
638
765
|
}
|
|
639
766
|
/**
|
|
640
|
-
*
|
|
767
|
+
* 删除评测任务配置
|
|
641
768
|
*/
|
|
642
|
-
async
|
|
643
|
-
return this.request("
|
|
769
|
+
async DeleteEvaluationCustomSpec(req, cb) {
|
|
770
|
+
return this.request("DeleteEvaluationCustomSpec", req, cb);
|
|
771
|
+
}
|
|
772
|
+
/**
|
|
773
|
+
* 获取指标配置详情(根据指标配置ID)
|
|
774
|
+
*/
|
|
775
|
+
async DescribeEvaluationDatasetMetrics(req, cb) {
|
|
776
|
+
return this.request("DescribeEvaluationDatasetMetrics", req, cb);
|
|
644
777
|
}
|
|
645
778
|
/**
|
|
646
779
|
* 获取任务式建模训练任务,Notebook,在线服务和批量预测任务的日志API
|
|
@@ -648,6 +781,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
648
781
|
async DescribeLogs(req, cb) {
|
|
649
782
|
return this.request("DescribeLogs", req, cb);
|
|
650
783
|
}
|
|
784
|
+
/**
|
|
785
|
+
* 跨账号检索分析日志
|
|
786
|
+
*/
|
|
787
|
+
async DescribeCrossAccountLogs(req, cb) {
|
|
788
|
+
return this.request("DescribeCrossAccountLogs", req, cb);
|
|
789
|
+
}
|
|
651
790
|
/**
|
|
652
791
|
* 查询数据集列表
|
|
653
792
|
*/
|
|
@@ -660,6 +799,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
660
799
|
async DescribeBillingResourceInstanceRunningJobs(req, cb) {
|
|
661
800
|
return this.request("DescribeBillingResourceInstanceRunningJobs", req, cb);
|
|
662
801
|
}
|
|
802
|
+
/**
|
|
803
|
+
* 删除已上传的聚合指标配置文件
|
|
804
|
+
*/
|
|
805
|
+
async DeleteUploadedAggregatedMetricsFile(req, cb) {
|
|
806
|
+
return this.request("DeleteUploadedAggregatedMetricsFile", req, cb);
|
|
807
|
+
}
|
|
663
808
|
/**
|
|
664
809
|
* 用于更新模型服务
|
|
665
810
|
*/
|
|
@@ -678,6 +823,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
678
823
|
async DescribeTrainingTask(req, cb) {
|
|
679
824
|
return this.request("DescribeTrainingTask", req, cb);
|
|
680
825
|
}
|
|
826
|
+
/**
|
|
827
|
+
* 按执行记录、模型下标和评测项指标范围查询对比取值;任一执行记录不存在、无权限或模型下标越界时整体失败,不返回部分结果
|
|
828
|
+
*/
|
|
829
|
+
async DescribeEvaluationComparisonResults(req, cb) {
|
|
830
|
+
return this.request("DescribeEvaluationComparisonResults", req, cb);
|
|
831
|
+
}
|
|
681
832
|
/**
|
|
682
833
|
* 该接口用于查询内置镜像列表
|
|
683
834
|
*/
|
|
@@ -685,10 +836,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
685
836
|
return this.request("DescribePresetImageList", req, cb);
|
|
686
837
|
}
|
|
687
838
|
/**
|
|
688
|
-
*
|
|
839
|
+
* 删除评测打分模板
|
|
689
840
|
*/
|
|
690
|
-
async
|
|
691
|
-
return this.request("
|
|
841
|
+
async DeleteEvaluationJudgeTemplate(req, cb) {
|
|
842
|
+
return this.request("DeleteEvaluationJudgeTemplate", req, cb);
|
|
692
843
|
}
|
|
693
844
|
/**
|
|
694
845
|
* 查询资源组列表
|
|
@@ -697,10 +848,22 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
697
848
|
return this.request("DescribeBillingResourceGroups", req, cb);
|
|
698
849
|
}
|
|
699
850
|
/**
|
|
700
|
-
*
|
|
851
|
+
* 查询基线标准模型能力对比的入口概览;不分页,统计和模型摘要覆盖调用方有读取权限的全部可对比基线,只统计类别为 QUALITY 或 EFFICIENCY 的基线
|
|
701
852
|
*/
|
|
702
|
-
async
|
|
703
|
-
return this.request("
|
|
853
|
+
async DescribeBaselineComparisonOverview(req, cb) {
|
|
854
|
+
return this.request("DescribeBaselineComparisonOverview", req, cb);
|
|
855
|
+
}
|
|
856
|
+
/**
|
|
857
|
+
* 获取聚合指标配置文件上传密钥
|
|
858
|
+
*/
|
|
859
|
+
async DescribeAggregatedMetricsFilesCredential(req, cb) {
|
|
860
|
+
return this.request("DescribeAggregatedMetricsFilesCredential", req, cb);
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* 删除评测模板
|
|
864
|
+
*/
|
|
865
|
+
async DeleteEvaluationTemplate(req, cb) {
|
|
866
|
+
return this.request("DeleteEvaluationTemplate", req, cb);
|
|
704
867
|
}
|
|
705
868
|
/**
|
|
706
869
|
* 删除任务式建模训练任务,Notebook,在线服务和批量预测任务日志导出任务API
|
|
@@ -709,10 +872,40 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
709
872
|
return this.request("DeleteExport", req, cb);
|
|
710
873
|
}
|
|
711
874
|
/**
|
|
712
|
-
*
|
|
875
|
+
* 获取评测结果
|
|
713
876
|
*/
|
|
714
|
-
async
|
|
715
|
-
return this.request("
|
|
877
|
+
async DescribeEvaluationSummaries(req, cb) {
|
|
878
|
+
return this.request("DescribeEvaluationSummaries", req, cb);
|
|
879
|
+
}
|
|
880
|
+
/**
|
|
881
|
+
* 按 BY_SUPPLIER 或 BY_MODEL 查询待评测模型服务配置;响应不返回鉴权值
|
|
882
|
+
*/
|
|
883
|
+
async DescribeEvaluationModelInfoList(req, cb) {
|
|
884
|
+
return this.request("DescribeEvaluationModelInfoList", req, cb);
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* 创建客观评测接口
|
|
888
|
+
*/
|
|
889
|
+
async CreateObjectiveEvaluation(req, cb) {
|
|
890
|
+
return this.request("CreateObjectiveEvaluation", req, cb);
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
893
|
+
* 修改客观评测名称
|
|
894
|
+
*/
|
|
895
|
+
async ModifyObjectiveEvaluationName(req, cb) {
|
|
896
|
+
return this.request("ModifyObjectiveEvaluationName", req, cb);
|
|
897
|
+
}
|
|
898
|
+
/**
|
|
899
|
+
* 获取内置评测集
|
|
900
|
+
*/
|
|
901
|
+
async DescribeEvaluationBuiltInDatasets(req, cb) {
|
|
902
|
+
return this.request("DescribeEvaluationBuiltInDatasets", req, cb);
|
|
903
|
+
}
|
|
904
|
+
/**
|
|
905
|
+
* 修改一个 AuthToken
|
|
906
|
+
*/
|
|
907
|
+
async ModifyModelServiceAuthToken(req, cb) {
|
|
908
|
+
return this.request("ModifyModelServiceAuthToken", req, cb);
|
|
716
909
|
}
|
|
717
910
|
/**
|
|
718
911
|
* 批量查询子账号Linux用户信息
|
|
@@ -720,6 +913,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
720
913
|
async DescribeSubAccountLinuxUserInfos(req, cb) {
|
|
721
914
|
return this.request("DescribeSubAccountLinuxUserInfos", req, cb);
|
|
722
915
|
}
|
|
916
|
+
/**
|
|
917
|
+
* 获取主观评测任务列表
|
|
918
|
+
*/
|
|
919
|
+
async DescribeSubjectiveEvaluations(req, cb) {
|
|
920
|
+
return this.request("DescribeSubjectiveEvaluations", req, cb);
|
|
921
|
+
}
|
|
723
922
|
/**
|
|
724
923
|
* 获取挂载限制列表
|
|
725
924
|
*/
|
|
@@ -732,6 +931,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
732
931
|
async CreateRole(req, cb) {
|
|
733
932
|
return this.request("CreateRole", req, cb);
|
|
734
933
|
}
|
|
934
|
+
/**
|
|
935
|
+
* 获取评测项
|
|
936
|
+
*/
|
|
937
|
+
async DescribeEvaluationSetList(req, cb) {
|
|
938
|
+
return this.request("DescribeEvaluationSetList", req, cb);
|
|
939
|
+
}
|
|
735
940
|
/**
|
|
736
941
|
* 删除数据集
|
|
737
942
|
*/
|
|
@@ -750,12 +955,24 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
750
955
|
async ModifyWorkspaceMembers(req, cb) {
|
|
751
956
|
return this.request("ModifyWorkspaceMembers", req, cb);
|
|
752
957
|
}
|
|
958
|
+
/**
|
|
959
|
+
* 获取指标调试的异步打分:创建异步请求
|
|
960
|
+
*/
|
|
961
|
+
async DescribeEvaluationJudgeAdjustmentScore(req, cb) {
|
|
962
|
+
return this.request("DescribeEvaluationJudgeAdjustmentScore", req, cb);
|
|
963
|
+
}
|
|
753
964
|
/**
|
|
754
965
|
* 修改服务鉴权配置
|
|
755
966
|
*/
|
|
756
967
|
async ModifyModelServiceAuthorization(req, cb) {
|
|
757
968
|
return this.request("ModifyModelServiceAuthorization", req, cb);
|
|
758
969
|
}
|
|
970
|
+
/**
|
|
971
|
+
* 编辑评测项
|
|
972
|
+
*/
|
|
973
|
+
async ModifyEvaluationSet(req, cb) {
|
|
974
|
+
return this.request("ModifyEvaluationSet", req, cb);
|
|
975
|
+
}
|
|
759
976
|
/**
|
|
760
977
|
* 训练任务pod列表
|
|
761
978
|
*/
|
|
@@ -763,10 +980,18 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
763
980
|
return this.request("DescribeTrainingTaskPods", req, cb);
|
|
764
981
|
}
|
|
765
982
|
/**
|
|
766
|
-
|
|
983
|
+
* 创建评测的数据集指标配置
|
|
984
|
+
备注:因为数据集可能含有15个指标,每个指标可能含有10个步骤,每个步骤可能最长可配置400000字符的脚本/打分模板。
|
|
985
|
+
因此需要单独创建每个数据集的配置,否则一个请求体可能装不下
|
|
986
|
+
*/
|
|
987
|
+
async CreateEvaluationDatasetMetrics(req, cb) {
|
|
988
|
+
return this.request("CreateEvaluationDatasetMetrics", req, cb);
|
|
989
|
+
}
|
|
990
|
+
/**
|
|
991
|
+
* 创建挂载限制
|
|
767
992
|
*/
|
|
768
|
-
async
|
|
769
|
-
return this.request("
|
|
993
|
+
async UpdateMountLimit(req, cb) {
|
|
994
|
+
return this.request("UpdateMountLimit", req, cb);
|
|
770
995
|
}
|
|
771
996
|
/**
|
|
772
997
|
* 创建一个 AuthToken
|
|
@@ -775,34 +1000,150 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
775
1000
|
return this.request("CreateModelServiceAuthToken", req, cb);
|
|
776
1001
|
}
|
|
777
1002
|
/**
|
|
778
|
-
*
|
|
1003
|
+
* 更新子账号Linux用户信息
|
|
1004
|
+
*/
|
|
1005
|
+
async UpdateSubAccountLinuxUserInfo(req, cb) {
|
|
1006
|
+
return this.request("UpdateSubAccountLinuxUserInfo", req, cb);
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* 更新推理服务组流量分配
|
|
1010
|
+
*/
|
|
1011
|
+
async ModifyServiceGroupWeights(req, cb) {
|
|
1012
|
+
return this.request("ModifyServiceGroupWeights", req, cb);
|
|
1013
|
+
}
|
|
1014
|
+
/**
|
|
1015
|
+
* 停止主观评测接口
|
|
1016
|
+
*/
|
|
1017
|
+
async StopSubjectiveEvaluation(req, cb) {
|
|
1018
|
+
return this.request("StopSubjectiveEvaluation", req, cb);
|
|
1019
|
+
}
|
|
1020
|
+
/**
|
|
1021
|
+
* 编辑评测模板
|
|
1022
|
+
*/
|
|
1023
|
+
async ModifyEvaluationTemplate(req, cb) {
|
|
1024
|
+
return this.request("ModifyEvaluationTemplate", req, cb);
|
|
1025
|
+
}
|
|
1026
|
+
/**
|
|
1027
|
+
* 获取评测任务对应的所有评测指标
|
|
1028
|
+
*/
|
|
1029
|
+
async DescribeEvaluationsMetrics(req, cb) {
|
|
1030
|
+
return this.request("DescribeEvaluationsMetrics", req, cb);
|
|
1031
|
+
}
|
|
1032
|
+
/**
|
|
1033
|
+
* 获取性能评测结果下载链接
|
|
1034
|
+
*/
|
|
1035
|
+
async DescribePerformanceEvaluationOutputs(req, cb) {
|
|
1036
|
+
return this.request("DescribePerformanceEvaluationOutputs", req, cb);
|
|
1037
|
+
}
|
|
1038
|
+
/**
|
|
1039
|
+
* 用于查询模型服务能否开启热更新
|
|
1040
|
+
*/
|
|
1041
|
+
async DescribeModelServiceHotUpdated(req, cb) {
|
|
1042
|
+
return this.request("DescribeModelServiceHotUpdated", req, cb);
|
|
1043
|
+
}
|
|
1044
|
+
/**
|
|
1045
|
+
* 保存镜像
|
|
1046
|
+
*/
|
|
1047
|
+
async CreateNotebookImage(req, cb) {
|
|
1048
|
+
return this.request("CreateNotebookImage", req, cb);
|
|
1049
|
+
}
|
|
1050
|
+
/**
|
|
1051
|
+
* 获取指标调试的异步打分:获取异步结果
|
|
1052
|
+
*/
|
|
1053
|
+
async DescribeEvaluationJudgeAdjustmentAsyncScore(req, cb) {
|
|
1054
|
+
return this.request("DescribeEvaluationJudgeAdjustmentAsyncScore", req, cb);
|
|
1055
|
+
}
|
|
1056
|
+
/**
|
|
1057
|
+
* ## DescribeWorkspaceQuotaUsage 接口文档
|
|
1058
|
+
|
|
1059
|
+
### 接口描述
|
|
1060
|
+
查询工作空间配额用量信息。该接口用于查询指定工作空间下某个子账号的配额使用情况,支持多种配额类型(CBS存储配额、Notebook开发机数量配额、托管按量资源规格限制)。
|
|
1061
|
+
|
|
1062
|
+
### 错误码
|
|
1063
|
+
|
|
1064
|
+
| 错误码 | 说明 |
|
|
1065
|
+
|--------|------|
|
|
1066
|
+
| InvalidParameterValue | 参数值无效(如必填参数为空、QuotaType不在枚举范围内) |
|
|
1067
|
+
| FailedOperation.QueryDatabaseFail | 数据库查询失败 |
|
|
1068
|
+
|
|
1069
|
+
### 示例
|
|
1070
|
+
|
|
1071
|
+
**请求示例**:
|
|
1072
|
+
```json
|
|
1073
|
+
{
|
|
1074
|
+
"QuotaType": "Notebook",
|
|
1075
|
+
"SupervisorUin": "100012345678",
|
|
1076
|
+
"SupervisorSubUin": "100012345679",
|
|
1077
|
+
"TiProjectId": "ti-proj-123456"
|
|
1078
|
+
}
|
|
1079
|
+
```
|
|
1080
|
+
|
|
1081
|
+
**响应示例**:
|
|
1082
|
+
```json
|
|
1083
|
+
{
|
|
1084
|
+
"QuotaType": "Notebook",
|
|
1085
|
+
"QuotaEnabled": true,
|
|
1086
|
+
"TotalQuota": 10,
|
|
1087
|
+
"UsedQuota": 3,
|
|
1088
|
+
}
|
|
1089
|
+
```
|
|
1090
|
+
*/
|
|
1091
|
+
async DescribeWorkspaceQuotaUsage(req, cb) {
|
|
1092
|
+
return this.request("DescribeWorkspaceQuotaUsage", req, cb);
|
|
1093
|
+
}
|
|
1094
|
+
/**
|
|
1095
|
+
* 查询模型优化任务详情
|
|
1096
|
+
*/
|
|
1097
|
+
async DescribeModelAccelerateTask(req, cb) {
|
|
1098
|
+
return this.request("DescribeModelAccelerateTask", req, cb);
|
|
1099
|
+
}
|
|
1100
|
+
/**
|
|
1101
|
+
* 获取跨账号日志集列表
|
|
1102
|
+
*/
|
|
1103
|
+
async DescribeCrossAccountLogsets(req, cb) {
|
|
1104
|
+
return this.request("DescribeCrossAccountLogsets", req, cb);
|
|
1105
|
+
}
|
|
1106
|
+
/**
|
|
1107
|
+
* 根据服务id删除模型服务
|
|
1108
|
+
*/
|
|
1109
|
+
async DeleteModelService(req, cb) {
|
|
1110
|
+
return this.request("DeleteModelService", req, cb);
|
|
1111
|
+
}
|
|
1112
|
+
/**
|
|
1113
|
+
* 更新数据源
|
|
1114
|
+
*/
|
|
1115
|
+
async UpdateDataSource(req, cb) {
|
|
1116
|
+
return this.request("UpdateDataSource", req, cb);
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* 更新训练任务的调度策略
|
|
779
1120
|
*/
|
|
780
|
-
async
|
|
781
|
-
return this.request("
|
|
1121
|
+
async ModifyTrainingTaskSchedulingPolicy(req, cb) {
|
|
1122
|
+
return this.request("ModifyTrainingTaskSchedulingPolicy", req, cb);
|
|
782
1123
|
}
|
|
783
1124
|
/**
|
|
784
|
-
*
|
|
1125
|
+
* 获取客观评测模型推理输出
|
|
785
1126
|
*/
|
|
786
|
-
async
|
|
787
|
-
return this.request("
|
|
1127
|
+
async DescribeObjectiveEvaluationOutputs(req, cb) {
|
|
1128
|
+
return this.request("DescribeObjectiveEvaluationOutputs", req, cb);
|
|
788
1129
|
}
|
|
789
1130
|
/**
|
|
790
|
-
*
|
|
1131
|
+
* 删除主观评测接口
|
|
791
1132
|
*/
|
|
792
|
-
async
|
|
793
|
-
return this.request("
|
|
1133
|
+
async DeleteSubjectiveEvaluation(req, cb) {
|
|
1134
|
+
return this.request("DeleteSubjectiveEvaluation", req, cb);
|
|
794
1135
|
}
|
|
795
1136
|
/**
|
|
796
|
-
*
|
|
1137
|
+
* 获取客观评测推理进度
|
|
797
1138
|
*/
|
|
798
|
-
async
|
|
799
|
-
return this.request("
|
|
1139
|
+
async DescribeObjectiveEvaluationProgress(req, cb) {
|
|
1140
|
+
return this.request("DescribeObjectiveEvaluationProgress", req, cb);
|
|
800
1141
|
}
|
|
801
1142
|
/**
|
|
802
|
-
*
|
|
1143
|
+
* 获取自动评测整体指标
|
|
803
1144
|
*/
|
|
804
|
-
async
|
|
805
|
-
return this.request("
|
|
1145
|
+
async DescribeObjectiveEvaluationMetrics(req, cb) {
|
|
1146
|
+
return this.request("DescribeObjectiveEvaluationMetrics", req, cb);
|
|
806
1147
|
}
|
|
807
1148
|
/**
|
|
808
1149
|
* 删除训练任务
|
|
@@ -810,6 +1151,18 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
810
1151
|
async DeleteTrainingTask(req, cb) {
|
|
811
1152
|
return this.request("DeleteTrainingTask", req, cb);
|
|
812
1153
|
}
|
|
1154
|
+
/**
|
|
1155
|
+
* 获取该子用户上一次的模型对比情况,包括所选的任务,以及对应任务包含的模型、CFS评测集/开源数据集
|
|
1156
|
+
*/
|
|
1157
|
+
async DescribeLatestComparisonEvaluations(req, cb) {
|
|
1158
|
+
return this.request("DescribeLatestComparisonEvaluations", req, cb);
|
|
1159
|
+
}
|
|
1160
|
+
/**
|
|
1161
|
+
* 获取主观评测模型推理输出
|
|
1162
|
+
*/
|
|
1163
|
+
async DescribeSubjectiveEvaluationOutputs(req, cb) {
|
|
1164
|
+
return this.request("DescribeSubjectiveEvaluationOutputs", req, cb);
|
|
1165
|
+
}
|
|
813
1166
|
/**
|
|
814
1167
|
* 查询平台镜像信息
|
|
815
1168
|
*/
|
|
@@ -828,6 +1181,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
828
1181
|
async DescribeBillingResourceGroup(req, cb) {
|
|
829
1182
|
return this.request("DescribeBillingResourceGroup", req, cb);
|
|
830
1183
|
}
|
|
1184
|
+
/**
|
|
1185
|
+
* 删除客观评测接口
|
|
1186
|
+
*/
|
|
1187
|
+
async DeleteObjectiveEvaluation(req, cb) {
|
|
1188
|
+
return this.request("DeleteObjectiveEvaluation", req, cb);
|
|
1189
|
+
}
|
|
831
1190
|
/**
|
|
832
1191
|
* 删除模型版本
|
|
833
1192
|
*/
|
|
@@ -842,5 +1201,236 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
842
1201
|
async DescribeInferTemplates(req, cb) {
|
|
843
1202
|
return this.request("DescribeInferTemplates", req, cb);
|
|
844
1203
|
}
|
|
1204
|
+
/**
|
|
1205
|
+
* 创建性能评测接口
|
|
1206
|
+
*/
|
|
1207
|
+
async CreatePerformanceEvaluation(req, cb) {
|
|
1208
|
+
return this.request("CreatePerformanceEvaluation", req, cb);
|
|
1209
|
+
}
|
|
1210
|
+
/**
|
|
1211
|
+
* # DescribeWorkspaceQuotas 接口文档
|
|
1212
|
+
|
|
1213
|
+
## 接口描述
|
|
1214
|
+
|
|
1215
|
+
查询指定工作空间下的配额配置和配额列表。该接口用于获取主账号在某个工作空间下的配额管理配置,包括是否启用配额管理、默认配额值以及针对子账号或用户组的具体配额分配情况。
|
|
1216
|
+
|
|
1217
|
+
支持三种配额类型:
|
|
1218
|
+
- **CBS**:CBS存储配额管理
|
|
1219
|
+
- **Notebook**:开发机数量配额管理
|
|
1220
|
+
- **PostPaySpec**:托管按量资源规格限制
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
## 请求参数
|
|
1225
|
+
|
|
1226
|
+
### 公共参数(HTTP Header)
|
|
1227
|
+
| 参数名 | 类型 | 必填 | 描述 |
|
|
1228
|
+
|--------|------|------|------|
|
|
1229
|
+
| X-TC-Uin | string | 是 | 主账号Uin |
|
|
1230
|
+
| X-TC-ProjectId | uint32 | 是 | 工作空间ID |
|
|
1231
|
+
|
|
1232
|
+
### 请求体参数
|
|
1233
|
+
| 参数名 | 类型 | 必填 | 描述 |
|
|
1234
|
+
|--------|------|------|------|
|
|
1235
|
+
| QuotaType | string | 是 | 配额类型,可选值:<br>- `CBS`:CBS存储配额<br>- `Notebook`:开发机数量配额<br>- `PostPaySpec`:托管按量资源规格限制 |
|
|
1236
|
+
|
|
1237
|
+
## 响应参数
|
|
1238
|
+
|
|
1239
|
+
| 参数名 | 类型 | 描述 |
|
|
1240
|
+
|--------|------|------|
|
|
1241
|
+
| QuotaType | string | 配额类型 |
|
|
1242
|
+
| QuotaEnabled | bool | 是否启用配额管理功能 |
|
|
1243
|
+
| DefaultQuota | WorkspaceQuota | 默认配额配置(当QuotaEnabled为false时为空对象) |
|
|
1244
|
+
| Quotas | ][WorkspaceQuota | 配额列表,包含所有子账号或用户组的配额配置(仅当QuotaEnabled为true时返回) |
|
|
1245
|
+
|
|
1246
|
+
### WorkspaceQuota
|
|
1247
|
+
|
|
1248
|
+
| 参数名 | 类型 | 描述 |
|
|
1249
|
+
|--------|------|------|
|
|
1250
|
+
| Id | string | 配额ID,格式:<br>- 用户配额:`{quota_type}-{uin}-{subuin}-{TiProjectId}`<br>- 用户组配额:`{quota_type}-{uin}-{groupid}-{TiProjectId}`<br>- 默认配额:`{quota_type}-{uin}-default-{TiProjectId}` |
|
|
1251
|
+
| QuotaType | string | 配额类型 |
|
|
1252
|
+
| Uin | string | 主账号Uin |
|
|
1253
|
+
| SubUin | string | 子账号Uin(当TargetType为USER时有值) |
|
|
1254
|
+
| SubUinName | string | 子账号名称(当TargetType为USER时有值) |
|
|
1255
|
+
| QuotaValue | uint32 | 配额值:<br>- CBS:容量(GiB),默认100,范围10-10000<br>- Notebook:数量(个),默认1,范围1-999<br>- PostPaySpec:无意义,关注QuotaData字段 |
|
|
1256
|
+
| QuotaData | []string | 配额数据(JSON数组格式):<br>- 当QuotaType为PostPaySpec时,存储允许使用的规格ID列表 |
|
|
1257
|
+
| TargetType | string | 配额目标类型:<br>- `USER`:用户配额<br>- `USER_GROUP`:用户组配额 |
|
|
1258
|
+
| GroupId | string | 用户组ID(当TargetType为USER_GROUP时有值) |
|
|
1259
|
+
| GroupName | string | 用户组名称(当TargetType为USER_GROUP时有值) |
|
|
1260
|
+
| TiProjectId | string | 工作空间ID |
|
|
1261
|
+
|
|
1262
|
+
## 业务逻辑
|
|
1263
|
+
|
|
1264
|
+
1. **参数校验**:验证QuotaType参数是否合法
|
|
1265
|
+
2. **查询配额配置**:根据主账号Uin、工作空间ID和配额类型查询配额配置
|
|
1266
|
+
3. **配置不存在**:
|
|
1267
|
+
- 返回系统默认的配额启用状态和默认配额值
|
|
1268
|
+
- CBS默认启用,默认值100GiB
|
|
1269
|
+
- Notebook默认启用,默认值1个
|
|
1270
|
+
- PostPaySpec默认不启用
|
|
1271
|
+
4. **配置存在但未启用**:
|
|
1272
|
+
- QuotaEnabled返回false
|
|
1273
|
+
- DefaultQuota返回空对象
|
|
1274
|
+
- Quotas不返回
|
|
1275
|
+
5. **配置存在且已启用**:
|
|
1276
|
+
- QuotaEnabled返回true
|
|
1277
|
+
- DefaultQuota返回配置的默认配额值
|
|
1278
|
+
- Quotas返回所有子账号或用户组的配额列表
|
|
1279
|
+
- 自动反序列化QuotaData字段(JSON数组)
|
|
1280
|
+
|
|
1281
|
+
## 使用场景
|
|
1282
|
+
|
|
1283
|
+
1. **配额管理页面初始化**:获取当前工作空间的配额配置状态
|
|
1284
|
+
2. **配额列表展示**:展示所有子账号或用户组的配额分配情况
|
|
1285
|
+
3. **配额编辑前查询**:在修改配额前获取当前配置
|
|
1286
|
+
4. **权限控制判断**:判断是否启用了配额管理功能
|
|
1287
|
+
|
|
1288
|
+
## 错误码
|
|
1289
|
+
|
|
1290
|
+
| 错误码 | 描述 | 解决方案 |
|
|
1291
|
+
|--------|------|----------|
|
|
1292
|
+
| InvalidParameterValue | 参数值错误 | 检查QuotaType参数是否为合法值(CBS/Notebook/PostPaySpec) |
|
|
1293
|
+
| FailedOperation.QueryDatabaseFail | 数据库查询失败 | 稍后重试或联系管理员 |
|
|
1294
|
+
|
|
1295
|
+
## 请求示例
|
|
1296
|
+
|
|
1297
|
+
```json
|
|
1298
|
+
{
|
|
1299
|
+
"QuotaType": "CBS"
|
|
1300
|
+
}
|
|
1301
|
+
```
|
|
1302
|
+
|
|
1303
|
+
**HTTP Header:**
|
|
1304
|
+
```
|
|
1305
|
+
X-TC-Uin: 100012345678
|
|
1306
|
+
X-TC-ProjectId: 123456
|
|
1307
|
+
```
|
|
1308
|
+
|
|
1309
|
+
## 响应示例
|
|
1310
|
+
|
|
1311
|
+
### 示例1:配额已启用且有配额列表
|
|
1312
|
+
|
|
1313
|
+
```json
|
|
1314
|
+
{
|
|
1315
|
+
"QuotaType": "CBS",
|
|
1316
|
+
"QuotaEnabled": true,
|
|
1317
|
+
"DefaultQuota": {
|
|
1318
|
+
"Id": "CBS-100012345678-default-123456",
|
|
1319
|
+
"QuotaType": "CBS",
|
|
1320
|
+
"Uin": "100012345678",
|
|
1321
|
+
"SubUin": "",
|
|
1322
|
+
"SubUinName": "",
|
|
1323
|
+
"QuotaValue": 100,
|
|
1324
|
+
"QuotaData": [],
|
|
1325
|
+
"TargetType": "",
|
|
1326
|
+
"GroupId": "",
|
|
1327
|
+
"GroupName": "",
|
|
1328
|
+
"TiProjectId": "123456"
|
|
1329
|
+
},
|
|
1330
|
+
"Quotas": [
|
|
1331
|
+
{
|
|
1332
|
+
"Id": "CBS-100012345678-100012345679-123456",
|
|
1333
|
+
"QuotaType": "CBS",
|
|
1334
|
+
"Uin": "100012345678",
|
|
1335
|
+
"SubUin": "100012345679",
|
|
1336
|
+
"SubUinName": "张三",
|
|
1337
|
+
"QuotaValue": 200,
|
|
1338
|
+
"QuotaData": [],
|
|
1339
|
+
"TargetType": "USER",
|
|
1340
|
+
"GroupId": "",
|
|
1341
|
+
"GroupName": "",
|
|
1342
|
+
"TiProjectId": "123456"
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
"Id": "CBS-100012345678-group001-123456",
|
|
1346
|
+
"QuotaType": "CBS",
|
|
1347
|
+
"Uin": "100012345678",
|
|
1348
|
+
"SubUin": "",
|
|
1349
|
+
"SubUinName": "",
|
|
1350
|
+
"QuotaValue": 500,
|
|
1351
|
+
"QuotaData": [],
|
|
1352
|
+
"TargetType": "USER_GROUP",
|
|
1353
|
+
"GroupId": "group001",
|
|
1354
|
+
"GroupName": "开发组",
|
|
1355
|
+
"TiProjectId": "123456"
|
|
1356
|
+
}
|
|
1357
|
+
]
|
|
1358
|
+
}
|
|
1359
|
+
```
|
|
1360
|
+
|
|
1361
|
+
### 示例2:配额未启用
|
|
1362
|
+
|
|
1363
|
+
```json
|
|
1364
|
+
{
|
|
1365
|
+
"QuotaType": "PostPaySpec",
|
|
1366
|
+
"QuotaEnabled": false,
|
|
1367
|
+
"DefaultQuota": {},
|
|
1368
|
+
"Quotas": []
|
|
1369
|
+
}
|
|
1370
|
+
```
|
|
1371
|
+
|
|
1372
|
+
### 示例3:PostPaySpec类型配额(带QuotaData)
|
|
1373
|
+
|
|
1374
|
+
```json
|
|
1375
|
+
{
|
|
1376
|
+
"QuotaType": "PostPaySpec",
|
|
1377
|
+
"QuotaEnabled": true,
|
|
1378
|
+
"DefaultQuota": {
|
|
1379
|
+
"Id": "PostPaySpec-100012345678-default-123456",
|
|
1380
|
+
"QuotaType": "PostPaySpec",
|
|
1381
|
+
"Uin": "100012345678",
|
|
1382
|
+
"SubUin": "",
|
|
1383
|
+
"SubUinName": "",
|
|
1384
|
+
"QuotaValue": 0,
|
|
1385
|
+
"QuotaData": ["spec-001", "spec-002", "spec-003"],
|
|
1386
|
+
"TargetType": "",
|
|
1387
|
+
"GroupId": "",
|
|
1388
|
+
"GroupName": "",
|
|
1389
|
+
"TiProjectId": "123456"
|
|
1390
|
+
},
|
|
1391
|
+
"Quotas": [
|
|
1392
|
+
{
|
|
1393
|
+
"Id": "PostPaySpec-100012345678-100012345679-123456",
|
|
1394
|
+
"QuotaType": "PostPaySpec",
|
|
1395
|
+
"Uin": "100012345678",
|
|
1396
|
+
"SubUin": "100012345679",
|
|
1397
|
+
"SubUinName": "李四",
|
|
1398
|
+
"QuotaValue": 0,
|
|
1399
|
+
"QuotaData": ["spec-001", "spec-002"],
|
|
1400
|
+
"TargetType": "USER",
|
|
1401
|
+
"GroupId": "",
|
|
1402
|
+
"GroupName": "",
|
|
1403
|
+
"TiProjectId": "123456"
|
|
1404
|
+
}
|
|
1405
|
+
]
|
|
1406
|
+
}
|
|
1407
|
+
```
|
|
1408
|
+
|
|
1409
|
+
## 注意事项
|
|
1410
|
+
|
|
1411
|
+
1. **配额继承规则**:
|
|
1412
|
+
- 如果子账号或用户组没有单独配置配额,则使用DefaultQuota的值
|
|
1413
|
+
- 用户组配额优先级高于默认配额,用户配额优先级最高
|
|
1414
|
+
|
|
1415
|
+
2. **QuotaData字段**:
|
|
1416
|
+
- 仅在QuotaType为PostPaySpec时有实际意义
|
|
1417
|
+
- 存储的是允许使用的规格ID列表
|
|
1418
|
+
- 其他类型的配额该字段为空数组
|
|
1419
|
+
|
|
1420
|
+
3. **TargetType字段**:
|
|
1421
|
+
- DefaultQuota的TargetType为空字符串
|
|
1422
|
+
- Quotas列表中的每个配额都有明确的TargetType
|
|
1423
|
+
|
|
1424
|
+
4. **配额值单位**:
|
|
1425
|
+
- CBS配额:GiB(1 GiB = 1024 MiB)
|
|
1426
|
+
- Notebook配额:个数
|
|
1427
|
+
|
|
1428
|
+
5. **性能优化**:
|
|
1429
|
+
- 接口会一次性返回所有配额列表,避免多次查询
|
|
1430
|
+
- 建议前端做好缓存,减少重复请求
|
|
1431
|
+
*/
|
|
1432
|
+
async DescribeWorkspaceQuotas(req, cb) {
|
|
1433
|
+
return this.request("DescribeWorkspaceQuotas", req, cb);
|
|
1434
|
+
}
|
|
845
1435
|
}
|
|
846
1436
|
exports.Client = Client;
|