tencentcloud-sdk-asr 3.0.909 → 3.0.911

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: 6dbb5298d67c0d811e9959fbbff6864a503be888
4
- data.tar.gz: 0b60cb0a57702e6967fb8eaa1446ae562caa4c85
3
+ metadata.gz: 7ef960a51c3657ee63165a4cb95e73ce47661659
4
+ data.tar.gz: 83db7a40cb5238344358b4559382e71c8bf0d3dc
5
5
  SHA512:
6
- metadata.gz: bc0f46a98e65cb9b1277f0f3cf3ccb29a0f2b5ab81751f73ef79d4748d7f50fb0db33c8ec42ebe91b09d79688d64c23fdcbaf5b26466c0d7f0dcdc20d9470519
7
- data.tar.gz: 4fa77e9ab5d8ea3a8e54256ec03966f1e57822b6f2feacc8c71fe91f41e9152f3d68375e7de0851be36370003ccce3e6511a5c685cbc53f9f91b27fe09131752
6
+ metadata.gz: 75c91b84a5717f644a1133890de929f425d4186781e833f650b36fd8e7bf2c342bc9bc276620a325dae89b086663f3a84746e99b7197b7e62f5bf7f55a69f175
7
+ data.tar.gz: b24ae488ab6731a3cf77dbbd0d0c1f3628f272a1f6c3f464c5f2fea47a65bb54d52ef1e3bd3a83f5e447ec90f413f7bba8f8bd451fe004540ddcafe0d6f16f39
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.909
1
+ 3.0.911
@@ -494,6 +494,30 @@ module TencentCloud
494
494
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
495
495
  end
496
496
 
497
+ # 查询用户用量
498
+
499
+ # @param request: Request instance for GetUsageByDate.
500
+ # @type request: :class:`Tencentcloud::asr::V20190614::GetUsageByDateRequest`
501
+ # @rtype: :class:`Tencentcloud::asr::V20190614::GetUsageByDateResponse`
502
+ def GetUsageByDate(request)
503
+ body = send_request('GetUsageByDate', request.serialize)
504
+ response = JSON.parse(body)
505
+ if response['Response'].key?('Error') == false
506
+ model = GetUsageByDateResponse.new
507
+ model.deserialize(response['Response'])
508
+ model
509
+ else
510
+ code = response['Response']['Error']['Code']
511
+ message = response['Response']['Error']['Message']
512
+ reqid = response['Response']['RequestId']
513
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
514
+ end
515
+ rescue TencentCloud::Common::TencentCloudSDKException => e
516
+ raise e
517
+ rescue StandardError => e
518
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
519
+ end
520
+
497
521
  # 用户通过该接口可以更新自学习模型,如模型名称、模型类型、模型语料。
498
522
 
499
523
  # @param request: Request instance for ModifyCustomization.
@@ -1131,6 +1131,59 @@ module TencentCloud
1131
1131
  end
1132
1132
  end
1133
1133
 
