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.



7358
7359
7360
7361
7362
7363
# File 'lib/v20190612/models.rb', line 7358

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. 扩展名传入时带不带‘.`都可以,比如 `.mp4` 或 `mp4` 均支持。

  3. 自定义文件扩展名需满足数字、字母字符,长度在范围内。



7356
7357
7358
# File 'lib/v20190612/models.rb', line 7356

def Bucket
  @Bucket
end

#DirObject

**注意**:

  1. 如果传入的格式列表中有‘*`则表示为支持任意文件格式。

  2. 扩展名传入时带不带‘.`都可以,比如 `.mp4` 或 `mp4` 均支持。

  3. 自定义文件扩展名需满足数字、字母字符,长度在范围内。



7356
7357
7358
# File 'lib/v20190612/models.rb', line 7356

def Dir
  @Dir
end

#FormatsObject

**注意**:

  1. 如果传入的格式列表中有‘*`则表示为支持任意文件格式。

  2. 扩展名传入时带不带‘.`都可以,比如 `.mp4` 或 `mp4` 均支持。

  3. 自定义文件扩展名需满足数字、字母字符,长度在范围内。



7356
7357
7358
# File 'lib/v20190612/models.rb', line 7356

def Formats
  @Formats
end

#RegionObject

**注意**:

  1. 如果传入的格式列表中有‘*`则表示为支持任意文件格式。

  2. 扩展名传入时带不带‘.`都可以,比如 `.mp4` 或 `mp4` 均支持。

  3. 自定义文件扩展名需满足数字、字母字符,长度在范围内。



7356
7357
7358
# File 'lib/v20190612/models.rb', line 7356

def Region
  @Region
end

Instance Method Details

#deserialize(params) ⇒ Object



7365
7366
7367
7368
7369
7370
# File 'lib/v20190612/models.rb', line 7365

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