tencentcloud-sdk-vod 1.0.279 → 1.0.282

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: cc5f3dbd73bd38b0664d768f09fe78a5836547b6
4
- data.tar.gz: 06eddaf6655170091c4020ba1243519eaa19d523
3
+ metadata.gz: dffc343b44a42f7019c61145c56f4ad486b91a53
4
+ data.tar.gz: 2443d3521d5dc6f6f51a97532f51bf3deb8fc863
5
5
  SHA512:
6
- metadata.gz: 4531988984bfefb583d70fcb6ec681a686885a2c74a970088d9abffd55a597b950195db685e5555fb567530658530366515058c7e935623576a008eb3569b8e1
7
- data.tar.gz: d3e08510d65403e05b4c7f0f46396f0ecbb0f9c37d5007afc21b8b589a6492d1320edc093e9ceeb7b393edee2835c322e80ce354f5712c00bf4affd83255d041
6
+ metadata.gz: 62f6295ffe693d655e033a7d6441f1f558f7a58be60db0d7be88202d65d50ba36da4e7b15cc279bec06f2da9a6c532e633ea946873b3f77cd1352fe8f434d9e4
7
+ data.tar.gz: 01661785b5233c2dce894a825b39ba218f08b4396b83a78cc5e400e9ab7de8364d31747223b7082f676ff9236c692394329de22717cd09abbea3a66f355af702
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.279
1
+ 1.0.282
@@ -1577,6 +1577,33 @@ module TencentCloud
1577
1577
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1578
1578
  end
1579
1579
 
1580
+ # 该接口用于查询媒体文件按指定时间粒度统计的播放数据
1581
+ # * 可以查询最近一年的播放统计数据。
1582
+ # * 时间粒度为小时,结束时间和起始时间的跨度最大为7天。
1583
+ # * 时间粒度为天,结束时间和起始时间的跨度最大为90天。
1584
+
1585
+ # @param request: Request instance for DescribeMediaPlayStatDetails.
1586
+ # @type request: :class:`Tencentcloud::vod::V20180717::DescribeMediaPlayStatDetailsRequest`
1587
+ # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeMediaPlayStatDetailsResponse`
1588
+ def DescribeMediaPlayStatDetails(request)
1589
+ body = send_request('DescribeMediaPlayStatDetails', request.serialize)
1590
+ response = JSON.parse(body)
1591
+ if response['Response'].key?('Error') == false
1592
+ model = DescribeMediaPlayStatDetailsResponse.new
1593
+ model.deserialize(response['Response'])
1594
+ model
1595
+ else
1596
+ code = response['Response']['Error']['Code']
1597
+ message = response['Response']['Error']['Message']
1598
+ reqid = response['Response']['RequestId']
1599
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1600
+ end
1601
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1602
+ raise e
1603
+ rescue StandardError => e
1604
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1605
+ end
1606
+
1580
1607
  # 该接口返回查询时间范围内每天使用的视频处理用量信息。
1581
1608
  # 1. 可以查询最近365天内的视频处理统计数据。
1582
1609
  # 2. 查询时间跨度不超过90天。
@@ -2730,6 +2757,36 @@ module TencentCloud
2730
2757
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2731
2758
  end
2732
2759
 
2760
+ # 对点播中的图片文件发起处理任务,功能包括:
2761
+
2762
+ # 1. 智能识别(令人反感的信息、不安全的信息、不适宜的信息);
2763
+
2764
+ # ><li>图片文件大小支持:文件 < 5M;</li>
2765
+ # ><li>图片文件分辨率支持:建议分辨率大于256x256,否则可能会影响识别效果;</li>
2766
+ # ><li>图片文件支持格式:PNG、JPG、JPEG、BMP、GIF、WEBP格式。</li>
2767
+
2768
+ # @param request: Request instance for ProcessImage.
2769
+ # @type request: :class:`Tencentcloud::vod::V20180717::ProcessImageRequest`
2770
+ # @rtype: :class:`Tencentcloud::vod::V20180717::ProcessImageResponse`
2771
+ def ProcessImage(request)
2772
+ body = send_request('ProcessImage', request.serialize)
2773
+ response = JSON.parse(body)
2774
+ if response['Response'].key?('Error') == false
2775
+ model = ProcessImageResponse.new
2776
+ model.deserialize(response['Response'])
2777
+ model
2778
+ else
2779
+ code = response['Response']['Error']['Code']
2780
+ message = response['Response']['Error']['Message']
2781
+ reqid = response['Response']['RequestId']
2782
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2783
+ end
2784
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2785
+ raise e
2786
+ rescue StandardError => e
2787
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2788
+ end
2789
+
2733
2790
  # 对点播中的音视频媒体发起处理任务,功能包括:
2734
2791
  # 1. 视频转码(带水印);
2735
2792
  # 2. 视频转动图;
@@ -4395,7 +4395,7 @@ module TencentCloud
4395
4395
  # @param Output: 制作媒体文件任务的输出。
4396
4396
  # 注意:此字段可能返回 null,表示取不到有效值。
4397
4397
  # @type Output: :class:`Tencentcloud::Vod.v20180717.models.ComposeMediaTaskOutput`
4398
- # @param MetaData: 原始视频的元信息。
4398
+ # @param MetaData: 输出视频的元信息。
4399
4399
  # 注意:此字段可能返回 null,表示取不到有效值。
4400
4400
  # @type MetaData: :class:`Tencentcloud::Vod.v20180717.models.MediaMetaData`
4401
4401
  # @param SessionId: 用于去重的识别码,如果七天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。
@@ -4618,6 +4618,107 @@ module TencentCloud
4618
4618
  end
4619
4619
  end
4620
4620
 
4621
+ # 图片Ocr 文字鉴别信息的任务结果类型
4622
+ class ContentReviewOcrResult < TencentCloud::Common::AbstractModel
4623
+ # @param Confidence: Ocr 文字鉴别结果的评分,分值为0到100。
4624
+ # @type Confidence: Float
4625
+ # @param Suggestion: Ocr 文字鉴别的结果建议,取值范围:
4626
+ # <li>pass;</li>
4627
+ # <li>review;</li>
4628
+ # <li>block。</li>
4629
+ # @type Suggestion: String
4630
+ # @param KeywordSet: Ocr 文字鉴别的嫌疑关键词列表。
4631
+ # @type KeywordSet: Array
4632
+ # @param AreaCoordSet: Ocr 文字鉴别的嫌疑文字出现的区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
4633
+ # @type AreaCoordSet: Array
4634
+
4635
+ attr_accessor :Confidence, :Suggestion, :KeywordSet, :AreaCoordSet
4636
+
4637
+ def initialize(confidence=nil, suggestion=nil, keywordset=nil, areacoordset=nil)
4638
+ @Confidence = confidence
4639
+ @Suggestion = suggestion
4640
+ @KeywordSet = keywordset
4641
+ @AreaCoordSet = areacoordset
4642
+ end
4643
+
4644
+ def deserialize(params)
4645
+ @Confidence = params['Confidence']
4646
+ @Suggestion = params['Suggestion']
4647
+ @KeywordSet = params['KeywordSet']
4648
+ @AreaCoordSet = params['AreaCoordSet']
4649
+ end
4650
+ end
4651
+
4652
+ # 图片智能内容识别任务结果
4653
+ class ContentReviewResult < TencentCloud::Common::AbstractModel
4654
+ # @param Type: 结果类型,取值范围:
4655
+ # <li>Porn.Image:图片画面中的鉴别令人反感的信息结果;</li>
4656
+ # <li>Terrorism.Image:图片画面中的鉴别令人不安全的信息结果;</li>
4657
+ # <li>Political.Image:图片画面中的鉴别令人不适宜信息结果;</li>
4658
+ # <li>Porn.Ocr:图片 OCR 文字中的鉴别令人反感的信息结果;</li>
4659
+ # <li>Terrorism.Ocr:图片 OCR 文字中的鉴别令人不安全的信息结果;</li>
4660
+ # <li>Political.Ocr:图片 OCR 文字中的鉴别令人不适宜信息结果。</li>
4661
+ # @type Type: String
4662
+ # @param PornImageResult: 图片画面中的鉴别令人反感的信息结果,当 Type 为 Porn.Image 时有效。
4663
+ # 注意:此字段可能返回 null,表示取不到有效值。
4664
+ # @type PornImageResult: :class:`Tencentcloud::Vod.v20180717.models.PornImageResult`
4665
+ # @param TerrorismImageResult: 图片画面中的鉴别令人不安全的信息结果,当 Type 为 Terrorism.Image 时有效。
4666
+ # 注意:此字段可能返回 null,表示取不到有效值。
4667
+ # @type TerrorismImageResult: :class:`Tencentcloud::Vod.v20180717.models.TerrorismImageResult`
4668
+ # @param PoliticalImageResult: 图片画面中的鉴别令人不适宜信息结果,当 Type 为 Political.Image 时有效。
4669
+ # 注意:此字段可能返回 null,表示取不到有效值。
4670
+ # @type PoliticalImageResult: :class:`Tencentcloud::Vod.v20180717.models.PoliticalImageResult`
4671
+ # @param PornOcrResult: 图片 OCR 文字中的鉴别令人反感的信息结果,当 Type 为 Porn.Ocr 时有效。
4672
+ # 注意:此字段可能返回 null,表示取不到有效值。
4673
+ # @type PornOcrResult: :class:`Tencentcloud::Vod.v20180717.models.ContentReviewOcrResult`
4674
+ # @param TerrorismOcrResult: 图片 OCR 中的鉴别令人不安全的信息结果,当 Type 为 Terrorism.Ocr 时有效。
4675
+ # 注意:此字段可能返回 null,表示取不到有效值。
4676
+ # @type TerrorismOcrResult: :class:`Tencentcloud::Vod.v20180717.models.ContentReviewOcrResult`
4677
+ # @param PoliticalOcrResult: 图片 OCR 文字中的鉴别令人不适宜信息结果,当 Type 为 Political.Ocr 时有效。
4678
+ # 注意:此字段可能返回 null,表示取不到有效值。
4679
+ # @type PoliticalOcrResult: :class:`Tencentcloud::Vod.v20180717.models.ContentReviewOcrResult`
4680
+
4681
+ attr_accessor :Type, :PornImageResult, :TerrorismImageResult, :PoliticalImageResult, :PornOcrResult, :TerrorismOcrResult, :PoliticalOcrResult
4682
+
4683
+ def initialize(type=nil, pornimageresult=nil, terrorismimageresult=nil, politicalimageresult=nil, pornocrresult=nil, terrorismocrresult=nil, politicalocrresult=nil)
4684
+ @Type = type
4685
+ @PornImageResult = pornimageresult
4686
+ @TerrorismImageResult = terrorismimageresult
4687
+ @PoliticalImageResult = politicalimageresult
4688
+ @PornOcrResult = pornocrresult
4689
+ @TerrorismOcrResult = terrorismocrresult
4690
+ @PoliticalOcrResult = politicalocrresult
4691
+ end
4692
+
4693
+ def deserialize(params)
4694
+ @Type = params['Type']
4695
+ unless params['PornImageResult'].nil?
4696
+ @PornImageResult = PornImageResult.new
4697
+ @PornImageResult.deserialize(params['PornImageResult'])
4698
+ end
4699
+ unless params['TerrorismImageResult'].nil?
4700
+ @TerrorismImageResult = TerrorismImageResult.new
4701
+ @TerrorismImageResult.deserialize(params['TerrorismImageResult'])
4702
+ end
4703
+ unless params['PoliticalImageResult'].nil?
4704
+ @PoliticalImageResult = PoliticalImageResult.new
4705
+ @PoliticalImageResult.deserialize(params['PoliticalImageResult'])
4706
+ end
4707
+ unless params['PornOcrResult'].nil?
4708
+ @PornOcrResult = ContentReviewOcrResult.new
4709
+ @PornOcrResult.deserialize(params['PornOcrResult'])
4710
+ end
4711
+ unless params['TerrorismOcrResult'].nil?
4712
+ @TerrorismOcrResult = ContentReviewOcrResult.new
4713
+ @TerrorismOcrResult.deserialize(params['TerrorismOcrResult'])
4714
+ end
4715
+ unless params['PoliticalOcrResult'].nil?
4716
+ @PoliticalOcrResult = ContentReviewOcrResult.new
4717
+ @PoliticalOcrResult.deserialize(params['PoliticalOcrResult'])
4718
+ end
4719
+ end
4720
+ end
4721
+
4621
4722
  # 智能识别模板详情
4622
4723
  class ContentReviewTemplateItem < TencentCloud::Common::AbstractModel
4623
4724
  # @param Definition: 智能识别模板唯一标识。
@@ -8192,6 +8293,68 @@ module TencentCloud
8192
8293
  end
8193
8294
  end
8194
8295
 
8296
+ # DescribeMediaPlayStatDetails请求参数结构体
8297
+ class DescribeMediaPlayStatDetailsRequest < TencentCloud::Common::AbstractModel
8298
+ # @param FileId: 媒体文件 ID。
8299
+ # @type FileId: String
8300
+ # @param StartTime: 起始时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
8301
+ # @type StartTime: String
8302
+ # @param EndTime: 结束时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
8303
+ # @type EndTime: String
8304
+ # @param Interval: 统计时间粒度,有效值:
8305
+ # <li>Hour:以小时为粒度。</li>
8306
+ # <li>Day:以天为粒度。</li>
8307
+ # 默认按时间跨度决定,小于1天以小时为粒度,大于等于1天则以天为粒度。
8308
+ # @type Interval: String
8309
+ # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
8310
+ # @type SubAppId: Integer
8311
+
8312
+ attr_accessor :FileId, :StartTime, :EndTime, :Interval, :SubAppId
8313
+
8314
+ def initialize(fileid=nil, starttime=nil, endtime=nil, interval=nil, subappid=nil)
8315
+ @FileId = fileid
8316
+ @StartTime = starttime
8317
+ @EndTime = endtime
8318
+ @Interval = interval
8319
+ @SubAppId = subappid
8320
+ end
8321
+
8322
+ def deserialize(params)
8323
+ @FileId = params['FileId']
8324
+ @StartTime = params['StartTime']
8325
+ @EndTime = params['EndTime']
8326
+ @Interval = params['Interval']
8327
+ @SubAppId = params['SubAppId']
8328
+ end
8329
+ end
8330
+
8331
+ # DescribeMediaPlayStatDetails返回参数结构体
8332
+ class DescribeMediaPlayStatDetailsResponse < TencentCloud::Common::AbstractModel
8333
+ # @param PlayStatInfoSet: 播放统计数据。
8334
+ # @type PlayStatInfoSet: Array
8335
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8336
+ # @type RequestId: String
8337
+
8338
+ attr_accessor :PlayStatInfoSet, :RequestId
8339
+
8340
+ def initialize(playstatinfoset=nil, requestid=nil)
8341
+ @PlayStatInfoSet = playstatinfoset
8342
+ @RequestId = requestid
8343
+ end
8344
+
8345
+ def deserialize(params)
8346
+ unless params['PlayStatInfoSet'].nil?
8347
+ @PlayStatInfoSet = []
8348
+ params['PlayStatInfoSet'].each do |i|
8349
+ playstatinfo_tmp = PlayStatInfo.new
8350
+ playstatinfo_tmp.deserialize(i)
8351
+ @PlayStatInfoSet << playstatinfo_tmp
8352
+ end
8353
+ end
8354
+ @RequestId = params['RequestId']
8355
+ end
8356
+ end
8357
+
8195
8358
  # DescribeMediaProcessUsageData请求参数结构体
8196
8359
  class DescribeMediaProcessUsageDataRequest < TencentCloud::Common::AbstractModel
8197
8360
  # @param StartTime: 起始日期。使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#52)。
@@ -9743,7 +9906,7 @@ module TencentCloud
9743
9906
  # @param Output: 视频编辑任务的输出。
9744
9907
  # 注意:此字段可能返回 null,表示取不到有效值。
9745
9908
  # @type Output: :class:`Tencentcloud::Vod.v20180717.models.EditMediaTaskOutput`
9746
- # @param MetaData: 原始视频的元信息。
9909
+ # @param MetaData: 输出视频的元信息。
9747
9910
  # @type MetaData: :class:`Tencentcloud::Vod.v20180717.models.MediaMetaData`
9748
9911
  # @param ProcedureTaskId: 若发起视频编辑任务时指定了视频处理流程,则该字段为流程任务 ID。
9749
9912
  # @type ProcedureTaskId: String
@@ -10501,6 +10664,23 @@ module TencentCloud
10501
10664
  end
10502
10665
  end
10503
10666
 
10667
+ # 图片智能内容识别任务输入
10668
+ class ImageContentReviewInput < TencentCloud::Common::AbstractModel
10669
+ # @param Definition: 图片智能内容审核模板 ID。当前只支持:
10670
+ # <li>10:所有审核类型均打开。</li>
10671
+ # @type Definition: Integer
10672
+
10673
+ attr_accessor :Definition
10674
+
10675
+ def initialize(definition=nil)
10676
+ @Definition = definition
10677
+ end
10678
+
10679
+ def deserialize(params)
10680
+ @Definition = params['Definition']
10681
+ end
10682
+ end
10683
+
10504
10684
  # 单个图片处理操作。
