tencentcloud-sdk-gme 3.0.387 → 3.0.390
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/v20180711/client.rb +0 -74
- data/lib/v20180711/models.rb +0 -232
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3371afa41185badb2aec90db8f275449ec7bcae
|
4
|
+
data.tar.gz: 836aa005d2e91527f9f171d1428cea378421ae32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f09f949dfac48c6e3811f3752fb391f6ab60fddb266df7b91865b46cd7977e7b331cc266eddf52a3a9030f0d5c2160bde250868e9edc257709c3d08079292b24
|
7
|
+
data.tar.gz: b1eacf9da07ca4cec0339a8d110ca557a7f87072495e9ed89b4722319a9150e03e9f0fa0522e40bdc3d427657ee4912c176267dbaaf57763d0000cd8c403db55
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.390
|
data/lib/v20180711/client.rb
CHANGED
@@ -255,54 +255,6 @@ module TencentCloud
|
|
255
255
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
256
256
|
end
|
257
257
|
|
258
|
-
# 根据应用ID和文件ID查询识别结果
|
259
|
-
|
260
|
-
# @param request: Request instance for DescribeFilterResult.
|
261
|
-
# @type request: :class:`Tencentcloud::gme::V20180711::DescribeFilterResultRequest`
|
262
|
-
# @rtype: :class:`Tencentcloud::gme::V20180711::DescribeFilterResultResponse`
|
263
|
-
def DescribeFilterResult(request)
|
264
|
-
body = send_request('DescribeFilterResult', request.serialize)
|
265
|
-
response = JSON.parse(body)
|
266
|
-
if response['Response'].key?('Error') == false
|
267
|
-
model = DescribeFilterResultResponse.new
|
268
|
-
model.deserialize(response['Response'])
|
269
|
-
model
|
270
|
-
else
|
271
|
-
code = response['Response']['Error']['Code']
|
272
|
-
message = response['Response']['Error']['Message']
|
273
|
-
reqid = response['Response']['RequestId']
|
274
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
275
|
-
end
|
276
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
277
|
-
raise e
|
278
|
-
rescue StandardError => e
|
279
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
280
|
-
end
|
281
|
-
|
282
|
-
# 根据日期查询识别结果列表
|
283
|
-
|
284
|
-
# @param request: Request instance for DescribeFilterResultList.
|
285
|
-
# @type request: :class:`Tencentcloud::gme::V20180711::DescribeFilterResultListRequest`
|
286
|
-
# @rtype: :class:`Tencentcloud::gme::V20180711::DescribeFilterResultListResponse`
|
287
|
-
def DescribeFilterResultList(request)
|
288
|
-
body = send_request('DescribeFilterResultList', request.serialize)
|
289
|
-
response = JSON.parse(body)
|
290
|
-
if response['Response'].key?('Error') == false
|
291
|
-
model = DescribeFilterResultListResponse.new
|
292
|
-
model.deserialize(response['Response'])
|
293
|
-
model
|
294
|
-
else
|
295
|
-
code = response['Response']['Error']['Code']
|
296
|
-
message = response['Response']['Error']['Message']
|
297
|
-
reqid = response['Response']['RequestId']
|
298
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
299
|
-
end
|
300
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
301
|
-
raise e
|
302
|
-
rescue StandardError => e
|
303
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
304
|
-
end
|
305
|
-
|
306
258
|
# 获取用户自定义送检信息
|
307
259
|
|
308
260
|
# @param request: Request instance for DescribeRealtimeScanConfig.
|
@@ -750,32 +702,6 @@ module TencentCloud
|
|
750
702
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
751
703
|
end
|
752
704
|
|
753
|
-
# 本接口用于识别涉黄等违规音频,成功会回调配置在应用的回调地址。回调示例如下:
|
754
|
-
# {"BizId":0,"FileId":"test_file_id","FileName":"test_file_name","FileUrl":"test_file_url","OpenId":"test_open_id","TimeStamp":"0000-00-00 00:00:00","Data":[{"Type":1,"Word":"xx"}]}
|
755
|
-
# Type表示过滤类型,1:色情,2:谩骂
|
756
|
-
|
757
|
-
# @param request: Request instance for VoiceFilter.
|
758
|
-
# @type request: :class:`Tencentcloud::gme::V20180711::VoiceFilterRequest`
|
759
|
-
# @rtype: :class:`Tencentcloud::gme::V20180711::VoiceFilterResponse`
|
760
|
-
def VoiceFilter(request)
|
761
|
-
body = send_request('VoiceFilter', request.serialize)
|
762
|
-
response = JSON.parse(body)
|
763
|
-
if response['Response'].key?('Error') == false
|
764
|
-
model = VoiceFilterResponse.new
|
765
|
-
model.deserialize(response['Response'])
|
766
|
-
model
|
767
|
-
else
|
768
|
-
code = response['Response']['Error']['Code']
|
769
|
-
message = response['Response']['Error']['Message']
|
770
|
-
reqid = response['Response']['RequestId']
|
771
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
772
|
-
end
|
773
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
774
|
-
raise e
|
775
|
-
rescue StandardError => e
|
776
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
777
|
-
end
|
778
|
-
|
779
705
|
|
780
706
|
end
|
781
707
|
end
|
data/lib/v20180711/models.rb
CHANGED
@@ -781,115 +781,6 @@ module TencentCloud
|
|
781
781
|
end
|
782
782
|
end
|
783
783
|
|
784
|
-
# DescribeFilterResultList请求参数结构体
|
785
|
-
class DescribeFilterResultListRequest < TencentCloud::Common::AbstractModel
|
786
|
-
# @param BizId: 应用ID
|
787
|
-
# @type BizId: Integer
|
788
|
-
# @param StartDate: 开始时间,格式为 年-月-日,如: 2018-07-11
|
789
|
-
# @type StartDate: String
|
790
|
-
# @param EndDate: 结束时间,格式为 年-月-日,如: 2018-07-11
|
791
|
-
# @type EndDate: String
|
792
|
-
# @param Offset: 偏移量,默认值为0。
|
793
|
-
# @type Offset: Integer
|
794
|
-
# @param Limit: 返回数量,默认值为10,最大值为100。
|
795
|
-
# @type Limit: Integer
|
796
|
-
|
797
|
-
attr_accessor :BizId, :StartDate, :EndDate, :Offset, :Limit
|
798
|
-
|
799
|
-
def initialize(bizid=nil, startdate=nil, enddate=nil, offset=nil, limit=nil)
|
800
|
-
@BizId = bizid
|
801
|
-
@StartDate = startdate
|
802
|
-
@EndDate = enddate
|
803
|
-
@Offset = offset
|
804
|
-
@Limit = limit
|
805
|
-
end
|
806
|
-
|
807
|
-
def deserialize(params)
|
808
|
-
@BizId = params['BizId']
|
809
|
-
@StartDate = params['StartDate']
|
810
|
-
@EndDate = params['EndDate']
|
811
|
-
@Offset = params['Offset']
|
812
|
-
@Limit = params['Limit']
|
813
|
-
end
|
814
|
-
end
|
815
|
-
|
816
|
-
# DescribeFilterResultList返回参数结构体
|
817
|
-
class DescribeFilterResultListResponse < TencentCloud::Common::AbstractModel
|
818
|
-
# @param TotalCount: 过滤结果总数
|
819
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
820
|
-
# @type TotalCount: Integer
|
821
|
-
# @param Data: 当前分页过滤结果列表
|
822
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
823
|
-
# @type Data: Array
|
824
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
825
|
-
# @type RequestId: String
|
826
|
-
|
827
|
-
attr_accessor :TotalCount, :Data, :RequestId
|
828
|
-
|
829
|
-
def initialize(totalcount=nil, data=nil, requestid=nil)
|
830
|
-
@TotalCount = totalcount
|
831
|
-
@Data = data
|
832
|
-
@RequestId = requestid
|
833
|
-
end
|
834
|
-
|
835
|
-
def deserialize(params)
|
836
|
-
@TotalCount = params['TotalCount']
|
837
|
-
unless params['Data'].nil?
|
838
|
-
@Data = []
|
839
|
-
params['Data'].each do |i|
|
840
|
-
voicefilterinfo_tmp = VoiceFilterInfo.new
|
841
|
-
voicefilterinfo_tmp.deserialize(i)
|
842
|
-
@Data << voicefilterinfo_tmp
|
843
|
-
end
|
844
|
-
end
|
845
|
-
@RequestId = params['RequestId']
|
846
|
-
end
|
847
|
-
end
|
848
|
-
|
849
|
-
# DescribeFilterResult请求参数结构体
|
850
|
-
class DescribeFilterResultRequest < TencentCloud::Common::AbstractModel
|
851
|
-
# @param BizId: 应用ID
|
852
|
-
# @type BizId: Integer
|
853
|
-
# @param FileId: 文件ID
|
854
|
-
# @type FileId: String
|
855
|
-
|
856
|
-
attr_accessor :BizId, :FileId
|
857
|
-
|
858
|
-
def initialize(bizid=nil, fileid=nil)
|
859
|
-
@BizId = bizid
|
860
|
-
@FileId = fileid
|
861
|
-
end
|
862
|
-
|
863
|
-
def deserialize(params)
|
864
|
-
@BizId = params['BizId']
|
865
|
-
@FileId = params['FileId']
|
866
|
-
end
|
867
|
-
end
|
868
|
-
|
869
|
-
# DescribeFilterResult返回参数结构体
|
870
|
-
class DescribeFilterResultResponse < TencentCloud::Common::AbstractModel
|
871
|
-
# @param Data: 过滤结果
|
872
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
873
|
-
# @type Data: :class:`Tencentcloud::Gme.v20180711.models.VoiceFilterInfo`
|
874
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
875
|
-
# @type RequestId: String
|
876
|
-
|
877
|
-
attr_accessor :Data, :RequestId
|
878
|
-
|
879
|
-
def initialize(data=nil, requestid=nil)
|
880
|
-
@Data = data
|
881
|
-
@RequestId = requestid
|
882
|
-
end
|
883
|
-
|
884
|
-
def deserialize(params)
|
885
|
-
unless params['Data'].nil?
|
886
|
-
@Data = VoiceFilterInfo.new
|
887
|
-
@Data.deserialize(params['Data'])
|
888
|
-
end
|
889
|
-
@RequestId = params['RequestId']
|
890
|
-
end
|
891
|
-
end
|
892
|
-
|
893
784
|
# DescribeRealtimeScanConfig请求参数结构体
|
894
785
|
class DescribeRealtimeScanConfigRequest < TencentCloud::Common::AbstractModel
|
895
786
|
# @param BizId: 应用ID
|
@@ -1973,28 +1864,6 @@ module TencentCloud
|
|
1973
1864
|
end
|
1974
1865
|
end
|
1975
1866
|
|
1976
|
-
# 过滤结果
|
1977
|
-
class VoiceFilter < TencentCloud::Common::AbstractModel
|
1978
|
-
# @param Type: 过滤类型,1:色情,2:涉毒,3:谩骂
|
1979
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
1980
|
-
# @type Type: Integer
|
1981
|
-
# @param Word: 过滤命中关键词
|
1982
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
1983
|
-
# @type Word: String
|
1984
|
-
|
1985
|
-
attr_accessor :Type, :Word
|
1986
|
-
|
1987
|
-
def initialize(type=nil, word=nil)
|
1988
|
-
@Type = type
|
1989
|
-
@Word = word
|
1990
|
-
end
|
1991
|
-
|
1992
|
-
def deserialize(params)
|
1993
|
-
@Type = params['Type']
|
1994
|
-
@Word = params['Word']
|
1995
|
-
end
|
1996
|
-
end
|
1997
|
-
|
1998
1867
|
# 语音过滤服务配置数据
|
1999
1868
|
class VoiceFilterConf < TencentCloud::Common::AbstractModel
|
2000
1869
|
# @param Status: 语音过滤服务开关,取值:open/close
|
@@ -2011,107 +1880,6 @@ module TencentCloud
|
|
2011
1880
|
end
|
2012
1881
|
end
|
2013
1882
|
|
2014
|
-
# 语音文件过滤详情
|
2015
|
-
class VoiceFilterInfo < TencentCloud::Common::AbstractModel
|
2016
|
-
# @param BizId: 应用ID
|
2017
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
2018
|
-
# @type BizId: Integer
|
2019
|
-
# @param FileId: 文件ID,表示文件唯一ID
|
2020
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
2021
|
-
# @type FileId: String
|
2022
|
-
# @param FileName: 文件名
|
2023
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
2024
|
-
# @type FileName: String
|
2025
|
-
# @param OpenId: 用户ID
|
2026
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
2027
|
-
# @type OpenId: String
|
2028
|
-
# @param Timestamp: 数据创建时间
|
2029
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
2030
|
-
# @type Timestamp: String
|
2031
|
-
# @param Data: 过滤结果列表
|
2032
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
2033
|
-
# @type Data: Array
|
2034
|
-
|
2035
|
-
attr_accessor :BizId, :FileId, :FileName, :OpenId, :Timestamp, :Data
|
2036
|
-
|
2037
|
-
def initialize(bizid=nil, fileid=nil, filename=nil, openid=nil, timestamp=nil, data=nil)
|
2038
|
-
@BizId = bizid
|
2039
|
-
@FileId = fileid
|
2040
|
-
@FileName = filename
|
2041
|
-
@OpenId = openid
|
2042
|
-
@Timestamp = timestamp
|
2043
|
-
@Data = data
|
2044
|
-
end
|
2045
|
-
|
2046
|
-
def deserialize(params)
|
2047
|
-
@BizId = params['BizId']
|
2048
|
-
@FileId = params['FileId']
|
2049
|
-
@FileName = params['FileName']
|
2050
|
-
@OpenId = params['OpenId']
|
2051
|
-
@Timestamp = params['Timestamp']
|
2052
|
-
unless params['Data'].nil?
|
2053
|
-
@Data = []
|
2054
|
-
params['Data'].each do |i|
|
2055
|
-
voicefilter_tmp = VoiceFilter.new
|
2056
|
-
voicefilter_tmp.deserialize(i)
|
2057
|
-
@Data << voicefilter_tmp
|
2058
|
-
end
|
2059
|
-
end
|
2060
|
-
end
|
2061
|
-
end
|
2062
|
-
|
2063
|
-
# VoiceFilter请求参数结构体
|
2064
|
-
class VoiceFilterRequest < TencentCloud::Common::AbstractModel
|
2065
|
-
# @param BizId: 应用ID,登录[控制台](https://console.cloud.tencent.com/gamegme)创建应用得到的AppID
|
2066
|
-
# @type BizId: Integer
|
2067
|
-
# @param FileId: 文件ID,表示文件唯一ID
|
2068
|
-
# @type FileId: String
|
2069
|
-
# @param FileName: 文件名
|
2070
|
-
# @type FileName: String
|
2071
|
-
# @param FileUrl: 文件url,urlencode编码,FileUrl和FileContent二选一
|
2072
|
-
# @type FileUrl: String
|
2073
|
-
# @param FileContent: 文件内容,base64编码,FileUrl和FileContent二选一
|
2074
|
-
# @type FileContent: String
|
2075
|
-
# @param OpenId: 用户ID
|
2076
|
-
# @type OpenId: String
|
2077
|
-
|
2078
|
-
attr_accessor :BizId, :FileId, :FileName, :FileUrl, :FileContent, :OpenId
|
2079
|
-
|
2080
|
-
def initialize(bizid=nil, fileid=nil, filename=nil, fileurl=nil, filecontent=nil, openid=nil)
|
2081
|
-
@BizId = bizid
|
2082
|
-
@FileId = fileid
|
2083
|
-
@FileName = filename
|
2084
|
-
@FileUrl = fileurl
|
2085
|
-
@FileContent = filecontent
|
2086
|
-
@OpenId = openid
|
2087
|
-
end
|
2088
|
-
|
2089
|
-
def deserialize(params)
|
2090
|
-
@BizId = params['BizId']
|
2091
|
-
@FileId = params['FileId']
|
2092
|
-
@FileName = params['FileName']
|
2093
|
-
@FileUrl = params['FileUrl']
|
2094
|
-
@FileContent = params['FileContent']
|
2095
|
-
@OpenId = params['OpenId']
|
2096
|
-
end
|
2097
|
-
end
|
2098
|
-
|
2099
|
-
# VoiceFilter返回参数结构体
|
2100
|
-
class VoiceFilterResponse < TencentCloud::Common::AbstractModel
|
2101
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2102
|
-
# @type RequestId: String
|
2103
|
-
|
2104
|
-
attr_accessor :RequestId
|
2105
|
-
|
2106
|
-
def initialize(requestid=nil)
|
2107
|
-
@RequestId = requestid
|
2108
|
-
end
|
2109
|
-
|
2110
|
-
def deserialize(params)
|
2111
|
-
@RequestId = params['RequestId']
|
2112
|
-
end
|
2113
|
-
end
|
2114
|
-
|
2115
1883
|
# 语音过滤用量统计数据
|
2116
1884
|
class VoiceFilterStatisticsItem < TencentCloud::Common::AbstractModel
|
2117
1885
|
# @param Duration: 语音过滤总时长
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-gme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.390
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|