tencentcloud-sdk-mps 3.0.1143 → 3.0.1150

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: df4b25b7a76820b1ea9a25e097ad920b4295b6fc
4
- data.tar.gz: 7ee5d39b598b645c32dcc4de8cfeffab8cf7a9a4
3
+ metadata.gz: 7d046f029beaa4b40c4314a8bc8e9405e17829a3
4
+ data.tar.gz: b52289e4c1613eec65bfb6ae578716f5201147df
5
5
  SHA512:
6
- metadata.gz: 95ff7f3b192850fcc1bdbc0826031afcae23413d4a2e1acec6b4538e5ea3d2a6af3567f306a0efff340c5762662fd0d7cb6e19d969070bd1b081e4de3b98c351
7
- data.tar.gz: f2df5fd29bb7a192970b6c31ae1d9f3c9efedc391c659d204064cd3aae3c024a1598127ebbc12c4a0e0a27a28ac4458041b5dc7fb58d68f624bf7797a05cad1c
6
+ metadata.gz: 20ba0a17f77455157c5ea88afb9db600ebe79ae2e9625e455db6066bff2aaacfb9dd98a120611a98692da4007860b2cccc41b45f8b75f8dc77d92f768eee92f3
7
+ data.tar.gz: d92d2beb18928be1d4e64e4680b7ff9137973aed2b04404938187002a9e9c44fb8b7b80b81cbbffda888ed1b032ca6a0e7e43d101bb2bbc12c7485edf9aa3e7f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1143
1
+ 3.0.1150
@@ -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.
@@ -803,13 +803,21 @@ module TencentCloud
803
803
  # 注意:仅支持中文、英文、数字、空格、下划线(_)、短横线(-)、句点(.)和中英文括号,长度不能超过64个字符。
804
804
  # 注意:此字段可能返回 null,表示取不到有效值。
805
805
  # @type SubtitleName: String
806
+ # @param OutputFormat: 字幕输出格式。取值{"WebVTT","TTML"}。
807
+ # 默认值:"WebVTT"
808
+ # @type OutputFormat: String
809
+ # @param DefaultTrack: 默认字幕轨道。为true时指定当前字幕为默认字幕轨道,最多可指定1条默认字幕轨道。
810
+ # 默认值:false
811
+ # @type DefaultTrack: Boolean
806
812
 
807
- attr_accessor :Type, :Subtitle, :SubtitleName
813
+ attr_accessor :Type, :Subtitle, :SubtitleName, :OutputFormat, :DefaultTrack
808
814
 
809
- def initialize(type=nil, subtitle=nil, subtitlename=nil)
815
+ def initialize(type=nil, subtitle=nil, subtitlename=nil, outputformat=nil, defaulttrack=nil)
810
816
  @Type = type
811
817
  @Subtitle = subtitle
812
818
  @SubtitleName = subtitlename
819
+ @OutputFormat = outputformat
820
+ @DefaultTrack = defaulttrack
813
821
  end
814
822
 
815
823
  def deserialize(params)
@@ -819,6 +827,8 @@ module TencentCloud
819
827
  @Subtitle.deserialize(params['Subtitle'])
820
828
  end
821
829
  @SubtitleName = params['SubtitleName']
830
+ @OutputFormat = params['OutputFormat']
831
+ @DefaultTrack = params['DefaultTrack']
822
832
  end
823
833
  end
824
834
 
@@ -8237,6 +8247,74 @@ module TencentCloud
8237
8247
  end
8238
8248
  end
8239
8249
 
