Class: TencentCloud::Cdn::V20180606::PathBasedOriginRule
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdn::V20180606::PathBasedOriginRule
- Defined in:
- lib/v20180606/models.rb
Overview
分路径回源规则
Instance Attribute Summary collapse
-
#Origin ⇒ Object
file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index: 指定主页生效 file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test/ path 时填充绝对路径,如 /xxx/test.html index 时填充 /.
-
#RulePaths ⇒ Object
file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index: 指定主页生效 file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test/ path 时填充绝对路径,如 /xxx/test.html index 时填充 /.
-
#RuleType ⇒ Object
file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index: 指定主页生效 file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test/ path 时填充绝对路径,如 /xxx/test.html index 时填充 /.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(ruletype = nil, rulepaths = nil, origin = nil) ⇒ PathBasedOriginRule
constructor
A new instance of PathBasedOriginRule.
Constructor Details
#initialize(ruletype = nil, rulepaths = nil, origin = nil) ⇒ PathBasedOriginRule
Returns a new instance of PathBasedOriginRule.
10648 10649 10650 10651 10652 |
# File 'lib/v20180606/models.rb', line 10648 def initialize(ruletype=nil, rulepaths=nil, origin=nil) @RuleType = ruletype @RulePaths = rulepaths @Origin = origin end |
Instance Attribute Details
#Origin ⇒ Object
file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index: 指定主页生效 file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test/ path 时填充绝对路径,如 /xxx/test.html index 时填充 /
10646 10647 10648 |
# File 'lib/v20180606/models.rb', line 10646 def Origin @Origin end |
#RulePaths ⇒ Object
file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index: 指定主页生效 file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test/ path 时填充绝对路径,如 /xxx/test.html index 时填充 /
10646 10647 10648 |
# File 'lib/v20180606/models.rb', line 10646 def RulePaths @RulePaths end |
#RuleType ⇒ Object
file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index: 指定主页生效 file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test/ path 时填充绝对路径,如 /xxx/test.html index 时填充 /
10646 10647 10648 |
# File 'lib/v20180606/models.rb', line 10646 def RuleType @RuleType end |
Instance Method Details
#deserialize(params) ⇒ Object
10654 10655 10656 10657 10658 |
# File 'lib/v20180606/models.rb', line 10654 def deserialize(params) @RuleType = params['RuleType'] @RulePaths = params['RulePaths'] @Origin = params['Origin'] end |