tencentcloud-sdk-tione 3.0.441 → 3.0.443
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/tencentcloud-sdk-tione.rb +3 -3
- data/lib/v20211111/client.rb +288 -0
- data/lib/v20211111/models.rb +1842 -139
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27718c41a3cf6ca4f084f97c8317c186042c77db
|
4
|
+
data.tar.gz: 17d08834b115493dd44f087bf4357850e059cef0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abbeca9e57a7bee9aed58fce00631c6ca2676fa65885b58861d100d1932e718fdf33cc6e71557ce87d8fa012de9e94ac88ba127421d3e9697d5ffb81bb42cc98
|
7
|
+
data.tar.gz: 712243267ca59e84eb02a7fb9a26a638542c7729baf6c9d3e90f8bdee5e479a79f865a57a4764d68120df18b23e3bdeecb66e759433fc262dcf3082c4fb939c1
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.443
|
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
require 'tencentcloud-sdk-common'
|
4
4
|
|
5
|
-
require_relative 'v20191022/client'
|
6
|
-
require_relative 'v20191022/models'
|
7
|
-
|
8
5
|
require_relative 'v20211111/client'
|
9
6
|
require_relative 'v20211111/models'
|
10
7
|
|
8
|
+
require_relative 'v20191022/client'
|
9
|
+
require_relative 'v20191022/models'
|
10
|
+
|
11
11
|
module TencentCloud
|
12
12
|
module Tione
|
13
13
|
end
|
data/lib/v20211111/client.rb
CHANGED
@@ -77,6 +77,30 @@ module TencentCloud
|
|
77
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
78
|
end
|
79
79
|
|
80
|
+
# 用于创建、发布一个新的模型服务
|
81
|
+
|
82
|
+
# @param request: Request instance for CreateModelService.
|
83
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::CreateModelServiceRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::CreateModelServiceResponse`
|
85
|
+
def CreateModelService(request)
|
86
|
+
body = send_request('CreateModelService', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = CreateModelServiceResponse.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
|
+
|
80
104
|
# 导入模型
|
81
105
|
|
82
106
|
# @param request: Request instance for CreateTrainingModel.
|
@@ -173,6 +197,54 @@ module TencentCloud
|
|
173
197
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
198
|
end
|
175
199
|
|
200
|
+
# 根据服务id删除模型服务
|
201
|
+
|
202
|
+
# @param request: Request instance for DeleteModelService.
|
203
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DeleteModelServiceRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DeleteModelServiceResponse`
|
205
|
+
def DeleteModelService(request)
|
206
|
+
body = send_request('DeleteModelService', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = DeleteModelServiceResponse.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
|
+
# 根据服务组id删除服务组下所有模型服务
|
225
|
+
|
226
|
+
# @param request: Request instance for DeleteModelServiceGroup.
|
227
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DeleteModelServiceGroupRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DeleteModelServiceGroupResponse`
|
229
|
+
def DeleteModelServiceGroup(request)
|
230
|
+
body = send_request('DeleteModelServiceGroup', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = DeleteModelServiceGroupResponse.new
|
234
|
+
model.deserialize(response['Response'])
|
235
|
+
model
|
236
|
+
else
|
237
|
+
code = response['Response']['Error']['Code']
|
238
|
+
message = response['Response']['Error']['Message']
|
239
|
+
reqid = response['Response']['RequestId']
|
240
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
241
|
+
end
|
242
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
243
|
+
raise e
|
244
|
+
rescue StandardError => e
|
245
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
|
+
end
|
247
|
+
|
176
248
|
# 删除模型
|
177
249
|
|
178
250
|
# @param request: Request instance for DeleteTrainingModel.
|
@@ -245,6 +317,30 @@ module TencentCloud
|
|
245
317
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
318
|
end
|
247
319
|
|
320
|
+
# 列举API
|
321
|
+
|
322
|
+
# @param request: Request instance for DescribeAPIConfigs.
|
323
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeAPIConfigsRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeAPIConfigsResponse`
|
325
|
+
def DescribeAPIConfigs(request)
|
326
|
+
body = send_request('DescribeAPIConfigs', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = DescribeAPIConfigsResponse.new
|
330
|
+
model.deserialize(response['Response'])
|
331
|
+
model
|
332
|
+
else
|
333
|
+
code = response['Response']['Error']['Code']
|
334
|
+
message = response['Response']['Error']['Message']
|
335
|
+
reqid = response['Response']['RequestId']
|
336
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
337
|
+
end
|
338
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
339
|
+
raise e
|
340
|
+
rescue StandardError => e
|
341
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
|
+
end
|
343
|
+
|
248
344
|
# 查询跑批任务
|
249
345
|
|
250
346
|
# @param request: Request instance for DescribeBatchTask.
|
@@ -533,6 +629,174 @@ module TencentCloud
|
|
533
629
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
534
630
|
end
|
535
631
|
|
632
|
+
# 查询单个服务
|
633
|
+
|
634
|
+
# @param request: Request instance for DescribeModelService.
|
635
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceRequest`
|
636
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceResponse`
|
637
|
+
def DescribeModelService(request)
|
638
|
+
body = send_request('DescribeModelService', request.serialize)
|
639
|
+
response = JSON.parse(body)
|
640
|
+
if response['Response'].key?('Error') == false
|
641
|
+
model = DescribeModelServiceResponse.new
|
642
|
+
model.deserialize(response['Response'])
|
643
|
+
model
|
644
|
+
else
|
645
|
+
code = response['Response']['Error']['Code']
|
646
|
+
message = response['Response']['Error']['Message']
|
647
|
+
reqid = response['Response']['RequestId']
|
648
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
649
|
+
end
|
650
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
651
|
+
raise e
|
652
|
+
rescue StandardError => e
|
653
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
654
|
+
end
|
655
|
+
|
656
|
+
# 展示服务的调用信息
|
657
|
+
|
658
|
+
# @param request: Request instance for DescribeModelServiceCallInfo.
|
659
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceCallInfoRequest`
|
660
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceCallInfoResponse`
|
661
|
+
def DescribeModelServiceCallInfo(request)
|
662
|
+
body = send_request('DescribeModelServiceCallInfo', request.serialize)
|
663
|
+
response = JSON.parse(body)
|
664
|
+
if response['Response'].key?('Error') == false
|
665
|
+
model = DescribeModelServiceCallInfoResponse.new
|
666
|
+
model.deserialize(response['Response'])
|
667
|
+
model
|
668
|
+
else
|
669
|
+
code = response['Response']['Error']['Code']
|
670
|
+
message = response['Response']['Error']['Message']
|
671
|
+
reqid = response['Response']['RequestId']
|
672
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
673
|
+
end
|
674
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
675
|
+
raise e
|
676
|
+
rescue StandardError => e
|
677
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
678
|
+
end
|
679
|
+
|
680
|
+
# 查询单个服务组
|
681
|
+
|
682
|
+
# @param request: Request instance for DescribeModelServiceGroup.
|
683
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceGroupRequest`
|
684
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceGroupResponse`
|
685
|
+
def DescribeModelServiceGroup(request)
|
686
|
+
body = send_request('DescribeModelServiceGroup', request.serialize)
|
687
|
+
response = JSON.parse(body)
|
688
|
+
if response['Response'].key?('Error') == false
|
689
|
+
model = DescribeModelServiceGroupResponse.new
|
690
|
+
model.deserialize(response['Response'])
|
691
|
+
model
|
692
|
+
else
|
693
|
+
code = response['Response']['Error']['Code']
|
694
|
+
message = response['Response']['Error']['Message']
|
695
|
+
reqid = response['Response']['RequestId']
|
696
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
697
|
+
end
|
698
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
699
|
+
raise e
|
700
|
+
rescue StandardError => e
|
701
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
702
|
+
end
|
703
|
+
|
704
|
+
# 列举在线推理服务组
|
705
|
+
|
706
|
+
# @param request: Request instance for DescribeModelServiceGroups.
|
707
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceGroupsRequest`
|
708
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceGroupsResponse`
|
709
|
+
def DescribeModelServiceGroups(request)
|
710
|
+
body = send_request('DescribeModelServiceGroups', request.serialize)
|
711
|
+
response = JSON.parse(body)
|
712
|
+
if response['Response'].key?('Error') == false
|
713
|
+
model = DescribeModelServiceGroupsResponse.new
|
714
|
+
model.deserialize(response['Response'])
|
715
|
+
model
|
716
|
+
else
|
717
|
+
code = response['Response']['Error']['Code']
|
718
|
+
message = response['Response']['Error']['Message']
|
719
|
+
reqid = response['Response']['RequestId']
|
720
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
721
|
+
end
|
722
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
723
|
+
raise e
|
724
|
+
rescue StandardError => e
|
725
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
726
|
+
end
|
727
|
+
|
728
|
+
# 展示服务的历史版本
|
729
|
+
|
730
|
+
# @param request: Request instance for DescribeModelServiceHistory.
|
731
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceHistoryRequest`
|
732
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceHistoryResponse`
|
733
|
+
def DescribeModelServiceHistory(request)
|
734
|
+
body = send_request('DescribeModelServiceHistory', request.serialize)
|
735
|
+
response = JSON.parse(body)
|
736
|
+
if response['Response'].key?('Error') == false
|
737
|
+
model = DescribeModelServiceHistoryResponse.new
|
738
|
+
model.deserialize(response['Response'])
|
739
|
+
model
|
740
|
+
else
|
741
|
+
code = response['Response']['Error']['Code']
|
742
|
+
message = response['Response']['Error']['Message']
|
743
|
+
reqid = response['Response']['RequestId']
|
744
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
745
|
+
end
|
746
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
747
|
+
raise e
|
748
|
+
rescue StandardError => e
|
749
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
750
|
+
end
|
751
|
+
|
752
|
+
# 用于查询模型服务能否开启热更新
|
753
|
+
|
754
|
+
# @param request: Request instance for DescribeModelServiceHotUpdated.
|
755
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceHotUpdatedRequest`
|
756
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelServiceHotUpdatedResponse`
|
757
|
+
def DescribeModelServiceHotUpdated(request)
|
758
|
+
body = send_request('DescribeModelServiceHotUpdated', request.serialize)
|
759
|
+
response = JSON.parse(body)
|
760
|
+
if response['Response'].key?('Error') == false
|
761
|
+
model = DescribeModelServiceHotUpdatedResponse.new
|
762
|
+
model.deserialize(response['Response'])
|
763
|
+
model
|
764
|
+
else
|
765
|
+
code = response['Response']['Error']['Code']
|
766
|
+
message = response['Response']['Error']['Message']
|
767
|
+
reqid = response['Response']['RequestId']
|
768
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
769
|
+
end
|
770
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
771
|
+
raise e
|
772
|
+
rescue StandardError => e
|
773
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
774
|
+
end
|
775
|
+
|
776
|
+
# 查询多个服务
|
777
|
+
|
778
|
+
# @param request: Request instance for DescribeModelServices.
|
779
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::DescribeModelServicesRequest`
|
780
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::DescribeModelServicesResponse`
|
781
|
+
def DescribeModelServices(request)
|
782
|
+
body = send_request('DescribeModelServices', request.serialize)
|
783
|
+
response = JSON.parse(body)
|
784
|
+
if response['Response'].key?('Error') == false
|
785
|
+
model = DescribeModelServicesResponse.new
|
786
|
+
model.deserialize(response['Response'])
|
787
|
+
model
|
788
|
+
else
|
789
|
+
code = response['Response']['Error']['Code']
|
790
|
+
message = response['Response']['Error']['Message']
|
791
|
+
reqid = response['Response']['RequestId']
|
792
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
793
|
+
end
|
794
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
795
|
+
raise e
|
796
|
+
rescue StandardError => e
|
797
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
798
|
+
end
|
799
|
+
|
536
800
|
# 训练框架列表
|
537
801
|
|
538
802
|
# @param request: Request instance for DescribeTrainingFrameworks.
|
@@ -725,6 +989,30 @@ module TencentCloud
|
|
725
989
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
726
990
|
end
|
727
991
|
|
992
|
+
# 更新推理服务组流量分配
|
993
|
+
|
994
|
+
# @param request: Request instance for ModifyServiceGroupWeights.
|
995
|
+
# @type request: :class:`Tencentcloud::tione::V20211111::ModifyServiceGroupWeightsRequest`
|
996
|
+
# @rtype: :class:`Tencentcloud::tione::V20211111::ModifyServiceGroupWeightsResponse`
|
997
|
+
def ModifyServiceGroupWeights(request)
|
998
|
+
body = send_request('ModifyServiceGroupWeights', request.serialize)
|
999
|
+
response = JSON.parse(body)
|
1000
|
+
if response['Response'].key?('Error') == false
|
1001
|
+
model = ModifyServiceGroupWeightsResponse.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
|
+
|
728
1016
|
# 上报训练自定义指标
|
729
1017
|
|
730
1018
|
# @param request: Request instance for PushTrainingMetrics.
|