8250
+ # CreateSmartEraseTemplate请求参数结构体
8251
+ class CreateSmartEraseTemplateRequest < TencentCloud::Common::AbstractModel
8252
+ # @param Name: 智能擦除模板名称长度限制:64 个字符。
8253
+ # @type Name: String
8254
+ # @param EraseType: 擦除类型
8255
+ # - subtitle 去字幕
8256
+ # - watermark 去水印
8257
+ # - privacy 隐私保护
8258
+ # @type EraseType: String
8259
+ # @param Comment: 智能擦除模板描述信息长度限制:256 个字符。
8260
+ # @type Comment: String
8261
+ # @param EraseSubtitleConfig: 字幕擦除配置,EraseType取subtitle时必填且仅此时生效。
8262
+ # @type EraseSubtitleConfig: :class:`Tencentcloud::Mps.v20190612.models.SmartEraseSubtitleConfig`
8263
+ # @param EraseWatermarkConfig: 水印擦除配置,EraseType取watermark时必填且仅此时生效。
8264
+ # @type EraseWatermarkConfig: :class:`Tencentcloud::Mps.v20190612.models.SmartEraseWatermarkConfig`
8265
+ # @param ErasePrivacyConfig: 隐私保护配置,EraseType取privacy时必填且仅此时生效。
8266
+ # @type ErasePrivacyConfig: :class:`Tencentcloud::Mps.v20190612.models.SmartErasePrivacyConfig`
8267
+
8268
+ attr_accessor :Name, :EraseType, :Comment, :EraseSubtitleConfig, :EraseWatermarkConfig, :ErasePrivacyConfig
8269
+
8270
+ def initialize(name=nil, erasetype=nil, comment=nil, erasesubtitleconfig=nil, erasewatermarkconfig=nil, eraseprivacyconfig=nil)
8271
+ @Name = name
8272
+ @EraseType = erasetype
8273
+ @Comment = comment
8274
+ @EraseSubtitleConfig = erasesubtitleconfig
8275
+ @EraseWatermarkConfig = erasewatermarkconfig
8276
+ @ErasePrivacyConfig = eraseprivacyconfig
8277
+ end
8278
+
8279
+ def deserialize(params)
8280
+ @Name = params['Name']
8281
+ @EraseType = params['EraseType']
8282
+ @Comment = params['Comment']
8283
+ unless params['EraseSubtitleConfig'].nil?
8284
+ @EraseSubtitleConfig = SmartEraseSubtitleConfig.new
8285
+ @EraseSubtitleConfig.deserialize(params['EraseSubtitleConfig'])
8286
+ end
8287
+ unless params['EraseWatermarkConfig'].nil?
8288
+ @EraseWatermarkConfig = SmartEraseWatermarkConfig.new
8289
+ @EraseWatermarkConfig.deserialize(params['EraseWatermarkConfig'])
8290
+ end
8291
+ unless params['ErasePrivacyConfig'].nil?
8292
+ @ErasePrivacyConfig = SmartErasePrivacyConfig.new
8293
+ @ErasePrivacyConfig.deserialize(params['ErasePrivacyConfig'])
8294
+ end
8295
+ end
8296
+ end
8297
+
8298
+ # CreateSmartEraseTemplate返回参数结构体
8299
+ class CreateSmartEraseTemplateResponse < TencentCloud::Common::AbstractModel
8300
+ # @param Definition: 智能擦除模板唯一标识
8301
+ # @type Definition: Integer
8302
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8303
+ # @type RequestId: String
8304
+
8305
+ attr_accessor :Definition, :RequestId
8306
+
8307
+ def initialize(definition=nil, requestid=nil)
8308
+ @Definition = definition
8309
+ @RequestId = requestid
8310
+ end
8311
+
8312
+ def deserialize(params)
8313
+ @Definition = params['Definition']
8314
+ @RequestId = params['RequestId']
8315
+ end
8316
+ end
8317
+
8240
8318
  # CreateSmartSubtitleTemplate请求参数结构体
8241
8319
  class CreateSmartSubtitleTemplateRequest < TencentCloud::Common::AbstractModel
8242
8320
  # @param Name: 智能字幕模板名称
@@ -9485,6 +9563,38 @@ module TencentCloud
9485
9563
  end
9486
9564
  end
9487
9565
 
9566
+ # DeleteSmartEraseTemplate请求参数结构体
9567
+ class DeleteSmartEraseTemplateRequest < TencentCloud::Common::AbstractModel
9568
+ # @param Definition: 智能擦除模板唯一标识。
9569
+ # @type Definition: Integer
9570
+
9571
+ attr_accessor :Definition
9572
+
9573
+ def initialize(definition=nil)
9574
+ @Definition = definition
9575
+ end
9576
+
9577
+ def deserialize(params)
9578
+ @Definition = params['Definition']
9579
+ end
9580
+ end
9581
+
9582
+ # DeleteSmartEraseTemplate返回参数结构体
9583
+ class DeleteSmartEraseTemplateResponse < TencentCloud::Common::AbstractModel
9584
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9585
+ # @type RequestId: String
9586
+
9587
+ attr_accessor :RequestId
9588
+
9589
+ def initialize(requestid=nil)
9590
+ @RequestId = requestid
9591
+ end
9592
+
9593
+ def deserialize(params)
9594
+ @RequestId = params['RequestId']
9595
+ end
9596
+ end
9597
+
9488
9598
  # DeleteSmartSubtitleTemplate请求参数结构体
