Class: TencentCloud::Mps::V20190612::CosFileUploadTrigger

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190612/models.rb

Overview

绑定到 COS 的输入规则。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket = nil, region = nil, dir = nil, formats = nil) ⇒ CosFileUploadTrigger

Returns a new instance of CosFileUploadTrigger.



7419
7420
7421
7422
7423
7424
# File 'lib/v20190612/models.rb', line 7419

def initialize(bucket=nil, region=nil, dir=nil, formats=nil)
  @Bucket = bucket
  @Region = region
  @Dir = dir
  @Formats = formats
end

Instance Attribute Details

#BucketObject

注意

  1. 如果传入的格式列表中有*则表示为支持任意文件格式。
  2. 扩展名传入时带不带.都可以,比如 .mp4mp4 均支持。
  3. 自定义文件扩展名需满足数字、字母字符,长度在[1,64]范围内。


7417
7418
7419
# File 'lib/v20190612/models.rb', line 7417

def Bucket
  @Bucket
end

#DirObject

注意

  1. 如果传入的格式列表中有*则表示为支持任意文件格式。
  2. 扩展名传入时带不带.都可以,比如 .mp4mp4 均支持。
  3. 自定义文件扩展名需满足数字、字母字符,长度在[1,64]范围内。


7417
7418
7419
# File 'lib/v20190612/models.rb', line 7417

def Dir
  @Dir
end

#FormatsObject

注意

  1. 如果传入的格式列表中有*则表示为支持任意文件格式。
  2. 扩展名传入时带不带.都可以,比如 .mp4mp4 均支持。
  3. 自定义文件扩展名需满足数字、字母字符,长度在[1,64]范围内。


7417
7418
7419
# File 'lib/v20190612/models.rb', line 7417

def Formats
  @Formats
end

#RegionObject

注意

  1. 如果传入的格式列表中有*则表示为支持任意文件格式。
  2. 扩展名传入时带不带.都可以,比如 .mp4mp4 均支持。
  3. 自定义文件扩展名需满足数字、字母字符,长度在[1,64]范围内。


7417
7418
7419
# File 'lib/v20190612/models.rb', line 7417

def Region
  @Region
end

Instance Method Details

#deserialize(params) ⇒ Object



7426
7427
7428
7429
7430
7431
# File 'lib/v20190612/models.rb', line 7426

def deserialize(params)
  @Bucket = params['Bucket']
  @Region = params['Region']
  @Dir = params['Dir']
  @Formats = params['Formats']
end