tencentcloud-sdk-vod 3.0.405 → 3.0.406
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180717/client.rb +26 -0
- data/lib/v20180717/models.rb +82 -2
- 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: b534a86fc1422c3032b6041bbb43e5239601a609
|
4
|
+
data.tar.gz: 0492a3f588823cd20af687f09ce0d1e8a6670c39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33de2f0fb7d3c563aa774b7a828ef14d8fe0fd26477b4db888c2fe3bc652b6981d03f425079f7f28c1d3f78a8d56a10a1935914037e5be19013a6c71aa34a1a8
|
7
|
+
data.tar.gz: 64d23b45f539ceefe7a29cc229c9eaf52c1501049d0c883aa3d66f45e94d1d4e74023729601f6bffc014159f225ca2efb529752f4480bdf74feece118d2c308f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.406
|
data/lib/v20180717/client.rb
CHANGED
@@ -3250,6 +3250,32 @@ module TencentCloud
|
|
3250
3250
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3251
3251
|
end
|
3252
3252
|
|
3253
|
+
# 对点播中的音视频媒体发起审核任务,智能检测视频画面、画面中的文字、语音中的文字出现的违规内容。
|
3254
|
+
|
3255
|
+
# 如使用事件通知,事件通知的类型为 [任务流状态变更](https://cloud.tencent.com/document/product/266/9636)。
|
3256
|
+
|
3257
|
+
# @param request: Request instance for ReviewAudioVideo.
|
3258
|
+
# @type request: :class:`Tencentcloud::vod::V20180717::ReviewAudioVideoRequest`
|
3259
|
+
# @rtype: :class:`Tencentcloud::vod::V20180717::ReviewAudioVideoResponse`
|
3260
|
+
def ReviewAudioVideo(request)
|
3261
|
+
body = send_request('ReviewAudioVideo', request.serialize)
|
3262
|
+
response = JSON.parse(body)
|
3263
|
+
if response['Response'].key?('Error') == false
|
3264
|
+
model = ReviewAudioVideoResponse.new
|
3265
|
+
model.deserialize(response['Response'])
|
3266
|
+
model
|
3267
|
+
else
|
3268
|
+
code = response['Response']['Error']['Code']
|
3269
|
+
message = response['Response']['Error']['Message']
|
3270
|
+
reqid = response['Response']['RequestId']
|
3271
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3272
|
+
end
|
3273
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3274
|
+
raise e
|
3275
|
+
rescue StandardError => e
|
3276
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3277
|
+
end
|
3278
|
+
|
3253
3279
|
# 对点播中的图片文件发起审核(令人反感的信息、不安全的信息、不适宜的信息)任务。
|
3254
3280
|
|
3255
3281
|
# ><li>图片文件大小支持:文件 < 5M;</li>
|
data/lib/v20180717/models.rb
CHANGED
@@ -17942,6 +17942,62 @@ module TencentCloud
|
|
17942
17942
|
end
|
17943
17943
|
end
|
17944
17944
|
|
17945
|
+
# ReviewAudioVideo请求参数结构体
|
17946
|
+
class ReviewAudioVideoRequest < TencentCloud::Common::AbstractModel
|
17947
|
+
# @param FileId: 媒体文件 ID,即该文件在云点播上的全局唯一标识符,在上传成功后由云点播后台分配。可以在 [视频上传完成事件通知](/document/product/266/7830) 或 [云点播控制台](https://console.cloud.tencent.com/vod/media) 获取该字段。
|
17948
|
+
# @type FileId: String
|
17949
|
+
# @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
|
17950
|
+
# @type SubAppId: Integer
|
17951
|
+
# @param TasksPriority: 任务流的优先级,数值越大优先级越高,取值范围是 -10 到 10,不填代表 0。
|
17952
|
+
# @type TasksPriority: Integer
|
17953
|
+
# @param SessionContext: 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。
|
17954
|
+
# @type SessionContext: String
|
17955
|
+
# @param SessionId: 用于去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。
|
17956
|
+
# @type SessionId: String
|
17957
|
+
# @param ExtInfo: 保留字段,特殊用途时使用。
|
17958
|
+
# @type ExtInfo: String
|
17959
|
+
|
17960
|
+
attr_accessor :FileId, :SubAppId, :TasksPriority, :SessionContext, :SessionId, :ExtInfo
|
17961
|
+
|
17962
|
+
def initialize(fileid=nil, subappid=nil, taskspriority=nil, sessioncontext=nil, sessionid=nil, extinfo=nil)
|
17963
|
+
@FileId = fileid
|
17964
|
+
@SubAppId = subappid
|
17965
|
+
@TasksPriority = taskspriority
|
17966
|
+
@SessionContext = sessioncontext
|
17967
|
+
@SessionId = sessionid
|
17968
|
+
@ExtInfo = extinfo
|
17969
|
+
end
|
17970
|
+
|
17971
|
+
def deserialize(params)
|
17972
|
+
@FileId = params['FileId']
|
17973
|
+
@SubAppId = params['SubAppId']
|
17974
|
+
@TasksPriority = params['TasksPriority']
|
17975
|
+
@SessionContext = params['SessionContext']
|
17976
|
+
@SessionId = params['SessionId']
|
17977
|
+
@ExtInfo = params['ExtInfo']
|
17978
|
+
end
|
17979
|
+
end
|
17980
|
+
|
17981
|
+
# ReviewAudioVideo返回参数结构体
|
17982
|
+
class ReviewAudioVideoResponse < TencentCloud::Common::AbstractModel
|
17983
|
+
# @param TaskId: 任务 ID
|
17984
|
+
# @type TaskId: String
|
17985
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
17986
|
+
# @type RequestId: String
|
17987
|
+
|
17988
|
+
attr_accessor :TaskId, :RequestId
|
17989
|
+
|
17990
|
+
def initialize(taskid=nil, requestid=nil)
|
17991
|
+
@TaskId = taskid
|
17992
|
+
@RequestId = requestid
|
17993
|
+
end
|
17994
|
+
|
17995
|
+
def deserialize(params)
|
17996
|
+
@TaskId = params['TaskId']
|
17997
|
+
@RequestId = params['RequestId']
|
17998
|
+
end
|
17999
|
+
end
|
18000
|
+
|
17945
18001
|
# 音视频审核片段。
|
17946
18002
|
class ReviewAudioVideoSegmentItem < TencentCloud::Common::AbstractModel
|
17947
18003
|
# @param StartTimeOffset: 嫌疑片段起始的偏移时间,单位:秒。
|
@@ -18038,6 +18094,9 @@ module TencentCloud
|
|
18038
18094
|
# @type ErrCodeExt: String
|
18039
18095
|
# @param Message: 错误信息。
|
18040
18096
|
# @type Message: String
|
18097
|
+
# @param Input: 音视频审核任务的输入。
|
18098
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
18099
|
+
# @type Input: :class:`Tencentcloud::Vod.v20180717.models.ReviewAudioVideoTaskInput`
|
18041
18100
|
# @param Output: 音视频审核任务的输出。
|
18042
18101
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
18043
18102
|
# @type Output: :class:`Tencentcloud::Vod.v20180717.models.ReviewAudioVideoTaskOutput`
|
@@ -18046,13 +18105,14 @@ module TencentCloud
|
|
18046
18105
|
# @param SessionContext: 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。
|
18047
18106
|
# @type SessionContext: String
|
18048
18107
|
|
18049
|
-
attr_accessor :TaskId, :Status, :ErrCodeExt, :Message, :Output, :SessionId, :SessionContext
|
18108
|
+
attr_accessor :TaskId, :Status, :ErrCodeExt, :Message, :Input, :Output, :SessionId, :SessionContext
|
18050
18109
|
|
18051
|
-
def initialize(taskid=nil, status=nil, errcodeext=nil, message=nil, output=nil, sessionid=nil, sessioncontext=nil)
|
18110
|
+
def initialize(taskid=nil, status=nil, errcodeext=nil, message=nil, input=nil, output=nil, sessionid=nil, sessioncontext=nil)
|
18052
18111
|
@TaskId = taskid
|
18053
18112
|
@Status = status
|
18054
18113
|
@ErrCodeExt = errcodeext
|
18055
18114
|
@Message = message
|
18115
|
+
@Input = input
|
18056
18116
|
@Output = output
|
18057
18117
|
@SessionId = sessionid
|
18058
18118
|
@SessionContext = sessioncontext
|
@@ -18063,6 +18123,10 @@ module TencentCloud
|
|
18063
18123
|
@Status = params['Status']
|
18064
18124
|
@ErrCodeExt = params['ErrCodeExt']
|
18065
18125
|
@Message = params['Message']
|
18126
|
+
unless params['Input'].nil?
|
18127
|
+
@Input = ReviewAudioVideoTaskInput.new
|
18128
|
+
@Input.deserialize(params['Input'])
|
18129
|
+
end
|
18066
18130
|
unless params['Output'].nil?
|
18067
18131
|
@Output = ReviewAudioVideoTaskOutput.new
|
18068
18132
|
@Output.deserialize(params['Output'])
|
@@ -18072,6 +18136,22 @@ module TencentCloud
|
|
18072
18136
|
end
|
18073
18137
|
end
|
18074
18138
|
|
18139
|
+
# 音视频审核任务的输入。
|
18140
|
+
class ReviewAudioVideoTaskInput < TencentCloud::Common::AbstractModel
|
18141
|
+
# @param FileId: 媒体文件 ID。
|
18142
|
+
# @type FileId: String
|
18143
|
+
|
18144
|
+
attr_accessor :FileId
|
18145
|
+
|
18146
|
+
def initialize(fileid=nil)
|
18147
|
+
@FileId = fileid
|
18148
|
+
end
|
18149
|
+
|
18150
|
+
def deserialize(params)
|
18151
|
+
@FileId = params['FileId']
|
18152
|
+
end
|
18153
|
+
end
|
18154
|
+
|
18075
18155
|
# 音视频审核任务的输出。
|
18076
18156
|
class ReviewAudioVideoTaskOutput < TencentCloud::Common::AbstractModel
|
18077
18157
|
# @param Suggestion: 音视频内容审核的结果建议,取值范围:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-vod
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.406
|
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-09-
|
11
|
+
date: 2022-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|