9489
9599
  class DeleteSmartSubtitleTemplateRequest < TencentCloud::Common::AbstractModel
9490
9600
  # @param Definition: 智能字幕模板唯一标识。
@@ -11971,6 +12081,71 @@ module TencentCloud
11971
12081
  end
11972
12082
  end
11973
12083
 
12084
+ # DescribeSmartEraseTemplates请求参数结构体
12085
+ class DescribeSmartEraseTemplatesRequest < TencentCloud::Common::AbstractModel
12086
+ # @param Definitions: 智能擦除模板唯一标识过滤条件,数组长度限制:100。
12087
+ # @type Definitions: Array
12088
+ # @param Offset: 分页偏移量,默认值:0。
12089
+ # @type Offset: Integer
12090
+ # @param Limit: 返回记录条数,默认值:10,最大值:100。
12091
+ # @type Limit: Integer
12092
+ # @param Type: 模板类型过滤条件,不填则返回所有,可选值:
12093
+ # * Preset:系统预置模板;
12094
+ # * Custom:用户自定义模板。
12095
+ # @type Type: String
12096
+ # @param Name: 智能擦除模板名过滤条件,长度限制:64 个字符。
12097
+ # @type Name: String
12098
+
12099
+ attr_accessor :Definitions, :Offset, :Limit, :Type, :Name
12100
+
12101
+ def initialize(definitions=nil, offset=nil, limit=nil, type=nil, name=nil)
12102
+ @Definitions = definitions
12103
+ @Offset = offset
12104
+ @Limit = limit
12105
+ @Type = type
12106
+ @Name = name
12107
+ end
12108
+
12109
+ def deserialize(params)
12110
+ @Definitions = params['Definitions']
12111
+ @Offset = params['Offset']
12112
+ @Limit = params['Limit']
12113
+ @Type = params['Type']
12114
+ @Name = params['Name']
12115
+ end
12116
+ end
12117
+
12118
+ # DescribeSmartEraseTemplates返回参数结构体
12119
+ class DescribeSmartEraseTemplatesResponse < TencentCloud::Common::AbstractModel
12120
+ # @param TotalCount: 符合过滤条件的记录总数。
12121
+ # @type TotalCount: Integer
12122
+ # @param SmartEraseTemplateSet: 智能擦除模板详情列表。
12123
+ # @type SmartEraseTemplateSet: Array
12124
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
12125
+ # @type RequestId: String
12126
+
12127
+ attr_accessor :TotalCount, :SmartEraseTemplateSet, :RequestId
12128
+
12129
+ def initialize(totalcount=nil, smarterasetemplateset=nil, requestid=nil)
12130
+ @TotalCount = totalcount
12131
+ @SmartEraseTemplateSet = smarterasetemplateset
12132
+ @RequestId = requestid
12133
+ end
12134
+
12135
+ def deserialize(params)
12136
+ @TotalCount = params['TotalCount']
12137
+ unless params['SmartEraseTemplateSet'].nil?
12138
+ @SmartEraseTemplateSet = []
12139
+ params['SmartEraseTemplateSet'].each do |i|
12140
+ smarterasetemplateitem_tmp = SmartEraseTemplateItem.new
12141
+ smarterasetemplateitem_tmp.deserialize(i)
12142
+ @SmartEraseTemplateSet << smarterasetemplateitem_tmp
12143
+ end
12144
+ end
12145
+ @RequestId = params['RequestId']
12146
+ end
12147
+ end
12148
+
11974
12149
  # DescribeSmartSubtitleTemplates请求参数结构体
11975
12150
  class DescribeSmartSubtitleTemplatesRequest < TencentCloud::Common::AbstractModel
11976
12151
  # @param Definitions: 智能字幕模板唯一标识过滤条件,数组长度限制:100。
@@ -12954,8 +13129,13 @@ module TencentCloud
12954
13129
 
12955
13130
  # DescribeTasks请求参数结构体
12956
13131
  class DescribeTasksRequest < TencentCloud::Common::AbstractModel
12957
- # @param Status: 过滤条件:任务状态,可选值:WAITING(等待中)、PROCESSING(处理中)、FINISH(已完成)。
13132
+ # @param Status: 任务状态过滤条件,可选值:
13133
+ # - WAITING(等待中)
13134
+ # - PROCESSING(处理中)
13135
+ # - FINISH(已完成)。
12958
13136
  # @type Status: String
