tencentcloud-sdk-vm 3.0.402 → 3.0.405

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6c2f28f3603df86a50edfb445f4b5ec3f5c43ee
4
- data.tar.gz: 03097c0c778c15caf7eb98eac39e4569177fac55
3
+ metadata.gz: dcb2a38a07525e350a8aa11aa4a37dff824eaefc
4
+ data.tar.gz: 9f814d6701e82396c77f1a9ae207f9af2178e7f5
5
5
  SHA512:
6
- metadata.gz: 593be44e4ae3842f04f0eb42270c38fd62c7f6e0b6ef66e2b3563b70b57ef7ea81e7bc09f507c62cbe3ab50c31e0c6c5ba76aed8cf2a6c42dd6310ca4eec95e9
7
- data.tar.gz: b5cd9f808cf5dc0d8e39f382eea91583d70e42e81ff97a8a732c65c84470915f22d9ba0bb3f2771f21454b02f1fe718ba64c0dd16e27e2367356b632aa2df3f8
6
+ metadata.gz: ed9bf854969de0e662e20724f87ca53fd67e2a40ffb61b016450afb30abeffe66b2494362ce7333189a2f7b70b5d173e620d87fbaea0fd8f266347b6aea21d79
7
+ data.tar.gz: 7464841353ee89bc3aeb9164680029997e76f3c8ec28dd55264f0e5521060b8739421a4b4b37da39da6efdf354397305bcf1477b139c319dd2529c9b3aa05979
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.402
1
+ 3.0.405
@@ -5,6 +5,9 @@ require 'tencentcloud-sdk-common'
5
5
  require_relative 'v20201229/client'
6
6
  require_relative 'v20201229/models'
7
7
 
8
+ require_relative 'v20210922/client'
9
+ require_relative 'v20210922/models'
10
+
8
11
  require_relative 'v20200709/client'
9
12
  require_relative 'v20200709/models'
10
13
 