1134
+ # GetUsageByDate请求参数结构体
1135
+ class GetUsageByDateRequest < TencentCloud::Common::AbstractModel
1136
+ # @param BizNameList: 需要查询的业务类型名字列表
1137
+ # - asr_rt 实时识别
1138
+ # - asr_rec 录音文件识别
1139
+ # @type BizNameList: Array
1140
+ # @param StartDate: 查询开始时间
1141
+ # 开始时间包含当天,支持 YYYY-MM-DD 日期以国内时区为准
1142
+ # 开始时间到结束时间需要在3个月以内
1143
+ # @type StartDate: String
1144
+ # @param EndDate: 查询结束时间
1145
+ # 结束时间包含当天,,支持 YYYY-MM-DD 日期以国内时区为准
1146
+ # 开始时间到结束时间需要在3个月以内
1147
+ # @type EndDate: String
1148
+
1149
+ attr_accessor :BizNameList, :StartDate, :EndDate
1150
+
1151
+ def initialize(biznamelist=nil, startdate=nil, enddate=nil)
1152
+ @BizNameList = biznamelist
1153
+ @StartDate = startdate
1154
+ @EndDate = enddate
1155
+ end
1156
+
1157
+ def deserialize(params)
1158
+ @BizNameList = params['BizNameList']
1159
+ @StartDate = params['StartDate']
1160
+ @EndDate = params['EndDate']
1161
+ end
1162
+ end
1163
+
1164
+ # GetUsageByDate返回参数结构体
1165
+ class GetUsageByDateResponse < TencentCloud::Common::AbstractModel
1166
+ # @param Data: 用量次数
1167
+ # @type Data: :class:`Tencentcloud::Asr.v20190614.models.UsageByDateInfoData`
1168
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1169
+ # @type RequestId: String
1170
+
1171
+ attr_accessor :Data, :RequestId
1172
+
1173
+ def initialize(data=nil, requestid=nil)
1174
+ @Data = data
1175
+ @RequestId = requestid
1176
+ end
1177
+
1178
+ def deserialize(params)
1179
+ unless params['Data'].nil?
1180
+ @Data = UsageByDateInfoData.new
1181
+ @Data.deserialize(params['Data'])
1182
+ end
1183
+ @RequestId = params['RequestId']
1184
+ end
1185
+ end
1186
+
1134
1187
  # [热词的词和权重](https://cloud.tencent.com/document/product/1093/41111#2.-.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0)
1135
1188
  class HotWord < TencentCloud::Common::AbstractModel
1136
1189
  # @param Word: 热词
@@ -1932,6 +1985,59 @@ module TencentCloud
1932
1985
  end
1933
1986
  end
1934
1987
 
1988
+ # 用户用量信息
1989
+ class UsageByDateInfo < TencentCloud::Common::AbstractModel
1990
+ # @param BizName: 业务类型名称
1991
+ # 注意:此字段可能返回 null,表示取不到有效值。
1992
+ # @type BizName: String
1993
+ # @param Count: 识别次数
1994
+ # 单位:次
1995
+ # 注意:此字段可能返回 null,表示取不到有效值。
1996
+ # @type Count: Integer
1997
+ # @param Duration: 识别时长
1998
+ # 单位:秒
1999
+ # 注意:此字段可能返回 null,表示取不到有效值。
2000
+ # @type Duration: Integer
2001
+
2002
+ attr_accessor :BizName, :Count, :Duration
2003
+
2004
+ def initialize(bizname=nil, count=nil, duration=nil)
2005
+ @BizName = bizname
2006
+ @Count = count
2007
+ @Duration = duration
2008
+ end
2009
+
2010
+ def deserialize(params)
2011
+ @BizName = params['BizName']
2012
+ @Count = params['Count']
2013
+ @Duration = params['Duration']
2014
+ end
2015
+ end
2016
+
2017
+ # 用户用量信息
2018
+ class UsageByDateInfoData < TencentCloud::Common::AbstractModel
2019
+ # @param UsageByDateInfoList: 用量信息列表
2020
+ # 注意:此字段可能返回 null,表示取不到有效值。
2021
+ # @type UsageByDateInfoList: Array
2022
+
2023
+ attr_accessor :UsageByDateInfoList
2024
+
2025
+ def initialize(usagebydateinfolist=nil)
2026
+ @UsageByDateInfoList = usagebydateinfolist
2027
+ end
2028
+
2029
+ def deserialize(params)
2030
+ unless params['UsageByDateInfoList'].nil?
2031
+ @UsageByDateInfoList = []
2032
+ params['UsageByDateInfoList'].each do |i|
2033
+ usagebydateinfo_tmp = UsageByDateInfo.new
2034
+ usagebydateinfo_tmp.deserialize(i)
2035
+ @UsageByDateInfoList << usagebydateinfo_tmp
2036
+ end
2037
+ end
2038
+ end
2039
+ end
2040
+
1935
2041
  # 声纹组对比结果top数据
1936
2042
  class VerifyTop < TencentCloud::Common::AbstractModel
1937
2043
  # @param Score: 相似度打分
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.909
4
+ version: 3.0.911
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-20 00:00:00.000000000 Z
11
+ date: 2024-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common