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.
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
#Bucket ⇒ Object
**注意**:
-
如果传入的格式列表中有‘*`则表示为支持任意文件格式。
-
扩展名传入时带不带‘.`都可以,比如 `.mp4` 或 `mp4` 均支持。
7356 7357 7358 |
# File 'lib/v20190612/models.rb', line 7356 def Bucket @Bucket end |
#Dir ⇒ Object
**注意**:
-
如果传入的格式列表中有‘*`则表示为支持任意文件格式。
-
扩展名传入时带不带‘.`都可以,比如 `.mp4` 或 `mp4` 均支持。
7356 7357 7358 |
# File 'lib/v20190612/models.rb', line 7356 def Dir @Dir end |
#Formats ⇒ Object
**注意**:
-
如果传入的格式列表中有‘*`则表示为支持任意文件格式。
-
扩展名传入时带不带‘.`都可以,比如 `.mp4` 或 `mp4` 均支持。
7356 7357 7358 |
# File 'lib/v20190612/models.rb', line 7356 def Formats @Formats end |
#Region ⇒ Object
**注意**:
-
如果传入的格式列表中有‘*`则表示为支持任意文件格式。
-
扩展名传入时带不带‘.`都可以,比如 `.mp4` 或 `mp4` 均支持。
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 |