Class: TencentCloud::Mps::V20190612::CosFileUploadTrigger
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mps::V20190612::CosFileUploadTrigger
- Defined in:
- lib/v20190612/models.rb
Overview
绑定到 COS 的输入规则。
Instance Attribute Summary collapse
-
#Bucket ⇒ Object
注意: 1.
-
#Dir ⇒ Object
注意: 1.
-
#Formats ⇒ Object
注意: 1.
-
#Region ⇒ Object
注意: 1.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(bucket = nil, region = nil, dir = nil, formats = nil) ⇒ CosFileUploadTrigger
constructor
A new instance of CosFileUploadTrigger.
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
#Bucket ⇒ Object
注意:
- 如果传入的格式列表中有
*则表示为支持任意文件格式。 - 扩展名传入时带不带
.都可以,比如.mp4或mp4均支持。 - 自定义文件扩展名需满足数字、字母字符,长度在[1,64]范围内。
7417 7418 7419 |
# File 'lib/v20190612/models.rb', line 7417 def Bucket @Bucket end |
#Dir ⇒ Object
注意:
- 如果传入的格式列表中有
*则表示为支持任意文件格式。 - 扩展名传入时带不带
.都可以,比如.mp4或mp4均支持。 - 自定义文件扩展名需满足数字、字母字符,长度在[1,64]范围内。
7417 7418 7419 |
# File 'lib/v20190612/models.rb', line 7417 def Dir @Dir end |
#Formats ⇒ Object
注意:
- 如果传入的格式列表中有
*则表示为支持任意文件格式。 - 扩展名传入时带不带
.都可以,比如.mp4或mp4均支持。 - 自定义文件扩展名需满足数字、字母字符,长度在[1,64]范围内。
7417 7418 7419 |
# File 'lib/v20190612/models.rb', line 7417 def Formats @Formats end |
#Region ⇒ Object
注意:
- 如果传入的格式列表中有
*则表示为支持任意文件格式。 - 扩展名传入时带不带
.都可以,比如.mp4或mp4均支持。 - 自定义文件扩展名需满足数字、字母字符,长度在[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 |