tencentcloud-sdk-mps 3.0.523 → 3.0.525
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 +24 -0
- data/lib/v20190612/models.rb +240 -11
- 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: 97e25127e961a79642eef3a8c1a456e522642e88
|
4
|
+
data.tar.gz: 49c876908ba18797bfe63472767cf77233201b17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a4f836940cde75bd1ce810930bcc8bbd37a90df239d7fbe67084427bf93dfae8b5e0dbbc5a0255cf8add8e2bd834e3cd0780d66a78b00e167bea6c59f6aecf7
|
7
|
+
data.tar.gz: 007d1b15892d9fa61b3e494466b2397973de3ff20ac8e76216906522b244bff22ee65c380d8036e69509c6e64a58ff0c12a9d83c717cf5290792de1bdc2228b0
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.525
|
data/lib/v20190612/client.rb
CHANGED
@@ -2058,6 +2058,30 @@ module TencentCloud
|
|
2058
2058
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2059
2059
|
end
|
2060
2060
|
|
2061
|
+
# 提取视频中的盲水印。
|
2062
|
+
|
2063
|
+
# @param request: Request instance for WithdrawsWatermark.
|
2064
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::WithdrawsWatermarkRequest`
|
2065
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::WithdrawsWatermarkResponse`
|
2066
|
+
def WithdrawsWatermark(request)
|
2067
|
+
body = send_request('WithdrawsWatermark', request.serialize)
|
2068
|
+
response = JSON.parse(body)
|
2069
|
+
if response['Response'].key?('Error') == false
|
2070
|
+
model = WithdrawsWatermarkResponse.new
|
2071
|
+
model.deserialize(response['Response'])
|
2072
|
+
model
|
2073
|
+
else
|
2074
|
+
code = response['Response']['Error']['Code']
|
2075
|
+
message = response['Response']['Error']['Message']
|
2076
|
+
reqid = response['Response']['RequestId']
|
2077
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2078
|
+
end
|
2079
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2080
|
+
raise e
|
2081
|
+
rescue StandardError => e
|
2082
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2083
|
+
end
|
2084
|
+
|
2061
2085
|
|
2062
2086
|
end
|
2063
2087
|
end
|
data/lib/v20190612/models.rb
CHANGED
@@ -3456,6 +3456,81 @@ module TencentCloud
|
|
3456
3456
|
end
|
3457
3457
|
end
|
3458
3458
|
|
3459
|
+
# AWS S3 文件是上传触发器。
|
3460
|
+
class AwsS3FileUploadTrigger < TencentCloud::Common::AbstractModel
|
3461
|
+
# @param S3Bucket: 工作流绑定的 AWS S3 存储桶。
|
3462
|
+
# @type S3Bucket: String
|
3463
|
+
# @param S3Region: 工作流绑定的桶所在 AWS 区域。
|
3464
|
+
# @type S3Region: String
|
3465
|
+
# @param Dir: 工作流绑定的输入路径目录,必须为绝对路径,即以 `/` 开头和结尾。如`/movie/201907/`,不填代表根目录`/`。
|
3466
|
+
# @type Dir: String
|
3467
|
+
# @param Formats: 工作流允许触发的文件格式列表,如 ["mp4", "flv", "mov"]。不填代表所有格式的文件都可以触发工作流。
|
3468
|
+
# @type Formats: Array
|
3469
|
+
# @param S3SecretId: 工作流绑定的 AWS S3 存储桶的秘钥ID。
|
3470
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3471
|
+
# @type S3SecretId: String
|
3472
|
+
# @param S3SecretKey: 工作流绑定的 AWS S3 存储桶的秘钥Key。
|
3473
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3474
|
+
# @type S3SecretKey: String
|
3475
|
+
# @param AwsSQS: 工作流绑定的 AWS S3 存储桶对应的 SQS事件队列。
|
3476
|
+
# 注意:队列和桶需要在同一区域。
|
3477
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3478
|
+
# @type AwsSQS: :class:`Tencentcloud::Mps.v20190612.models.AwsSQS`
|
3479
|
+
|
3480
|
+
attr_accessor :S3Bucket, :S3Region, :Dir, :Formats, :S3SecretId, :S3SecretKey, :AwsSQS
|
3481
|
+
|
3482
|
+
def initialize(s3bucket=nil, s3region=nil, dir=nil, formats=nil, s3secretid=nil, s3secretkey=nil, awssqs=nil)
|
3483
|
+
@S3Bucket = s3bucket
|
3484
|
+
@S3Region = s3region
|
3485
|
+
@Dir = dir
|
3486
|
+
@Formats = formats
|
3487
|
+
@S3SecretId = s3secretid
|
3488
|
+
@S3SecretKey = s3secretkey
|
3489
|
+
@AwsSQS = awssqs
|
3490
|
+
end
|
3491
|
+
|
3492
|
+
def deserialize(params)
|
3493
|
+
@S3Bucket = params['S3Bucket']
|
3494
|
+
@S3Region = params['S3Region']
|
3495
|
+
@Dir = params['Dir']
|
3496
|
+
@Formats = params['Formats']
|
3497
|
+
@S3SecretId = params['S3SecretId']
|
3498
|
+
@S3SecretKey = params['S3SecretKey']
|
3499
|
+
unless params['AwsSQS'].nil?
|
3500
|
+
@AwsSQS = AwsSQS.new
|
3501
|
+
@AwsSQS.deserialize(params['AwsSQS'])
|
3502
|
+
end
|
3503
|
+
end
|
3504
|
+
end
|
3505
|
+
|
3506
|
+
# Aws SQS 队列信息
|
3507
|
+
class AwsSQS < TencentCloud::Common::AbstractModel
|
3508
|
+
# @param SQSRegion: SQS 队列区域。
|
3509
|
+
# @type SQSRegion: String
|
3510
|
+
# @param SQSQueueName: SQS 队列名称。
|
3511
|
+
# @type SQSQueueName: String
|
3512
|
+
# @param S3SecretId: 读写SQS的秘钥id。
|
3513
|
+
# @type S3SecretId: String
|
3514
|
+
# @param S3SecretKey: 读写SQS的秘钥key。
|
3515
|
+
# @type S3SecretKey: String
|
3516
|
+
|
3517
|
+
attr_accessor :SQSRegion, :SQSQueueName, :S3SecretId, :S3SecretKey
|
3518
|
+
|
3519
|
+
def initialize(sqsregion=nil, sqsqueuename=nil, s3secretid=nil, s3secretkey=nil)
|
3520
|
+
@SQSRegion = sqsregion
|
3521
|
+
@SQSQueueName = sqsqueuename
|
3522
|
+
@S3SecretId = s3secretid
|
3523
|
+
@S3SecretKey = s3secretkey
|
3524
|
+
end
|
3525
|
+
|
3526
|
+
def deserialize(params)
|
3527
|
+
@SQSRegion = params['SQSRegion']
|
3528
|
+
@SQSQueueName = params['SQSQueueName']
|
3529
|
+
@S3SecretId = params['S3SecretId']
|
3530
|
+
@S3SecretKey = params['S3SecretKey']
|
3531
|
+
end
|
3532
|
+
end
|
3533
|
+
|
3459
3534
|
# 智能分类任务控制参数
|
3460
3535
|
class ClassificationConfigureInfo < TencentCloud::Common::AbstractModel
|
3461
3536
|
# @param Switch: 智能分类任务开关,可选值:
|
@@ -10706,20 +10781,27 @@ module TencentCloud
|
|
10706
10781
|
|
10707
10782
|
# 媒体处理的输入对象信息。
|
10708
10783
|
class MediaInputInfo < TencentCloud::Common::AbstractModel
|
10709
|
-
# @param Type:
|
10784
|
+
# @param Type: 输入来源对象的类型,支持:
|
10785
|
+
# <li> COS:COS源</li>
|
10786
|
+
# <li> URL:URL源</li>
|
10787
|
+
# <li> AWS-S3:AWS 源,目前只支持转码任务 </li>
|
10710
10788
|
# @type Type: String
|
10711
10789
|
# @param CosInputInfo: 当 Type 为 COS 时有效,则该项为必填,表示媒体处理 COS 对象信息。
|
10712
10790
|
# @type CosInputInfo: :class:`Tencentcloud::Mps.v20190612.models.CosInputInfo`
|
10713
10791
|
# @param UrlInputInfo: 当 Type 为 URL 时有效,则该项为必填,表示媒体处理 URL 对象信息。
|
10714
10792
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
10715
10793
|
# @type UrlInputInfo: :class:`Tencentcloud::Mps.v20190612.models.UrlInputInfo`
|
10794
|
+
# @param S3InputInfo: 当 Type 为 AWS-S3 时有效,则该项为必填,表示媒体处理 AWS S3 对象信息。
|
10795
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10796
|
+
# @type S3InputInfo: :class:`Tencentcloud::Mps.v20190612.models.S3InputInfo`
|
10716
10797
|
|
10717
|
-
attr_accessor :Type, :CosInputInfo, :UrlInputInfo
|
10798
|
+
attr_accessor :Type, :CosInputInfo, :UrlInputInfo, :S3InputInfo
|
10718
10799
|
|
10719
|
-
def initialize(type=nil, cosinputinfo=nil, urlinputinfo=nil)
|
10800
|
+
def initialize(type=nil, cosinputinfo=nil, urlinputinfo=nil, s3inputinfo=nil)
|
10720
10801
|
@Type = type
|
10721
10802
|
@CosInputInfo = cosinputinfo
|
10722
10803
|
@UrlInputInfo = urlinputinfo
|
10804
|
+
@S3InputInfo = s3inputinfo
|
10723
10805
|
end
|
10724
10806
|
|
10725
10807
|
def deserialize(params)
|
@@ -10732,6 +10814,10 @@ module TencentCloud
|
|
10732
10814
|
@UrlInputInfo = UrlInputInfo.new
|
10733
10815
|
@UrlInputInfo.deserialize(params['UrlInputInfo'])
|
10734
10816
|
end
|
10817
|
+
unless params['S3InputInfo'].nil?
|
10818
|
+
@S3InputInfo = S3InputInfo.new
|
10819
|
+
@S3InputInfo.deserialize(params['S3InputInfo'])
|
10820
|
+
end
|
10735
10821
|
end
|
10736
10822
|
end
|
10737
10823
|
|
@@ -14276,6 +14362,66 @@ module TencentCloud
|
|
14276
14362
|
end
|
14277
14363
|
end
|
14278
14364
|
|
14365
|
+
# AWS S3存储输入
|
14366
|
+
class S3InputInfo < TencentCloud::Common::AbstractModel
|
14367
|
+
# @param S3Bucket: S3 bucket。
|
14368
|
+
# @type S3Bucket: String
|
14369
|
+
# @param S3Region: S3 bucket 对应的区域。
|
14370
|
+
# @type S3Region: String
|
14371
|
+
# @param S3Object: S3 bucket 中的媒体资源路径。
|
14372
|
+
# @type S3Object: String
|
14373
|
+
# @param S3SecretId: AWS 内网访问 媒体资源的秘钥id。
|
14374
|
+
# @type S3SecretId: String
|
14375
|
+
# @param S3SecretKey: AWS 内网访问 媒体资源的秘钥key。
|
14376
|
+
# @type S3SecretKey: String
|
14377
|
+
|
14378
|
+
attr_accessor :S3Bucket, :S3Region, :S3Object, :S3SecretId, :S3SecretKey
|
14379
|
+
|
14380
|
+
def initialize(s3bucket=nil, s3region=nil, s3object=nil, s3secretid=nil, s3secretkey=nil)
|
14381
|
+
@S3Bucket = s3bucket
|
14382
|
+
@S3Region = s3region
|
14383
|
+
@S3Object = s3object
|
14384
|
+
@S3SecretId = s3secretid
|
14385
|
+
@S3SecretKey = s3secretkey
|
14386
|
+
end
|
14387
|
+
|
14388
|
+
def deserialize(params)
|
14389
|
+
@S3Bucket = params['S3Bucket']
|
14390
|
+
@S3Region = params['S3Region']
|
14391
|
+
@S3Object = params['S3Object']
|
14392
|
+
@S3SecretId = params['S3SecretId']
|
14393
|
+
@S3SecretKey = params['S3SecretKey']
|
14394
|
+
end
|
14395
|
+
end
|
14396
|
+
|
14397
|
+
# AWS S3 输出位置
|
14398
|
+
class S3OutputStorage < TencentCloud::Common::AbstractModel
|
14399
|
+
# @param S3Bucket: S3 bucket。
|
14400
|
+
# @type S3Bucket: String
|
14401
|
+
# @param S3Region: S3 bucket 对应的区域。
|
14402
|
+
# @type S3Region: String
|
14403
|
+
# @param S3SecretId: AWS 内网上传 媒体资源的秘钥id。
|
14404
|
+
# @type S3SecretId: String
|
14405
|
+
# @param S3SecretKey: AWS 内网上传 媒体资源的秘钥key。
|
14406
|
+
# @type S3SecretKey: String
|
14407
|
+
|
14408
|
+
attr_accessor :S3Bucket, :S3Region, :S3SecretId, :S3SecretKey
|
14409
|
+
|
14410
|
+
def initialize(s3bucket=nil, s3region=nil, s3secretid=nil, s3secretkey=nil)
|
14411
|
+
@S3Bucket = s3bucket
|
14412
|
+
@S3Region = s3region
|
14413
|
+
@S3SecretId = s3secretid
|
14414
|
+
@S3SecretKey = s3secretkey
|
14415
|
+
end
|
14416
|
+
|
14417
|
+
def deserialize(params)
|
14418
|
+
@S3Bucket = params['S3Bucket']
|
14419
|
+
@S3Region = params['S3Region']
|
14420
|
+
@S3SecretId = params['S3SecretId']
|
14421
|
+
@S3SecretKey = params['S3SecretKey']
|
14422
|
+
end
|
14423
|
+
end
|
14424
|
+
|
14279
14425
|
# 转推的目标地址信息。
|
14280
14426
|
class SRTAddressDestination < TencentCloud::Common::AbstractModel
|
14281
14427
|
# @param Ip: 目标地址的IP。
|
@@ -15176,14 +15322,19 @@ module TencentCloud
|
|
15176
15322
|
# <li>TDMQ-CMQ:消息队列</li>
|
15177
15323
|
# <li>URL:指定URL时HTTP回调推送到 NotifyUrl 指定的地址,回调协议http+json,包体内容同解析事件通知接口的输出参数 </li>
|
15178
15324
|
# <li>SCF:不推荐使用,需要在控制台额外配置SCF</li>
|
15325
|
+
# <li>AWS-SQS:AWS 队列,只适用于 AWS 任务,且要求同区域</li>
|
15179
15326
|
# <font color="red"> 注:不填或为空时默认 CMQ,如需采用其他类型需填写对应类型值。 </font>
|
15180
15327
|
# @type NotifyType: String
|
15181
15328
|
# @param NotifyUrl: HTTP回调地址,NotifyType为URL时必填。
|
15182
15329
|
# @type NotifyUrl: String
|
15330
|
+
# @param AwsSQS: AWS SQS 回调,NotifyType为 AWS-SQS 时必填。
|
15331
|
+
|
15332
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
15333
|
+
# @type AwsSQS: :class:`Tencentcloud::Mps.v20190612.models.AwsSQS`
|
15183
15334
|
|
15184
|
-
attr_accessor :CmqModel, :CmqRegion, :TopicName, :QueueName, :NotifyMode, :NotifyType, :NotifyUrl
|
15335
|
+
attr_accessor :CmqModel, :CmqRegion, :TopicName, :QueueName, :NotifyMode, :NotifyType, :NotifyUrl, :AwsSQS
|
15185
15336
|
|
15186
|
-
def initialize(cmqmodel=nil, cmqregion=nil, topicname=nil, queuename=nil, notifymode=nil, notifytype=nil, notifyurl=nil)
|
15337
|
+
def initialize(cmqmodel=nil, cmqregion=nil, topicname=nil, queuename=nil, notifymode=nil, notifytype=nil, notifyurl=nil, awssqs=nil)
|
15187
15338
|
@CmqModel = cmqmodel
|
15188
15339
|
@CmqRegion = cmqregion
|
15189
15340
|
@TopicName = topicname
|
@@ -15191,6 +15342,7 @@ module TencentCloud
|
|
15191
15342
|
@NotifyMode = notifymode
|
15192
15343
|
@NotifyType = notifytype
|
15193
15344
|
@NotifyUrl = notifyurl
|
15345
|
+
@AwsSQS = awssqs
|
15194
15346
|
end
|
15195
15347
|
|
15196
15348
|
def deserialize(params)
|
@@ -15201,22 +15353,32 @@ module TencentCloud
|
|
15201
15353
|
@NotifyMode = params['NotifyMode']
|
15202
15354
|
@NotifyType = params['NotifyType']
|
15203
15355
|
@NotifyUrl = params['NotifyUrl']
|
15356
|
+
unless params['AwsSQS'].nil?
|
15357
|
+
@AwsSQS = AwsSQS.new
|
15358
|
+
@AwsSQS.deserialize(params['AwsSQS'])
|
15359
|
+
end
|
15204
15360
|
end
|
15205
15361
|
end
|
15206
15362
|
|
15207
15363
|
# 媒体处理输出对象信息。
|
15208
15364
|
class TaskOutputStorage < TencentCloud::Common::AbstractModel
|
15209
|
-
# @param Type:
|
15365
|
+
# @param Type: 媒体处理输出对象存储位置的类型,支持:
|
15366
|
+
# <li>COS:COS存储</li>
|
15367
|
+
# <li>AWS-S3:AWS 存储,只适用于AWS任务,且要求同区域</li>
|
15210
15368
|
# @type Type: String
|
15211
15369
|
# @param CosOutputStorage: 当 Type 为 COS 时有效,则该项为必填,表示媒体处理 COS 输出位置。
|
15212
15370
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
15213
15371
|
# @type CosOutputStorage: :class:`Tencentcloud::Mps.v20190612.models.CosOutputStorage`
|
15372
|
+
# @param S3OutputStorage: 当 Type 为 AWS-S3 时有效,则该项为必填,表示媒体处理 AWS S3 输出位置。
|
15373
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
15374
|
+
# @type S3OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.S3OutputStorage`
|
15214
15375
|
|
15215
|
-
attr_accessor :Type, :CosOutputStorage
|
15376
|
+
attr_accessor :Type, :CosOutputStorage, :S3OutputStorage
|
15216
15377
|
|
15217
|
-
def initialize(type=nil, cosoutputstorage=nil)
|
15378
|
+
def initialize(type=nil, cosoutputstorage=nil, s3outputstorage=nil)
|
15218
15379
|
@Type = type
|
15219
15380
|
@CosOutputStorage = cosoutputstorage
|
15381
|
+
@S3OutputStorage = s3outputstorage
|
15220
15382
|
end
|
15221
15383
|
|
15222
15384
|
def deserialize(params)
|
@@ -15225,6 +15387,10 @@ module TencentCloud
|
|
15225
15387
|
@CosOutputStorage = CosOutputStorage.new
|
15226
15388
|
@CosOutputStorage.deserialize(params['CosOutputStorage'])
|
15227
15389
|
end
|
15390
|
+
unless params['S3OutputStorage'].nil?
|
15391
|
+
@S3OutputStorage = S3OutputStorage.new
|
15392
|
+
@S3OutputStorage.deserialize(params['S3OutputStorage'])
|
15393
|
+
end
|
15228
15394
|
end
|
15229
15395
|
end
|
15230
15396
|
|
@@ -16387,6 +16553,56 @@ module TencentCloud
|
|
16387
16553
|
end
|
16388
16554
|
end
|
16389
16555
|
|
16556
|
+
# WithdrawsWatermark请求参数结构体
|
16557
|
+
class WithdrawsWatermarkRequest < TencentCloud::Common::AbstractModel
|
16558
|
+
# @param InputInfo: 输入媒体文件存储信息。
|
16559
|
+
# @type InputInfo: :class:`Tencentcloud::Mps.v20190612.models.MediaInputInfo`
|
16560
|
+
# @param TaskNotifyConfig: 任务的事件通知信息,不填代表不获取事件通知。
|
16561
|
+
# @type TaskNotifyConfig: :class:`Tencentcloud::Mps.v20190612.models.TaskNotifyConfig`
|
16562
|
+
# @param SessionContext: 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。
|
16563
|
+
# @type SessionContext: String
|
16564
|
+
|
16565
|
+
attr_accessor :InputInfo, :TaskNotifyConfig, :SessionContext
|
16566
|
+
|
16567
|
+
def initialize(inputinfo=nil, tasknotifyconfig=nil, sessioncontext=nil)
|
16568
|
+
@InputInfo = inputinfo
|
16569
|
+
@TaskNotifyConfig = tasknotifyconfig
|
16570
|
+
@SessionContext = sessioncontext
|
16571
|
+
end
|
16572
|
+
|
16573
|
+
def deserialize(params)
|
16574
|
+
unless params['InputInfo'].nil?
|
16575
|
+
@InputInfo = MediaInputInfo.new
|
16576
|
+
@InputInfo.deserialize(params['InputInfo'])
|
16577
|
+
end
|
16578
|
+
unless params['TaskNotifyConfig'].nil?
|
16579
|
+
@TaskNotifyConfig = TaskNotifyConfig.new
|
16580
|
+
@TaskNotifyConfig.deserialize(params['TaskNotifyConfig'])
|
16581
|
+
end
|
16582
|
+
@SessionContext = params['SessionContext']
|
16583
|
+
end
|
16584
|
+
end
|
16585
|
+
|
16586
|
+
# WithdrawsWatermark返回参数结构体
|
16587
|
+
class WithdrawsWatermarkResponse < TencentCloud::Common::AbstractModel
|
16588
|
+
# @param TaskId: 任务 ID,可以通过该 ID 查询任务状态和结果。
|
16589
|
+
# @type TaskId: String
|
16590
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
16591
|
+
# @type RequestId: String
|
16592
|
+
|
16593
|
+
attr_accessor :TaskId, :RequestId
|
16594
|
+
|
16595
|
+
def initialize(taskid=nil, requestid=nil)
|
16596
|
+
@TaskId = taskid
|
16597
|
+
@RequestId = requestid
|
16598
|
+
end
|
16599
|
+
|
16600
|
+
def deserialize(params)
|
16601
|
+
@TaskId = params['TaskId']
|
16602
|
+
@RequestId = params['RequestId']
|
16603
|
+
end
|
16604
|
+
end
|
16605
|
+
|
16390
16606
|
# 工作流信息详情。
|
16391
16607
|
class WorkflowInfo < TencentCloud::Common::AbstractModel
|
16392
16608
|
# @param WorkflowId: 工作流 ID。
|
@@ -16576,17 +16792,26 @@ module TencentCloud
|
|
16576
16792
|
|
16577
16793
|
# 输入规则,当上传视频命中该规则时,即触发工作流。
|
16578
16794
|
class WorkflowTrigger < TencentCloud::Common::AbstractModel
|
16579
|
-
# @param Type:
|
16795
|
+
# @param Type: 触发器的类型,可选值:
|
16796
|
+
# <li>CosFileUpload:COS触发</li>
|
16797
|
+
# <li>AwsS3FileUpload:AWS触发,目前只支持转码任务。只有编排支持,工作流不支持。 </li>
|
16798
|
+
|
16580
16799
|
# @type Type: String
|
16581
16800
|
# @param CosFileUploadTrigger: 当 Type 为 CosFileUpload 时必填且有效,为 COS 触发规则。
|
16582
16801
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
16583
16802
|
# @type CosFileUploadTrigger: :class:`Tencentcloud::Mps.v20190612.models.CosFileUploadTrigger`
|
16803
|
+
# @param AwsS3FileUploadTrigger: 当 Type 为 AwsS3FileUpload 时必填且有效,为 AWS S3 触发规则。
|
16584
16804
|
|
16585
|
-
|
16805
|
+
# 注意:目前AWS的S3、对应触发队列SQS、回调队列SQS的秘钥需要一致。
|
16806
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
16807
|
+
# @type AwsS3FileUploadTrigger: :class:`Tencentcloud::Mps.v20190612.models.AwsS3FileUploadTrigger`
|
16808
|
+
|
16809
|
+
attr_accessor :Type, :CosFileUploadTrigger, :AwsS3FileUploadTrigger
|
16586
16810
|
|
16587
|
-
def initialize(type=nil, cosfileuploadtrigger=nil)
|
16811
|
+
def initialize(type=nil, cosfileuploadtrigger=nil, awss3fileuploadtrigger=nil)
|
16588
16812
|
@Type = type
|
16589
16813
|
@CosFileUploadTrigger = cosfileuploadtrigger
|
16814
|
+
@AwsS3FileUploadTrigger = awss3fileuploadtrigger
|
16590
16815
|
end
|
16591
16816
|
|
16592
16817
|
def deserialize(params)
|
@@ -16595,6 +16820,10 @@ module TencentCloud
|
|
16595
16820
|
@CosFileUploadTrigger = CosFileUploadTrigger.new
|
16596
16821
|
@CosFileUploadTrigger.deserialize(params['CosFileUploadTrigger'])
|
16597
16822
|
end
|
16823
|
+
unless params['AwsS3FileUploadTrigger'].nil?
|
16824
|
+
@AwsS3FileUploadTrigger = AwsS3FileUploadTrigger.new
|
16825
|
+
@AwsS3FileUploadTrigger.deserialize(params['AwsS3FileUploadTrigger'])
|
16826
|
+
end
|
16598
16827
|
end
|
16599
16828
|
end
|
16600
16829
|
|
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.525
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|