@@ -0,0 +1,134 @@
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
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Vm
21
+ module V20210922
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2021-09-22'
26
+ api_endpoint = 'vm.tencentcloudapi.com'
27
+ sdk_version = 'VM_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 取消任务
33
+
34
+ # @param request: Request instance for CancelTask.
35
+ # @type request: :class:`Tencentcloud::vm::V20210922::CancelTaskRequest`
36
+ # @rtype: :class:`Tencentcloud::vm::V20210922::CancelTaskResponse`
37
+ def CancelTask(request)
38
+ body = send_request('CancelTask', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CancelTaskResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+ # 通过URL或存储桶创建审核任务
57
+
58
+ # @param request: Request instance for CreateVideoModerationTask.
59
+ # @type request: :class:`Tencentcloud::vm::V20210922::CreateVideoModerationTaskRequest`
60
+ # @rtype: :class:`Tencentcloud::vm::V20210922::CreateVideoModerationTaskResponse`
61
+ def CreateVideoModerationTask(request)
62
+ body = send_request('CreateVideoModerationTask', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = CreateVideoModerationTaskResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
80
+ # 查看任务详情DescribeTaskDetail
81
+
82
+ # @param request: Request instance for DescribeTaskDetail.
83
+ # @type request: :class:`Tencentcloud::vm::V20210922::DescribeTaskDetailRequest`
84
+ # @rtype: :class:`Tencentcloud::vm::V20210922::DescribeTaskDetailResponse`
85
+ def DescribeTaskDetail(request)
86
+ body = send_request('DescribeTaskDetail', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeTaskDetailResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+ # 通过查看审核任务列表接口,可查询任务队列;您可根据多种业务信息(业务类型、审核结果、任务状态等)筛选审核任务列表。<br>
105
+
106
+ # 默认接口请求频率限制:**20次/秒**。
107
+
108
+ # @param request: Request instance for DescribeTasks.
109
+ # @type request: :class:`Tencentcloud::vm::V20210922::DescribeTasksRequest`
110
+ # @rtype: :class:`Tencentcloud::vm::V20210922::DescribeTasksResponse`
111
+ def DescribeTasks(request)
112
+ body = send_request('DescribeTasks', request.serialize)
113
+ response = JSON.parse(body)
114
+ if response['Response'].key?('Error') == false
115
+ model = DescribeTasksResponse.new
116
+ model.deserialize(response['Response'])
117
+ model
118
+ else
119
+ code = response['Response']['Error']['Code']
120
+ message = response['Response']['Error']['Message']
121
+ reqid = response['Response']['RequestId']
122
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
123
+ end
124
+ rescue TencentCloud::Common::TencentCloudSDKException => e
125
+ raise e
126
+ rescue StandardError => e
127
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
128
+ end
129
+
130
+
131
+ end
132
+ end
133
+ end
134
+ end
@@ -0,0 +1,1192 @@
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 V20210922
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.v20210922.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
+ # CreateVideoModerationTask请求参数结构体
322
+ class CreateVideoModerationTaskRequest < TencentCloud::Common::AbstractModel
323
+ # @param BizType: 业务类型, 定义 模版策略,输出存储配置。如果没有BizType,可以先参考 【创建业务配置】接口进行创建
324
+ # @type BizType: String
325
+ # @param Type: 任务类型:可选VIDEO(点播视频),LIVE_VIDEO(直播视频)
326
+ # @type Type: String
327
+ # @param Tasks: 输入的任务信息,最多可以同时创建10个任务
328
+ # @type Tasks: Array
329
+ # @param Seed: 回调签名key,具体可以查看签名文档。
330
+ # @type Seed: String
331
+ # @param CallbackUrl: 接收审核信息回调地址,如果设置,则审核过程中产生的违规音频片段和画面截帧发送此接口
332
+ # @type CallbackUrl: String
333
+ # @param Priority: 审核排队优先级。当您有多个视频审核任务排队时,可以根据这个参数控制排队优先级。用于处理插队等逻辑。默认该参数为0
334
+ # @type Priority: Integer
335
+
336
+ attr_accessor :BizType, :Type, :Tasks, :Seed, :CallbackUrl, :Priority
337
+
338
+ def initialize(biztype=nil, type=nil, tasks=nil, seed=nil, callbackurl=nil, priority=nil)
339
+ @BizType = biztype
340
+ @Type = type
341
+ @Tasks = tasks
342
+ @Seed = seed
343
+ @CallbackUrl = callbackurl
344
+ @Priority = priority
345
+ end
346
+
347
+ def deserialize(params)
348
+ @BizType = params['BizType']
349
+ @Type = params['Type']
350
+ unless params['Tasks'].nil?
351
+ @Tasks = []
352
+ params['Tasks'].each do |i|
353
+ taskinput_tmp = TaskInput.new
354
+ taskinput_tmp.deserialize(i)
355
+ @Tasks << taskinput_tmp
356
+ end
357
+ end
358
+ @Seed = params['Seed']
359
+ @CallbackUrl = params['CallbackUrl']
360
+ @Priority = params['Priority']
361
+ end
362
+ end
363
+
364
+ # CreateVideoModerationTask返回参数结构体
365
+ class CreateVideoModerationTaskResponse < TencentCloud::Common::AbstractModel
366
+ # @param Results: 任务创建结果
367
+ # 注意:此字段可能返回 null,表示取不到有效值。
368
+ # @type Results: Array
369
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
370
+ # @type RequestId: String
371
+
372
+ attr_accessor :Results, :RequestId
373
+
374
+ def initialize(results=nil, requestid=nil)
375
+ @Results = results
376
+ @RequestId = requestid
377
+ end
378
+
379
+ def deserialize(params)
380
+ unless params['Results'].nil?
381
+ @Results = []
382
+ params['Results'].each do |i|
383
+ taskresult_tmp = TaskResult.new
384
+ taskresult_tmp.deserialize(i)
385
+ @Results << taskresult_tmp
386
+ end
387
+ end
388
+ @RequestId = params['RequestId']
389
+ end
390
+ end
391
+
392
+ # DescribeTaskDetail请求参数结构体
393
+ class DescribeTaskDetailRequest < TencentCloud::Common::AbstractModel
394
+ # @param TaskId: 任务ID,创建任务后返回的TaskId字段
395
+ # @type TaskId: String
396
+ # @param ShowAllSegments: 是否展示所有分片,默认只展示命中规则的分片
397
+ # @type ShowAllSegments: Boolean
398
+
399
+ attr_accessor :TaskId, :ShowAllSegments
400
+
401
+ def initialize(taskid=nil, showallsegments=nil)
402
+ @TaskId = taskid
403
+ @ShowAllSegments = showallsegments
404
+ end
405
+
406
+ def deserialize(params)
407
+ @TaskId = params['TaskId']
408
+ @ShowAllSegments = params['ShowAllSegments']
409
+ end
410
+ end
411
+
412
+ # DescribeTaskDetail返回参数结构体
413
+ class DescribeTaskDetailResponse < TencentCloud::Common::AbstractModel
414
+ # @param TaskId: 任务Id
415
+ # 注意:此字段可能返回 null,表示取不到有效值。
416
+ # @type TaskId: String
417
+ # @param DataId: 审核时传入的数据Id
418
+ # 注意:此字段可能返回 null,表示取不到有效值。
419
+ # @type DataId: String
420
+ # @param BizType: 业务类型
421
+ # 注意:此字段可能返回 null,表示取不到有效值。
422
+ # @type BizType: String
423
+ # @param Name: 任务名称
424
+ # 注意:此字段可能返回 null,表示取不到有效值。
425
+ # @type Name: String
426
+ # @param Status: 状态,可选值:
427
+ # FINISH 已完成
428
+ # PENDING 等待中
429
+ # RUNNING 进行中
430
+ # ERROR 出错
431
+ # CANCELLED 已取消
432
+ # 注意:此字段可能返回 null,表示取不到有效值。
433
+ # @type Status: String
434
+ # @param Type: 类型
435
+ # 注意:此字段可能返回 null,表示取不到有效值。
436
+ # @type Type: String
437
+ # @param Suggestion: 审核建议
438
+ # 可选:
439
+ # Pass 通过
440
+ # Reveiw 建议复审
441
+ # Block 确认违规
442
+ # 注意:此字段可能返回 null,表示取不到有效值。
443
+ # @type Suggestion: String
444
+ # @param Labels: 审核结果
445
+ # 注意:此字段可能返回 null,表示取不到有效值。
446
+ # @type Labels: Array
447
+ # @param MediaInfo: 媒体解码信息
448
+ # 注意:此字段可能返回 null,表示取不到有效值。
449
+ # @type MediaInfo: :class:`Tencentcloud::Vm.v20210922.models.MediaInfo`
450
+ # @param InputInfo: 任务信息
451
+ # 注意:此字段可能返回 null,表示取不到有效值。
452
+ # @type InputInfo: :class:`Tencentcloud::Vm.v20210922.models.InputInfo`
453
+ # @param CreatedAt: 创建时间
454
+ # 注意:此字段可能返回 null,表示取不到有效值。
455
+ # @type CreatedAt: String
456
+ # @param UpdatedAt: 更新时间
457
+ # 注意:此字段可能返回 null,表示取不到有效值。
458
+ # @type UpdatedAt: String
459
+ # @param TryInSeconds: 在秒后重试
460
+ # 注意:此字段可能返回 null,表示取不到有效值。
461
+ # @type TryInSeconds: Integer
462
+ # @param ImageSegments: 图片结果
463
+ # 注意:此字段可能返回 null,表示取不到有效值。
464
+ # @type ImageSegments: Array
465
+ # @param AudioSegments: 音频结果
466
+ # 注意:此字段可能返回 null,表示取不到有效值。
467
+ # @type AudioSegments: Array
468
+ # @param ErrorType: 如果返回的状态为ERROR,该字段会标记错误类型。
469
+ # 可选值::
470
+ # DECODE_ERROR: 解码失败。(输入资源中可能包含无法解码的视频)
471
+ # URL_ERROR:下载地址验证失败。
472
+ # TIMEOUT_ERROR:处理超时。
473
+ # 注意:此字段可能返回 null,表示取不到有效值。
474
+ # @type ErrorType: String
475
+ # @param ErrorDescription: 审核任务错误日志。当Error不为空时,会展示该字段
476
+ # 注意:此字段可能返回 null,表示取不到有效值。
477
+ # @type ErrorDescription: String
478
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
479
+ # @type RequestId: String
480
+
481
+ attr_accessor :TaskId, :DataId, :BizType, :Name, :Status, :Type, :Suggestion, :Labels, :MediaInfo, :InputInfo, :CreatedAt, :UpdatedAt, :TryInSeconds, :ImageSegments, :AudioSegments, :ErrorType, :ErrorDescription, :RequestId
482
+
483
+ 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)
484
+ @TaskId = taskid
485
+ @DataId = dataid
486
+ @BizType = biztype
487
+ @Name = name
488
+ @Status = status
489
+ @Type = type
490
+ @Suggestion = suggestion
491
+ @Labels = labels
492
+ @MediaInfo = mediainfo
493
+ @InputInfo = inputinfo
494
+ @CreatedAt = createdat
495
+ @UpdatedAt = updatedat
496
+ @TryInSeconds = tryinseconds
497
+ @ImageSegments = imagesegments
498
+ @AudioSegments = audiosegments
499
+ @ErrorType = errortype
500
+ @ErrorDescription = errordescription
501
+ @RequestId = requestid
502
+ end
503
+
504
+ def deserialize(params)
505
+ @TaskId = params['TaskId']
506
+ @DataId = params['DataId']
507
+ @BizType = params['BizType']
508
+ @Name = params['Name']
509
+ @Status = params['Status']
510
+ @Type = params['Type']
511
+ @Suggestion = params['Suggestion']
512
+ unless params['Labels'].nil?
513
+ @Labels = []
514
+ params['Labels'].each do |i|
515
+ tasklabel_tmp = TaskLabel.new
516
+ tasklabel_tmp.deserialize(i)
517
+ @Labels << tasklabel_tmp
518
+ end
519
+ end
520
+ unless params['MediaInfo'].nil?
521
+ @MediaInfo = MediaInfo.new
522
+ @MediaInfo.deserialize(params['MediaInfo'])
523
+ end
524
+ unless params['InputInfo'].nil?
525
+ @InputInfo = InputInfo.new
526
+ @InputInfo.deserialize(params['InputInfo'])
527
+ end
528
+ @CreatedAt = params['CreatedAt']
529
+ @UpdatedAt = params['UpdatedAt']
530
+ @TryInSeconds = params['TryInSeconds']
531
+ unless params['ImageSegments'].nil?
532
+ @ImageSegments = []
533
+ params['ImageSegments'].each do |i|
534
+ imagesegments_tmp = ImageSegments.new
535
+ imagesegments_tmp.deserialize(i)
536
+ @ImageSegments << imagesegments_tmp
537
+ end
538
+ end
539
+ unless params['AudioSegments'].nil?
540
+ @AudioSegments = []
541
+ params['AudioSegments'].each do |i|
542
+ audiosegments_tmp = AudioSegments.new
543
+ audiosegments_tmp.deserialize(i)
544
+ @AudioSegments << audiosegments_tmp
545
+ end
546
+ end
547
+ @ErrorType = params['ErrorType']
548
+ @ErrorDescription = params['ErrorDescription']
549
+ @RequestId = params['RequestId']
550
+ end
551
+ end
552
+
553
+ # DescribeTasks请求参数结构体
554
+ class DescribeTasksRequest < TencentCloud::Common::AbstractModel
555
+ # @param Limit: 该参数表示任务列表每页展示的任务条数,**默认值为10**(每页展示10条任务)。
556
+ # @type Limit: Integer
557
+ # @param Filter: 该参数表示任务筛选器的输入参数,可根据业务类型、审核文件类型、处理建议及任务状态筛选想要查看的审核任务,具体参数内容请参见TaskFilter数据结构的详细描述。
558
+ # @type Filter: :class:`Tencentcloud::Vm.v20210922.models.TaskFilter`
559
+ # @param PageToken: 该参数表示翻页时使用的Token信息,由系统自动生成,并在翻页时向下一个生成的页面传递此参数,以方便快速翻页功能的实现。当到最后一页时,该字段为空。
560
+ # @type PageToken: String
561
+ # @param StartTime: 该参数表示任务列表的开始时间,格式为ISO8601标准的时间戳。**默认值为最近3天**,若传入该参数,则在这一时间到EndTime之间的任务将会被筛选出来。<br>备注:该参数与Filter共同起到任务筛选作用,二者作用无先后顺序。
562
+ # @type StartTime: String
563
+ # @param EndTime: 该参数表示任务列表的结束时间,格式为ISO8601标准的时间戳。**默认值为空**,若传入该参数,则在这StartTime到这一时间之间的任务将会被筛选出来。<br>备注:该参数与Filter共同起到任务筛选作用,二者作用无先后顺序。
564
+ # @type EndTime: String
565
+
566
+ attr_accessor :Limit, :Filter, :PageToken, :StartTime, :EndTime
567
+
568
+ def initialize(limit=nil, filter=nil, pagetoken=nil, starttime=nil, endtime=nil)
569
+ @Limit = limit
570
+ @Filter = filter
571
+ @PageToken = pagetoken
572
+ @StartTime = starttime
573
+ @EndTime = endtime
574
+ end
575
+
576
+ def deserialize(params)
577
+ @Limit = params['Limit']
578
+ unless params['Filter'].nil?
579
+ @Filter = TaskFilter.new
580
+ @Filter.deserialize(params['Filter'])
581
+ end
582
+ @PageToken = params['PageToken']
583
+ @StartTime = params['StartTime']
584
+ @EndTime = params['EndTime']
585
+ end
586
+ end
587
+
588
+ # DescribeTasks返回参数结构体
589
+ class DescribeTasksResponse < TencentCloud::Common::AbstractModel
590
+ # @param Total: 该字段用于返回当前查询的任务总量,格式为int字符串。
591
+ # 注意:此字段可能返回 null,表示取不到有效值。
592
+ # @type Total: String
593
+ # @param Data: 该字段用于返回当前页的任务详细数据,具体输出内容请参见TaskData数据结构的详细描述。
594
+ # 注意:此字段可能返回 null,表示取不到有效值。
595
+ # @type Data: Array
596
+ # @param PageToken: 该字段用于返回翻页时使用的Token信息,由系统自动生成,并在翻页时向下一个生成的页面传递此参数,以方便快速翻页功能的实现。当到最后一页时,该字段为空。
597
+ # 注意:此字段可能返回 null,表示取不到有效值。
598
+ # @type PageToken: String
599
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
600
+ # @type RequestId: String
601
+
602
+ attr_accessor :Total, :Data, :PageToken, :RequestId
603
+
604
+ def initialize(total=nil, data=nil, pagetoken=nil, requestid=nil)
605
+ @Total = total
606
+ @Data = data
607
+ @PageToken = pagetoken
608
+ @RequestId = requestid
609
+ end
610
+
611
+ def deserialize(params)
612
+ @Total = params['Total']
613
+ unless params['Data'].nil?
614
+ @Data = []
615
+ params['Data'].each do |i|
616
+ taskdata_tmp = TaskData.new
617
+ taskdata_tmp.deserialize(i)
618
+ @Data << taskdata_tmp
619
+ end
620
+ end
621
+ @PageToken = params['PageToken']
622
+ @RequestId = params['RequestId']
623
+ end
624
+ end
625
+
626
+ # Result结果详情
627
+ class ImageResult < TencentCloud::Common::AbstractModel
628
+ # @param HitFlag: 违规标志
629
+ # 0 未命中
630
+ # 1 命中
631
+ # 注意:此字段可能返回 null,表示取不到有效值。
632
+ # @type HitFlag: Integer
633
+ # @param Label: 命中的标签
634
+ # Porn 色情
635
+ # Sexy 性感
636
+ # Polity 政治
637
+ # Illegal 违法
638
+ # Abuse 谩骂
639
+ # Terror 暴恐
640
+ # Ad 广告
641
+ # 注意:此字段可能返回 null,表示取不到有效值。
642
+ # @type Label: String
643
+ # @param Suggestion: 审核建议,可选值:
644
+ # Pass 通过,
645
+ # Review 建议人审,
646
+ # Block 确认违规
647
+ # 注意:此字段可能返回 null,表示取不到有效值。
648
+ # @type Suggestion: String
649
+ # @param Score: 得分
650
+ # 注意:此字段可能返回 null,表示取不到有效值。
651
+ # @type Score: Integer
652
+ # @param Results: 画面截帧图片结果集
653
+ # 注意:此字段可能返回 null,表示取不到有效值。
654
+ # @type Results: Array
655
+ # @param Url: 图片URL地址
656
+ # 注意:此字段可能返回 null,表示取不到有效值。
657
+ # @type Url: String
658
+ # @param Extra: 附加字段
659
+ # 注意:此字段可能返回 null,表示取不到有效值。
660
+ # @type Extra: String
661
+
662
+ attr_accessor :HitFlag, :Label, :Suggestion, :Score, :Results, :Url, :Extra
663
+
664
+ def initialize(hitflag=nil, label=nil, suggestion=nil, score=nil, results=nil, url=nil, extra=nil)
665
+ @HitFlag = hitflag
666
+ @Label = label
667
+ @Suggestion = suggestion
668
+ @Score = score
669
+ @Results = results
670
+ @Url = url
671
+ @Extra = extra
672
+ end
673
+
674
+ def deserialize(params)
675
+ @HitFlag = params['HitFlag']
676
+ @Label = params['Label']
677
+ @Suggestion = params['Suggestion']
678
+ @Score = params['Score']
679
+ unless params['Results'].nil?
680
+ @Results = []
681
+ params['Results'].each do |i|
682
+ imageresultresult_tmp = ImageResultResult.new
683
+ imageresultresult_tmp.deserialize(i)
684
+ @Results << imageresultresult_tmp
685
+ end
686
+ end
687
+ @Url = params['Url']
688
+ @Extra = params['Extra']
689
+ end
690
+ end
691
+
692
+ # 图片输出结果的子结果
693
+ class ImageResultResult < TencentCloud::Common::AbstractModel
694
+ # @param Scene: 场景
695
+ # Porn 色情
696
+ # Sexy 性感
697
+ # Polity 政治
698
+ # Illegal 违法
699
+ # Abuse 谩骂
700
+ # Terror 暴恐
701
+ # Ad 广告
702
+ # 注意:此字段可能返回 null,表示取不到有效值。
703
+ # @type Scene: String
704
+ # @param HitFlag: 是否命中
705
+ # 0 未命中
706
+ # 1 命中
707
+ # 注意:此字段可能返回 null,表示取不到有效值。
708
+ # @type HitFlag: Integer
709
+ # @param Suggestion: 审核建议,可选值:
710
+ # Pass 通过,
711
+ # Review 建议人审,
712
+ # Block 确认违规
713
+ # 注意:此字段可能返回 null,表示取不到有效值。
714
+ # @type Suggestion: String
715
+ # @param Label: 标签
716
+ # 注意:此字段可能返回 null,表示取不到有效值。
717
+ # @type Label: String
718
+ # @param SubLabel: 子标签
719
+ # 注意:此字段可能返回 null,表示取不到有效值。
720
+ # @type SubLabel: String
721
+ # @param Score: 分数
722
+ # 注意:此字段可能返回 null,表示取不到有效值。
723
+ # @type Score: Integer
724
+ # @param Names: 如果命中场景为涉政,则该数据为人物姓名列表,否则null
725
+ # 注意:此字段可能返回 null,表示取不到有效值。
726
+ # @type Names: Array
727
+ # @param Text: 图片OCR文本
728
+ # 注意:此字段可能返回 null,表示取不到有效值。
729
+ # @type Text: String
730
+ # @param Details: 其他详情
731
+ # 注意:此字段可能返回 null,表示取不到有效值。
732
+ # @type Details: Array
733
+
734
+ attr_accessor :Scene, :HitFlag, :Suggestion, :Label, :SubLabel, :Score, :Names, :Text, :Details
735
+
736
+ def initialize(scene=nil, hitflag=nil, suggestion=nil, label=nil, sublabel=nil, score=nil, names=nil, text=nil, details=nil)
737
+ @Scene = scene
738
+ @HitFlag = hitflag
739
+ @Suggestion = suggestion
740
+ @Label = label
741
+ @SubLabel = sublabel
742
+ @Score = score
743
+ @Names = names
744
+ @Text = text
745
+ @Details = details
746
+ end
747
+
748
+ def deserialize(params)
749
+ @Scene = params['Scene']
750
+ @HitFlag = params['HitFlag']
751
+ @Suggestion = params['Suggestion']
752
+ @Label = params['Label']
753
+ @SubLabel = params['SubLabel']
754
+ @Score = params['Score']
755
+ @Names = params['Names']
756
+ @Text = params['Text']
757
+ unless params['Details'].nil?
758
+ @Details = []
759
+ params['Details'].each do |i|
760
+ imageresultsresultdetail_tmp = ImageResultsResultDetail.new
761
+ imageresultsresultdetail_tmp.deserialize(i)
762
+ @Details << imageresultsresultdetail_tmp
763
+ end
764
+ end
765
+ end
766
+ end
767
+
768
+ # 具体场景下的图片识别结果
769
+ class ImageResultsResultDetail < TencentCloud::Common::AbstractModel
770
+ # @param Name: 任务名称
771
+ # 注意:此字段可能返回 null,表示取不到有效值。
772
+ # @type Name: String
773
+ # @param Text: OCR识别文本
774
+ # 注意:此字段可能返回 null,表示取不到有效值。
775
+ # @type Text: String
776
+ # @param Location: 位置信息
777
+ # 注意:此字段可能返回 null,表示取不到有效值。
778
+ # @type Location: :class:`Tencentcloud::Vm.v20210922.models.ImageResultsResultDetailLocation`
779
+ # @param Label: 标签
780
+ # 注意:此字段可能返回 null,表示取不到有效值。
781
+ # @type Label: String
782
+ # @param LibId: 库ID
783
+ # 注意:此字段可能返回 null,表示取不到有效值。
784
+ # @type LibId: String
785
+ # @param LibName: 库名称
786
+ # 注意:此字段可能返回 null,表示取不到有效值。
787
+ # @type LibName: String
788
+ # @param Keywords: 命中的关键词
789
+ # 注意:此字段可能返回 null,表示取不到有效值。
790
+ # @type Keywords: Array
791
+ # @param Suggestion: 建议
792
+ # 注意:此字段可能返回 null,表示取不到有效值。
793
+ # @type Suggestion: String
794
+ # @param Score: 得分
795
+ # 注意:此字段可能返回 null,表示取不到有效值。
796
+ # @type Score: Integer
797
+ # @param SubLabelCode: 子标签码
798
+ # 注意:此字段可能返回 null,表示取不到有效值。
799
+ # @type SubLabelCode: String
800
+
801
+ attr_accessor :Name, :Text, :Location, :Label, :LibId, :LibName, :Keywords, :Suggestion, :Score, :SubLabelCode
802
+
803
+ def initialize(name=nil, text=nil, location=nil, label=nil, libid=nil, libname=nil, keywords=nil, suggestion=nil, score=nil, sublabelcode=nil)
804
+ @Name = name
805
+ @Text = text
806
+ @Location = location
807
+ @Label = label
808
+ @LibId = libid
809
+ @LibName = libname
810
+ @Keywords = keywords
811
+ @Suggestion = suggestion
812
+ @Score = score
813
+ @SubLabelCode = sublabelcode
814
+ end
815
+
816
+ def deserialize(params)
817
+ @Name = params['Name']
818
+ @Text = params['Text']
819
+ unless params['Location'].nil?
820
+ @Location = ImageResultsResultDetailLocation.new
821
+ @Location.deserialize(params['Location'])
822
+ end
823
+ @Label = params['Label']
824
+ @LibId = params['LibId']
825
+ @LibName = params['LibName']
826
+ @Keywords = params['Keywords']
827
+ @Suggestion = params['Suggestion']
828
+ @Score = params['Score']
829
+ @SubLabelCode = params['SubLabelCode']
830
+ end
831
+ end
832
+
833
+ # 图片详情位置信息
834
+ class ImageResultsResultDetailLocation < TencentCloud::Common::AbstractModel
835
+ # @param X: x坐标
836
+ # 注意:此字段可能返回 null,表示取不到有效值。
837
+ # @type X: Float
838
+ # @param Y: y坐标
839
+ # 注意:此字段可能返回 null,表示取不到有效值。
840
+ # @type Y: Float
841
+ # @param Width: 宽度
842
+ # 注意:此字段可能返回 null,表示取不到有效值。
843
+ # @type Width: Integer
844
+ # @param Height: 高度
845
+ # 注意:此字段可能返回 null,表示取不到有效值。
846
+ # @type Height: Integer
847
+ # @param Rotate: 旋转角度
848
+ # 注意:此字段可能返回 null,表示取不到有效值。
849
+ # @type Rotate: Float
850
+
851
+ attr_accessor :X, :Y, :Width, :Height, :Rotate
852
+
853
+ def initialize(x=nil, y=nil, width=nil, height=nil, rotate=nil)
854
+ @X = x
855
+ @Y = y
856
+ @Width = width
857
+ @Height = height
858
+ @Rotate = rotate
859
+ end
860
+
861
+ def deserialize(params)
862
+ @X = params['X']
863
+ @Y = params['Y']
864
+ @Width = params['Width']
865
+ @Height = params['Height']
866
+ @Rotate = params['Rotate']
867
+ end
868
+ end
869
+
870
+ # 图片段信息
871
+ class ImageSegments < TencentCloud::Common::AbstractModel
872
+ # @param OffsetTime: 截帧时间。
873
+ # 点播文件:该值为相对于视频偏移时间,单位为秒,例如:0,5,10
874
+ # 直播流:该值为时间戳,例如:1594650717
875
+ # @type OffsetTime: String
876
+ # @param Result: 画面截帧结果详情
877
+ # @type Result: :class:`Tencentcloud::Vm.v20210922.models.ImageResult`
878
+
879
+ attr_accessor :OffsetTime, :Result
880
+
881
+ def initialize(offsettime=nil, result=nil)
882
+ @OffsetTime = offsettime
883
+ @Result = result
884
+ end
885
+
886
+ def deserialize(params)
887
+ @OffsetTime = params['OffsetTime']
888
+ unless params['Result'].nil?
889
+ @Result = ImageResult.new
890
+ @Result.deserialize(params['Result'])
891
+ end
892
+ end
893
+ end
894
+
895
+ # 输入信息详情
896
+ class InputInfo < TencentCloud::Common::AbstractModel
897
+ # @param Type: 传入的类型可选:URL,COS
898
+ # 注意:此字段可能返回 null,表示取不到有效值。
899
+ # @type Type: String
900
+ # @param Url: Url地址
901
+ # 注意:此字段可能返回 null,表示取不到有效值。
902
+ # @type Url: String
903
+ # @param BucketInfo: 桶信息。当输入当时COS时,该字段不为空
904
+ # 注意:此字段可能返回 null,表示取不到有效值。
905
+ # @type BucketInfo: String
906
+
907
+ attr_accessor :Type, :Url, :BucketInfo
908
+
909
+ def initialize(type=nil, url=nil, bucketinfo=nil)
910
+ @Type = type
911
+ @Url = url
912
+ @BucketInfo = bucketinfo
913
+ end
914
+
915
+ def deserialize(params)
916
+ @Type = params['Type']
917
+ @Url = params['Url']
918
+ @BucketInfo = params['BucketInfo']
919
+ end
920
+ end
921
+
922
+ # 媒体类型
923
+ class MediaInfo < TencentCloud::Common::AbstractModel
924
+ # @param Codecs: 编码格式
925
+ # @type Codecs: String
926
+ # @param Duration: 流检测时分片时长
927
+ # 注意:此字段可能返回 0,表示取不到有效值。
928
+ # @type Duration: Integer
929
+ # @param Width: 宽,单位为像素
930
+ # @type Width: Integer
931
+ # @param Height: 高,单位为像素
932
+ # @type Height: Integer
933
+
934
+ attr_accessor :Codecs, :Duration, :Width, :Height
935
+
936
+ def initialize(codecs=nil, duration=nil, width=nil, height=nil)
937
+ @Codecs = codecs
938
+ @Duration = duration
939
+ @Width = width
940
+ @Height = height
941
+ end
942
+
943
+ def deserialize(params)
944
+ @Codecs = params['Codecs']
945
+ @Duration = params['Duration']
946
+ @Width = params['Width']
947
+ @Height = params['Height']
948
+ end
949
+ end
950
+
951
+ # 数据存储信息
952
+ class StorageInfo < TencentCloud::Common::AbstractModel
953
+ # @param Type: 类型 可选:
954
+ # URL 资源链接类型
955
+ # COS 腾讯云对象存储类型
956
+ # @type Type: String
957
+ # @param Url: 资源链接
958
+ # @type Url: String
959
+ # @param BucketInfo: 腾讯云存储桶信息
960
+ # @type BucketInfo: :class:`Tencentcloud::Vm.v20210922.models.BucketInfo`
961
+
962
+ attr_accessor :Type, :Url, :BucketInfo
963
+
964
+ def initialize(type=nil, url=nil, bucketinfo=nil)
965
+ @Type = type
966
+ @Url = url
967
+ @BucketInfo = bucketinfo
968
+ end
969
+
970
+ def deserialize(params)
971
+ @Type = params['Type']
972
+ @Url = params['Url']
973
+ unless params['BucketInfo'].nil?
974
+ @BucketInfo = BucketInfo.new
975
+ @BucketInfo.deserialize(params['BucketInfo'])
976
+ end
977
+ end
978
+ end
979
+
980
+ # 任务数据
981
+ class TaskData < TencentCloud::Common::AbstractModel
982
+ # @param TaskId: 任务ID
983
+ # 注意:此字段可能返回 null,表示取不到有效值。
984
+ # @type TaskId: String
985
+ # @param DataId: 输入的数据ID
986
+ # 注意:此字段可能返回 null,表示取不到有效值。
987
+ # @type DataId: String
988
+ # @param BizType: 业务类型
989
+ # 注意:此字段可能返回 null,表示取不到有效值。
990
+ # @type BizType: String
991
+ # @param Name: 任务名称
992
+ # 注意:此字段可能返回 null,表示取不到有效值。
993
+ # @type Name: String
994
+ # @param Status: 状态,可选:PENDING,RUNNING,ERROR,FINISH,CANCELLED
995
+ # 注意:此字段可能返回 null,表示取不到有效值。
996
+ # @type Status: String
997
+ # @param Type: 任务类型
998
+ # 注意:此字段可能返回 null,表示取不到有效值。
999
+ # @type Type: String
1000
+ # @param Suggestion: 处理建议
1001
+ # 注意:此字段可能返回 null,表示取不到有效值。
1002
+ # @type Suggestion: String
1003
+ # @param Labels: 标签
1004
+ # 注意:此字段可能返回 null,表示取不到有效值。
1005
+ # @type Labels: Array
1006
+ # @param MediaInfo: 媒体信息
1007
+ # 注意:此字段可能返回 null,表示取不到有效值。
1008
+ # @type MediaInfo: :class:`Tencentcloud::Vm.v20210922.models.MediaInfo`
1009
+ # @param InputInfo: 输入信息
1010
+ # 注意:此字段可能返回 null,表示取不到有效值。
1011
+ # @type InputInfo: :class:`Tencentcloud::Vm.v20210922.models.InputInfo`
1012
+ # @param CreatedAt: 创建时间
1013
+ # 注意:此字段可能返回 null,表示取不到有效值。
1014
+ # @type CreatedAt: String
1015
+ # @param UpdatedAt: 更新时间
1016
+ # 注意:此字段可能返回 null,表示取不到有效值。
1017
+ # @type UpdatedAt: String
1018
+
1019
+ attr_accessor :TaskId, :DataId, :BizType, :Name, :Status, :Type, :Suggestion, :Labels, :MediaInfo, :InputInfo, :CreatedAt, :UpdatedAt
1020
+
1021
+ 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)
1022
+ @TaskId = taskid
1023
+ @DataId = dataid
1024
+ @BizType = biztype
1025
+ @Name = name
1026
+ @Status = status
1027
+ @Type = type
1028
+ @Suggestion = suggestion
1029
+ @Labels = labels
1030
+ @MediaInfo = mediainfo
1031
+ @InputInfo = inputinfo
1032
+ @CreatedAt = createdat
1033
+ @UpdatedAt = updatedat
1034
+ end
1035
+
1036
+ def deserialize(params)
1037
+ @TaskId = params['TaskId']
1038
+ @DataId = params['DataId']
1039
+ @BizType = params['BizType']
1040
+ @Name = params['Name']
1041
+ @Status = params['Status']
1042
+ @Type = params['Type']
1043
+ @Suggestion = params['Suggestion']
1044
+ unless params['Labels'].nil?
1045
+ @Labels = []
1046
+ params['Labels'].each do |i|
1047
+ tasklabel_tmp = TaskLabel.new
1048
+ tasklabel_tmp.deserialize(i)
1049
+ @Labels << tasklabel_tmp
1050
+ end
1051
+ end
1052
+ unless params['MediaInfo'].nil?
1053
+ @MediaInfo = MediaInfo.new
1054
+ @MediaInfo.deserialize(params['MediaInfo'])
1055
+ end
1056
+ unless params['InputInfo'].nil?
1057
+ @InputInfo = InputInfo.new
1058
+ @InputInfo.deserialize(params['InputInfo'])
1059
+ end
1060
+ @CreatedAt = params['CreatedAt']
1061
+ @UpdatedAt = params['UpdatedAt']
1062
+ end
1063
+ end
1064
+
1065
+ # Cos TaskFilter
1066
+ class TaskFilter < TencentCloud::Common::AbstractModel
1067
+ # @param BizType: 任务业务类型
1068
+ # @type BizType: String
1069
+ # @param Type: 任务类型,可选:VIDEO,AUDIO, LIVE_VIDEO, LIVE_AUDIO
1070
+ # @type Type: String
1071
+ # @param Suggestion: 建议,可选:Pass, Review,Block
1072
+ # @type Suggestion: String
1073
+ # @param TaskStatus: 状态,可选:PENDING,RUNNING,ERROR,FINISH,CANCELLED
1074
+ # @type TaskStatus: String
1075
+
1076
+ attr_accessor :BizType, :Type, :Suggestion, :TaskStatus
1077
+
1078
+ def initialize(biztype=nil, type=nil, suggestion=nil, taskstatus=nil)
1079
+ @BizType = biztype
1080
+ @Type = type
1081
+ @Suggestion = suggestion
1082
+ @TaskStatus = taskstatus
1083
+ end
1084
+
1085
+ def deserialize(params)
1086
+ @BizType = params['BizType']
1087
+ @Type = params['Type']
1088
+ @Suggestion = params['Suggestion']
1089
+ @TaskStatus = params['TaskStatus']
1090
+ end
1091
+ end
1092
+
1093
+ # 音视频任务结构
1094
+ class TaskInput < TencentCloud::Common::AbstractModel
1095
+ # @param DataId: 数据ID
1096
+ # @type DataId: String
1097
+ # @param Name: 任务名
1098
+ # @type Name: String
1099
+ # @param Input: 任务输入
1100
+ # @type Input: :class:`Tencentcloud::Vm.v20210922.models.StorageInfo`
1101
+
1102
+ attr_accessor :DataId, :Name, :Input
1103
+
1104
+ def initialize(dataid=nil, name=nil, input=nil)
1105
+ @DataId = dataid
1106
+ @Name = name
1107
+ @Input = input
1108
+ end
1109
+
1110
+ def deserialize(params)
1111
+ @DataId = params['DataId']
1112
+ @Name = params['Name']
1113
+ unless params['Input'].nil?
1114
+ @Input = StorageInfo.new
1115
+ @Input.deserialize(params['Input'])
1116
+ end
1117
+ end
1118
+ end
1119
+
1120
+ # 任务输出标签
1121
+ class TaskLabel < TencentCloud::Common::AbstractModel
1122
+ # @param Label: 命中的标签
1123
+ # Porn 色情
1124
+ # Sexy 性感
1125
+ # Polity 政治
1126
+ # Illegal 违法
1127
+ # Abuse 谩骂
1128
+ # Terror 暴恐
1129
+ # Ad 广告
1130
+ # 注意:此字段可能返回 null,表示取不到有效值。
1131
+ # @type Label: String
1132
+ # @param Suggestion: 审核建议,可选值:
1133
+ # Pass 通过,
1134
+ # Review 建议人审,
1135
+ # Block 确认违规
1136
+ # 注意:此字段可能返回 null,表示取不到有效值。
1137
+ # @type Suggestion: String
1138
+ # @param Score: 得分,分数是 0 ~ 100
1139
+ # 注意:此字段可能返回 null,表示取不到有效值。
1140
+ # @type Score: Integer
1141
+
1142
+ attr_accessor :Label, :Suggestion, :Score
1143
+
1144
+ def initialize(label=nil, suggestion=nil, score=nil)
1145
+ @Label = label
1146
+ @Suggestion = suggestion
1147
+ @Score = score
1148
+ end
1149
+
1150
+ def deserialize(params)
1151
+ @Label = params['Label']
1152
+ @Suggestion = params['Suggestion']
1153
+ @Score = params['Score']
1154
+ end
1155
+ end
1156
+
1157
+ # 创建任务时的返回结果
1158
+ class TaskResult < TencentCloud::Common::AbstractModel
1159
+ # @param DataId: 请求时传入的DataId
1160
+ # 注意:此字段可能返回 null,表示取不到有效值。
1161
+ # @type DataId: String
1162
+ # @param TaskId: TaskId,任务ID
1163
+ # 注意:此字段可能返回 null,表示取不到有效值。
1164
+ # @type TaskId: String
1165
+ # @param Code: 错误码。如果code为OK,则表示创建成功,其他则参考公共错误码
1166
+ # 注意:此字段可能返回 null,表示取不到有效值。
1167
+ # @type Code: String
1168
+ # @param Message: 如果错误,该字段表示错误详情
1169
+ # 注意:此字段可能返回 null,表示取不到有效值。
1170
+ # @type Message: String
1171
+
1172
+ attr_accessor :DataId, :TaskId, :Code, :Message
1173
+
1174
+ def initialize(dataid=nil, taskid=nil, code=nil, message=nil)
1175
+ @DataId = dataid
1176
+ @TaskId = taskid
1177
+ @Code = code
1178
+ @Message = message
1179
+ end
1180
+
1181
+ def deserialize(params)
1182
+ @DataId = params['DataId']
1183
+ @TaskId = params['TaskId']
1184
+ @Code = params['Code']
1185
+ @Message = params['Message']
1186
+ end
1187
+ end
1188
+
1189
+ end
1190
+ end
1191
+ end
1192
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-vm
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.402
4
+ version: 3.0.405
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-01 00:00:00.000000000 Z
11
+ date: 2022-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -38,6 +38,8 @@ files:
38
38
  - lib/tencentcloud-sdk-vm.rb
39
39
  - lib/v20201229/models.rb
40
40
  - lib/v20201229/client.rb
41
+ - lib/v20210922/models.rb
42
+ - lib/v20210922/client.rb
41
43
  - lib/VERSION
42
44
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
43
45
  licenses: