tencentcloud-sdk-vod 1.0.303 → 1.0.306
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180717/client.rb +57 -0
- data/lib/v20180717/models.rb +129 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f6cf4b96bbc7a17f69a6ccf6591b2157d013575
|
4
|
+
data.tar.gz: 7f122a6eaaca27a23e4c2413fdb8f1165f154bcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc92f651b527c400f402d91e8073b8d4647643d74aa2720b2292b05a6d002e90aca474d977003df1f229076a964ca02031b6c8957300c47f097c517fe0d2e033
|
7
|
+
data.tar.gz: 04da4f4a2a47e47b079f27b59e8fcbac47705c3ee2439cbad1817d04a85def1f0e6653ed3a1f047bf7b11a4be9ec45767170dc1b2bd895b8347240eb4eeb7c43
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.306
|
data/lib/v20180717/client.rb
CHANGED
@@ -1545,6 +1545,33 @@ module TencentCloud
|
|
1545
1545
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1546
1546
|
end
|
1547
1547
|
|
1548
|
+
# 该接口返回查询时间范围内每天使用的图片智能识别用量信息。
|
1549
|
+
# 1. 可以查询最近365天内的图片智能识别统计数据。
|
1550
|
+
# 2. 查询时间跨度不超过90天。
|
1551
|
+
# 3. 查询时间跨度超过1天的,返回以天为粒度的数据,否则,返回以5分钟为粒度的数据。
|
1552
|
+
|
1553
|
+
# @param request: Request instance for DescribeImageReviewUsageData.
|
1554
|
+
# @type request: :class:`Tencentcloud::vod::V20180717::DescribeImageReviewUsageDataRequest`
|
1555
|
+
# @rtype: :class:`Tencentcloud::vod::V20180717::DescribeImageReviewUsageDataResponse`
|
1556
|
+
def DescribeImageReviewUsageData(request)
|
1557
|
+
body = send_request('DescribeImageReviewUsageData', request.serialize)
|
1558
|
+
response = JSON.parse(body)
|
1559
|
+
if response['Response'].key?('Error') == false
|
1560
|
+
model = DescribeImageReviewUsageDataResponse.new
|
1561
|
+
model.deserialize(response['Response'])
|
1562
|
+
model
|
1563
|
+
else
|
1564
|
+
code = response['Response']['Error']['Code']
|
1565
|
+
message = response['Response']['Error']['Message']
|
1566
|
+
reqid = response['Response']['RequestId']
|
1567
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1568
|
+
end
|
1569
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1570
|
+
raise e
|
1571
|
+
rescue StandardError => e
|
1572
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1573
|
+
end
|
1574
|
+
|
1548
1575
|
# 查询雪碧图模板,支持根据条件,分页查询。
|
1549
1576
|
|
1550
1577
|
# @param request: Request instance for DescribeImageSpriteTemplates.
|
@@ -2834,6 +2861,8 @@ module TencentCloud
|
|
2834
2861
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2835
2862
|
end
|
2836
2863
|
|
2864
|
+
# 该 API 已经<font color='red'>不再维护</font>,智能识别任务请使用图片智能识别 [ReviewImage](https://cloud.tencent.com/document/api/266/73217) 接口。
|
2865
|
+
|
2837
2866
|
# 对点播中的图片文件发起处理任务,功能包括:
|
2838
2867
|
|
2839
2868
|
# 1. 智能识别(令人反感的信息、不安全的信息、不适宜的信息);
|
@@ -3056,6 +3085,34 @@ module TencentCloud
|
|
3056
3085
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3057
3086
|
end
|
3058
3087
|
|
3088
|
+
# 对点播中的图片文件发起智能识别(令人反感的信息、不安全的信息、不适宜的信息)任务。
|
3089
|
+
|
3090
|
+
# ><li>图片文件大小支持:文件 < 5M;</li>
|
3091
|
+
# ><li>图片文件分辨率支持:建议分辨率大于256x256,否则可能会影响智能识别效果;</li>
|
3092
|
+
# ><li>图片文件支持格式:PNG、JPG、JPEG、BMP、GIF、WEBP格式。</li>
|
3093
|
+
|
3094
|
+
# @param request: Request instance for ReviewImage.
|
3095
|
+
# @type request: :class:`Tencentcloud::vod::V20180717::ReviewImageRequest`
|
3096
|
+
# @rtype: :class:`Tencentcloud::vod::V20180717::ReviewImageResponse`
|
3097
|
+
def ReviewImage(request)
|
3098
|
+
body = send_request('ReviewImage', request.serialize)
|
3099
|
+
response = JSON.parse(body)
|
3100
|
+
if response['Response'].key?('Error') == false
|
3101
|
+
model = ReviewImageResponse.new
|
3102
|
+
model.deserialize(response['Response'])
|
3103
|
+
model
|
3104
|
+
else
|
3105
|
+
code = response['Response']['Error']['Code']
|
3106
|
+
message = response['Response']['Error']['Message']
|
3107
|
+
reqid = response['Response']['RequestId']
|
3108
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3109
|
+
end
|
3110
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3111
|
+
raise e
|
3112
|
+
rescue StandardError => e
|
3113
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3114
|
+
end
|
3115
|
+
|
3059
3116
|
# 搜索媒体信息,支持多种条件筛选,以及支持对返回结果排序、过滤等功能,具体包括:
|
3060
3117
|
# - 指定文件 ID 集合 FileIds ,返回匹配集合中任意 ID 的媒体。
|
3061
3118
|
# - 根据多个媒体文件名 Names 或描述信息 Descriptions 进行模糊搜索。
|
data/lib/v20180717/models.rb
CHANGED
@@ -298,9 +298,9 @@ module TencentCloud
|
|
298
298
|
# <li>HLS。</li>
|
299
299
|
# @type Format: String
|
300
300
|
# @param DrmType: DRM 类型,取值范围:
|
301
|
-
# <li>
|
302
|
-
# <li>
|
303
|
-
# <li>
|
301
|
+
# <li>SimpleAES</li>
|
302
|
+
# <li>Widevine</li>
|
303
|
+
# <li>FairPlay</li>
|
304
304
|
# 如果取值为空字符串,代表不对视频做 DRM 保护。
|
305
305
|
# @type DrmType: String
|
306
306
|
# @param StreamInfos: 自适应转码输入流参数信息,最多输入10路流。
|
@@ -5087,8 +5087,10 @@ module TencentCloud
|
|
5087
5087
|
# @type StreamInfos: Array
|
5088
5088
|
# @param Name: 模板名称,长度限制:64 个字符。
|
5089
5089
|
# @type Name: String
|
5090
|
-
# @param DrmType: DRM方案类型,取值范围:
|
5091
|
-
# <li>SimpleAES
|
5090
|
+
# @param DrmType: DRM 方案类型,取值范围:
|
5091
|
+
# <li>SimpleAES</li>
|
5092
|
+
# <li>Widevine</li>
|
5093
|
+
# <li>FairPlay</li>
|
5092
5094
|
# 如果取值为空字符串,代表不对视频做 DRM 保护。
|
5093
5095
|
# @type DrmType: String
|
5094
5096
|
# @param DisableHigherVideoBitrate: 是否禁止视频低码率转高码率,取值范围:
|
@@ -8199,6 +8201,57 @@ module TencentCloud
|
|
8199
8201
|
end
|
8200
8202
|
end
|
8201
8203
|
|
8204
|
+
# DescribeImageReviewUsageData请求参数结构体
|
8205
|
+
class DescribeImageReviewUsageDataRequest < TencentCloud::Common::AbstractModel
|
8206
|
+
# @param StartTime: 起始日期。使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#52)。
|
8207
|
+
# @type StartTime: String
|
8208
|
+
# @param EndTime: 结束日期,需大于等于起始日期。使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#52)。
|
8209
|
+
# @type EndTime: String
|
8210
|
+
# @param SubAppId: 点播 [子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
|
8211
|
+
# @type SubAppId: Integer
|
8212
|
+
|
8213
|
+
attr_accessor :StartTime, :EndTime, :SubAppId
|
8214
|
+
|
8215
|
+
def initialize(starttime=nil, endtime=nil, subappid=nil)
|
8216
|
+
@StartTime = starttime
|
8217
|
+
@EndTime = endtime
|
8218
|
+
@SubAppId = subappid
|
8219
|
+
end
|
8220
|
+
|
8221
|
+
def deserialize(params)
|
8222
|
+
@StartTime = params['StartTime']
|
8223
|
+
@EndTime = params['EndTime']
|
8224
|
+
@SubAppId = params['SubAppId']
|
8225
|
+
end
|
8226
|
+
end
|
8227
|
+
|
8228
|
+
# DescribeImageReviewUsageData返回参数结构体
|
8229
|
+
class DescribeImageReviewUsageDataResponse < TencentCloud::Common::AbstractModel
|
8230
|
+
# @param ImageReviewUsageDataSet: 图片智能识别次数统计数据,展示查询时间范围内的图片智能识别次数的概览数据。
|
8231
|
+
# @type ImageReviewUsageDataSet: Array
|
8232
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8233
|
+
# @type RequestId: String
|
8234
|
+
|
8235
|
+
attr_accessor :ImageReviewUsageDataSet, :RequestId
|
8236
|
+
|
8237
|
+
def initialize(imagereviewusagedataset=nil, requestid=nil)
|
8238
|
+
@ImageReviewUsageDataSet = imagereviewusagedataset
|
8239
|
+
@RequestId = requestid
|
8240
|
+
end
|
8241
|
+
|
8242
|
+
def deserialize(params)
|
8243
|
+
unless params['ImageReviewUsageDataSet'].nil?
|
8244
|
+
@ImageReviewUsageDataSet = []
|
8245
|
+
params['ImageReviewUsageDataSet'].each do |i|
|
8246
|
+
imagereviewusagedataitem_tmp = ImageReviewUsageDataItem.new
|
8247
|
+
imagereviewusagedataitem_tmp.deserialize(i)
|
8248
|
+
@ImageReviewUsageDataSet << imagereviewusagedataitem_tmp
|
8249
|
+
end
|
8250
|
+
end
|
8251
|
+
@RequestId = params['RequestId']
|
8252
|
+
end
|
8253
|
+
end
|
8254
|
+
|
8202
8255
|
# DescribeImageSpriteTemplates请求参数结构体
|
8203
8256
|
class DescribeImageSpriteTemplatesRequest < TencentCloud::Common::AbstractModel
|
8204
8257
|
# @param Definitions: 雪碧图模板唯一标识过滤条件,数组长度限制:100。
|
@@ -10923,6 +10976,26 @@ module TencentCloud
|
|
10923
10976
|
end
|
10924
10977
|
end
|
10925
10978
|
|
10979
|
+
# 图片智能识别次数统计数据。
|
10980
|
+
class ImageReviewUsageDataItem < TencentCloud::Common::AbstractModel
|
10981
|
+
# @param Time: 数据所在时间区间的开始时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#52)。如:当时间粒度为天,2018-12-01T00:00:00+08:00,表示2018年12月1日(含)到2018年12月2日(不含)区间。
|
10982
|
+
# @type Time: String
|
10983
|
+
# @param Count: 次数。
|
10984
|
+
# @type Count: Integer
|
10985
|
+
|
10986
|
+
attr_accessor :Time, :Count
|
10987
|
+
|
10988
|
+
def initialize(time=nil, count=nil)
|
10989
|
+
@Time = time
|
10990
|
+
@Count = count
|
10991
|
+
end
|
10992
|
+
|
10993
|
+
def deserialize(params)
|
10994
|
+
@Time = params['Time']
|
10995
|
+
@Count = params['Count']
|
10996
|
+
end
|
10997
|
+
end
|
10998
|
+
|
10926
10999
|
# 图片缩放处理。
|
10927
11000
|
class ImageScale < TencentCloud::Common::AbstractModel
|
10928
11001
|
# @param Type: 图片缩放的操作类型。可选模式有:
|
@@ -17201,6 +17274,57 @@ module TencentCloud
|
|
17201
17274
|
end
|
17202
17275
|
end
|
17203
17276
|
|
17277
|
+
# ReviewImage请求参数结构体
|
17278
|
+
class ReviewImageRequest < TencentCloud::Common::AbstractModel
|
17279
|
+
# @param FileId: 媒体文件 ID,即该文件在云点播上的全局唯一标识符。本接口要求媒体文件必须是图片格式。
|
17280
|
+
# @type FileId: String
|
17281
|
+
# @param Definition: 图片智能识别模板 ID,当前固定填 10。
|
17282
|
+
# @type Definition: Integer
|
17283
|
+
# @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
|
17284
|
+
# @type SubAppId: Integer
|
17285
|
+
|
17286
|
+
attr_accessor :FileId, :Definition, :SubAppId
|
17287
|
+
|
17288
|
+
def initialize(fileid=nil, definition=nil, subappid=nil)
|
17289
|
+
@FileId = fileid
|
17290
|
+
@Definition = definition
|
17291
|
+
@SubAppId = subappid
|
17292
|
+
end
|
17293
|
+
|
17294
|
+
def deserialize(params)
|
17295
|
+
@FileId = params['FileId']
|
17296
|
+
@Definition = params['Definition']
|
17297
|
+
@SubAppId = params['SubAppId']
|
17298
|
+
end
|
17299
|
+
end
|
17300
|
+
|
17301
|
+
# ReviewImage返回参数结构体
|
17302
|
+
class ReviewImageResponse < TencentCloud::Common::AbstractModel
|
17303
|
+
# @param ReviewResultSet: 图片智能识别任务结果。
|
17304
|
+
# @type ReviewResultSet: Array
|
17305
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
17306
|
+
# @type RequestId: String
|
17307
|
+
|
17308
|
+
attr_accessor :ReviewResultSet, :RequestId
|
17309
|
+
|
17310
|
+
def initialize(reviewresultset=nil, requestid=nil)
|
17311
|
+
@ReviewResultSet = reviewresultset
|
17312
|
+
@RequestId = requestid
|
17313
|
+
end
|
17314
|
+
|
17315
|
+
def deserialize(params)
|
17316
|
+
unless params['ReviewResultSet'].nil?
|
17317
|
+
@ReviewResultSet = []
|
17318
|
+
params['ReviewResultSet'].each do |i|
|
17319
|
+
contentreviewresult_tmp = ContentReviewResult.new
|
17320
|
+
contentreviewresult_tmp.deserialize(i)
|
17321
|
+
@ReviewResultSet << contentreviewresult_tmp
|
17322
|
+
end
|
17323
|
+
end
|
17324
|
+
@RequestId = params['RequestId']
|
17325
|
+
end
|
17326
|
+
end
|
17327
|
+
|
17204
17328
|
# 对视频做采样截图任务输入参数类型
|
17205
17329
|
class SampleSnapshotTaskInput < TencentCloud::Common::AbstractModel
|
17206
17330
|
# @param Definition: 采样截图模板 ID。
|
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.
|
4
|
+
version: 1.0.306
|
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-
|
11
|
+
date: 2022-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|