13137
+ # @param SubTaskHasFailed: 任务结束时子任务是否有失败。
13138
+ # @type SubTaskHasFailed: Boolean
12959
13139
  # @param Limit: 返回记录条数,默认值:10,最大值:100。
12960
13140
  # @type Limit: Integer
12961
13141
  # @param ScrollToken: 翻页标识,分批拉取时使用:当单次请求无法拉取所有数据,接口将会返回 ScrollToken,下一次请求携带该 Token,将会从下一条记录开始获取。
@@ -12965,10 +13145,11 @@ module TencentCloud
12965
13145
  # @param EndTime: 查询任务结束时间。
12966
13146
  # @type EndTime: String
12967
13147
 
12968
- attr_accessor :Status, :Limit, :ScrollToken, :StartTime, :EndTime
13148
+ attr_accessor :Status, :SubTaskHasFailed, :Limit, :ScrollToken, :StartTime, :EndTime
12969
13149
 
12970
- def initialize(status=nil, limit=nil, scrolltoken=nil, starttime=nil, endtime=nil)
13150
+ def initialize(status=nil, subtaskhasfailed=nil, limit=nil, scrolltoken=nil, starttime=nil, endtime=nil)
12971
13151
  @Status = status
13152
+ @SubTaskHasFailed = subtaskhasfailed
12972
13153
  @Limit = limit
12973
13154
  @ScrollToken = scrolltoken
12974
13155
  @StartTime = starttime
@@ -12977,6 +13158,7 @@ module TencentCloud
12977
13158
 
12978
13159
  def deserialize(params)
12979
13160
  @Status = params['Status']
13161
+ @SubTaskHasFailed = params['SubTaskHasFailed']
12980
13162
  @Limit = params['Limit']
12981
13163
  @ScrollToken = params['ScrollToken']
12982
13164
  @StartTime = params['StartTime']
@@ -19829,6 +20011,74 @@ module TencentCloud
19829
20011
  end
19830
20012
  end
19831
20013
 
20014
+ # ModifySmartEraseTemplate请求参数结构体
20015
+ class ModifySmartEraseTemplateRequest < TencentCloud::Common::AbstractModel
20016
+ # @param Definition: 智能擦除模板唯一标识
20017
+ # @type Definition: Integer
20018
+ # @param Name: 智能擦除模板名称长度限制:64 个字符。
20019
+ # @type Name: String
20020
+ # @param Comment: 智能擦除模板描述信息长度限制:256 个字符。
20021
+ # @type Comment: String
20022
+ # @param EraseType: 擦除类型
20023
+ # - subtitle 去字幕
20024
+ # - watermark 去水印
20025
+ # - privacy 隐私保护
20026
+ # @type EraseType: String
20027
+ # @param EraseSubtitleConfig: 字幕擦除配置,EraseType取subtitle或者EraseType不填,对应模板原EraseType为subtitle时生效。
20028
+ # @type EraseSubtitleConfig: :class:`Tencentcloud::Mps.v20190612.models.SmartEraseSubtitleConfig`
20029
+ # @param EraseWatermarkConfig: 水印擦除配置,EraseType取watermark或者EraseType不填,对应模板原EraseType为watermark时生效。
20030
+ # @type EraseWatermarkConfig: :class:`Tencentcloud::Mps.v20190612.models.SmartEraseWatermarkConfig`
20031
+ # @param ErasePrivacyConfig: 隐私保护配置,EraseType取privacy或者EraseType不填,对应模板原EraseType为privacy时生效。
20032
+ # @type ErasePrivacyConfig: :class:`Tencentcloud::Mps.v20190612.models.SmartErasePrivacyConfig`
20033
+
20034
+ attr_accessor :Definition, :Name, :Comment, :EraseType, :EraseSubtitleConfig, :EraseWatermarkConfig, :ErasePrivacyConfig
20035
+
20036
+ def initialize(definition=nil, name=nil, comment=nil, erasetype=nil, erasesubtitleconfig=nil, erasewatermarkconfig=nil, eraseprivacyconfig=nil)
20037
+ @Definition = definition
20038
+ @Name = name
20039
+ @Comment = comment
20040
+ @EraseType = erasetype
20041
+ @EraseSubtitleConfig = erasesubtitleconfig
20042
+ @EraseWatermarkConfig = erasewatermarkconfig
20043
+ @ErasePrivacyConfig = eraseprivacyconfig
20044
+ end
20045
+
20046
+ def deserialize(params)
20047
+ @Definition = params['Definition']
20048
+ @Name = params['Name']
20049
+ @Comment = params['Comment']
20050
+ @EraseType = params['EraseType']
20051
+ unless params['EraseSubtitleConfig'].nil?
20052
+ @EraseSubtitleConfig = SmartEraseSubtitleConfig.new
20053
+ @EraseSubtitleConfig.deserialize(params['EraseSubtitleConfig'])
20054
+ end
20055
+ unless params['EraseWatermarkConfig'].nil?
20056
+ @EraseWatermarkConfig = SmartEraseWatermarkConfig.new
20057
+ @EraseWatermarkConfig.deserialize(params['EraseWatermarkConfig'])
20058
+ end
20059
+ unless params['ErasePrivacyConfig'].nil?
20060
+ @ErasePrivacyConfig = SmartErasePrivacyConfig.new
20061
+ @ErasePrivacyConfig.deserialize(params['ErasePrivacyConfig'])
20062
+ end
20063
+ end
20064
+ end
20065
+
20066
+ # ModifySmartEraseTemplate返回参数结构体
20067
+ class ModifySmartEraseTemplateResponse < TencentCloud::Common::AbstractModel
20068
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20069
+ # @type RequestId: String
20070
+
20071
+ attr_accessor :RequestId
20072
+
20073
+ def initialize(requestid=nil)
20074
+ @RequestId = requestid
20075
+ end
20076
+
20077
+ def deserialize(params)
20078
+ @RequestId = params['RequestId']
20079
+ end
20080
+ end
20081
+
19832
20082
  # ModifySmartSubtitleTemplate请求参数结构体
