tencentcloud-sdk-asr 3.0.563 → 3.0.566

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d7d52167106602f60ba8302e6b23880a1fa5398
4
- data.tar.gz: 5c1ca353bd7866156cebf3645ebcc9050b545729
3
+ metadata.gz: 68d6ddc33cb7ec6d279883d93165ab130c506285
4
+ data.tar.gz: fb29ffa05978c4ec0d494c3434c4b567c2baadd1
5
5
  SHA512:
6
- metadata.gz: a76e052e03065e7d72306a67fa7bbe4029c0958c0b0e737af96f445374b4b3171c39a46bbd2508ccbb7f61af1e9162b27c8e59dd2978ed4c30b935549ebd550e
7
- data.tar.gz: 4b57b725097f0fda0207c6389a1c7c84b4cdd50927c95629c6be24d67d61518af220b1650133b58b93166cea45966dea89efdf0d47c262b68fedd87a2e3e77bd
6
+ metadata.gz: 54dac6d141b53fa37ca9c705c5c9729a7303becb407a3bce948d3270f5ec3843d548d4949f6d759df110028a9e5fff4d3c80e7957bd321db76d396cbf30d119e
7
+ data.tar.gz: d04fea88f3acc7bd7924e40ba636554a47230903c1a6c4e205400ab977621dfd8473e0b10609c0a34a98fb4ec7aa7ede12a89c217d17e1f5eeb0db41274d1aed
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.563
1
+ 3.0.566
@@ -391,6 +391,30 @@ module TencentCloud
391
391
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
392
392
  end
393
393
 
394
+ # 通过自学习模型id获取自学习模型详细信息
395
+
396
+ # @param request: Request instance for GetModelInfo.
397
+ # @type request: :class:`Tencentcloud::asr::V20190614::GetModelInfoRequest`
398
+ # @rtype: :class:`Tencentcloud::asr::V20190614::GetModelInfoResponse`
399
+ def GetModelInfo(request)
400
+ body = send_request('GetModelInfo', request.serialize)
401
+ response = JSON.parse(body)
402
+ if response['Response'].key?('Error') == false
403
+ model = GetModelInfoResponse.new
404
+ model.deserialize(response['Response'])
405
+ model
406
+ else
407
+ code = response['Response']['Error']['Code']
408
+ message = response['Response']['Error']['Message']
409
+ reqid = response['Response']['RequestId']
410
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
411
+ end
412
+ rescue TencentCloud::Common::TencentCloudSDKException => e
413
+ raise e
414
+ rescue StandardError => e
415
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
416
+ end
417
+
394
418
  # 用户通过该接口可以更新自学习模型,如模型名称、模型类型、模型语料。
395
419
 
396
420
  # @param request: Request instance for ModifyCustomization.
@@ -816,6 +816,45 @@ module TencentCloud
816
816
  end
817
817
  end
818
818
 
819
+ # GetModelInfo请求参数结构体
820
+ class GetModelInfoRequest < TencentCloud::Common::AbstractModel
821
+ # @param ModelId: 模型id
822
+ # @type ModelId: String
823
+
824
+ attr_accessor :ModelId
825
+
826
+ def initialize(modelid=nil)
827
+ @ModelId = modelid
828
+ end
829
+
830
+ def deserialize(params)
831
+ @ModelId = params['ModelId']
832
+ end
833
+ end
834
+
835
+ # GetModelInfo返回参数结构体
836
+ class GetModelInfoResponse < TencentCloud::Common::AbstractModel
837
+ # @param Data: 模型信息
838
+ # @type Data: :class:`Tencentcloud::Asr.v20190614.models.Model`
839
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
840
+ # @type RequestId: String
841
+
842
+ attr_accessor :Data, :RequestId
843
+
844
+ def initialize(data=nil, requestid=nil)
845
+ @Data = data
846
+ @RequestId = requestid
847
+ end
848
+
849
+ def deserialize(params)
850
+ unless params['Data'].nil?
851
+ @Data = Model.new
852
+ @Data.deserialize(params['Data'])
853
+ end
854
+ @RequestId = params['RequestId']
855
+ end
856
+ end
857
+
819
858
  # 热词的词和权重
820
859
  class HotWord < TencentCloud::Common::AbstractModel
821
860
  # @param Word: 热词
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-asr
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.563
4
+ version: 3.0.566
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-01 00:00:00.000000000 Z
11
+ date: 2023-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common