10505
10685
  class ImageOperation < TencentCloud::Common::AbstractModel
10506
10686
  # @param Type: 图片处理类型。可选类型有:
@@ -14988,6 +15168,36 @@ module TencentCloud
14988
15168
  end
14989
15169
  end
14990
15170
 
15171
+ # 播放统计信息。
15172
+ class PlayStatInfo < TencentCloud::Common::AbstractModel
15173
+ # @param Time: 数据所在时间区间的开始时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。如:当时间粒度为天,2018-12-01T00:00:00+08:00,表示2018年12月1日(含)到2018年12月2日(不含)区间。
15174
+ # <li>表示小时级别数据时,2019-08-22T00:00:00+08:00表示2019-08-22日0点到1点的统计数据。</li>
15175
+ # <li>表示天级别数据时,2019-08-22T00:00:00+08:00表示2019-08-22日的统计数据。</li>
15176
+ # @type Time: String
15177
+ # @param FileId: 媒体文件ID。
15178
+ # @type FileId: String
15179
+ # @param PlayTimes: 播放次数。
15180
+ # @type PlayTimes: Integer
15181
+ # @param Traffic: 播放流量,单位:字节。
15182
+ # @type Traffic: Integer
15183
+
15184
+ attr_accessor :Time, :FileId, :PlayTimes, :Traffic
15185
+
15186
+ def initialize(time=nil, fileid=nil, playtimes=nil, traffic=nil)
15187
+ @Time = time
15188
+ @FileId = fileid
15189
+ @PlayTimes = playtimes
15190
+ @Traffic = traffic
15191
+ end
15192
+
15193
+ def deserialize(params)
15194
+ @Time = params['Time']
15195
+ @FileId = params['FileId']
15196
+ @PlayTimes = params['PlayTimes']
15197
+ @Traffic = params['Traffic']
15198
+ end
15199
+ end
15200
+
14991
15201
  # 播放器配置详情
14992
15202
  class PlayerConfig < TencentCloud::Common::AbstractModel
14993
15203
  # @param Name: 播放器配置名字。
@@ -15187,6 +15397,37 @@ module TencentCloud
15187
15397
  end
15188
15398
  end
15189
15399
 
15400
+ # 图片画面智能识别涉及令人不适宜信息的任务结果类型
15401
+ class PoliticalImageResult < TencentCloud::Common::AbstractModel
15402
+ # @param Confidence: 鉴别涉及令人不适宜信息的评分,分值为0到100。
15403
+ # @type Confidence: Float
15404
+ # @param Suggestion: 鉴别涉及令人不适宜信息的结果建议,取值范围:
15405
+ # <li>pass;</li>
15406
+ # <li>review;</li>
15407
+ # <li>block。</li>
15408
+ # @type Suggestion: String
15409
+ # @param Name: 涉及令人不适宜的信息、违规图标名字。
15410
+ # @type Name: String
15411
+ # @param AreaCoordSet: 涉及令人不适宜的信息、违规图标出现的区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
15412
+ # @type AreaCoordSet: Array
15413
+
15414
+ attr_accessor :Confidence, :Suggestion, :Name, :AreaCoordSet
15415
+
15416
+ def initialize(confidence=nil, suggestion=nil, name=nil, areacoordset=nil)
15417
+ @Confidence = confidence
15418
+ @Suggestion = suggestion
15419
+ @Name = name
15420
+ @AreaCoordSet = areacoordset
15421
+ end
15422
+
15423
+ def deserialize(params)
15424
+ @Confidence = params['Confidence']
15425
+ @Suggestion = params['Suggestion']
15426
+ @Name = params['Name']
15427
+ @AreaCoordSet = params['AreaCoordSet']
15428
+ end
15429
+ end
15430
+
15190
15431
  # 画面鉴别涉及令人不适宜的信息的任务控制参数