19833
20083
  class ModifySmartSubtitleTemplateRequest < TencentCloud::Common::AbstractModel
19834
20084
  # @param Definition: 智能字幕模板唯一标识
@@ -22150,7 +22400,9 @@ module TencentCloud
22150
22400
  # LowVoice:低音,
22151
22401
  # HighVoice:爆音,
22152
22402
  # NoVoice:静音,
22153
- # LowEvaluation:无参考打分低于阈值。
22403
+ # LowEvaluation:视频无参考评分(MOS)低于阈值,
22404
+ # AudioEvaluation:音频无参考评分(MOS)低于阈值,
22405
+ # AudioNoise:音频噪声。
22154
22406
  # @type Type: String
22155
22407
  # @param QualityControlItems: 质检结果项。
22156
22408
  # @type QualityControlItems: Array
@@ -23915,10 +24167,10 @@ module TencentCloud
23915
24167
  # @param Uri: 请求解密秘钥uri地址。
23916
24168
  # 注意:此字段可能返回 null,表示取不到有效值。
23917
24169
  # @type Uri: String
23918
- # @param Key: 加密key(32字节字符串)。
24170
+ # @param Key: 加密key(十六进制32字节字符串)。
23919
24171
  # 注意:此字段可能返回 null,表示取不到有效值。
23920
24172
  # @type Key: String
23921
- # @param Vector: 加密初始化向量(32字节字符串)。
24173
+ # @param Vector: 加密初始化向量(十六进制32字节字符串)。
23922
24174
  # 注意:此字段可能返回 null,表示取不到有效值。
23923
24175
  # @type Vector: String
23924
24176
 
@@ -24163,6 +24415,79 @@ module TencentCloud
24163
24415
  end
24164
24416
  end
24165
24417
 
