tencentcloud-sdk-vm 1.0.200
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 +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-vm.rb +14 -0
- data/lib/v20200709/client.rb +160 -0
- data/lib/v20200709/models.rb +1331 -0
- data/lib/v20201229/client.rb +175 -0
- data/lib/v20201229/models.rb +1109 -0
- metadata +68 -0
@@ -0,0 +1,1331 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
module TencentCloud
|
18
|
+
module Vm
|
19
|
+
module V20200709
|
20
|
+
# 音频输出参数
|
21
|
+
class AudioResult < TencentCloud::Common::AbstractModel
|
22
|
+
# @param HitFlag: 是否命中
|
23
|
+
# 0 未命中
|
24
|
+
# 1 命中
|
25
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
26
|
+
# @type HitFlag: Integer
|
27
|
+
# @param Label: 命中的标签
|
28
|
+
# Porn 色情
|
29
|
+
# Polity 政治
|
30
|
+
# Illegal 违法
|
31
|
+
# Abuse 谩骂
|
32
|
+
# Terror 暴恐
|
33
|
+
# Ad 广告
|
34
|
+
# Moan 呻吟
|
35
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
36
|
+
# @type Label: String
|
37
|
+
# @param Suggestion: 审核建议,可选值:
|
38
|
+
# Pass 通过,
|
39
|
+
# Review 建议人审,
|
40
|
+
# Block 确认违规
|
41
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
42
|
+
# @type Suggestion: String
|
43
|
+
# @param Score: 得分,0-100
|
44
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
45
|
+
# @type Score: Integer
|
46
|
+
# @param Text: 音频ASR文本
|
47
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
48
|
+
# @type Text: String
|
49
|
+
# @param Url: 音频片段存储URL,有效期为1天
|
50
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
51
|
+
# @type Url: String
|
52
|
+
# @param Duration: 音频时长
|
53
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
54
|
+
# @type Duration: String
|
55
|
+
# @param Extra: 拓展字段
|
56
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
57
|
+
# @type Extra: String
|
58
|
+
# @param TextResults: 文本审核结果
|
59
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
60
|
+
# @type TextResults: Array
|
61
|
+
# @param MoanResults: 音频呻吟审核结果
|
62
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
63
|
+
# @type MoanResults: Array
|
64
|
+
# @param LanguageResults: 音频语种检测结果
|
65
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
66
|
+
# @type LanguageResults: Array
|
67
|
+
|
68
|
+
attr_accessor :HitFlag, :Label, :Suggestion, :Score, :Text, :Url, :Duration, :Extra, :TextResults, :MoanResults, :LanguageResults
|
69
|
+
|
70
|
+
def initialize(hitflag=nil, label=nil, suggestion=nil, score=nil, text=nil, url=nil, duration=nil, extra=nil, textresults=nil, moanresults=nil, languageresults=nil)
|
71
|
+
@HitFlag = hitflag
|
72
|
+
@Label = label
|
73
|
+
@Suggestion = suggestion
|
74
|
+
@Score = score
|
75
|
+
@Text = text
|
76
|
+
@Url = url
|
77
|
+
@Duration = duration
|
78
|
+
@Extra = extra
|
79
|
+
@TextResults = textresults
|
80
|
+
@MoanResults = moanresults
|
81
|
+
@LanguageResults = languageresults
|
82
|
+
end
|
83
|
+
|
84
|
+
def deserialize(params)
|
85
|
+
@HitFlag = params['HitFlag']
|
86
|
+
@Label = params['Label']
|
87
|
+
@Suggestion = params['Suggestion']
|
88
|
+
@Score = params['Score']
|
89
|
+
@Text = params['Text']
|
90
|
+
@Url = params['Url']
|
91
|
+
@Duration = params['Duration']
|
92
|
+
@Extra = params['Extra']
|
93
|
+
unless params['TextResults'].nil?
|
94
|
+
@TextResults = []
|
95
|
+
params['TextResults'].each do |i|
|
96
|
+
audioresultdetailtextresult_tmp = AudioResultDetailTextResult.new
|
97
|
+
audioresultdetailtextresult_tmp.deserialize(i)
|
98
|
+
@TextResults << audioresultdetailtextresult_tmp
|
99
|
+
end
|
100
|
+
end
|
101
|
+
unless params['MoanResults'].nil?
|
102
|
+
@MoanResults = []
|
103
|
+
params['MoanResults'].each do |i|
|
104
|
+
audioresultdetailmoanresult_tmp = AudioResultDetailMoanResult.new
|
105
|
+
audioresultdetailmoanresult_tmp.deserialize(i)
|
106
|
+
@MoanResults << audioresultdetailmoanresult_tmp
|
107
|
+
end
|
108
|
+
end
|
109
|
+
unless params['LanguageResults'].nil?
|
110
|
+
@LanguageResults = []
|
111
|
+
params['LanguageResults'].each do |i|
|
112
|
+
audioresultdetaillanguageresult_tmp = AudioResultDetailLanguageResult.new
|
113
|
+
audioresultdetaillanguageresult_tmp.deserialize(i)
|
114
|
+
@LanguageResults << audioresultdetaillanguageresult_tmp
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
# 音频小语种检测结果
|
121
|
+
class AudioResultDetailLanguageResult < TencentCloud::Common::AbstractModel
|
122
|
+
# @param Label: 语种
|
123
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
124
|
+
# @type Label: String
|
125
|
+
# @param Score: 得分
|
126
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
127
|
+
# @type Score: Integer
|
128
|
+
# @param StartTime: 开始时间
|
129
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
130
|
+
# @type StartTime: Float
|
131
|
+
# @param EndTime: 结束时间
|
132
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
133
|
+
# @type EndTime: Float
|
134
|
+
# @param SubLabelCode: 子标签码
|
135
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
136
|
+
# @type SubLabelCode: String
|
137
|
+
|
138
|
+
attr_accessor :Label, :Score, :StartTime, :EndTime, :SubLabelCode
|
139
|
+
|
140
|
+
def initialize(label=nil, score=nil, starttime=nil, endtime=nil, sublabelcode=nil)
|
141
|
+
@Label = label
|
142
|
+
@Score = score
|
143
|
+
@StartTime = starttime
|
144
|
+
@EndTime = endtime
|
145
|
+
@SubLabelCode = sublabelcode
|
146
|
+
end
|
147
|
+
|
148
|
+
def deserialize(params)
|
149
|
+
@Label = params['Label']
|
150
|
+
@Score = params['Score']
|
151
|
+
@StartTime = params['StartTime']
|
152
|
+
@EndTime = params['EndTime']
|
153
|
+
@SubLabelCode = params['SubLabelCode']
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
# 音频呻吟审核结果
|
158
|
+
class AudioResultDetailMoanResult < TencentCloud::Common::AbstractModel
|
159
|
+
# @param Label: 固定为Moan
|
160
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
161
|
+
# @type Label: String
|
162
|
+
# @param Score: 分数
|
163
|
+
# @type Score: Integer
|
164
|
+
# @param StartTime: 开始时间
|
165
|
+
# @type StartTime: Float
|
166
|
+
# @param EndTime: 结束时间
|
167
|
+
# @type EndTime: Float
|
168
|
+
# @param SubLabelCode: 子标签码
|
169
|
+
# @type SubLabelCode: String
|
170
|
+
|
171
|
+
attr_accessor :Label, :Score, :StartTime, :EndTime, :SubLabelCode
|
172
|
+
|
173
|
+
def initialize(label=nil, score=nil, starttime=nil, endtime=nil, sublabelcode=nil)
|
174
|
+
@Label = label
|
175
|
+
@Score = score
|
176
|
+
@StartTime = starttime
|
177
|
+
@EndTime = endtime
|
178
|
+
@SubLabelCode = sublabelcode
|
179
|
+
end
|
180
|
+
|
181
|
+
def deserialize(params)
|
182
|
+
@Label = params['Label']
|
183
|
+
@Score = params['Score']
|
184
|
+
@StartTime = params['StartTime']
|
185
|
+
@EndTime = params['EndTime']
|
186
|
+
@SubLabelCode = params['SubLabelCode']
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
# 音频ASR文本审核结果
|
191
|
+
class AudioResultDetailTextResult < TencentCloud::Common::AbstractModel
|
192
|
+
# @param Label: 标签
|
193
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
194
|
+
# @type Label: String
|
195
|
+
# @param Keywords: 命中的关键词
|
196
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
197
|
+
# @type Keywords: Array
|
198
|
+
# @param LibId: 命中的LibId
|
199
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
200
|
+
# @type LibId: String
|
201
|
+
# @param LibName: 命中的LibName
|
202
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
203
|
+
# @type LibName: String
|
204
|
+
# @param Score: 得分
|
205
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
206
|
+
# @type Score: Integer
|
207
|
+
# @param LibType: 词库类型 1 黑白库 2 自定义库
|
208
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
209
|
+
# @type LibType: Integer
|
210
|
+
# @param Suggestion: 审核建议
|
211
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
212
|
+
# @type Suggestion: String
|
213
|
+
|
214
|
+
attr_accessor :Label, :Keywords, :LibId, :LibName, :Score, :LibType, :Suggestion
|
215
|
+
|
216
|
+
def initialize(label=nil, keywords=nil, libid=nil, libname=nil, score=nil, libtype=nil, suggestion=nil)
|
217
|
+
@Label = label
|
218
|
+
@Keywords = keywords
|
219
|
+
@LibId = libid
|
220
|
+
@LibName = libname
|
221
|
+
@Score = score
|
222
|
+
@LibType = libtype
|
223
|
+
@Suggestion = suggestion
|
224
|
+
end
|
225
|
+
|
226
|
+
def deserialize(params)
|
227
|
+
@Label = params['Label']
|
228
|
+
@Keywords = params['Keywords']
|
229
|
+
@LibId = params['LibId']
|
230
|
+
@LibName = params['LibName']
|
231
|
+
@Score = params['Score']
|
232
|
+
@LibType = params['LibType']
|
233
|
+
@Suggestion = params['Suggestion']
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
# 声音段信息
|
238
|
+
class AudioSegments < TencentCloud::Common::AbstractModel
|
239
|
+
# @param OffsetTime: 截帧时间。
|
240
|
+
# 点播文件:该值为相对于视频偏移时间,单位为秒,例如:0,5,10
|
241
|
+
# 直播流:该值为时间戳,例如:1594650717
|
242
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
243
|
+
# @type OffsetTime: String
|
244
|
+
# @param Result: 结果集
|
245
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
246
|
+
# @type Result: :class:`Tencentcloud::Vm.v20200709.models.AudioResult`
|
247
|
+
|
248
|
+
attr_accessor :OffsetTime, :Result
|
249
|
+
|
250
|
+
def initialize(offsettime=nil, result=nil)
|
251
|
+
@OffsetTime = offsettime
|
252
|
+
@Result = result
|
253
|
+
end
|
254
|
+
|
255
|
+
def deserialize(params)
|
256
|
+
@OffsetTime = params['OffsetTime']
|
257
|
+
unless params['Result'].nil?
|
258
|
+
@Result = AudioResult.new
|
259
|
+
@Result.deserialize(params['Result'])
|
260
|
+
end
|
261
|
+
end
|
262
|
+
end
|
263
|
+
|
264
|
+
# 文件桶信息
|
265
|
+
# 参考腾讯云存储相关说明 https://cloud.tencent.com/document/product/436/44352
|
266
|
+
class BucketInfo < TencentCloud::Common::AbstractModel
|
267
|
+
# @param Bucket: 腾讯云对象存储,存储桶名称
|
268
|
+
# @type Bucket: String
|
269
|
+
# @param Region: 地域
|
270
|
+
# @type Region: String
|
271
|
+
# @param Object: 对象Key
|
272
|
+
# @type Object: String
|
273
|
+
|
274
|
+
attr_accessor :Bucket, :Region, :Object
|
275
|
+
|
276
|
+
def initialize(bucket=nil, region=nil, object=nil)
|
277
|
+
@Bucket = bucket
|
278
|
+
@Region = region
|
279
|
+
@Object = object
|
280
|
+
end
|
281
|
+
|
282
|
+
def deserialize(params)
|
283
|
+
@Bucket = params['Bucket']
|
284
|
+
@Region = params['Region']
|
285
|
+
@Object = params['Object']
|
286
|
+
end
|
287
|
+
end
|
288
|
+
|
289
|
+
# CancelTask请求参数结构体
|
290
|
+
class CancelTaskRequest < TencentCloud::Common::AbstractModel
|
291
|
+
# @param TaskId: 任务ID
|
292
|
+
# @type TaskId: String
|
293
|
+
|
294
|
+
attr_accessor :TaskId
|
295
|
+
|
296
|
+
def initialize(taskid=nil)
|
297
|
+
@TaskId = taskid
|
298
|
+
end
|
299
|
+
|
300
|
+
def deserialize(params)
|
301
|
+
@TaskId = params['TaskId']
|
302
|
+
end
|
303
|
+
end
|
304
|
+
|
305
|
+
# CancelTask返回参数结构体
|
306
|
+
class CancelTaskResponse < TencentCloud::Common::AbstractModel
|
307
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
308
|
+
# @type RequestId: String
|
309
|
+
|
310
|
+
attr_accessor :RequestId
|
311
|
+
|
312
|
+
def initialize(requestid=nil)
|
313
|
+
@RequestId = requestid
|
314
|
+
end
|
315
|
+
|
316
|
+
def deserialize(params)
|
317
|
+
@RequestId = params['RequestId']
|
318
|
+
end
|
319
|
+
end
|
320
|
+
|
321
|
+
# CreateBizConfig请求参数结构体
|
322
|
+
class CreateBizConfigRequest < TencentCloud::Common::AbstractModel
|
323
|
+
# @param BizType: 业务ID,仅限英文字母、数字和下划线(_)组成,长度不超过8位
|
324
|
+
# @type BizType: String
|
325
|
+
# @param MediaModeration: 审核分类信息
|
326
|
+
# @type MediaModeration: :class:`Tencentcloud::Vm.v20200709.models.MediaModerationConfig`
|
327
|
+
# @param BizName: 业务名称,用于标识业务场景,长度不超过32位
|
328
|
+
# @type BizName: String
|
329
|
+
# @param ModerationCategories: 审核内容,可选:Polity (政治); Porn (色情); Illegal(违法);Abuse (谩骂); Terror (暴恐); Ad (广告); Custom (自定义);
|
330
|
+
# @type ModerationCategories: Array
|
331
|
+
|
332
|
+
attr_accessor :BizType, :MediaModeration, :BizName, :ModerationCategories
|
333
|
+
|
334
|
+
def initialize(biztype=nil, mediamoderation=nil, bizname=nil, moderationcategories=nil)
|
335
|
+
@BizType = biztype
|
336
|
+
@MediaModeration = mediamoderation
|
337
|
+
@BizName = bizname
|
338
|
+
@ModerationCategories = moderationcategories
|
339
|
+
end
|
340
|
+
|
341
|
+
def deserialize(params)
|
342
|
+
@BizType = params['BizType']
|
343
|
+
unless params['MediaModeration'].nil?
|
344
|
+
@MediaModeration = MediaModerationConfig.new
|
345
|
+
@MediaModeration.deserialize(params['MediaModeration'])
|
346
|
+
end
|
347
|
+
@BizName = params['BizName']
|
348
|
+
@ModerationCategories = params['ModerationCategories']
|
349
|
+
end
|
350
|
+
end
|
351
|
+
|
352
|
+
# CreateBizConfig返回参数结构体
|
353
|
+
class CreateBizConfigResponse < TencentCloud::Common::AbstractModel
|
354
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
355
|
+
# @type RequestId: String
|
356
|
+
|
357
|
+
attr_accessor :RequestId
|
358
|
+
|
359
|
+
def initialize(requestid=nil)
|
360
|
+
@RequestId = requestid
|
361
|
+
end
|
362
|
+
|
363
|
+
def deserialize(params)
|
364
|
+
@RequestId = params['RequestId']
|
365
|
+
end
|
366
|
+
end
|
367
|
+
|
368
|
+
# CreateVideoModerationTask请求参数结构体
|
369
|
+
class CreateVideoModerationTaskRequest < TencentCloud::Common::AbstractModel
|
370
|
+
# @param BizType: 业务类型, 定义 模版策略,输出存储配置。如果没有BizType,可以先参考 【创建业务配置】接口进行创建
|
371
|
+
# @type BizType: String
|
372
|
+
# @param Type: 任务类型:可选VIDEO(点播视频),LIVE_VIDEO(直播视频)
|
373
|
+
# @type Type: String
|
374
|
+
# @param Tasks: 输入的任务信息,最多可以同时创建10个任务
|
375
|
+
# @type Tasks: Array
|
376
|
+
# @param Seed: 回调签名key,具体可以查看签名文档。
|
377
|
+
# @type Seed: String
|
378
|
+
# @param CallbackUrl: 接收审核信息回调地址,如果设置,则审核过程中产生的违规音频片段和画面截帧发送此接口
|
379
|
+
# @type CallbackUrl: String
|
380
|
+
# @param Priority: 审核排队优先级。当您有多个视频审核任务排队时,可以根据这个参数控制排队优先级。用于处理插队等逻辑。默认该参数为0
|
381
|
+
# @type Priority: Integer
|
382
|
+
|
383
|
+
attr_accessor :BizType, :Type, :Tasks, :Seed, :CallbackUrl, :Priority
|
384
|
+
|
385
|
+
def initialize(biztype=nil, type=nil, tasks=nil, seed=nil, callbackurl=nil, priority=nil)
|
386
|
+
@BizType = biztype
|
387
|
+
@Type = type
|
388
|
+
@Tasks = tasks
|
389
|
+
@Seed = seed
|
390
|
+
@CallbackUrl = callbackurl
|
391
|
+
@Priority = priority
|
392
|
+
end
|
393
|
+
|
394
|
+
def deserialize(params)
|
395
|
+
@BizType = params['BizType']
|
396
|
+
@Type = params['Type']
|
397
|
+
unless params['Tasks'].nil?
|
398
|
+
@Tasks = []
|
399
|
+
params['Tasks'].each do |i|
|
400
|
+
taskinput_tmp = TaskInput.new
|
401
|
+
taskinput_tmp.deserialize(i)
|
402
|
+
@Tasks << taskinput_tmp
|
403
|
+
end
|
404
|
+
end
|
405
|
+
@Seed = params['Seed']
|
406
|
+
@CallbackUrl = params['CallbackUrl']
|
407
|
+
@Priority = params['Priority']
|
408
|
+
end
|
409
|
+
end
|
410
|
+
|
411
|
+
# CreateVideoModerationTask返回参数结构体
|
412
|
+
class CreateVideoModerationTaskResponse < TencentCloud::Common::AbstractModel
|
413
|
+
# @param Results: 任务创建结果
|
414
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
415
|
+
# @type Results: Array
|
416
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
417
|
+
# @type RequestId: String
|
418
|
+
|
419
|
+
attr_accessor :Results, :RequestId
|
420
|
+
|
421
|
+
def initialize(results=nil, requestid=nil)
|
422
|
+
@Results = results
|
423
|
+
@RequestId = requestid
|
424
|
+
end
|
425
|
+
|
426
|
+
def deserialize(params)
|
427
|
+
unless params['Results'].nil?
|
428
|
+
@Results = []
|
429
|
+
params['Results'].each do |i|
|
430
|
+
taskresult_tmp = TaskResult.new
|
431
|
+
taskresult_tmp.deserialize(i)
|
432
|
+
@Results << taskresult_tmp
|
433
|
+
end
|
434
|
+
end
|
435
|
+
@RequestId = params['RequestId']
|
436
|
+
end
|
437
|
+
end
|
438
|
+
|
439
|
+
# DescribeTaskDetail请求参数结构体
|
440
|
+
class DescribeTaskDetailRequest < TencentCloud::Common::AbstractModel
|
441
|
+
# @param TaskId: 任务ID,创建任务后返回的TaskId字段
|
442
|
+
# @type TaskId: String
|
443
|
+
# @param ShowAllSegments: 是否展示所有分片,默认只展示命中规则的分片
|
444
|
+
# @type ShowAllSegments: Boolean
|
445
|
+
|
446
|
+
attr_accessor :TaskId, :ShowAllSegments
|
447
|
+
|
448
|
+
def initialize(taskid=nil, showallsegments=nil)
|
449
|
+
@TaskId = taskid
|
450
|
+
@ShowAllSegments = showallsegments
|
451
|
+
end
|
452
|
+
|
453
|
+
def deserialize(params)
|
454
|
+
@TaskId = params['TaskId']
|
455
|
+
@ShowAllSegments = params['ShowAllSegments']
|
456
|
+
end
|
457
|
+
end
|
458
|
+
|
459
|
+
# DescribeTaskDetail返回参数结构体
|
460
|
+
class DescribeTaskDetailResponse < TencentCloud::Common::AbstractModel
|
461
|
+
# @param TaskId: 任务Id
|
462
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
463
|
+
# @type TaskId: String
|
464
|
+
# @param DataId: 审核时传入的数据Id
|
465
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
466
|
+
# @type DataId: String
|
467
|
+
# @param BizType: 业务类型
|
468
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
469
|
+
# @type BizType: String
|
470
|
+
# @param Name: 任务名称
|
471
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
472
|
+
# @type Name: String
|
473
|
+
# @param Status: 状态,可选值:
|
474
|
+
# FINISH 已完成
|
475
|
+
# PENDING 等待中
|
476
|
+
# RUNNING 进行中
|
477
|
+
# ERROR 出错
|
478
|
+
# CANCELLED 已取消
|
479
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
480
|
+
# @type Status: String
|
481
|
+
# @param Type: 类型
|
482
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
483
|
+
# @type Type: String
|
484
|
+
# @param Suggestion: 审核建议
|
485
|
+
# 可选:
|
486
|
+
# Pass 通过
|
487
|
+
# Reveiw 建议复审
|
488
|
+
# Block 确认违规
|
489
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
490
|
+
# @type Suggestion: String
|
491
|
+
# @param Labels: 审核结果
|
492
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
493
|
+
# @type Labels: Array
|
494
|
+
# @param MediaInfo: 媒体解码信息
|
495
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
496
|
+
# @type MediaInfo: :class:`Tencentcloud::Vm.v20200709.models.MediaInfo`
|
497
|
+
# @param InputInfo: 任务信息
|
498
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
499
|
+
# @type InputInfo: :class:`Tencentcloud::Vm.v20200709.models.InputInfo`
|
500
|
+
# @param CreatedAt: 创建时间
|
501
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
502
|
+
# @type CreatedAt: String
|
503
|
+
# @param UpdatedAt: 更新时间
|
504
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
505
|
+
# @type UpdatedAt: String
|
506
|
+
# @param TryInSeconds: 在秒后重试
|
507
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
508
|
+
# @type TryInSeconds: Integer
|
509
|
+
# @param ImageSegments: 图片结果
|
510
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
511
|
+
# @type ImageSegments: Array
|
512
|
+
# @param AudioSegments: 音频结果
|
513
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
514
|
+
# @type AudioSegments: Array
|
515
|
+
# @param ErrorType: 如果返回的状态为ERROR,该字段会标记错误类型。
|
516
|
+
# 可选值::
|
517
|
+
# DECODE_ERROR: 解码失败。(输入资源中可能包含无法解码的视频)
|
518
|
+
# URL_ERROR:下载地址验证失败。
|
519
|
+
# TIMEOUT_ERROR:处理超时。
|
520
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
521
|
+
# @type ErrorType: String
|
522
|
+
# @param ErrorDescription: 审核任务错误日志。当Error不为空时,会展示该字段
|
523
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
524
|
+
# @type ErrorDescription: String
|
525
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
526
|
+
# @type RequestId: String
|
527
|
+
|
528
|
+
attr_accessor :TaskId, :DataId, :BizType, :Name, :Status, :Type, :Suggestion, :Labels, :MediaInfo, :InputInfo, :CreatedAt, :UpdatedAt, :TryInSeconds, :ImageSegments, :AudioSegments, :ErrorType, :ErrorDescription, :RequestId
|
529
|
+
|
530
|
+
def initialize(taskid=nil, dataid=nil, biztype=nil, name=nil, status=nil, type=nil, suggestion=nil, labels=nil, mediainfo=nil, inputinfo=nil, createdat=nil, updatedat=nil, tryinseconds=nil, imagesegments=nil, audiosegments=nil, errortype=nil, errordescription=nil, requestid=nil)
|
531
|
+
@TaskId = taskid
|
532
|
+
@DataId = dataid
|
533
|
+
@BizType = biztype
|
534
|
+
@Name = name
|
535
|
+
@Status = status
|
536
|
+
@Type = type
|
537
|
+
@Suggestion = suggestion
|
538
|
+
@Labels = labels
|
539
|
+
@MediaInfo = mediainfo
|
540
|
+
@InputInfo = inputinfo
|
541
|
+
@CreatedAt = createdat
|
542
|
+
@UpdatedAt = updatedat
|
543
|
+
@TryInSeconds = tryinseconds
|
544
|
+
@ImageSegments = imagesegments
|
545
|
+
@AudioSegments = audiosegments
|
546
|
+
@ErrorType = errortype
|
547
|
+
@ErrorDescription = errordescription
|
548
|
+
@RequestId = requestid
|
549
|
+
end
|
550
|
+
|
551
|
+
def deserialize(params)
|
552
|
+
@TaskId = params['TaskId']
|
553
|
+
@DataId = params['DataId']
|
554
|
+
@BizType = params['BizType']
|
555
|
+
@Name = params['Name']
|
556
|
+
@Status = params['Status']
|
557
|
+
@Type = params['Type']
|
558
|
+
@Suggestion = params['Suggestion']
|
559
|
+
unless params['Labels'].nil?
|
560
|
+
@Labels = []
|
561
|
+
params['Labels'].each do |i|
|
562
|
+
tasklabel_tmp = TaskLabel.new
|
563
|
+
tasklabel_tmp.deserialize(i)
|
564
|
+
@Labels << tasklabel_tmp
|
565
|
+
end
|
566
|
+
end
|
567
|
+
unless params['MediaInfo'].nil?
|
568
|
+
@MediaInfo = MediaInfo.new
|
569
|
+
@MediaInfo.deserialize(params['MediaInfo'])
|
570
|
+
end
|
571
|
+
unless params['InputInfo'].nil?
|
572
|
+
@InputInfo = InputInfo.new
|
573
|
+
@InputInfo.deserialize(params['InputInfo'])
|
574
|
+
end
|
575
|
+
@CreatedAt = params['CreatedAt']
|
576
|
+
@UpdatedAt = params['UpdatedAt']
|
577
|
+
@TryInSeconds = params['TryInSeconds']
|
578
|
+
unless params['ImageSegments'].nil?
|
579
|
+
@ImageSegments = []
|
580
|
+
params['ImageSegments'].each do |i|
|
581
|
+
imagesegments_tmp = ImageSegments.new
|
582
|
+
imagesegments_tmp.deserialize(i)
|
583
|
+
@ImageSegments << imagesegments_tmp
|
584
|
+
end
|
585
|
+
end
|
586
|
+
unless params['AudioSegments'].nil?
|
587
|
+
@AudioSegments = []
|
588
|
+
params['AudioSegments'].each do |i|
|
589
|
+
audiosegments_tmp = AudioSegments.new
|
590
|
+
audiosegments_tmp.deserialize(i)
|
591
|
+
@AudioSegments << audiosegments_tmp
|
592
|
+
end
|
593
|
+
end
|
594
|
+
@ErrorType = params['ErrorType']
|
595
|
+
@ErrorDescription = params['ErrorDescription']
|
596
|
+
@RequestId = params['RequestId']
|
597
|
+
end
|
598
|
+
end
|
599
|
+
|
600
|
+
# DescribeVideoStat请求参数结构体
|
601
|
+
class DescribeVideoStatRequest < TencentCloud::Common::AbstractModel
|
602
|
+
# @param AuditType: 审核类型 1: 机器审核; 2: 人工审核
|
603
|
+
# @type AuditType: Integer
|
604
|
+
# @param Filters: 查询条件
|
605
|
+
# @type Filters: Array
|
606
|
+
|
607
|
+
attr_accessor :AuditType, :Filters
|
608
|
+
|
609
|
+
def initialize(audittype=nil, filters=nil)
|
610
|
+
@AuditType = audittype
|
611
|
+
@Filters = filters
|
612
|
+
end
|
613
|
+
|
614
|
+
def deserialize(params)
|
615
|
+
@AuditType = params['AuditType']
|
616
|
+
unless params['Filters'].nil?
|
617
|
+
@Filters = []
|
618
|
+
params['Filters'].each do |i|
|
619
|
+
filters_tmp = Filters.new
|
620
|
+
filters_tmp.deserialize(i)
|
621
|
+
@Filters << filters_tmp
|
622
|
+
end
|
623
|
+
end
|
624
|
+
end
|
625
|
+
end
|
626
|
+
|
627
|
+
# DescribeVideoStat返回参数结构体
|
628
|
+
class DescribeVideoStatResponse < TencentCloud::Common::AbstractModel
|
629
|
+
# @param Overview: 识别结果统计
|
630
|
+
# @type Overview: :class:`Tencentcloud::Vm.v20200709.models.Overview`
|
631
|
+
# @param TrendCount: 识别量统计
|
632
|
+
# @type TrendCount: Array
|
633
|
+
# @param EvilCount: 违规数据分布
|
634
|
+
# @type EvilCount: Array
|
635
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
636
|
+
# @type RequestId: String
|
637
|
+
|
638
|
+
attr_accessor :Overview, :TrendCount, :EvilCount, :RequestId
|
639
|
+
|
640
|
+
def initialize(overview=nil, trendcount=nil, evilcount=nil, requestid=nil)
|
641
|
+
@Overview = overview
|
642
|
+
@TrendCount = trendcount
|
643
|
+
@EvilCount = evilcount
|
644
|
+
@RequestId = requestid
|
645
|
+
end
|
646
|
+
|
647
|
+
def deserialize(params)
|
648
|
+
unless params['Overview'].nil?
|
649
|
+
@Overview = Overview.new
|
650
|
+
@Overview.deserialize(params['Overview'])
|
651
|
+
end
|
652
|
+
unless params['TrendCount'].nil?
|
653
|
+
@TrendCount = []
|
654
|
+
params['TrendCount'].each do |i|
|
655
|
+
trendcount_tmp = TrendCount.new
|
656
|
+
trendcount_tmp.deserialize(i)
|
657
|
+
@TrendCount << trendcount_tmp
|
658
|
+
end
|
659
|
+
end
|
660
|
+
unless params['EvilCount'].nil?
|
661
|
+
@EvilCount = []
|
662
|
+
params['EvilCount'].each do |i|
|
663
|
+
evilcount_tmp = EvilCount.new
|
664
|
+
evilcount_tmp.deserialize(i)
|
665
|
+
@EvilCount << evilcount_tmp
|
666
|
+
end
|
667
|
+
end
|
668
|
+
@RequestId = params['RequestId']
|
669
|
+
end
|
670
|
+
end
|
671
|
+
|
672
|
+
# 违规数据分布
|
673
|
+
class EvilCount < TencentCloud::Common::AbstractModel
|
674
|
+
# @param EvilType: 违规类型:
|
675
|
+
# Terror 24001
|
676
|
+
# Porn 20002
|
677
|
+
# Polity 20001
|
678
|
+
# Ad 20105
|
679
|
+
# Abuse 20007
|
680
|
+
# Illegal 20006
|
681
|
+
# Spam 25001
|
682
|
+
# Moan 26001
|
683
|
+
# @type EvilType: String
|
684
|
+
# @param Count: 分布类型总量
|
685
|
+
# @type Count: Integer
|
686
|
+
|
687
|
+
attr_accessor :EvilType, :Count
|
688
|
+
|
689
|
+
def initialize(eviltype=nil, count=nil)
|
690
|
+
@EvilType = eviltype
|
691
|
+
@Count = count
|
692
|
+
end
|
693
|
+
|
694
|
+
def deserialize(params)
|
695
|
+
@EvilType = params['EvilType']
|
696
|
+
@Count = params['Count']
|
697
|
+
end
|
698
|
+
end
|
699
|
+
|
700
|
+
# Cos FileOutput
|
701
|
+
class FileOutput < TencentCloud::Common::AbstractModel
|
702
|
+
# @param Bucket: 存储的Bucket
|
703
|
+
# @type Bucket: String
|
704
|
+
# @param Region: Cos Region
|
705
|
+
# @type Region: String
|
706
|
+
# @param ObjectPrefix: 对象前缀
|
707
|
+
# @type ObjectPrefix: String
|
708
|
+
|
709
|
+
attr_accessor :Bucket, :Region, :ObjectPrefix
|
710
|
+
|
711
|
+
def initialize(bucket=nil, region=nil, objectprefix=nil)
|
712
|
+
@Bucket = bucket
|
713
|
+
@Region = region
|
714
|
+
@ObjectPrefix = objectprefix
|
715
|
+
end
|
716
|
+
|
717
|
+
def deserialize(params)
|
718
|
+
@Bucket = params['Bucket']
|
719
|
+
@Region = params['Region']
|
720
|
+
@ObjectPrefix = params['ObjectPrefix']
|
721
|
+
end
|
722
|
+
end
|
723
|
+
|
724
|
+
# 视频过滤条件
|
725
|
+
class Filters < TencentCloud::Common::AbstractModel
|
726
|
+
# @param Name: 查询字段:
|
727
|
+
# 策略BizType
|
728
|
+
# 子账号SubUin
|
729
|
+
# 日期区间DateRange
|
730
|
+
# @type Name: String
|
731
|
+
# @param Values: 查询值
|
732
|
+
# @type Values: Array
|
733
|
+
|
734
|
+
attr_accessor :Name, :Values
|
735
|
+
|
736
|
+
def initialize(name=nil, values=nil)
|
737
|
+
@Name = name
|
738
|
+
@Values = values
|
739
|
+
end
|
740
|
+
|
741
|
+
def deserialize(params)
|
742
|
+
@Name = params['Name']
|
743
|
+
@Values = params['Values']
|
744
|
+
end
|
745
|
+
end
|
746
|
+
|
747
|
+
# Result结果详情
|
748
|
+
class ImageResult < TencentCloud::Common::AbstractModel
|
749
|
+
# @param HitFlag: 违规标志
|
750
|
+
# 0 未命中
|
751
|
+
# 1 命中
|
752
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
753
|
+
# @type HitFlag: Integer
|
754
|
+
# @param Label: 命中的标签
|
755
|
+
# Porn 色情
|
756
|
+
# Sexy 性感
|
757
|
+
# Polity 政治
|
758
|
+
# Illegal 违法
|
759
|
+
# Abuse 谩骂
|
760
|
+
# Terror 暴恐
|
761
|
+
# Ad 广告
|
762
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
763
|
+
# @type Label: String
|
764
|
+
# @param Suggestion: 审核建议,可选值:
|
765
|
+
# Pass 通过,
|
766
|
+
# Review 建议人审,
|
767
|
+
# Block 确认违规
|
768
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
769
|
+
# @type Suggestion: String
|
770
|
+
# @param Score: 得分
|
771
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
772
|
+
# @type Score: Integer
|
773
|
+
# @param Results: 画面截帧图片结果集
|
774
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
775
|
+
# @type Results: Array
|
776
|
+
# @param Url: 图片URL地址
|
777
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
778
|
+
# @type Url: String
|
779
|
+
# @param Extra: 附加字段
|
780
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
781
|
+
# @type Extra: String
|
782
|
+
|
783
|
+
attr_accessor :HitFlag, :Label, :Suggestion, :Score, :Results, :Url, :Extra
|
784
|
+
|
785
|
+
def initialize(hitflag=nil, label=nil, suggestion=nil, score=nil, results=nil, url=nil, extra=nil)
|
786
|
+
@HitFlag = hitflag
|
787
|
+
@Label = label
|
788
|
+
@Suggestion = suggestion
|
789
|
+
@Score = score
|
790
|
+
@Results = results
|
791
|
+
@Url = url
|
792
|
+
@Extra = extra
|
793
|
+
end
|
794
|
+
|
795
|
+
def deserialize(params)
|
796
|
+
@HitFlag = params['HitFlag']
|
797
|
+
@Label = params['Label']
|
798
|
+
@Suggestion = params['Suggestion']
|
799
|
+
@Score = params['Score']
|
800
|
+
unless params['Results'].nil?
|
801
|
+
@Results = []
|
802
|
+
params['Results'].each do |i|
|
803
|
+
imageresultresult_tmp = ImageResultResult.new
|
804
|
+
imageresultresult_tmp.deserialize(i)
|
805
|
+
@Results << imageresultresult_tmp
|
806
|
+
end
|
807
|
+
end
|
808
|
+
@Url = params['Url']
|
809
|
+
@Extra = params['Extra']
|
810
|
+
end
|
811
|
+
end
|
812
|
+
|
813
|
+
# 图片输出结果的子结果
|
814
|
+
class ImageResultResult < TencentCloud::Common::AbstractModel
|
815
|
+
# @param Scene: 场景
|
816
|
+
# Porn 色情
|
817
|
+
# Sexy 性感
|
818
|
+
# Polity 政治
|
819
|
+
# Illegal 违法
|
820
|
+
# Abuse 谩骂
|
821
|
+
# Terror 暴恐
|
822
|
+
# Ad 广告
|
823
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
824
|
+
# @type Scene: String
|
825
|
+
# @param HitFlag: 是否命中
|
826
|
+
# 0 未命中
|
827
|
+
# 1 命中
|
828
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
829
|
+
# @type HitFlag: Integer
|
830
|
+
# @param Suggestion: 审核建议,可选值:
|
831
|
+
# Pass 通过,
|
832
|
+
# Review 建议人审,
|
833
|
+
# Block 确认违规
|
834
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
835
|
+
# @type Suggestion: String
|
836
|
+
# @param Label: 标签
|
837
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
838
|
+
# @type Label: String
|
839
|
+
# @param SubLabel: 子标签
|
840
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
841
|
+
# @type SubLabel: String
|
842
|
+
# @param Score: 分数
|
843
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
844
|
+
# @type Score: Integer
|
845
|
+
# @param Names: 如果命中场景为涉政,则该数据为人物姓名列表,否则null
|
846
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
847
|
+
# @type Names: Array
|
848
|
+
# @param Text: 图片OCR文本
|
849
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
850
|
+
# @type Text: String
|
851
|
+
# @param Details: 其他详情
|
852
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
853
|
+
# @type Details: Array
|
854
|
+
|
855
|
+
attr_accessor :Scene, :HitFlag, :Suggestion, :Label, :SubLabel, :Score, :Names, :Text, :Details
|
856
|
+
|
857
|
+
def initialize(scene=nil, hitflag=nil, suggestion=nil, label=nil, sublabel=nil, score=nil, names=nil, text=nil, details=nil)
|
858
|
+
@Scene = scene
|
859
|
+
@HitFlag = hitflag
|
860
|
+
@Suggestion = suggestion
|
861
|
+
@Label = label
|
862
|
+
@SubLabel = sublabel
|
863
|
+
@Score = score
|
864
|
+
@Names = names
|
865
|
+
@Text = text
|
866
|
+
@Details = details
|
867
|
+
end
|
868
|
+
|
869
|
+
def deserialize(params)
|
870
|
+
@Scene = params['Scene']
|
871
|
+
@HitFlag = params['HitFlag']
|
872
|
+
@Suggestion = params['Suggestion']
|
873
|
+
@Label = params['Label']
|
874
|
+
@SubLabel = params['SubLabel']
|
875
|
+
@Score = params['Score']
|
876
|
+
@Names = params['Names']
|
877
|
+
@Text = params['Text']
|
878
|
+
unless params['Details'].nil?
|
879
|
+
@Details = []
|
880
|
+
params['Details'].each do |i|
|
881
|
+
imageresultsresultdetail_tmp = ImageResultsResultDetail.new
|
882
|
+
imageresultsresultdetail_tmp.deserialize(i)
|
883
|
+
@Details << imageresultsresultdetail_tmp
|
884
|
+
end
|
885
|
+
end
|
886
|
+
end
|
887
|
+
end
|
888
|
+
|
889
|
+
# 具体场景下的图片识别结果
|
890
|
+
class ImageResultsResultDetail < TencentCloud::Common::AbstractModel
|
891
|
+
# @param Name: 任务名称
|
892
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
893
|
+
# @type Name: String
|
894
|
+
# @param Text: OCR识别文本
|
895
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
896
|
+
# @type Text: String
|
897
|
+
# @param Location: 位置信息
|
898
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
899
|
+
# @type Location: :class:`Tencentcloud::Vm.v20200709.models.ImageResultsResultDetailLocation`
|
900
|
+
# @param Label: 标签
|
901
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
902
|
+
# @type Label: String
|
903
|
+
# @param LibId: 库ID
|
904
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
905
|
+
# @type LibId: String
|
906
|
+
# @param LibName: 库名称
|
907
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
908
|
+
# @type LibName: String
|
909
|
+
# @param Keywords: 命中的关键词
|
910
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
911
|
+
# @type Keywords: Array
|
912
|
+
# @param Suggestion: 建议
|
913
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
914
|
+
# @type Suggestion: String
|
915
|
+
# @param Score: 得分
|
916
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
917
|
+
# @type Score: Integer
|
918
|
+
# @param SubLabelCode: 子标签码
|
919
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
920
|
+
# @type SubLabelCode: String
|
921
|
+
|
922
|
+
attr_accessor :Name, :Text, :Location, :Label, :LibId, :LibName, :Keywords, :Suggestion, :Score, :SubLabelCode
|
923
|
+
|
924
|
+
def initialize(name=nil, text=nil, location=nil, label=nil, libid=nil, libname=nil, keywords=nil, suggestion=nil, score=nil, sublabelcode=nil)
|
925
|
+
@Name = name
|
926
|
+
@Text = text
|
927
|
+
@Location = location
|
928
|
+
@Label = label
|
929
|
+
@LibId = libid
|
930
|
+
@LibName = libname
|
931
|
+
@Keywords = keywords
|
932
|
+
@Suggestion = suggestion
|
933
|
+
@Score = score
|
934
|
+
@SubLabelCode = sublabelcode
|
935
|
+
end
|
936
|
+
|
937
|
+
def deserialize(params)
|
938
|
+
@Name = params['Name']
|
939
|
+
@Text = params['Text']
|
940
|
+
unless params['Location'].nil?
|
941
|
+
@Location = ImageResultsResultDetailLocation.new
|
942
|
+
@Location.deserialize(params['Location'])
|
943
|
+
end
|
944
|
+
@Label = params['Label']
|
945
|
+
@LibId = params['LibId']
|
946
|
+
@LibName = params['LibName']
|
947
|
+
@Keywords = params['Keywords']
|
948
|
+
@Suggestion = params['Suggestion']
|
949
|
+
@Score = params['Score']
|
950
|
+
@SubLabelCode = params['SubLabelCode']
|
951
|
+
end
|
952
|
+
end
|
953
|
+
|
954
|
+
# 图片详情位置信息
|
955
|
+
class ImageResultsResultDetailLocation < TencentCloud::Common::AbstractModel
|
956
|
+
# @param X: x坐标
|
957
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
958
|
+
# @type X: Float
|
959
|
+
# @param Y: y坐标
|
960
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
961
|
+
# @type Y: Float
|
962
|
+
# @param Width: 宽度
|
963
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
964
|
+
# @type Width: Integer
|
965
|
+
# @param Height: 高度
|
966
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
967
|
+
# @type Height: Integer
|
968
|
+
# @param Rotate: 旋转角度
|
969
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
970
|
+
# @type Rotate: Float
|
971
|
+
|
972
|
+
attr_accessor :X, :Y, :Width, :Height, :Rotate
|
973
|
+
|
974
|
+
def initialize(x=nil, y=nil, width=nil, height=nil, rotate=nil)
|
975
|
+
@X = x
|
976
|
+
@Y = y
|
977
|
+
@Width = width
|
978
|
+
@Height = height
|
979
|
+
@Rotate = rotate
|
980
|
+
end
|
981
|
+
|
982
|
+
def deserialize(params)
|
983
|
+
@X = params['X']
|
984
|
+
@Y = params['Y']
|
985
|
+
@Width = params['Width']
|
986
|
+
@Height = params['Height']
|
987
|
+
@Rotate = params['Rotate']
|
988
|
+
end
|
989
|
+
end
|
990
|
+
|
991
|
+
# 图片段信息
|
992
|
+
class ImageSegments < TencentCloud::Common::AbstractModel
|
993
|
+
# @param OffsetTime: 截帧时间。
|
994
|
+
# 点播文件:该值为相对于视频偏移时间,单位为秒,例如:0,5,10
|
995
|
+
# 直播流:该值为时间戳,例如:1594650717
|
996
|
+
# @type OffsetTime: String
|
997
|
+
# @param Result: 画面截帧结果详情
|
998
|
+
# @type Result: :class:`Tencentcloud::Vm.v20200709.models.ImageResult`
|
999
|
+
|
1000
|
+
attr_accessor :OffsetTime, :Result
|
1001
|
+
|
1002
|
+
def initialize(offsettime=nil, result=nil)
|
1003
|
+
@OffsetTime = offsettime
|
1004
|
+
@Result = result
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
def deserialize(params)
|
1008
|
+
@OffsetTime = params['OffsetTime']
|
1009
|
+
unless params['Result'].nil?
|
1010
|
+
@Result = ImageResult.new
|
1011
|
+
@Result.deserialize(params['Result'])
|
1012
|
+
end
|
1013
|
+
end
|
1014
|
+
end
|
1015
|
+
|
1016
|
+
# 输入信息详情
|
1017
|
+
class InputInfo < TencentCloud::Common::AbstractModel
|
1018
|
+
# @param Type: 传入的类型可选:URL,COS
|
1019
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1020
|
+
# @type Type: String
|
1021
|
+
# @param Url: Url地址
|
1022
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1023
|
+
# @type Url: String
|
1024
|
+
# @param BucketInfo: 桶信息。当输入当时COS时,该字段不为空
|
1025
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1026
|
+
# @type BucketInfo: String
|
1027
|
+
|
1028
|
+
attr_accessor :Type, :Url, :BucketInfo
|
1029
|
+
|
1030
|
+
def initialize(type=nil, url=nil, bucketinfo=nil)
|
1031
|
+
@Type = type
|
1032
|
+
@Url = url
|
1033
|
+
@BucketInfo = bucketinfo
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
def deserialize(params)
|
1037
|
+
@Type = params['Type']
|
1038
|
+
@Url = params['Url']
|
1039
|
+
@BucketInfo = params['BucketInfo']
|
1040
|
+
end
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
# 媒体类型
|
1044
|
+
class MediaInfo < TencentCloud::Common::AbstractModel
|
1045
|
+
# @param Codecs: 编码格式
|
1046
|
+
# @type Codecs: String
|
1047
|
+
# @param Duration: 流检测时分片时长
|
1048
|
+
# 注意:此字段可能返回 0,表示取不到有效值。
|
1049
|
+
# @type Duration: Integer
|
1050
|
+
# @param Width: 宽,单位为像素
|
1051
|
+
# @type Width: Integer
|
1052
|
+
# @param Height: 高,单位为像素
|
1053
|
+
# @type Height: Integer
|
1054
|
+
|
1055
|
+
attr_accessor :Codecs, :Duration, :Width, :Height
|
1056
|
+
|
1057
|
+
def initialize(codecs=nil, duration=nil, width=nil, height=nil)
|
1058
|
+
@Codecs = codecs
|
1059
|
+
@Duration = duration
|
1060
|
+
@Width = width
|
1061
|
+
@Height = height
|
1062
|
+
end
|
1063
|
+
|
1064
|
+
def deserialize(params)
|
1065
|
+
@Codecs = params['Codecs']
|
1066
|
+
@Duration = params['Duration']
|
1067
|
+
@Width = params['Width']
|
1068
|
+
@Height = params['Height']
|
1069
|
+
end
|
1070
|
+
end
|
1071
|
+
|
1072
|
+
# 媒体审核配置
|
1073
|
+
class MediaModerationConfig < TencentCloud::Common::AbstractModel
|
1074
|
+
# @param UseOCR: 是否使用OCR,默认为true
|
1075
|
+
# @type UseOCR: Boolean
|
1076
|
+
# @param UseAudio: 是否使用音频,默认为true。视频场景下,默认为 false
|
1077
|
+
# @type UseAudio: Boolean
|
1078
|
+
# @param ImageFrequency: 图片取帧频率, 单位(秒/帧),默认 5, 可选 1 ~ 300
|
1079
|
+
# @type ImageFrequency: Integer
|
1080
|
+
# @param AudioFrequency: 音频片段长度。单位为:秒
|
1081
|
+
# @type AudioFrequency: Integer
|
1082
|
+
# @param SegmentOutput: 临时文件存储位置
|
1083
|
+
# @type SegmentOutput: :class:`Tencentcloud::Vm.v20200709.models.FileOutput`
|
1084
|
+
# @param CallbackUrl: 回调地址
|
1085
|
+
# @type CallbackUrl: String
|
1086
|
+
|
1087
|
+
attr_accessor :UseOCR, :UseAudio, :ImageFrequency, :AudioFrequency, :SegmentOutput, :CallbackUrl
|
1088
|
+
|
1089
|
+
def initialize(useocr=nil, useaudio=nil, imagefrequency=nil, audiofrequency=nil, segmentoutput=nil, callbackurl=nil)
|
1090
|
+
@UseOCR = useocr
|
1091
|
+
@UseAudio = useaudio
|
1092
|
+
@ImageFrequency = imagefrequency
|
1093
|
+
@AudioFrequency = audiofrequency
|
1094
|
+
@SegmentOutput = segmentoutput
|
1095
|
+
@CallbackUrl = callbackurl
|
1096
|
+
end
|
1097
|
+
|
1098
|
+
def deserialize(params)
|
1099
|
+
@UseOCR = params['UseOCR']
|
1100
|
+
@UseAudio = params['UseAudio']
|
1101
|
+
@ImageFrequency = params['ImageFrequency']
|
1102
|
+
@AudioFrequency = params['AudioFrequency']
|
1103
|
+
unless params['SegmentOutput'].nil?
|
1104
|
+
@SegmentOutput = FileOutput.new
|
1105
|
+
@SegmentOutput.deserialize(params['SegmentOutput'])
|
1106
|
+
end
|
1107
|
+
@CallbackUrl = params['CallbackUrl']
|
1108
|
+
end
|
1109
|
+
end
|
1110
|
+
|
1111
|
+
# 识别结果统计
|
1112
|
+
class Overview < TencentCloud::Common::AbstractModel
|
1113
|
+
# @param TotalCount: 总调用量
|
1114
|
+
# @type TotalCount: Integer
|
1115
|
+
# @param TotalHour: 总调用时长
|
1116
|
+
# @type TotalHour: Integer
|
1117
|
+
# @param PassCount: 通过量
|
1118
|
+
# @type PassCount: Integer
|
1119
|
+
# @param PassHour: 通过时长
|
1120
|
+
# @type PassHour: Integer
|
1121
|
+
# @param EvilCount: 违规量
|
1122
|
+
# @type EvilCount: Integer
|
1123
|
+
# @param EvilHour: 违规时长
|
1124
|
+
# @type EvilHour: Integer
|
1125
|
+
# @param SuspectCount: 疑似违规量
|
1126
|
+
# @type SuspectCount: Integer
|
1127
|
+
# @param SuspectHour: 疑似违规时长
|
1128
|
+
# @type SuspectHour: Integer
|
1129
|
+
|
1130
|
+
attr_accessor :TotalCount, :TotalHour, :PassCount, :PassHour, :EvilCount, :EvilHour, :SuspectCount, :SuspectHour
|
1131
|
+
|
1132
|
+
def initialize(totalcount=nil, totalhour=nil, passcount=nil, passhour=nil, evilcount=nil, evilhour=nil, suspectcount=nil, suspecthour=nil)
|
1133
|
+
@TotalCount = totalcount
|
1134
|
+
@TotalHour = totalhour
|
1135
|
+
@PassCount = passcount
|
1136
|
+
@PassHour = passhour
|
1137
|
+
@EvilCount = evilcount
|
1138
|
+
@EvilHour = evilhour
|
1139
|
+
@SuspectCount = suspectcount
|
1140
|
+
@SuspectHour = suspecthour
|
1141
|
+
end
|
1142
|
+
|
1143
|
+
def deserialize(params)
|
1144
|
+
@TotalCount = params['TotalCount']
|
1145
|
+
@TotalHour = params['TotalHour']
|
1146
|
+
@PassCount = params['PassCount']
|
1147
|
+
@PassHour = params['PassHour']
|
1148
|
+
@EvilCount = params['EvilCount']
|
1149
|
+
@EvilHour = params['EvilHour']
|
1150
|
+
@SuspectCount = params['SuspectCount']
|
1151
|
+
@SuspectHour = params['SuspectHour']
|
1152
|
+
end
|
1153
|
+
end
|
1154
|
+
|
1155
|
+
# 数据存储信息
|
1156
|
+
class StorageInfo < TencentCloud::Common::AbstractModel
|
1157
|
+
# @param Type: 类型 可选:
|
1158
|
+
# URL 资源链接类型
|
1159
|
+
# COS 腾讯云对象存储类型
|
1160
|
+
# @type Type: String
|
1161
|
+
# @param Url: 资源链接
|
1162
|
+
# @type Url: String
|
1163
|
+
# @param BucketInfo: 腾讯云存储桶信息
|
1164
|
+
# @type BucketInfo: :class:`Tencentcloud::Vm.v20200709.models.BucketInfo`
|
1165
|
+
|
1166
|
+
attr_accessor :Type, :Url, :BucketInfo
|
1167
|
+
|
1168
|
+
def initialize(type=nil, url=nil, bucketinfo=nil)
|
1169
|
+
@Type = type
|
1170
|
+
@Url = url
|
1171
|
+
@BucketInfo = bucketinfo
|
1172
|
+
end
|
1173
|
+
|
1174
|
+
def deserialize(params)
|
1175
|
+
@Type = params['Type']
|
1176
|
+
@Url = params['Url']
|
1177
|
+
unless params['BucketInfo'].nil?
|
1178
|
+
@BucketInfo = BucketInfo.new
|
1179
|
+
@BucketInfo.deserialize(params['BucketInfo'])
|
1180
|
+
end
|
1181
|
+
end
|
1182
|
+
end
|
1183
|
+
|
1184
|
+
# 音视频任务结构
|
1185
|
+
class TaskInput < TencentCloud::Common::AbstractModel
|
1186
|
+
# @param DataId: 数据ID
|
1187
|
+
# @type DataId: String
|
1188
|
+
# @param Name: 任务名
|
1189
|
+
# @type Name: String
|
1190
|
+
# @param Input: 任务输入
|
1191
|
+
# @type Input: :class:`Tencentcloud::Vm.v20200709.models.StorageInfo`
|
1192
|
+
|
1193
|
+
attr_accessor :DataId, :Name, :Input
|
1194
|
+
|
1195
|
+
def initialize(dataid=nil, name=nil, input=nil)
|
1196
|
+
@DataId = dataid
|
1197
|
+
@Name = name
|
1198
|
+
@Input = input
|
1199
|
+
end
|
1200
|
+
|
1201
|
+
def deserialize(params)
|
1202
|
+
@DataId = params['DataId']
|
1203
|
+
@Name = params['Name']
|
1204
|
+
unless params['Input'].nil?
|
1205
|
+
@Input = StorageInfo.new
|
1206
|
+
@Input.deserialize(params['Input'])
|
1207
|
+
end
|
1208
|
+
end
|
1209
|
+
end
|
1210
|
+
|
1211
|
+
# 任务输出标签
|
1212
|
+
class TaskLabel < TencentCloud::Common::AbstractModel
|
1213
|
+
# @param Label: 命中的标签
|
1214
|
+
# Porn 色情
|
1215
|
+
# Sexy 性感
|
1216
|
+
# Polity 政治
|
1217
|
+
# Illegal 违法
|
1218
|
+
# Abuse 谩骂
|
1219
|
+
# Terror 暴恐
|
1220
|
+
# Ad 广告
|
1221
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1222
|
+
# @type Label: String
|
1223
|
+
# @param Suggestion: 审核建议,可选值:
|
1224
|
+
# Pass 通过,
|
1225
|
+
# Review 建议人审,
|
1226
|
+
# Block 确认违规
|
1227
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1228
|
+
# @type Suggestion: String
|
1229
|
+
# @param Score: 得分,分数是 0 ~ 100
|
1230
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1231
|
+
# @type Score: Integer
|
1232
|
+
|
1233
|
+
attr_accessor :Label, :Suggestion, :Score
|
1234
|
+
|
1235
|
+
def initialize(label=nil, suggestion=nil, score=nil)
|
1236
|
+
@Label = label
|
1237
|
+
@Suggestion = suggestion
|
1238
|
+
@Score = score
|
1239
|
+
end
|
1240
|
+
|
1241
|
+
def deserialize(params)
|
1242
|
+
@Label = params['Label']
|
1243
|
+
@Suggestion = params['Suggestion']
|
1244
|
+
@Score = params['Score']
|
1245
|
+
end
|
1246
|
+
end
|
1247
|
+
|
1248
|
+
# 创建任务时的返回结果
|
1249
|
+
class TaskResult < TencentCloud::Common::AbstractModel
|
1250
|
+
# @param DataId: 请求时传入的DataId
|
1251
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1252
|
+
# @type DataId: String
|
1253
|
+
# @param TaskId: TaskId,任务ID
|
1254
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1255
|
+
# @type TaskId: String
|
1256
|
+
# @param Code: 错误码。如果code为OK,则表示创建成功,其他则参考公共错误码
|
1257
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1258
|
+
# @type Code: String
|
1259
|
+
# @param Message: 如果错误,该字段表示错误详情
|
1260
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1261
|
+
# @type Message: String
|
1262
|
+
|
1263
|
+
attr_accessor :DataId, :TaskId, :Code, :Message
|
1264
|
+
|
1265
|
+
def initialize(dataid=nil, taskid=nil, code=nil, message=nil)
|
1266
|
+
@DataId = dataid
|
1267
|
+
@TaskId = taskid
|
1268
|
+
@Code = code
|
1269
|
+
@Message = message
|
1270
|
+
end
|
1271
|
+
|
1272
|
+
def deserialize(params)
|
1273
|
+
@DataId = params['DataId']
|
1274
|
+
@TaskId = params['TaskId']
|
1275
|
+
@Code = params['Code']
|
1276
|
+
@Message = params['Message']
|
1277
|
+
end
|
1278
|
+
end
|
1279
|
+
|
1280
|
+
# 识别量统计
|
1281
|
+
class TrendCount < TencentCloud::Common::AbstractModel
|
1282
|
+
# @param TotalCount: 总调用量
|
1283
|
+
# @type TotalCount: Integer
|
1284
|
+
# @param TotalHour: 总调用时长
|
1285
|
+
# @type TotalHour: Integer
|
1286
|
+
# @param PassCount: 通过量
|
1287
|
+
# @type PassCount: Integer
|
1288
|
+
# @param PassHour: 通过时长
|
1289
|
+
# @type PassHour: Integer
|
1290
|
+
# @param EvilCount: 违规量
|
1291
|
+
# @type EvilCount: Integer
|
1292
|
+
# @param EvilHour: 违规时长
|
1293
|
+
# @type EvilHour: Integer
|
1294
|
+
# @param SuspectCount: 疑似违规量
|
1295
|
+
# @type SuspectCount: Integer
|
1296
|
+
# @param SuspectHour: 疑似违规时长
|
1297
|
+
# @type SuspectHour: Integer
|
1298
|
+
# @param Date: 日期
|
1299
|
+
# @type Date: String
|
1300
|
+
|
1301
|
+
attr_accessor :TotalCount, :TotalHour, :PassCount, :PassHour, :EvilCount, :EvilHour, :SuspectCount, :SuspectHour, :Date
|
1302
|
+
|
1303
|
+
def initialize(totalcount=nil, totalhour=nil, passcount=nil, passhour=nil, evilcount=nil, evilhour=nil, suspectcount=nil, suspecthour=nil, date=nil)
|
1304
|
+
@TotalCount = totalcount
|
1305
|
+
@TotalHour = totalhour
|
1306
|
+
@PassCount = passcount
|
1307
|
+
@PassHour = passhour
|
1308
|
+
@EvilCount = evilcount
|
1309
|
+
@EvilHour = evilhour
|
1310
|
+
@SuspectCount = suspectcount
|
1311
|
+
@SuspectHour = suspecthour
|
1312
|
+
@Date = date
|
1313
|
+
end
|
1314
|
+
|
1315
|
+
def deserialize(params)
|
1316
|
+
@TotalCount = params['TotalCount']
|
1317
|
+
@TotalHour = params['TotalHour']
|
1318
|
+
@PassCount = params['PassCount']
|
1319
|
+
@PassHour = params['PassHour']
|
1320
|
+
@EvilCount = params['EvilCount']
|
1321
|
+
@EvilHour = params['EvilHour']
|
1322
|
+
@SuspectCount = params['SuspectCount']
|
1323
|
+
@SuspectHour = params['SuspectHour']
|
1324
|
+
@Date = params['Date']
|
1325
|
+
end
|
1326
|
+
end
|
1327
|
+
|
1328
|
+
end
|
1329
|
+
end
|
1330
|
+
end
|
1331
|
+
|