tencentcloud-sdk-mps 3.0.1143 → 3.0.1146
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/v20190612/client.rb +96 -0
- data/lib/v20190612/models.rb +309 -3
- 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: 8e9a9d10a371adc881aa03f4b759d3de71684844
|
4
|
+
data.tar.gz: 55dd44206281faed8cfc99938e77bfeb10f121c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3a60e0215396aa2f6a2312a41ee4eb209715012a0c234a49968878235b6032df1587b925437e4abeff93a11602a196b6f6b2cae762fc9b9cd15dc5d9be0e693
|
7
|
+
data.tar.gz: 5618a647f154022e2c346df603795a1db6067a30f195bafdc8c1bcf511156ae71d88bc1b1ba40389eb7c7474b074cfd2837f329f27c4208beeecd0f04f27324b
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1146
|
data/lib/v20190612/client.rb
CHANGED
@@ -455,6 +455,30 @@ module TencentCloud
|
|
455
455
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
456
456
|
end
|
457
457
|
|
458
|
+
# 创建自定义智能擦除模板
|
459
|
+
|
460
|
+
# @param request: Request instance for CreateSmartEraseTemplate.
|
461
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::CreateSmartEraseTemplateRequest`
|
462
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::CreateSmartEraseTemplateResponse`
|
463
|
+
def CreateSmartEraseTemplate(request)
|
464
|
+
body = send_request('CreateSmartEraseTemplate', request.serialize)
|
465
|
+
response = JSON.parse(body)
|
466
|
+
if response['Response'].key?('Error') == false
|
467
|
+
model = CreateSmartEraseTemplateResponse.new
|
468
|
+
model.deserialize(response['Response'])
|
469
|
+
model
|
470
|
+
else
|
471
|
+
code = response['Response']['Error']['Code']
|
472
|
+
message = response['Response']['Error']['Message']
|
473
|
+
reqid = response['Response']['RequestId']
|
474
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
475
|
+
end
|
476
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
477
|
+
raise e
|
478
|
+
rescue StandardError => e
|
479
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
480
|
+
end
|
481
|
+
|
458
482
|
# 创建自定义智能字幕模板
|
459
483
|
|
460
484
|
# @param request: Request instance for CreateSmartSubtitleTemplate.
|
@@ -1069,6 +1093,30 @@ module TencentCloud
|
|
1069
1093
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1070
1094
|
end
|
1071
1095
|
|
1096
|
+
# 删除用户自定义智能擦除模板。
|
1097
|
+
|
1098
|
+
# @param request: Request instance for DeleteSmartEraseTemplate.
|
1099
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::DeleteSmartEraseTemplateRequest`
|
1100
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::DeleteSmartEraseTemplateResponse`
|
1101
|
+
def DeleteSmartEraseTemplate(request)
|
1102
|
+
body = send_request('DeleteSmartEraseTemplate', request.serialize)
|
1103
|
+
response = JSON.parse(body)
|
1104
|
+
if response['Response'].key?('Error') == false
|
1105
|
+
model = DeleteSmartEraseTemplateResponse.new
|
1106
|
+
model.deserialize(response['Response'])
|
1107
|
+
model
|
1108
|
+
else
|
1109
|
+
code = response['Response']['Error']['Code']
|
1110
|
+
message = response['Response']['Error']['Message']
|
1111
|
+
reqid = response['Response']['RequestId']
|
1112
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1113
|
+
end
|
1114
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1115
|
+
raise e
|
1116
|
+
rescue StandardError => e
|
1117
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1118
|
+
end
|
1119
|
+
|
1072
1120
|
# 删除用户自定义智能字幕模板。
|
1073
1121
|
|
1074
1122
|
# @param request: Request instance for DeleteSmartSubtitleTemplate.
|
@@ -1717,6 +1765,30 @@ module TencentCloud
|
|
1717
1765
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1718
1766
|
end
|
1719
1767
|
|
1768
|
+
# 根据智能擦除模板唯一标识,获取智能擦除模板详情列表。返回结果包含符合条件的所有用户自定义智能擦除模板及系统预置智能擦除模板
|
1769
|
+
|
1770
|
+
# @param request: Request instance for DescribeSmartEraseTemplates.
|
1771
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::DescribeSmartEraseTemplatesRequest`
|
1772
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::DescribeSmartEraseTemplatesResponse`
|
1773
|
+
def DescribeSmartEraseTemplates(request)
|
1774
|
+
body = send_request('DescribeSmartEraseTemplates', request.serialize)
|
1775
|
+
response = JSON.parse(body)
|
1776
|
+
if response['Response'].key?('Error') == false
|
1777
|
+
model = DescribeSmartEraseTemplatesResponse.new
|
1778
|
+
model.deserialize(response['Response'])
|
1779
|
+
model
|
1780
|
+
else
|
1781
|
+
code = response['Response']['Error']['Code']
|
1782
|
+
message = response['Response']['Error']['Message']
|
1783
|
+
reqid = response['Response']['RequestId']
|
1784
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1785
|
+
end
|
1786
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1787
|
+
raise e
|
1788
|
+
rescue StandardError => e
|
1789
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1790
|
+
end
|
1791
|
+
|
1720
1792
|
# 根据智能字幕 模板唯一标识,获取智能字幕模板详情列表。返回结果包含符合条件的所有用户自定义智能字幕模板及系统预置智能字幕模板
|
1721
1793
|
|
1722
1794
|
# @param request: Request instance for DescribeSmartSubtitleTemplates.
|
@@ -2765,6 +2837,30 @@ module TencentCloud
|
|
2765
2837
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2766
2838
|
end
|
2767
2839
|
|
2840
|
+
# 修改用户自定义智能擦除模板。
|
2841
|
+
|
2842
|
+
# @param request: Request instance for ModifySmartEraseTemplate.
|
2843
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::ModifySmartEraseTemplateRequest`
|
2844
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::ModifySmartEraseTemplateResponse`
|
2845
|
+
def ModifySmartEraseTemplate(request)
|
2846
|
+
body = send_request('ModifySmartEraseTemplate', request.serialize)
|
2847
|
+
response = JSON.parse(body)
|
2848
|
+
if response['Response'].key?('Error') == false
|
2849
|
+
model = ModifySmartEraseTemplateResponse.new
|
2850
|
+
model.deserialize(response['Response'])
|
2851
|
+
model
|
2852
|
+
else
|
2853
|
+
code = response['Response']['Error']['Code']
|
2854
|
+
message = response['Response']['Error']['Message']
|
2855
|
+
reqid = response['Response']['RequestId']
|
2856
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2857
|
+
end
|
2858
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2859
|
+
raise e
|
2860
|
+
rescue StandardError => e
|
2861
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2862
|
+
end
|
2863
|
+
|
2768
2864
|
# 修改用户自定义智能字幕模板。
|
2769
2865
|
|
2770
2866
|
# @param request: Request instance for ModifySmartSubtitleTemplate.
|
data/lib/v20190612/models.rb
CHANGED
@@ -8237,6 +8237,74 @@ module TencentCloud
|
|
8237
8237
|
end
|
8238
8238
|
end
|
8239
8239
|
|
8240
|
+
# CreateSmartEraseTemplate请求参数结构体
|
8241
|
+
class CreateSmartEraseTemplateRequest < TencentCloud::Common::AbstractModel
|
8242
|
+
# @param Name: 智能擦除模板名称长度限制:64 个字符。
|
8243
|
+
# @type Name: String
|
8244
|
+
# @param EraseType: 擦除类型
|
8245
|
+
# - subtitle 去字幕
|
8246
|
+
# - watermark 去水印
|
8247
|
+
# - privacy 隐私保护
|
8248
|
+
# @type EraseType: String
|
8249
|
+
# @param Comment: 智能擦除模板描述信息长度限制:256 个字符。
|
8250
|
+
# @type Comment: String
|
8251
|
+
# @param EraseSubtitleConfig: 字幕擦除配置,EraseType取subtitle时必填且仅此时生效。
|
8252
|
+
# @type EraseSubtitleConfig: :class:`Tencentcloud::Mps.v20190612.models.SmartEraseSubtitleConfig`
|
8253
|
+
# @param EraseWatermarkConfig: 水印擦除配置,EraseType取watermark时必填且仅此时生效。
|
8254
|
+
# @type EraseWatermarkConfig: :class:`Tencentcloud::Mps.v20190612.models.SmartEraseWatermarkConfig`
|
8255
|
+
# @param ErasePrivacyConfig: 隐私保护配置,EraseType取privacy时必填且仅此时生效。
|
8256
|
+
# @type ErasePrivacyConfig: :class:`Tencentcloud::Mps.v20190612.models.SmartErasePrivacyConfig`
|
8257
|
+
|
8258
|
+
attr_accessor :Name, :EraseType, :Comment, :EraseSubtitleConfig, :EraseWatermarkConfig, :ErasePrivacyConfig
|
8259
|
+
|
8260
|
+
def initialize(name=nil, erasetype=nil, comment=nil, erasesubtitleconfig=nil, erasewatermarkconfig=nil, eraseprivacyconfig=nil)
|
8261
|
+
@Name = name
|
8262
|
+
@EraseType = erasetype
|
8263
|
+
@Comment = comment
|
8264
|
+
@EraseSubtitleConfig = erasesubtitleconfig
|
8265
|
+
@EraseWatermarkConfig = erasewatermarkconfig
|
8266
|
+
@ErasePrivacyConfig = eraseprivacyconfig
|
8267
|
+
end
|
8268
|
+
|
8269
|
+
def deserialize(params)
|
8270
|
+
@Name = params['Name']
|
8271
|
+
@EraseType = params['EraseType']
|
8272
|
+
@Comment = params['Comment']
|
8273
|
+
unless params['EraseSubtitleConfig'].nil?
|
8274
|
+
@EraseSubtitleConfig = SmartEraseSubtitleConfig.new
|
8275
|
+
@EraseSubtitleConfig.deserialize(params['EraseSubtitleConfig'])
|
8276
|
+
end
|
8277
|
+
unless params['EraseWatermarkConfig'].nil?
|
8278
|
+
@EraseWatermarkConfig = SmartEraseWatermarkConfig.new
|
8279
|
+
@EraseWatermarkConfig.deserialize(params['EraseWatermarkConfig'])
|
8280
|
+
end
|
8281
|
+
unless params['ErasePrivacyConfig'].nil?
|
8282
|
+
@ErasePrivacyConfig = SmartErasePrivacyConfig.new
|
8283
|
+
@ErasePrivacyConfig.deserialize(params['ErasePrivacyConfig'])
|
8284
|
+
end
|
8285
|
+
end
|
8286
|
+
end
|
8287
|
+
|
8288
|
+
# CreateSmartEraseTemplate返回参数结构体
|
8289
|
+
class CreateSmartEraseTemplateResponse < TencentCloud::Common::AbstractModel
|
8290
|
+
# @param Definition: 智能擦除模板唯一标识
|
8291
|
+
# @type Definition: Integer
|
8292
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8293
|
+
# @type RequestId: String
|
8294
|
+
|
8295
|
+
attr_accessor :Definition, :RequestId
|
8296
|
+
|
8297
|
+
def initialize(definition=nil, requestid=nil)
|
8298
|
+
@Definition = definition
|
8299
|
+
@RequestId = requestid
|
8300
|
+
end
|
8301
|
+
|
8302
|
+
def deserialize(params)
|
8303
|
+
@Definition = params['Definition']
|
8304
|
+
@RequestId = params['RequestId']
|
8305
|
+
end
|
8306
|
+
end
|
8307
|
+
|
8240
8308
|
# CreateSmartSubtitleTemplate请求参数结构体
|
8241
8309
|
class CreateSmartSubtitleTemplateRequest < TencentCloud::Common::AbstractModel
|
8242
8310
|
# @param Name: 智能字幕模板名称
|
@@ -9485,6 +9553,38 @@ module TencentCloud
|
|
9485
9553
|
end
|
9486
9554
|
end
|
9487
9555
|
|
9556
|
+
# DeleteSmartEraseTemplate请求参数结构体
|
9557
|
+
class DeleteSmartEraseTemplateRequest < TencentCloud::Common::AbstractModel
|
9558
|
+
# @param Definition: 智能擦除模板唯一标识。
|
9559
|
+
# @type Definition: Integer
|
9560
|
+
|
9561
|
+
attr_accessor :Definition
|
9562
|
+
|
9563
|
+
def initialize(definition=nil)
|
9564
|
+
@Definition = definition
|
9565
|
+
end
|
9566
|
+
|
9567
|
+
def deserialize(params)
|
9568
|
+
@Definition = params['Definition']
|
9569
|
+
end
|
9570
|
+
end
|
9571
|
+
|
9572
|
+
# DeleteSmartEraseTemplate返回参数结构体
|
9573
|
+
class DeleteSmartEraseTemplateResponse < TencentCloud::Common::AbstractModel
|
9574
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9575
|
+
# @type RequestId: String
|
9576
|
+
|
9577
|
+
attr_accessor :RequestId
|
9578
|
+
|
9579
|
+
def initialize(requestid=nil)
|
9580
|
+
@RequestId = requestid
|
9581
|
+
end
|
9582
|
+
|
9583
|
+
def deserialize(params)
|
9584
|
+
@RequestId = params['RequestId']
|
9585
|
+
end
|
9586
|
+
end
|
9587
|
+
|
9488
9588
|
# DeleteSmartSubtitleTemplate请求参数结构体
|
9489
9589
|
class DeleteSmartSubtitleTemplateRequest < TencentCloud::Common::AbstractModel
|
9490
9590
|
# @param Definition: 智能字幕模板唯一标识。
|
@@ -11971,6 +12071,71 @@ module TencentCloud
|
|
11971
12071
|
end
|
11972
12072
|
end
|
11973
12073
|
|
12074
|
+
# DescribeSmartEraseTemplates请求参数结构体
|
12075
|
+
class DescribeSmartEraseTemplatesRequest < TencentCloud::Common::AbstractModel
|
12076
|
+
# @param Definitions: 智能擦除模板唯一标识过滤条件,数组长度限制:100。
|
12077
|
+
# @type Definitions: Array
|
12078
|
+
# @param Offset: 分页偏移量,默认值:0。
|
12079
|
+
# @type Offset: Integer
|
12080
|
+
# @param Limit: 返回记录条数,默认值:10,最大值:100。
|
12081
|
+
# @type Limit: Integer
|
12082
|
+
# @param Type: 模板类型过滤条件,不填则返回所有,可选值:
|
12083
|
+
# * Preset:系统预置模板;
|
12084
|
+
# * Custom:用户自定义模板。
|
12085
|
+
# @type Type: String
|
12086
|
+
# @param Name: 智能擦除模板名过滤条件,长度限制:64 个字符。
|
12087
|
+
# @type Name: String
|
12088
|
+
|
12089
|
+
attr_accessor :Definitions, :Offset, :Limit, :Type, :Name
|
12090
|
+
|
12091
|
+
def initialize(definitions=nil, offset=nil, limit=nil, type=nil, name=nil)
|
12092
|
+
@Definitions = definitions
|
12093
|
+
@Offset = offset
|
12094
|
+
@Limit = limit
|
12095
|
+
@Type = type
|
12096
|
+
@Name = name
|
12097
|
+
end
|
12098
|
+
|
12099
|
+
def deserialize(params)
|
12100
|
+
@Definitions = params['Definitions']
|
12101
|
+
@Offset = params['Offset']
|
12102
|
+
@Limit = params['Limit']
|
12103
|
+
@Type = params['Type']
|
12104
|
+
@Name = params['Name']
|
12105
|
+
end
|
12106
|
+
end
|
12107
|
+
|
12108
|
+
# DescribeSmartEraseTemplates返回参数结构体
|
12109
|
+
class DescribeSmartEraseTemplatesResponse < TencentCloud::Common::AbstractModel
|
12110
|
+
# @param TotalCount: 符合过滤条件的记录总数。
|
12111
|
+
# @type TotalCount: Integer
|
12112
|
+
# @param SmartEraseTemplateSet: 智能擦除模板详情列表。
|
12113
|
+
# @type SmartEraseTemplateSet: Array
|
12114
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
12115
|
+
# @type RequestId: String
|
12116
|
+
|
12117
|
+
attr_accessor :TotalCount, :SmartEraseTemplateSet, :RequestId
|
12118
|
+
|
12119
|
+
def initialize(totalcount=nil, smarterasetemplateset=nil, requestid=nil)
|
12120
|
+
@TotalCount = totalcount
|
12121
|
+
@SmartEraseTemplateSet = smarterasetemplateset
|
12122
|
+
@RequestId = requestid
|
12123
|
+
end
|
12124
|
+
|
12125
|
+
def deserialize(params)
|
12126
|
+
@TotalCount = params['TotalCount']
|
12127
|
+
unless params['SmartEraseTemplateSet'].nil?
|
12128
|
+
@SmartEraseTemplateSet = []
|
12129
|
+
params['SmartEraseTemplateSet'].each do |i|
|
12130
|
+
smarterasetemplateitem_tmp = SmartEraseTemplateItem.new
|
12131
|
+
smarterasetemplateitem_tmp.deserialize(i)
|
12132
|
+
@SmartEraseTemplateSet << smarterasetemplateitem_tmp
|
12133
|
+
end
|
12134
|
+
end
|
12135
|
+
@RequestId = params['RequestId']
|
12136
|
+
end
|
12137
|
+
end
|
12138
|
+
|
11974
12139
|
# DescribeSmartSubtitleTemplates请求参数结构体
|
11975
12140
|
class DescribeSmartSubtitleTemplatesRequest < TencentCloud::Common::AbstractModel
|
11976
12141
|
# @param Definitions: 智能字幕模板唯一标识过滤条件,数组长度限制:100。
|
@@ -19829,6 +19994,74 @@ module TencentCloud
|
|
19829
19994
|
end
|
19830
19995
|
end
|
19831
19996
|
|
19997
|
+
# ModifySmartEraseTemplate请求参数结构体
|
19998
|
+
class ModifySmartEraseTemplateRequest < TencentCloud::Common::AbstractModel
|
19999
|
+
# @param Definition: 智能擦除模板唯一标识
|
20000
|
+
# @type Definition: Integer
|
20001
|
+
# @param Name: 智能擦除模板名称长度限制:64 个字符。
|
20002
|
+
# @type Name: String
|
20003
|
+
# @param Comment: 智能擦除模板描述信息长度限制:256 个字符。
|
20004
|
+
# @type Comment: String
|
20005
|
+
# @param EraseType: 擦除类型
|
20006
|
+
# - subtitle 去字幕
|
20007
|
+
# - watermark 去水印
|
20008
|
+
# - privacy 隐私保护
|
20009
|
+
# @type EraseType: String
|
20010
|
+
# @param EraseSubtitleConfig: 字幕擦除配置,EraseType取subtitle或者EraseType不填,对应模板原EraseType为subtitle时生效。
|
20011
|
+
# @type EraseSubtitleConfig: :class:`Tencentcloud::Mps.v20190612.models.SmartEraseSubtitleConfig`
|
20012
|
+
# @param EraseWatermarkConfig: 水印擦除配置,EraseType取watermark或者EraseType不填,对应模板原EraseType为watermark时生效。
|
20013
|
+
# @type EraseWatermarkConfig: :class:`Tencentcloud::Mps.v20190612.models.SmartEraseWatermarkConfig`
|
20014
|
+
# @param ErasePrivacyConfig: 隐私保护配置,EraseType取privacy或者EraseType不填,对应模板原EraseType为privacy时生效。
|
20015
|
+
# @type ErasePrivacyConfig: :class:`Tencentcloud::Mps.v20190612.models.SmartErasePrivacyConfig`
|
20016
|
+
|
20017
|
+
attr_accessor :Definition, :Name, :Comment, :EraseType, :EraseSubtitleConfig, :EraseWatermarkConfig, :ErasePrivacyConfig
|
20018
|
+
|
20019
|
+
def initialize(definition=nil, name=nil, comment=nil, erasetype=nil, erasesubtitleconfig=nil, erasewatermarkconfig=nil, eraseprivacyconfig=nil)
|
20020
|
+
@Definition = definition
|
20021
|
+
@Name = name
|
20022
|
+
@Comment = comment
|
20023
|
+
@EraseType = erasetype
|
20024
|
+
@EraseSubtitleConfig = erasesubtitleconfig
|
20025
|
+
@EraseWatermarkConfig = erasewatermarkconfig
|
20026
|
+
@ErasePrivacyConfig = eraseprivacyconfig
|
20027
|
+
end
|
20028
|
+
|
20029
|
+
def deserialize(params)
|
20030
|
+
@Definition = params['Definition']
|
20031
|
+
@Name = params['Name']
|
20032
|
+
@Comment = params['Comment']
|
20033
|
+
@EraseType = params['EraseType']
|
20034
|
+
unless params['EraseSubtitleConfig'].nil?
|
20035
|
+
@EraseSubtitleConfig = SmartEraseSubtitleConfig.new
|
20036
|
+
@EraseSubtitleConfig.deserialize(params['EraseSubtitleConfig'])
|
20037
|
+
end
|
20038
|
+
unless params['EraseWatermarkConfig'].nil?
|
20039
|
+
@EraseWatermarkConfig = SmartEraseWatermarkConfig.new
|
20040
|
+
@EraseWatermarkConfig.deserialize(params['EraseWatermarkConfig'])
|
20041
|
+
end
|
20042
|
+
unless params['ErasePrivacyConfig'].nil?
|
20043
|
+
@ErasePrivacyConfig = SmartErasePrivacyConfig.new
|
20044
|
+
@ErasePrivacyConfig.deserialize(params['ErasePrivacyConfig'])
|
20045
|
+
end
|
20046
|
+
end
|
20047
|
+
end
|
20048
|
+
|
20049
|
+
# ModifySmartEraseTemplate返回参数结构体
|
20050
|
+
class ModifySmartEraseTemplateResponse < TencentCloud::Common::AbstractModel
|
20051
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
20052
|
+
# @type RequestId: String
|
20053
|
+
|
20054
|
+
attr_accessor :RequestId
|
20055
|
+
|
20056
|
+
def initialize(requestid=nil)
|
20057
|
+
@RequestId = requestid
|
20058
|
+
end
|
20059
|
+
|
20060
|
+
def deserialize(params)
|
20061
|
+
@RequestId = params['RequestId']
|
20062
|
+
end
|
20063
|
+
end
|
20064
|
+
|
19832
20065
|
# ModifySmartSubtitleTemplate请求参数结构体
|
19833
20066
|
class ModifySmartSubtitleTemplateRequest < TencentCloud::Common::AbstractModel
|
19834
20067
|
# @param Definition: 智能字幕模板唯一标识
|
@@ -23915,10 +24148,10 @@ module TencentCloud
|
|
23915
24148
|
# @param Uri: 请求解密秘钥uri地址。
|
23916
24149
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
23917
24150
|
# @type Uri: String
|
23918
|
-
# @param Key: 加密key(32字节字符串)。
|
24151
|
+
# @param Key: 加密key(十六进制32字节字符串)。
|
23919
24152
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
23920
24153
|
# @type Key: String
|
23921
|
-
# @param Vector: 加密初始化向量(32字节字符串)。
|
24154
|
+
# @param Vector: 加密初始化向量(十六进制32字节字符串)。
|
23922
24155
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
23923
24156
|
# @type Vector: String
|
23924
24157
|
|
@@ -24163,6 +24396,79 @@ module TencentCloud
|
|
24163
24396
|
end
|
24164
24397
|
end
|
24165
24398
|
|
24399
|
+
# 智能擦除模板详情
|
24400
|
+
class SmartEraseTemplateItem < TencentCloud::Common::AbstractModel
|
24401
|
+
# @param Definition: 智能擦除模板唯一标识
|
24402
|
+
# @type Definition: Integer
|
24403
|
+
# @param Name: 智能擦除模板名称
|
24404
|
+
# @type Name: String
|
24405
|
+
# @param Comment: 智能擦除模板描述信息
|
24406
|
+
# @type Comment: String
|
24407
|
+
# @param Type: 模板类型,取值范围:
|
24408
|
+
# * Preset:系统预置模板;
|
24409
|
+
# * Custom:用户自定义模板。
|
24410
|
+
# @type Type: String
|
24411
|
+
# @param EraseType: 擦除类型
|
24412
|
+
# - subtitle 去字幕
|
24413
|
+
# - watermark 去水印
|
24414
|
+
# - privacy 隐私保护
|
24415
|
+
# @type EraseType: String
|
24416
|
+
# @param EraseSubtitleConfig: 字幕擦除配置
|
24417
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
24418
|
+
# @type EraseSubtitleConfig: :class:`Tencentcloud::Mps.v20190612.models.SmartEraseSubtitleConfig`
|
24419
|
+
# @param EraseWatermarkConfig: 水印擦除配置
|
24420
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
24421
|
+
# @type EraseWatermarkConfig: :class:`Tencentcloud::Mps.v20190612.models.SmartEraseWatermarkConfig`
|
24422
|
+
# @param ErasePrivacyConfig: 隐私保护配置
|
24423
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
24424
|
+
# @type ErasePrivacyConfig: :class:`Tencentcloud::Mps.v20190612.models.SmartErasePrivacyConfig`
|
24425
|
+
# @param CreateTime: 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
|
24426
|
+
# @type CreateTime: String
|
24427
|
+
# @param UpdateTime: 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
|
24428
|
+
# @type UpdateTime: String
|
24429
|
+
# @param AliasName: 智能擦除预设模板别名
|
24430
|
+
# @type AliasName: String
|
24431
|
+
|
24432
|
+
attr_accessor :Definition, :Name, :Comment, :Type, :EraseType, :EraseSubtitleConfig, :EraseWatermarkConfig, :ErasePrivacyConfig, :CreateTime, :UpdateTime, :AliasName
|
24433
|
+
|
24434
|
+
def initialize(definition=nil, name=nil, comment=nil, type=nil, erasetype=nil, erasesubtitleconfig=nil, erasewatermarkconfig=nil, eraseprivacyconfig=nil, createtime=nil, updatetime=nil, aliasname=nil)
|
24435
|
+
@Definition = definition
|
24436
|
+
@Name = name
|
24437
|
+
@Comment = comment
|
24438
|
+
@Type = type
|
24439
|
+
@EraseType = erasetype
|
24440
|
+
@EraseSubtitleConfig = erasesubtitleconfig
|
24441
|
+
@EraseWatermarkConfig = erasewatermarkconfig
|
24442
|
+
@ErasePrivacyConfig = eraseprivacyconfig
|
24443
|
+
@CreateTime = createtime
|
24444
|
+
@UpdateTime = updatetime
|
24445
|
+
@AliasName = aliasname
|
24446
|
+
end
|
24447
|
+
|
24448
|
+
def deserialize(params)
|
24449
|
+
@Definition = params['Definition']
|
24450
|
+
@Name = params['Name']
|
24451
|
+
@Comment = params['Comment']
|
24452
|
+
@Type = params['Type']
|
24453
|
+
@EraseType = params['EraseType']
|
24454
|
+
unless params['EraseSubtitleConfig'].nil?
|
24455
|
+
@EraseSubtitleConfig = SmartEraseSubtitleConfig.new
|
24456
|
+
@EraseSubtitleConfig.deserialize(params['EraseSubtitleConfig'])
|
24457
|
+
end
|
24458
|
+
unless params['EraseWatermarkConfig'].nil?
|
24459
|
+
@EraseWatermarkConfig = SmartEraseWatermarkConfig.new
|
24460
|
+
@EraseWatermarkConfig.deserialize(params['EraseWatermarkConfig'])
|
24461
|
+
end
|
24462
|
+
unless params['ErasePrivacyConfig'].nil?
|
24463
|
+
@ErasePrivacyConfig = SmartErasePrivacyConfig.new
|
24464
|
+
@ErasePrivacyConfig.deserialize(params['ErasePrivacyConfig'])
|
24465
|
+
end
|
24466
|
+
@CreateTime = params['CreateTime']
|
24467
|
+
@UpdateTime = params['UpdateTime']
|
24468
|
+
@AliasName = params['AliasName']
|
24469
|
+
end
|
24470
|
+
end
|
24471
|
+
|
24166
24472
|
# 智能擦除模板去水印配置
|
24167
24473
|
class SmartEraseWatermarkConfig < TencentCloud::Common::AbstractModel
|
24168
24474
|
# @param WatermarkEraseMethod: 水印擦除方式。
|
@@ -24908,7 +25214,7 @@ module TencentCloud
|
|
24908
25214
|
|
24909
25215
|
# 注: 不同DRM厂商对子流的数量限制不一样,如 PallyCon 限制不能超过5条子流,DRMtoday厂商最多仅支持9条子流加密
|
24910
25216
|
# @type KeyServerUrl: String
|
24911
|
-
# @param Vector: 加密初始化向量(32字节字符串),该字段内容为用户自定义。
|
25217
|
+
# @param Vector: 加密初始化向量(十六进制32字节字符串),该字段内容为用户自定义。
|
24912
25218
|
# @type Vector: String
|
24913
25219
|
# @param EncryptionMethod: 加密方式,FairPlay 默认cbcs,PlayReady,Widevine 默认cenc
|
24914
25220
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-mps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1146
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-09-
|
11
|
+
date: 2025-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|