24418
+ # 智能擦除模板详情
24419
+ class SmartEraseTemplateItem < TencentCloud::Common::AbstractModel
24420
+ # @param Definition: 智能擦除模板唯一标识
24421
+ # @type Definition: Integer
24422
+ # @param Name: 智能擦除模板名称
24423
+ # @type Name: String
24424
+ # @param Comment: 智能擦除模板描述信息
24425
+ # @type Comment: String
24426
+ # @param Type: 模板类型,取值范围:
24427
+ # * Preset:系统预置模板;
24428
+ # * Custom:用户自定义模板。
24429
+ # @type Type: String
24430
+ # @param EraseType: 擦除类型
24431
+ # - subtitle 去字幕
24432
+ # - watermark 去水印
24433
+ # - privacy 隐私保护
24434
+ # @type EraseType: String
24435
+ # @param EraseSubtitleConfig: 字幕擦除配置
24436
+ # 注意:此字段可能返回 null,表示取不到有效值。
24437
+ # @type EraseSubtitleConfig: :class:`Tencentcloud::Mps.v20190612.models.SmartEraseSubtitleConfig`
24438
+ # @param EraseWatermarkConfig: 水印擦除配置
24439
+ # 注意:此字段可能返回 null,表示取不到有效值。
24440
+ # @type EraseWatermarkConfig: :class:`Tencentcloud::Mps.v20190612.models.SmartEraseWatermarkConfig`
24441
+ # @param ErasePrivacyConfig: 隐私保护配置
24442
+ # 注意:此字段可能返回 null,表示取不到有效值。
24443
+ # @type ErasePrivacyConfig: :class:`Tencentcloud::Mps.v20190612.models.SmartErasePrivacyConfig`
24444
+ # @param CreateTime: 模板创建时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
24445
+ # @type CreateTime: String
24446
+ # @param UpdateTime: 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/862/37710#52)。
24447
+ # @type UpdateTime: String
24448
+ # @param AliasName: 智能擦除预设模板别名
24449
+ # @type AliasName: String
24450
+
24451
+ attr_accessor :Definition, :Name, :Comment, :Type, :EraseType, :EraseSubtitleConfig, :EraseWatermarkConfig, :ErasePrivacyConfig, :CreateTime, :UpdateTime, :AliasName
24452
+
24453
+ def initialize(definition=nil, name=nil, comment=nil, type=nil, erasetype=nil, erasesubtitleconfig=nil, erasewatermarkconfig=nil, eraseprivacyconfig=nil, createtime=nil, updatetime=nil, aliasname=nil)
24454
+ @Definition = definition
24455
+ @Name = name
24456
+ @Comment = comment
24457
+ @Type = type
24458
+ @EraseType = erasetype
24459
+ @EraseSubtitleConfig = erasesubtitleconfig
24460
+ @EraseWatermarkConfig = erasewatermarkconfig
24461
+ @ErasePrivacyConfig = eraseprivacyconfig
24462
+ @CreateTime = createtime
24463
+ @UpdateTime = updatetime
24464
+ @AliasName = aliasname
24465
+ end
24466
+
24467
+ def deserialize(params)
24468
+ @Definition = params['Definition']
24469
+ @Name = params['Name']
24470
+ @Comment = params['Comment']
24471
+ @Type = params['Type']
24472
+ @EraseType = params['EraseType']
24473
+ unless params['EraseSubtitleConfig'].nil?
24474
+ @EraseSubtitleConfig = SmartEraseSubtitleConfig.new
24475
+ @EraseSubtitleConfig.deserialize(params['EraseSubtitleConfig'])
24476
+ end
24477
+ unless params['EraseWatermarkConfig'].nil?
24478
+ @EraseWatermarkConfig = SmartEraseWatermarkConfig.new
24479
+ @EraseWatermarkConfig.deserialize(params['EraseWatermarkConfig'])
24480
+ end
24481
+ unless params['ErasePrivacyConfig'].nil?
24482
+ @ErasePrivacyConfig = SmartErasePrivacyConfig.new
24483
+ @ErasePrivacyConfig.deserialize(params['ErasePrivacyConfig'])
24484
+ end
24485
+ @CreateTime = params['CreateTime']
24486
+ @UpdateTime = params['UpdateTime']
24487
+ @AliasName = params['AliasName']
24488
+ end
24489
+ end
24490
+
24166
24491
  # 智能擦除模板去水印配置
24167
24492
  class SmartEraseWatermarkConfig < TencentCloud::Common::AbstractModel
24168
24493
  # @param WatermarkEraseMethod: 水印擦除方式。
@@ -24908,7 +25233,7 @@ module TencentCloud
24908
25233
 
24909
25234
  # 注: 不同DRM厂商对子流的数量限制不一样,如 PallyCon 限制不能超过5条子流,DRMtoday厂商最多仅支持9条子流加密
24910
25235
  # @type KeyServerUrl: String
24911
- # @param Vector: 加密初始化向量(32字节字符串),该字段内容为用户自定义。
25236
+ # @param Vector: 加密初始化向量(十六进制32字节字符串),该字段内容为用户自定义。
24912
25237
  # @type Vector: String
24913
25238
  # @param EncryptionMethod: 加密方式,FairPlay 默认cbcs,PlayReady,Widevine 默认cenc
24914
25239
 
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.1143
4
+ version: 3.0.1150
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-18 00:00:00.000000000 Z
11
+ date: 2025-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common