tencentcloud-sdk-asr 3.0.563 → 3.0.565

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: 7017ca8915cf2515bceb482f6e2148d2c04df8e0
4
+ data.tar.gz: 85c019ebe6fd66877d02e09905d76d674e1c72c9
5
5
  SHA512:
6
- metadata.gz: a76e052e03065e7d72306a67fa7bbe4029c0958c0b0e737af96f445374b4b3171c39a46bbd2508ccbb7f61af1e9162b27c8e59dd2978ed4c30b935549ebd550e
7
- data.tar.gz: 4b57b725097f0fda0207c6389a1c7c84b4cdd50927c95629c6be24d67d61518af220b1650133b58b93166cea45966dea89efdf0d47c262b68fedd87a2e3e77bd
6
+ metadata.gz: 78296ef3154c6fdbecbd70a40789cab172ce84396cbb2952f85c9eec577e6b2d7e56157511b5dc8758ebf0bf111130a6e75e490dcee3c1b8fad8a59b60d4ac66
7
+ data.tar.gz: 5a8a38b7290e52f30e909c9aa41611de03b40cbe249a0517eece1b730b00bd28a66a588f4c688c49a0636d6e70b2b0a0935621b29746d9f5ae6fd210e66865be
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.563
1
+ 3.0.565
@@ -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.565
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-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common