15191
15432
  class PoliticalImgReviewTemplateInfo < TencentCloud::Common::AbstractModel
15192
15433
  # @param Switch: 画面鉴别涉及令人不适宜的信息的任务开关,可选值:
@@ -15436,6 +15677,37 @@ module TencentCloud
15436
15677
  end
15437
15678
  end
15438
15679
 
15680
+ # 图片画面智能识别涉及令人反感的信息的任务结果类型
15681
+ class PornImageResult < TencentCloud::Common::AbstractModel
15682
+ # @param Confidence: 鉴别涉及令人反感的信息的评分,分值为0到100。
15683
+ # @type Confidence: Float
15684
+ # @param Suggestion: 鉴别涉及令人反感的信息的结果建议,取值范围:
15685
+ # <li>pass;</li>
15686
+ # <li>review;</li>
15687
+ # <li>block。</li>
15688
+ # @type Suggestion: String
15689
+ # @param Label: 鉴别涉及令人反感的信息的结果标签,取值范围:
15690
+ # <li>porn:色情;</li>
15691
+ # <li>sexy:性感;</li>
15692
+ # <li>vulgar:低俗;</li>
15693
+ # <li>intimacy:亲密行为。</li>
15694
+ # @type Label: String
15695
+
15696
+ attr_accessor :Confidence, :Suggestion, :Label
15697
+
15698
+ def initialize(confidence=nil, suggestion=nil, label=nil)
15699
+ @Confidence = confidence
15700
+ @Suggestion = suggestion
15701
+ @Label = label
15702
+ end
15703
+
15704
+ def deserialize(params)
15705
+ @Confidence = params['Confidence']
15706
+ @Suggestion = params['Suggestion']
15707
+ @Label = params['Label']
15708
+ end
15709
+ end
15710
+
15439
15711
  # 画面鉴别涉及令人反感的信息的任务控制参数
15440
15712
  class PornImgReviewTemplateInfo < TencentCloud::Common::AbstractModel
15441
15713
  # @param Switch: 画面鉴别涉及令人反感的信息的任务开关,可选值:
@@ -15749,6 +16021,64 @@ module TencentCloud
15749
16021
  end
15750
16022
  end
15751
16023
 
16024
+ # ProcessImage请求参数结构体
16025
+ class ProcessImageRequest < TencentCloud::Common::AbstractModel
16026
+ # @param FileId: 媒体文件 ID,即该文件在云点播上的全局唯一标识符。本接口要求媒体文件必须是图片格式。
16027
+ # @type FileId: String
16028
+ # @param Operation: 操作类型。现在仅支持填 ContentReview,表示内容智能识别。
16029
+ # @type Operation: String
16030
+ # @param ContentReviewInput: 图片内容智能识别参数,当 Operation 为 ContentReview 时该字段有效。
16031
+ # @type ContentReviewInput: :class:`Tencentcloud::Vod.v20180717.models.ImageContentReviewInput`
16032
+ # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
16033
+ # @type SubAppId: Integer
16034
+
16035
+ attr_accessor :FileId, :Operation, :ContentReviewInput, :SubAppId
16036
+
16037
+ def initialize(fileid=nil, operation=nil, contentreviewinput=nil, subappid=nil)
16038
+ @FileId = fileid
16039
+ @Operation = operation
16040
+ @ContentReviewInput = contentreviewinput
16041
+ @SubAppId = subappid
16042
+ end
16043
+
16044
+ def deserialize(params)
16045
+ @FileId = params['FileId']
16046
+ @Operation = params['Operation']
16047
+ unless params['ContentReviewInput'].nil?
16048
+ @ContentReviewInput = ImageContentReviewInput.new
16049
+ @ContentReviewInput.deserialize(params['ContentReviewInput'])
16050
+ end
16051
+ @SubAppId = params['SubAppId']
16052
+ end
16053
+ end
16054
+
16055
+ # ProcessImage返回参数结构体
16056
+ class ProcessImageResponse < TencentCloud::Common::AbstractModel
16057
+ # @param ContentReviewResultSet: 图片内容智能识别任务结果。
16058
+ # @type ContentReviewResultSet: Array
16059
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
16060
+ # @type RequestId: String
16061
+
16062
+ attr_accessor :ContentReviewResultSet, :RequestId
16063
+
16064
+ def initialize(contentreviewresultset=nil, requestid=nil)
16065
+ @ContentReviewResultSet = contentreviewresultset
16066
+ @RequestId = requestid
16067
+ end
16068
+
16069
+ def deserialize(params)
16070
+ unless params['ContentReviewResultSet'].nil?
16071
+ @ContentReviewResultSet = []
16072
+ params['ContentReviewResultSet'].each do |i|
16073
+ contentreviewresult_tmp = ContentReviewResult.new
16074
+ contentreviewresult_tmp.deserialize(i)
16075
+ @ContentReviewResultSet << contentreviewresult_tmp
16076
+ end
16077
+ end
16078
+ @RequestId = params['RequestId']
16079
+ end
16080
+ end
16081
+
15752
16082
  # ProcessMediaByProcedure请求参数结构体
