tencentcloud-sdk-tione 3.0.827 → 3.0.828
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20211111/client.rb +91 -1003
- data/lib/v20211111/models.rb +1778 -6000
- metadata +2 -2
data/lib/v20211111/client.rb
CHANGED
@@ -53,54 +53,6 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
-
# 批量创建模型加速任务
|
57
|
-
|
58
|
-
# @param request: Request instance for CreateBatchModelAccTasks.
|
59
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::CreateBatchModelAccTasksRequest`
|
60
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::CreateBatchModelAccTasksResponse`
|
61
|
-
def CreateBatchModelAccTasks(request)
|
62
|
-
body = send_request('CreateBatchModelAccTasks', request.serialize)
|
63
|
-
response = JSON.parse(body)
|
64
|
-
if response['Response'].key?('Error') == false
|
65
|
-
model = CreateBatchModelAccTasksResponse.new
|
66
|
-
model.deserialize(response['Response'])
|
67
|
-
model
|
68
|
-
else
|
69
|
-
code = response['Response']['Error']['Code']
|
70
|
-
message = response['Response']['Error']['Message']
|
71
|
-
reqid = response['Response']['RequestId']
|
72
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
-
end
|
74
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
-
raise e
|
76
|
-
rescue StandardError => e
|
77
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
-
end
|
79
|
-
|
80
|
-
# 创建批量预测任务
|
81
|
-
|
82
|
-
# @param request: Request instance for CreateBatchTask.
|
83
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::CreateBatchTaskRequest`
|
84
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::CreateBatchTaskResponse`
|
85
|
-
def CreateBatchTask(request)
|
86
|
-
body = send_request('CreateBatchTask', request.serialize)
|
87
|
-
response = JSON.parse(body)
|
88
|
-
if response['Response'].key?('Error') == false
|
89
|
-
model = CreateBatchTaskResponse.new
|
90
|
-
model.deserialize(response['Response'])
|
91
|
-
model
|
92
|
-
else
|
93
|
-
code = response['Response']['Error']['Code']
|
94
|
-
message = response['Response']['Error']['Message']
|
95
|
-
reqid = response['Response']['RequestId']
|
96
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
-
end
|
98
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
-
raise e
|
100
|
-
rescue StandardError => e
|
101
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
-
end
|
103
|
-
|
104
56
|
# 创建数据集
|
105
57
|
|
106
58
|
# @param request: Request instance for CreateDataset.
|
@@ -173,54 +125,6 @@ module TencentCloud
|
|
173
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
126
|
end
|
175
127
|
|
176
|
-
# 保存镜像
|
177
|
-
|
178
|
-
# @param request: Request instance for CreateNotebookImage.
|
179
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::CreateNotebookImageRequest`
|
180
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::CreateNotebookImageResponse`
|
181
|
-
def CreateNotebookImage(request)
|
182
|
-
body = send_request('CreateNotebookImage', request.serialize)
|
183
|
-
response = JSON.parse(body)
|
184
|
-
if response['Response'].key?('Error') == false
|
185
|
-
model = CreateNotebookImageResponse.new
|
186
|
-
model.deserialize(response['Response'])
|
187
|
-
model
|
188
|
-
else
|
189
|
-
code = response['Response']['Error']['Code']
|
190
|
-
message = response['Response']['Error']['Message']
|
191
|
-
reqid = response['Response']['RequestId']
|
192
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
193
|
-
end
|
194
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
195
|
-
raise e
|
196
|
-
rescue StandardError => e
|
197
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
|
-
end
|
199
|
-
|
200
|
-
# 保存优化模型
|
201
|
-
|
202
|
-
# @param request: Request instance for CreateOptimizedModel.
|
203
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::CreateOptimizedModelRequest`
|
204
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::CreateOptimizedModelResponse`
|
205
|
-
def CreateOptimizedModel(request)
|
206
|
-
body = send_request('CreateOptimizedModel', request.serialize)
|
207
|
-
response = JSON.parse(body)
|
208
|
-
if response['Response'].key?('Error') == false
|
209
|
-
model = CreateOptimizedModelResponse.new
|
210
|
-
model.deserialize(response['Response'])
|
211
|
-
model
|
212
|
-
else
|
213
|
-
code = response['Response']['Error']['Code']
|
214
|
-
message = response['Response']['Error']['Message']
|
215
|
-
reqid = response['Response']['RequestId']
|
216
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
217
|
-
end
|
218
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
219
|
-
raise e
|
220
|
-
rescue StandardError => e
|
221
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
|
-
end
|
223
|
-
|
224
128
|
# 生成Notebook访问链接
|
225
129
|
|
226
130
|
# @param request: Request instance for CreatePresignedNotebookUrl.
|
@@ -269,54 +173,6 @@ module TencentCloud
|
|
269
173
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
174
|
end
|
271
175
|
|
272
|
-
# 创建模型训练任务
|
273
|
-
|
274
|
-
# @param request: Request instance for CreateTrainingTask.
|
275
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::CreateTrainingTaskRequest`
|
276
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::CreateTrainingTaskResponse`
|
277
|
-
def CreateTrainingTask(request)
|
278
|
-
body = send_request('CreateTrainingTask', request.serialize)
|
279
|
-
response = JSON.parse(body)
|
280
|
-
if response['Response'].key?('Error') == false
|
281
|
-
model = CreateTrainingTaskResponse.new
|
282
|
-
model.deserialize(response['Response'])
|
283
|
-
model
|
284
|
-
else
|
285
|
-
code = response['Response']['Error']['Code']
|
286
|
-
message = response['Response']['Error']['Message']
|
287
|
-
reqid = response['Response']['RequestId']
|
288
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
289
|
-
end
|
290
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
291
|
-
raise e
|
292
|
-
rescue StandardError => e
|
293
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
|
-
end
|
295
|
-
|
296
|
-
# 删除批量预测任务
|
297
|
-
|
298
|
-
# @param request: Request instance for DeleteBatchTask.
|
299
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DeleteBatchTaskRequest`
|
300
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DeleteBatchTaskResponse`
|
301
|
-
def DeleteBatchTask(request)
|
302
|
-
body = send_request('DeleteBatchTask', request.serialize)
|
303
|
-
response = JSON.parse(body)
|
304
|
-
if response['Response'].key?('Error') == false
|
305
|
-
model = DeleteBatchTaskResponse.new
|
306
|
-
model.deserialize(response['Response'])
|
307
|
-
model
|
308
|
-
else
|
309
|
-
code = response['Response']['Error']['Code']
|
310
|
-
message = response['Response']['Error']['Message']
|
311
|
-
reqid = response['Response']['RequestId']
|
312
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
313
|
-
end
|
314
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
315
|
-
raise e
|
316
|
-
rescue StandardError => e
|
317
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
|
-
end
|
319
|
-
|
320
176
|
# 删除数据集
|
321
177
|
|
322
178
|
# @param request: Request instance for DeleteDataset.
|
@@ -341,30 +197,6 @@ module TencentCloud
|
|
341
197
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
198
|
end
|
343
199
|
|
344
|
-
# 删除模型加速任务
|
345
|
-
|
346
|
-
# @param request: Request instance for DeleteModelAccelerateTask.
|
347
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DeleteModelAccelerateTaskRequest`
|
348
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DeleteModelAccelerateTaskResponse`
|
349
|
-
def DeleteModelAccelerateTask(request)
|
350
|
-
body = send_request('DeleteModelAccelerateTask', request.serialize)
|
351
|
-
response = JSON.parse(body)
|
352
|
-
if response['Response'].key?('Error') == false
|
353
|
-
model = DeleteModelAccelerateTaskResponse.new
|
354
|
-
model.deserialize(response['Response'])
|
355
|
-
model
|
356
|
-
else
|
357
|
-
code = response['Response']['Error']['Code']
|
358
|
-
message = response['Response']['Error']['Message']
|
359
|
-
reqid = response['Response']['RequestId']
|
360
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
361
|
-
end
|
362
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
363
|
-
raise e
|
364
|
-
rescue StandardError => e
|
365
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
|
-
end
|
367
|
-
|
368
200
|
# 根据服务id删除模型服务
|
369
201
|
|
370
202
|
# @param request: Request instance for DeleteModelService.
|
@@ -437,30 +269,6 @@ module TencentCloud
|
|
437
269
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
270
|
end
|
439
271
|
|
440
|
-
# 删除notebook镜像保存记录
|
441
|
-
|
442
|
-
# @param request: Request instance for DeleteNotebookImageRecord.
|
443
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DeleteNotebookImageRecordRequest`
|
444
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DeleteNotebookImageRecordResponse`
|
445
|
-
def DeleteNotebookImageRecord(request)
|
446
|
-
body = send_request('DeleteNotebookImageRecord', request.serialize)
|
447
|
-
response = JSON.parse(body)
|
448
|
-
if response['Response'].key?('Error') == false
|
449
|
-
model = DeleteNotebookImageRecordResponse.new
|
450
|
-
model.deserialize(response['Response'])
|
451
|
-
model
|
452
|
-
else
|
453
|
-
code = response['Response']['Error']['Code']
|
454
|
-
message = response['Response']['Error']['Message']
|
455
|
-
reqid = response['Response']['RequestId']
|
456
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
457
|
-
end
|
458
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
459
|
-
raise e
|
460
|
-
rescue StandardError => e
|
461
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
|
-
end
|
463
|
-
|
464
272
|
# 删除模型
|
465
273
|
|
466
274
|
# @param request: Request instance for DeleteTrainingModel.
|
@@ -509,16 +317,16 @@ module TencentCloud
|
|
509
317
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
510
318
|
end
|
511
319
|
|
512
|
-
#
|
320
|
+
# 查询资源组节点列表
|
513
321
|
|
514
|
-
# @param request: Request instance for
|
515
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::
|
516
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::
|
517
|
-
def
|
518
|
-
body = send_request('
|
322
|
+
# @param request: Request instance for DescribeBillingResourceGroup.
|
323
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeBillingResourceGroupRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeBillingResourceGroupResponse`
|
325
|
+
def DescribeBillingResourceGroup(request)
|
326
|
+
body = send_request('DescribeBillingResourceGroup', request.serialize)
|
519
327
|
response = JSON.parse(body)
|
520
328
|
if response['Response'].key?('Error') == false
|
521
|
-
model =
|
329
|
+
model = DescribeBillingResourceGroupResponse.new
|
522
330
|
model.deserialize(response['Response'])
|
523
331
|
model
|
524
332
|
else
|
@@ -533,16 +341,16 @@ module TencentCloud
|
|
533
341
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
534
342
|
end
|
535
343
|
|
536
|
-
#
|
344
|
+
# 查询资源组详情
|
537
345
|
|
538
|
-
# @param request: Request instance for
|
539
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::
|
540
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::
|
541
|
-
def
|
542
|
-
body = send_request('
|
346
|
+
# @param request: Request instance for DescribeBillingResourceGroups.
|
347
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeBillingResourceGroupsRequest`
|
348
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeBillingResourceGroupsResponse`
|
349
|
+
def DescribeBillingResourceGroups(request)
|
350
|
+
body = send_request('DescribeBillingResourceGroups', request.serialize)
|
543
351
|
response = JSON.parse(body)
|
544
352
|
if response['Response'].key?('Error') == false
|
545
|
-
model =
|
353
|
+
model = DescribeBillingResourceGroupsResponse.new
|
546
354
|
model.deserialize(response['Response'])
|
547
355
|
model
|
548
356
|
else
|
@@ -557,16 +365,16 @@ module TencentCloud
|
|
557
365
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
558
366
|
end
|
559
367
|
|
560
|
-
#
|
368
|
+
# 查询资源组节点运行中的任务
|
561
369
|
|
562
|
-
# @param request: Request instance for
|
563
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::
|
564
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::
|
565
|
-
def
|
566
|
-
body = send_request('
|
370
|
+
# @param request: Request instance for DescribeBillingResourceInstanceRunningJobs.
|
371
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeBillingResourceInstanceRunningJobsRequest`
|
372
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeBillingResourceInstanceRunningJobsResponse`
|
373
|
+
def DescribeBillingResourceInstanceRunningJobs(request)
|
374
|
+
body = send_request('DescribeBillingResourceInstanceRunningJobs', request.serialize)
|
567
375
|
response = JSON.parse(body)
|
568
376
|
if response['Response'].key?('Error') == false
|
569
|
-
model =
|
377
|
+
model = DescribeBillingResourceInstanceRunningJobsResponse.new
|
570
378
|
model.deserialize(response['Response'])
|
571
379
|
model
|
572
380
|
else
|
@@ -581,16 +389,16 @@ module TencentCloud
|
|
581
389
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
582
390
|
end
|
583
391
|
|
584
|
-
#
|
392
|
+
# 获取内置镜像列表
|
585
393
|
|
586
|
-
# @param request: Request instance for
|
587
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::
|
588
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::
|
589
|
-
def
|
590
|
-
body = send_request('
|
394
|
+
# @param request: Request instance for DescribeBuildInImages.
|
395
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeBuildInImagesRequest`
|
396
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeBuildInImagesResponse`
|
397
|
+
def DescribeBuildInImages(request)
|
398
|
+
body = send_request('DescribeBuildInImages', request.serialize)
|
591
399
|
response = JSON.parse(body)
|
592
400
|
if response['Response'].key?('Error') == false
|
593
|
-
model =
|
401
|
+
model = DescribeBuildInImagesResponse.new
|
594
402
|
model.deserialize(response['Response'])
|
595
403
|
model
|
596
404
|
else
|
@@ -605,16 +413,16 @@ module TencentCloud
|
|
605
413
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
606
414
|
end
|
607
415
|
|
608
|
-
#
|
416
|
+
# 查询数据集列表
|
609
417
|
|
610
|
-
# @param request: Request instance for
|
611
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::
|
612
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::
|
613
|
-
def
|
614
|
-
body = send_request('
|
418
|
+
# @param request: Request instance for DescribeDatasets.
|
419
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeDatasetsRequest`
|
420
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeDatasetsResponse`
|
421
|
+
def DescribeDatasets(request)
|
422
|
+
body = send_request('DescribeDatasets', request.serialize)
|
615
423
|
response = JSON.parse(body)
|
616
424
|
if response['Response'].key?('Error') == false
|
617
|
-
model =
|
425
|
+
model = DescribeDatasetsResponse.new
|
618
426
|
model.deserialize(response['Response'])
|
619
427
|
model
|
620
428
|
else
|
@@ -629,16 +437,16 @@ module TencentCloud
|
|
629
437
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
630
438
|
end
|
631
439
|
|
632
|
-
#
|
440
|
+
# 查询推理镜像模板
|
633
441
|
|
634
|
-
# @param request: Request instance for
|
635
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::
|
636
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::
|
637
|
-
def
|
638
|
-
body = send_request('
|
442
|
+
# @param request: Request instance for DescribeInferTemplates.
|
443
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeInferTemplatesRequest`
|
444
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeInferTemplatesResponse`
|
445
|
+
def DescribeInferTemplates(request)
|
446
|
+
body = send_request('DescribeInferTemplates', request.serialize)
|
639
447
|
response = JSON.parse(body)
|
640
448
|
if response['Response'].key?('Error') == false
|
641
|
-
model =
|
449
|
+
model = DescribeInferTemplatesResponse.new
|
642
450
|
model.deserialize(response['Response'])
|
643
451
|
model
|
644
452
|
else
|
@@ -653,16 +461,16 @@ module TencentCloud
|
|
653
461
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
654
462
|
end
|
655
463
|
|
656
|
-
#
|
464
|
+
# 查询模型优化任务详情
|
657
465
|
|
658
|
-
# @param request: Request instance for
|
659
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::
|
660
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::
|
661
|
-
def
|
662
|
-
body = send_request('
|
466
|
+
# @param request: Request instance for DescribeModelAccelerateTask.
|
467
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelAccelerateTaskRequest`
|
468
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelAccelerateTaskResponse`
|
469
|
+
def DescribeModelAccelerateTask(request)
|
470
|
+
body = send_request('DescribeModelAccelerateTask', request.serialize)
|
663
471
|
response = JSON.parse(body)
|
664
472
|
if response['Response'].key?('Error') == false
|
665
|
-
model =
|
473
|
+
model = DescribeModelAccelerateTaskResponse.new
|
666
474
|
model.deserialize(response['Response'])
|
667
475
|
model
|
668
476
|
else
|
@@ -677,16 +485,16 @@ module TencentCloud
|
|
677
485
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
678
486
|
end
|
679
487
|
|
680
|
-
#
|
488
|
+
# 模型加速之后的模型版本列表
|
681
489
|
|
682
|
-
# @param request: Request instance for
|
683
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::
|
684
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::
|
685
|
-
def
|
686
|
-
body = send_request('
|
490
|
+
# @param request: Request instance for DescribeModelAccelerateVersions.
|
491
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelAccelerateVersionsRequest`
|
492
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelAccelerateVersionsResponse`
|
493
|
+
def DescribeModelAccelerateVersions(request)
|
494
|
+
body = send_request('DescribeModelAccelerateVersions', request.serialize)
|
687
495
|
response = JSON.parse(body)
|
688
496
|
if response['Response'].key?('Error') == false
|
689
|
-
model =
|
497
|
+
model = DescribeModelAccelerateVersionsResponse.new
|
690
498
|
model.deserialize(response['Response'])
|
691
499
|
model
|
692
500
|
else
|
@@ -701,16 +509,16 @@ module TencentCloud
|
|
701
509
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
702
510
|
end
|
703
511
|
|
704
|
-
#
|
512
|
+
# 查询单个服务
|
705
513
|
|
706
|
-
# @param request: Request instance for
|
707
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::
|
708
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::
|
709
|
-
def
|
710
|
-
body = send_request('
|
514
|
+
# @param request: Request instance for DescribeModelService.
|
515
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceRequest`
|
516
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceResponse`
|
517
|
+
def DescribeModelService(request)
|
518
|
+
body = send_request('DescribeModelService', request.serialize)
|
711
519
|
response = JSON.parse(body)
|
712
520
|
if response['Response'].key?('Error') == false
|
713
|
-
model =
|
521
|
+
model = DescribeModelServiceResponse.new
|
714
522
|
model.deserialize(response['Response'])
|
715
523
|
model
|
716
524
|
else
|
@@ -725,16 +533,16 @@ module TencentCloud
|
|
725
533
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
726
534
|
end
|
727
535
|
|
728
|
-
#
|
536
|
+
# 展示服务的调用信息
|
729
537
|
|
730
|
-
# @param request: Request instance for
|
731
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::
|
732
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::
|
733
|
-
def
|
734
|
-
body = send_request('
|
538
|
+
# @param request: Request instance for DescribeModelServiceCallInfo.
|
539
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceCallInfoRequest`
|
540
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceCallInfoResponse`
|
541
|
+
def DescribeModelServiceCallInfo(request)
|
542
|
+
body = send_request('DescribeModelServiceCallInfo', request.serialize)
|
735
543
|
response = JSON.parse(body)
|
736
544
|
if response['Response'].key?('Error') == false
|
737
|
-
model =
|
545
|
+
model = DescribeModelServiceCallInfoResponse.new
|
738
546
|
model.deserialize(response['Response'])
|
739
547
|
model
|
740
548
|
else
|
@@ -749,16 +557,16 @@ module TencentCloud
|
|
749
557
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
750
558
|
end
|
751
559
|
|
752
|
-
#
|
560
|
+
# 查询单个服务组
|
753
561
|
|
754
|
-
# @param request: Request instance for
|
755
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::
|
756
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::
|
757
|
-
def
|
758
|
-
body = send_request('
|
562
|
+
# @param request: Request instance for DescribeModelServiceGroup.
|
563
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceGroupRequest`
|
564
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceGroupResponse`
|
565
|
+
def DescribeModelServiceGroup(request)
|
566
|
+
body = send_request('DescribeModelServiceGroup', request.serialize)
|
759
567
|
response = JSON.parse(body)
|
760
568
|
if response['Response'].key?('Error') == false
|
761
|
-
model =
|
569
|
+
model = DescribeModelServiceGroupResponse.new
|
762
570
|
model.deserialize(response['Response'])
|
763
571
|
model
|
764
572
|
else
|
@@ -773,16 +581,16 @@ module TencentCloud
|
|
773
581
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
774
582
|
end
|
775
583
|
|
776
|
-
#
|
584
|
+
# 列举在线推理服务组
|
777
585
|
|
778
|
-
# @param request: Request instance for
|
779
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::
|
780
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::
|
781
|
-
def
|
782
|
-
body = send_request('
|
586
|
+
# @param request: Request instance for DescribeModelServiceGroups.
|
587
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceGroupsRequest`
|
588
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceGroupsResponse`
|
589
|
+
def DescribeModelServiceGroups(request)
|
590
|
+
body = send_request('DescribeModelServiceGroups', request.serialize)
|
783
591
|
response = JSON.parse(body)
|
784
592
|
if response['Response'].key?('Error') == false
|
785
|
-
model =
|
593
|
+
model = DescribeModelServiceGroupsResponse.new
|
786
594
|
model.deserialize(response['Response'])
|
787
595
|
model
|
788
596
|
else
|
@@ -797,400 +605,16 @@ module TencentCloud
|
|
797
605
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
798
606
|
end
|
799
607
|
|
800
|
-
#
|
608
|
+
# 用于查询模型服务能否开启热更新
|
801
609
|
|
802
|
-
# @param request: Request instance for
|
803
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::
|
804
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::
|
805
|
-
def
|
806
|
-
body = send_request('
|
610
|
+
# @param request: Request instance for DescribeModelServiceHotUpdated.
|
611
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceHotUpdatedRequest`
|
612
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceHotUpdatedResponse`
|
613
|
+
def DescribeModelServiceHotUpdated(request)
|
614
|
+
body = send_request('DescribeModelServiceHotUpdated', request.serialize)
|
807
615
|
response = JSON.parse(body)
|
808
616
|
if response['Response'].key?('Error') == false
|
809
|
-
model =
|
810
|
-
model.deserialize(response['Response'])
|
811
|
-
model
|
812
|
-
else
|
813
|
-
code = response['Response']['Error']['Code']
|
814
|
-
message = response['Response']['Error']['Message']
|
815
|
-
reqid = response['Response']['RequestId']
|
816
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
817
|
-
end
|
818
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
819
|
-
raise e
|
820
|
-
rescue StandardError => e
|
821
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
822
|
-
end
|
823
|
-
|
824
|
-
# 查询数据集列表
|
825
|
-
|
826
|
-
# @param request: Request instance for DescribeDatasets.
|
827
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeDatasetsRequest`
|
828
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeDatasetsResponse`
|
829
|
-
def DescribeDatasets(request)
|
830
|
-
body = send_request('DescribeDatasets', request.serialize)
|
831
|
-
response = JSON.parse(body)
|
832
|
-
if response['Response'].key?('Error') == false
|
833
|
-
model = DescribeDatasetsResponse.new
|
834
|
-
model.deserialize(response['Response'])
|
835
|
-
model
|
836
|
-
else
|
837
|
-
code = response['Response']['Error']['Code']
|
838
|
-
message = response['Response']['Error']['Message']
|
839
|
-
reqid = response['Response']['RequestId']
|
840
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
841
|
-
end
|
842
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
843
|
-
raise e
|
844
|
-
rescue StandardError => e
|
845
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
846
|
-
end
|
847
|
-
|
848
|
-
# 获取任务式建模训练任务,Notebook,在线服务和批量预测任务的事件API
|
849
|
-
|
850
|
-
# @param request: Request instance for DescribeEvents.
|
851
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeEventsRequest`
|
852
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeEventsResponse`
|
853
|
-
def DescribeEvents(request)
|
854
|
-
body = send_request('DescribeEvents', request.serialize)
|
855
|
-
response = JSON.parse(body)
|
856
|
-
if response['Response'].key?('Error') == false
|
857
|
-
model = DescribeEventsResponse.new
|
858
|
-
model.deserialize(response['Response'])
|
859
|
-
model
|
860
|
-
else
|
861
|
-
code = response['Response']['Error']['Code']
|
862
|
-
message = response['Response']['Error']['Message']
|
863
|
-
reqid = response['Response']['RequestId']
|
864
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
865
|
-
end
|
866
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
867
|
-
raise e
|
868
|
-
rescue StandardError => e
|
869
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
870
|
-
end
|
871
|
-
|
872
|
-
# 查询推理镜像模板
|
873
|
-
|
874
|
-
# @param request: Request instance for DescribeInferTemplates.
|
875
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeInferTemplatesRequest`
|
876
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeInferTemplatesResponse`
|
877
|
-
def DescribeInferTemplates(request)
|
878
|
-
body = send_request('DescribeInferTemplates', request.serialize)
|
879
|
-
response = JSON.parse(body)
|
880
|
-
if response['Response'].key?('Error') == false
|
881
|
-
model = DescribeInferTemplatesResponse.new
|
882
|
-
model.deserialize(response['Response'])
|
883
|
-
model
|
884
|
-
else
|
885
|
-
code = response['Response']['Error']['Code']
|
886
|
-
message = response['Response']['Error']['Message']
|
887
|
-
reqid = response['Response']['RequestId']
|
888
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
889
|
-
end
|
890
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
891
|
-
raise e
|
892
|
-
rescue StandardError => e
|
893
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
894
|
-
end
|
895
|
-
|
896
|
-
# 查询最近上报的训练自定义指标
|
897
|
-
|
898
|
-
# @param request: Request instance for DescribeLatestTrainingMetrics.
|
899
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeLatestTrainingMetricsRequest`
|
900
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeLatestTrainingMetricsResponse`
|
901
|
-
def DescribeLatestTrainingMetrics(request)
|
902
|
-
body = send_request('DescribeLatestTrainingMetrics', request.serialize)
|
903
|
-
response = JSON.parse(body)
|
904
|
-
if response['Response'].key?('Error') == false
|
905
|
-
model = DescribeLatestTrainingMetricsResponse.new
|
906
|
-
model.deserialize(response['Response'])
|
907
|
-
model
|
908
|
-
else
|
909
|
-
code = response['Response']['Error']['Code']
|
910
|
-
message = response['Response']['Error']['Message']
|
911
|
-
reqid = response['Response']['RequestId']
|
912
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
913
|
-
end
|
914
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
915
|
-
raise e
|
916
|
-
rescue StandardError => e
|
917
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
918
|
-
end
|
919
|
-
|
920
|
-
# 获取任务式建模训练任务,Notebook,在线服务和批量预测任务的日志API
|
921
|
-
|
922
|
-
# @param request: Request instance for DescribeLogs.
|
923
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeLogsRequest`
|
924
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeLogsResponse`
|
925
|
-
def DescribeLogs(request)
|
926
|
-
body = send_request('DescribeLogs', request.serialize)
|
927
|
-
response = JSON.parse(body)
|
928
|
-
if response['Response'].key?('Error') == false
|
929
|
-
model = DescribeLogsResponse.new
|
930
|
-
model.deserialize(response['Response'])
|
931
|
-
model
|
932
|
-
else
|
933
|
-
code = response['Response']['Error']['Code']
|
934
|
-
message = response['Response']['Error']['Message']
|
935
|
-
reqid = response['Response']['RequestId']
|
936
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
937
|
-
end
|
938
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
939
|
-
raise e
|
940
|
-
rescue StandardError => e
|
941
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
942
|
-
end
|
943
|
-
|
944
|
-
# 查询模型加速引擎版本列表
|
945
|
-
|
946
|
-
# @param request: Request instance for DescribeModelAccEngineVersions.
|
947
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelAccEngineVersionsRequest`
|
948
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelAccEngineVersionsResponse`
|
949
|
-
def DescribeModelAccEngineVersions(request)
|
950
|
-
body = send_request('DescribeModelAccEngineVersions', request.serialize)
|
951
|
-
response = JSON.parse(body)
|
952
|
-
if response['Response'].key?('Error') == false
|
953
|
-
model = DescribeModelAccEngineVersionsResponse.new
|
954
|
-
model.deserialize(response['Response'])
|
955
|
-
model
|
956
|
-
else
|
957
|
-
code = response['Response']['Error']['Code']
|
958
|
-
message = response['Response']['Error']['Message']
|
959
|
-
reqid = response['Response']['RequestId']
|
960
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
961
|
-
end
|
962
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
963
|
-
raise e
|
964
|
-
rescue StandardError => e
|
965
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
966
|
-
end
|
967
|
-
|
968
|
-
# 查询模型优化任务详情
|
969
|
-
|
970
|
-
# @param request: Request instance for DescribeModelAccelerateTask.
|
971
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelAccelerateTaskRequest`
|
972
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelAccelerateTaskResponse`
|
973
|
-
def DescribeModelAccelerateTask(request)
|
974
|
-
body = send_request('DescribeModelAccelerateTask', request.serialize)
|
975
|
-
response = JSON.parse(body)
|
976
|
-
if response['Response'].key?('Error') == false
|
977
|
-
model = DescribeModelAccelerateTaskResponse.new
|
978
|
-
model.deserialize(response['Response'])
|
979
|
-
model
|
980
|
-
else
|
981
|
-
code = response['Response']['Error']['Code']
|
982
|
-
message = response['Response']['Error']['Message']
|
983
|
-
reqid = response['Response']['RequestId']
|
984
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
985
|
-
end
|
986
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
987
|
-
raise e
|
988
|
-
rescue StandardError => e
|
989
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
990
|
-
end
|
991
|
-
|
992
|
-
# 查询模型加速任务列表
|
993
|
-
|
994
|
-
# @param request: Request instance for DescribeModelAccelerateTasks.
|
995
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelAccelerateTasksRequest`
|
996
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelAccelerateTasksResponse`
|
997
|
-
def DescribeModelAccelerateTasks(request)
|
998
|
-
body = send_request('DescribeModelAccelerateTasks', request.serialize)
|
999
|
-
response = JSON.parse(body)
|
1000
|
-
if response['Response'].key?('Error') == false
|
1001
|
-
model = DescribeModelAccelerateTasksResponse.new
|
1002
|
-
model.deserialize(response['Response'])
|
1003
|
-
model
|
1004
|
-
else
|
1005
|
-
code = response['Response']['Error']['Code']
|
1006
|
-
message = response['Response']['Error']['Message']
|
1007
|
-
reqid = response['Response']['RequestId']
|
1008
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1009
|
-
end
|
1010
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1011
|
-
raise e
|
1012
|
-
rescue StandardError => e
|
1013
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1014
|
-
end
|
1015
|
-
|
1016
|
-
# 模型加速之后的模型版本列表
|
1017
|
-
|
1018
|
-
# @param request: Request instance for DescribeModelAccelerateVersions.
|
1019
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelAccelerateVersionsRequest`
|
1020
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelAccelerateVersionsResponse`
|
1021
|
-
def DescribeModelAccelerateVersions(request)
|
1022
|
-
body = send_request('DescribeModelAccelerateVersions', request.serialize)
|
1023
|
-
response = JSON.parse(body)
|
1024
|
-
if response['Response'].key?('Error') == false
|
1025
|
-
model = DescribeModelAccelerateVersionsResponse.new
|
1026
|
-
model.deserialize(response['Response'])
|
1027
|
-
model
|
1028
|
-
else
|
1029
|
-
code = response['Response']['Error']['Code']
|
1030
|
-
message = response['Response']['Error']['Message']
|
1031
|
-
reqid = response['Response']['RequestId']
|
1032
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1033
|
-
end
|
1034
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1035
|
-
raise e
|
1036
|
-
rescue StandardError => e
|
1037
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1038
|
-
end
|
1039
|
-
|
1040
|
-
# 查询单个服务
|
1041
|
-
|
1042
|
-
# @param request: Request instance for DescribeModelService.
|
1043
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceRequest`
|
1044
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceResponse`
|
1045
|
-
def DescribeModelService(request)
|
1046
|
-
body = send_request('DescribeModelService', request.serialize)
|
1047
|
-
response = JSON.parse(body)
|
1048
|
-
if response['Response'].key?('Error') == false
|
1049
|
-
model = DescribeModelServiceResponse.new
|
1050
|
-
model.deserialize(response['Response'])
|
1051
|
-
model
|
1052
|
-
else
|
1053
|
-
code = response['Response']['Error']['Code']
|
1054
|
-
message = response['Response']['Error']['Message']
|
1055
|
-
reqid = response['Response']['RequestId']
|
1056
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1057
|
-
end
|
1058
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1059
|
-
raise e
|
1060
|
-
rescue StandardError => e
|
1061
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1062
|
-
end
|
1063
|
-
|
1064
|
-
# 展示服务的调用信息
|
1065
|
-
|
1066
|
-
# @param request: Request instance for DescribeModelServiceCallInfo.
|
1067
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceCallInfoRequest`
|
1068
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceCallInfoResponse`
|
1069
|
-
def DescribeModelServiceCallInfo(request)
|
1070
|
-
body = send_request('DescribeModelServiceCallInfo', request.serialize)
|
1071
|
-
response = JSON.parse(body)
|
1072
|
-
if response['Response'].key?('Error') == false
|
1073
|
-
model = DescribeModelServiceCallInfoResponse.new
|
1074
|
-
model.deserialize(response['Response'])
|
1075
|
-
model
|
1076
|
-
else
|
1077
|
-
code = response['Response']['Error']['Code']
|
1078
|
-
message = response['Response']['Error']['Message']
|
1079
|
-
reqid = response['Response']['RequestId']
|
1080
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1081
|
-
end
|
1082
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1083
|
-
raise e
|
1084
|
-
rescue StandardError => e
|
1085
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1086
|
-
end
|
1087
|
-
|
1088
|
-
# 查询单个服务组
|
1089
|
-
|
1090
|
-
# @param request: Request instance for DescribeModelServiceGroup.
|
1091
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceGroupRequest`
|
1092
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceGroupResponse`
|
1093
|
-
def DescribeModelServiceGroup(request)
|
1094
|
-
body = send_request('DescribeModelServiceGroup', request.serialize)
|
1095
|
-
response = JSON.parse(body)
|
1096
|
-
if response['Response'].key?('Error') == false
|
1097
|
-
model = DescribeModelServiceGroupResponse.new
|
1098
|
-
model.deserialize(response['Response'])
|
1099
|
-
model
|
1100
|
-
else
|
1101
|
-
code = response['Response']['Error']['Code']
|
1102
|
-
message = response['Response']['Error']['Message']
|
1103
|
-
reqid = response['Response']['RequestId']
|
1104
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1105
|
-
end
|
1106
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1107
|
-
raise e
|
1108
|
-
rescue StandardError => e
|
1109
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1110
|
-
end
|
1111
|
-
|
1112
|
-
# 列举在线推理服务组
|
1113
|
-
|
1114
|
-
# @param request: Request instance for DescribeModelServiceGroups.
|
1115
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceGroupsRequest`
|
1116
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceGroupsResponse`
|
1117
|
-
def DescribeModelServiceGroups(request)
|
1118
|
-
body = send_request('DescribeModelServiceGroups', request.serialize)
|
1119
|
-
response = JSON.parse(body)
|
1120
|
-
if response['Response'].key?('Error') == false
|
1121
|
-
model = DescribeModelServiceGroupsResponse.new
|
1122
|
-
model.deserialize(response['Response'])
|
1123
|
-
model
|
1124
|
-
else
|
1125
|
-
code = response['Response']['Error']['Code']
|
1126
|
-
message = response['Response']['Error']['Message']
|
1127
|
-
reqid = response['Response']['RequestId']
|
1128
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1129
|
-
end
|
1130
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1131
|
-
raise e
|
1132
|
-
rescue StandardError => e
|
1133
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1134
|
-
end
|
1135
|
-
|
1136
|
-
# 展示服务的历史版本
|
1137
|
-
|
1138
|
-
# @param request: Request instance for DescribeModelServiceHistory.
|
1139
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceHistoryRequest`
|
1140
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceHistoryResponse`
|
1141
|
-
def DescribeModelServiceHistory(request)
|
1142
|
-
body = send_request('DescribeModelServiceHistory', request.serialize)
|
1143
|
-
response = JSON.parse(body)
|
1144
|
-
if response['Response'].key?('Error') == false
|
1145
|
-
model = DescribeModelServiceHistoryResponse.new
|
1146
|
-
model.deserialize(response['Response'])
|
1147
|
-
model
|
1148
|
-
else
|
1149
|
-
code = response['Response']['Error']['Code']
|
1150
|
-
message = response['Response']['Error']['Message']
|
1151
|
-
reqid = response['Response']['RequestId']
|
1152
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1153
|
-
end
|
1154
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1155
|
-
raise e
|
1156
|
-
rescue StandardError => e
|
1157
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1158
|
-
end
|
1159
|
-
|
1160
|
-
# 用于查询模型服务能否开启热更新
|
1161
|
-
|
1162
|
-
# @param request: Request instance for DescribeModelServiceHotUpdated.
|
1163
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceHotUpdatedRequest`
|
1164
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceHotUpdatedResponse`
|
1165
|
-
def DescribeModelServiceHotUpdated(request)
|
1166
|
-
body = send_request('DescribeModelServiceHotUpdated', request.serialize)
|
1167
|
-
response = JSON.parse(body)
|
1168
|
-
if response['Response'].key?('Error') == false
|
1169
|
-
model = DescribeModelServiceHotUpdatedResponse.new
|
1170
|
-
model.deserialize(response['Response'])
|
1171
|
-
model
|
1172
|
-
else
|
1173
|
-
code = response['Response']['Error']['Code']
|
1174
|
-
message = response['Response']['Error']['Message']
|
1175
|
-
reqid = response['Response']['RequestId']
|
1176
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1177
|
-
end
|
1178
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1179
|
-
raise e
|
1180
|
-
rescue StandardError => e
|
1181
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1182
|
-
end
|
1183
|
-
|
1184
|
-
# 查询多个服务
|
1185
|
-
|
1186
|
-
# @param request: Request instance for DescribeModelServices.
|
1187
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelServicesRequest`
|
1188
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelServicesResponse`
|
1189
|
-
def DescribeModelServices(request)
|
1190
|
-
body = send_request('DescribeModelServices', request.serialize)
|
1191
|
-
response = JSON.parse(body)
|
1192
|
-
if response['Response'].key?('Error') == false
|
1193
|
-
model = DescribeModelServicesResponse.new
|
617
|
+
model = DescribeModelServiceHotUpdatedResponse.new
|
1194
618
|
model.deserialize(response['Response'])
|
1195
619
|
model
|
1196
620
|
else
|
@@ -1229,54 +653,6 @@ module TencentCloud
|
|
1229
653
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1230
654
|
end
|
1231
655
|
|
1232
|
-
# 查询镜像kernel
|
1233
|
-
|
1234
|
-
# @param request: Request instance for DescribeNotebookImageKernels.
|
1235
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeNotebookImageKernelsRequest`
|
1236
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeNotebookImageKernelsResponse`
|
1237
|
-
def DescribeNotebookImageKernels(request)
|
1238
|
-
body = send_request('DescribeNotebookImageKernels', request.serialize)
|
1239
|
-
response = JSON.parse(body)
|
1240
|
-
if response['Response'].key?('Error') == false
|
1241
|
-
model = DescribeNotebookImageKernelsResponse.new
|
1242
|
-
model.deserialize(response['Response'])
|
1243
|
-
model
|
1244
|
-
else
|
1245
|
-
code = response['Response']['Error']['Code']
|
1246
|
-
message = response['Response']['Error']['Message']
|
1247
|
-
reqid = response['Response']['RequestId']
|
1248
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1249
|
-
end
|
1250
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1251
|
-
raise e
|
1252
|
-
rescue StandardError => e
|
1253
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1254
|
-
end
|
1255
|
-
|
1256
|
-
# 查看notebook镜像保存记录
|
1257
|
-
|
1258
|
-
# @param request: Request instance for DescribeNotebookImageRecords.
|
1259
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeNotebookImageRecordsRequest`
|
1260
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeNotebookImageRecordsResponse`
|
1261
|
-
def DescribeNotebookImageRecords(request)
|
1262
|
-
body = send_request('DescribeNotebookImageRecords', request.serialize)
|
1263
|
-
response = JSON.parse(body)
|
1264
|
-
if response['Response'].key?('Error') == false
|
1265
|
-
model = DescribeNotebookImageRecordsResponse.new
|
1266
|
-
model.deserialize(response['Response'])
|
1267
|
-
model
|
1268
|
-
else
|
1269
|
-
code = response['Response']['Error']['Code']
|
1270
|
-
message = response['Response']['Error']['Message']
|
1271
|
-
reqid = response['Response']['RequestId']
|
1272
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1273
|
-
end
|
1274
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1275
|
-
raise e
|
1276
|
-
rescue StandardError => e
|
1277
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1278
|
-
end
|
1279
|
-
|
1280
656
|
# Notebook列表
|
1281
657
|
|
1282
658
|
# @param request: Request instance for DescribeNotebooks.
|
@@ -1301,54 +677,6 @@ module TencentCloud
|
|
1301
677
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1302
678
|
end
|
1303
679
|
|
1304
|
-
# 训练框架列表
|
1305
|
-
|
1306
|
-
# @param request: Request instance for DescribeTrainingFrameworks.
|
1307
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeTrainingFrameworksRequest`
|
1308
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeTrainingFrameworksResponse`
|
1309
|
-
def DescribeTrainingFrameworks(request)
|
1310
|
-
body = send_request('DescribeTrainingFrameworks', request.serialize)
|
1311
|
-
response = JSON.parse(body)
|
1312
|
-
if response['Response'].key?('Error') == false
|
1313
|
-
model = DescribeTrainingFrameworksResponse.new
|
1314
|
-
model.deserialize(response['Response'])
|
1315
|
-
model
|
1316
|
-
else
|
1317
|
-
code = response['Response']['Error']['Code']
|
1318
|
-
message = response['Response']['Error']['Message']
|
1319
|
-
reqid = response['Response']['RequestId']
|
1320
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1321
|
-
end
|
1322
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1323
|
-
raise e
|
1324
|
-
rescue StandardError => e
|
1325
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1326
|
-
end
|
1327
|
-
|
1328
|
-
# 查询训练自定义指标
|
1329
|
-
|
1330
|
-
# @param request: Request instance for DescribeTrainingMetrics.
|
1331
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeTrainingMetricsRequest`
|
1332
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeTrainingMetricsResponse`
|
1333
|
-
def DescribeTrainingMetrics(request)
|
1334
|
-
body = send_request('DescribeTrainingMetrics', request.serialize)
|
1335
|
-
response = JSON.parse(body)
|
1336
|
-
if response['Response'].key?('Error') == false
|
1337
|
-
model = DescribeTrainingMetricsResponse.new
|
1338
|
-
model.deserialize(response['Response'])
|
1339
|
-
model
|
1340
|
-
else
|
1341
|
-
code = response['Response']['Error']['Code']
|
1342
|
-
message = response['Response']['Error']['Message']
|
1343
|
-
reqid = response['Response']['RequestId']
|
1344
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1345
|
-
end
|
1346
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1347
|
-
raise e
|
1348
|
-
rescue StandardError => e
|
1349
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1350
|
-
end
|
1351
|
-
|
1352
680
|
# 查询模型版本
|
1353
681
|
|
1354
682
|
# @param request: Request instance for DescribeTrainingModelVersion.
|
@@ -1397,30 +725,6 @@ module TencentCloud
|
|
1397
725
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1398
726
|
end
|
1399
727
|
|
1400
|
-
# 模型列表
|
1401
|
-
|
1402
|
-
# @param request: Request instance for DescribeTrainingModels.
|
1403
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeTrainingModelsRequest`
|
1404
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeTrainingModelsResponse`
|
1405
|
-
def DescribeTrainingModels(request)
|
1406
|
-
body = send_request('DescribeTrainingModels', request.serialize)
|
1407
|
-
response = JSON.parse(body)
|
1408
|
-
if response['Response'].key?('Error') == false
|
1409
|
-
model = DescribeTrainingModelsResponse.new
|
1410
|
-
model.deserialize(response['Response'])
|
1411
|
-
model
|
1412
|
-
else
|
1413
|
-
code = response['Response']['Error']['Code']
|
1414
|
-
message = response['Response']['Error']['Message']
|
1415
|
-
reqid = response['Response']['RequestId']
|
1416
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1417
|
-
end
|
1418
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1419
|
-
raise e
|
1420
|
-
rescue StandardError => e
|
1421
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1422
|
-
end
|
1423
|
-
|
1424
728
|
# 训练任务详情
|
1425
729
|
|
1426
730
|
# @param request: Request instance for DescribeTrainingTask.
|
@@ -1517,102 +821,6 @@ module TencentCloud
|
|
1517
821
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1518
822
|
end
|
1519
823
|
|
1520
|
-
# 增量更新在线推理服务的部分配置,不更新的配置项不需要传入
|
1521
|
-
|
1522
|
-
# @param request: Request instance for ModifyModelServicePartialConfig.
|
1523
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::ModifyModelServicePartialConfigRequest`
|
1524
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::ModifyModelServicePartialConfigResponse`
|
1525
|
-
def ModifyModelServicePartialConfig(request)
|
1526
|
-
body = send_request('ModifyModelServicePartialConfig', request.serialize)
|
1527
|
-
response = JSON.parse(body)
|
1528
|
-
if response['Response'].key?('Error') == false
|
1529
|
-
model = ModifyModelServicePartialConfigResponse.new
|
1530
|
-
model.deserialize(response['Response'])
|
1531
|
-
model
|
1532
|
-
else
|
1533
|
-
code = response['Response']['Error']['Code']
|
1534
|
-
message = response['Response']['Error']['Message']
|
1535
|
-
reqid = response['Response']['RequestId']
|
1536
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1537
|
-
end
|
1538
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1539
|
-
raise e
|
1540
|
-
rescue StandardError => e
|
1541
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1542
|
-
end
|
1543
|
-
|
1544
|
-
# 修改Notebook
|
1545
|
-
|
1546
|
-
# @param request: Request instance for ModifyNotebook.
|
1547
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::ModifyNotebookRequest`
|
1548
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::ModifyNotebookResponse`
|
1549
|
-
def ModifyNotebook(request)
|
1550
|
-
body = send_request('ModifyNotebook', request.serialize)
|
1551
|
-
response = JSON.parse(body)
|
1552
|
-
if response['Response'].key?('Error') == false
|
1553
|
-
model = ModifyNotebookResponse.new
|
1554
|
-
model.deserialize(response['Response'])
|
1555
|
-
model
|
1556
|
-
else
|
1557
|
-
code = response['Response']['Error']['Code']
|
1558
|
-
message = response['Response']['Error']['Message']
|
1559
|
-
reqid = response['Response']['RequestId']
|
1560
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1561
|
-
end
|
1562
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1563
|
-
raise e
|
1564
|
-
rescue StandardError => e
|
1565
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1566
|
-
end
|
1567
|
-
|
1568
|
-
# 修改Notebook标签
|
1569
|
-
|
1570
|
-
# @param request: Request instance for ModifyNotebookTags.
|
1571
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::ModifyNotebookTagsRequest`
|
1572
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::ModifyNotebookTagsResponse`
|
1573
|
-
def ModifyNotebookTags(request)
|
1574
|
-
body = send_request('ModifyNotebookTags', request.serialize)
|
1575
|
-
response = JSON.parse(body)
|
1576
|
-
if response['Response'].key?('Error') == false
|
1577
|
-
model = ModifyNotebookTagsResponse.new
|
1578
|
-
model.deserialize(response['Response'])
|
1579
|
-
model
|
1580
|
-
else
|
1581
|
-
code = response['Response']['Error']['Code']
|
1582
|
-
message = response['Response']['Error']['Message']
|
1583
|
-
reqid = response['Response']['RequestId']
|
1584
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1585
|
-
end
|
1586
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1587
|
-
raise e
|
1588
|
-
rescue StandardError => e
|
1589
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1590
|
-
end
|
1591
|
-
|
1592
|
-
# 更新推理服务组流量分配
|
1593
|
-
|
1594
|
-
# @param request: Request instance for ModifyServiceGroupWeights.
|
1595
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::ModifyServiceGroupWeightsRequest`
|
1596
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::ModifyServiceGroupWeightsResponse`
|
1597
|
-
def ModifyServiceGroupWeights(request)
|
1598
|
-
body = send_request('ModifyServiceGroupWeights', request.serialize)
|
1599
|
-
response = JSON.parse(body)
|
1600
|
-
if response['Response'].key?('Error') == false
|
1601
|
-
model = ModifyServiceGroupWeightsResponse.new
|
1602
|
-
model.deserialize(response['Response'])
|
1603
|
-
model
|
1604
|
-
else
|
1605
|
-
code = response['Response']['Error']['Code']
|
1606
|
-
message = response['Response']['Error']['Message']
|
1607
|
-
reqid = response['Response']['RequestId']
|
1608
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1609
|
-
end
|
1610
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1611
|
-
raise e
|
1612
|
-
rescue StandardError => e
|
1613
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1614
|
-
end
|
1615
|
-
|
1616
824
|
# 上报训练自定义指标
|
1617
825
|
|
1618
826
|
# @param request: Request instance for PushTrainingMetrics.
|
@@ -1637,30 +845,6 @@ module TencentCloud
|
|
1637
845
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1638
846
|
end
|
1639
847
|
|
1640
|
-
# 重启模型加速任务
|
1641
|
-
|
1642
|
-
# @param request: Request instance for RestartModelAccelerateTask.
|
1643
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::RestartModelAccelerateTaskRequest`
|
1644
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::RestartModelAccelerateTaskResponse`
|
1645
|
-
def RestartModelAccelerateTask(request)
|
1646
|
-
body = send_request('RestartModelAccelerateTask', request.serialize)
|
1647
|
-
response = JSON.parse(body)
|
1648
|
-
if response['Response'].key?('Error') == false
|
1649
|
-
model = RestartModelAccelerateTaskResponse.new
|
1650
|
-
model.deserialize(response['Response'])
|
1651
|
-
model
|
1652
|
-
else
|
1653
|
-
code = response['Response']['Error']['Code']
|
1654
|
-
message = response['Response']['Error']['Message']
|
1655
|
-
reqid = response['Response']['RequestId']
|
1656
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1657
|
-
end
|
1658
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1659
|
-
raise e
|
1660
|
-
rescue StandardError => e
|
1661
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1662
|
-
end
|
1663
|
-
|
1664
848
|
# 这是一个供您体验大模型聊天的接口。
|
1665
849
|
|
1666
850
|
# @param request: Request instance for SendChatMessage.
|
@@ -1709,78 +893,6 @@ module TencentCloud
|
|
1709
893
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1710
894
|
end
|
1711
895
|
|
1712
|
-
# 启动模型训练任务
|
1713
|
-
|
1714
|
-
# @param request: Request instance for StartTrainingTask.
|
1715
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::StartTrainingTaskRequest`
|
1716
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::StartTrainingTaskResponse`
|
1717
|
-
def StartTrainingTask(request)
|
1718
|
-
body = send_request('StartTrainingTask', request.serialize)
|
1719
|
-
response = JSON.parse(body)
|
1720
|
-
if response['Response'].key?('Error') == false
|
1721
|
-
model = StartTrainingTaskResponse.new
|
1722
|
-
model.deserialize(response['Response'])
|
1723
|
-
model
|
1724
|
-
else
|
1725
|
-
code = response['Response']['Error']['Code']
|
1726
|
-
message = response['Response']['Error']['Message']
|
1727
|
-
reqid = response['Response']['RequestId']
|
1728
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1729
|
-
end
|
1730
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1731
|
-
raise e
|
1732
|
-
rescue StandardError => e
|
1733
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1734
|
-
end
|
1735
|
-
|
1736
|
-
# 停止批量预测任务
|
1737
|
-
|
1738
|
-
# @param request: Request instance for StopBatchTask.
|
1739
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::StopBatchTaskRequest`
|
1740
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::StopBatchTaskResponse`
|
1741
|
-
def StopBatchTask(request)
|
1742
|
-
body = send_request('StopBatchTask', request.serialize)
|
1743
|
-
response = JSON.parse(body)
|
1744
|
-
if response['Response'].key?('Error') == false
|
1745
|
-
model = StopBatchTaskResponse.new
|
1746
|
-
model.deserialize(response['Response'])
|
1747
|
-
model
|
1748
|
-
else
|
1749
|
-
code = response['Response']['Error']['Code']
|
1750
|
-
message = response['Response']['Error']['Message']
|
1751
|
-
reqid = response['Response']['RequestId']
|
1752
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1753
|
-
end
|
1754
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1755
|
-
raise e
|
1756
|
-
rescue StandardError => e
|
1757
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1758
|
-
end
|
1759
|
-
|
1760
|
-
# 停止保存镜像
|
1761
|
-
|
1762
|
-
# @param request: Request instance for StopCreatingImage.
|
1763
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::StopCreatingImageRequest`
|
1764
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::StopCreatingImageResponse`
|
1765
|
-
def StopCreatingImage(request)
|
1766
|
-
body = send_request('StopCreatingImage', request.serialize)
|
1767
|
-
response = JSON.parse(body)
|
1768
|
-
if response['Response'].key?('Error') == false
|
1769
|
-
model = StopCreatingImageResponse.new
|
1770
|
-
model.deserialize(response['Response'])
|
1771
|
-
model
|
1772
|
-
else
|
1773
|
-
code = response['Response']['Error']['Code']
|
1774
|
-
message = response['Response']['Error']['Message']
|
1775
|
-
reqid = response['Response']['RequestId']
|
1776
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1777
|
-
end
|
1778
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1779
|
-
raise e
|
1780
|
-
rescue StandardError => e
|
1781
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1782
|
-
end
|
1783
|
-
|
1784
896
|
# 停止模型加速任务
|
1785
897
|
|
1786
898
|
# @param request: Request instance for StopModelAccelerateTask.
|
@@ -1829,30 +941,6 @@ module TencentCloud
|
|
1829
941
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1830
942
|
end
|
1831
943
|
|
1832
|
-
# 停止模型训练任务
|
1833
|
-
|
1834
|
-
# @param request: Request instance for StopTrainingTask.
|
1835
|
-
# @type request: :class:`Tencentcloud::tione::V20211111::StopTrainingTaskRequest`
|
1836
|
-
# @rtype: :class:`Tencentcloud::tione::V20211111::StopTrainingTaskResponse`
|
1837
|
-
def StopTrainingTask(request)
|
1838
|
-
body = send_request('StopTrainingTask', request.serialize)
|
1839
|
-
response = JSON.parse(body)
|
1840
|
-
if response['Response'].key?('Error') == false
|
1841
|
-
model = StopTrainingTaskResponse.new
|
1842
|
-
model.deserialize(response['Response'])
|
1843
|
-
model
|
1844
|
-
else
|
1845
|
-
code = response['Response']['Error']['Code']
|
1846
|
-
message = response['Response']['Error']['Message']
|
1847
|
-
reqid = response['Response']['RequestId']
|
1848
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1849
|
-
end
|
1850
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1851
|
-
raise e
|
1852
|
-
rescue StandardError => e
|
1853
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1854
|
-
end
|
1855
|
-
|
1856
944
|
|
1857
945
|
end
|
1858
946
|
end
|