15753
16083
  class ProcessMediaByProcedureRequest < TencentCloud::Common::AbstractModel
15754
16084
  # @param FileId: 媒体文件 ID。
@@ -16400,7 +16730,7 @@ module TencentCloud
16400
16730
  # @param MediaBasicInfo: 转拉完成后生成的媒体文件基础信息。
16401
16731
  # 注意:此字段可能返回 null,表示取不到有效值。
16402
16732
  # @type MediaBasicInfo: :class:`Tencentcloud::Vod.v20180717.models.MediaBasicInfo`
16403
- # @param MetaData: 原始视频的元信息。
16733
+ # @param MetaData: 输出视频的元信息。
16404
16734
  # @type MetaData: :class:`Tencentcloud::Vod.v20180717.models.MediaMetaData`
16405
16735
  # @param FileUrl: 转拉上传完成后生成的播放地址。
16406
16736
  # @type FileUrl: String
@@ -18188,6 +18518,40 @@ module TencentCloud
18188
18518
  end
18189
18519
  end
18190
18520
 
18521
+ # 图片画面智能识别涉及令人不安全的信息的任务结果类型
18522
+ class TerrorismImageResult < TencentCloud::Common::AbstractModel
18523
+ # @param Confidence: 鉴别涉及令人不安全的信息的评分,分值为0到100。
18524
+ # @type Confidence: Float
18525
+ # @param Suggestion: 鉴别涉及令人不安全的信息的结果建议,取值范围:
18526
+ # <li>pass;</li>
18527
+ # <li>review;</li>
18528
+ # <li>block。</li>
18529
+ # @type Suggestion: String
18530
+ # @param Label: 鉴别涉及令人不安全的信息的结果标签,取值范围:
18531
+ # <li>guns:武器枪支;</li>
18532
+ # <li>crowd:人群聚集;</li>
18533
+ # <li>police:警察部队;</li>
18534
+ # <li>bloody:血腥画面;</li>
18535
+ # <li>banners:暴恐旗帜;</li>
18536
+ # <li>explosion:爆炸火灾;</li>
18537
+ # <li>scenario:暴恐画面。</li>
18538
+ # @type Label: String
18539
+
18540
+ attr_accessor :Confidence, :Suggestion, :Label
18541
+
18542
+ def initialize(confidence=nil, suggestion=nil, label=nil)
18543
+ @Confidence = confidence
18544
+ @Suggestion = suggestion
18545
+ @Label = label
18546
+ end
18547
+
18548
+ def deserialize(params)
18549
+ @Confidence = params['Confidence']
18550
+ @Suggestion = params['Suggestion']
18551
+ @Label = params['Label']
18552
+ end
18553
+ end
18554
+
18191
18555
  # 画面鉴别涉及令人不安全的信息的任务控制参数
18192
18556
  class TerrorismImgReviewTemplateInfo < TencentCloud::Common::AbstractModel
18193
18557
  # @param Switch: 画面鉴别涉及令人不安全的信息的任务开关,可选值:
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: 1.0.279
4
+ version: 1.0.282
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-03-18 00:00:00.000000000 Z
11
+ date: 2022-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common