Class: TencentCloud::Cdn::V20180606::PathBasedOriginRule

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

Overview

分路径回源规则

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#OriginObject

file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index: 指定主页生效 file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test/ path 时填充绝对路径,如 /xxx/test.html index 时填充 /

Parameters:

  • RuleType:

    规则类型:

  • RulePaths:

    RuleType 对应类型下的匹配内容:

  • Origin:

    源站列表,支持域名或ipv4地址



10646
10647
10648
# File 'lib/v20180606/models.rb', line 10646

def Origin
  @Origin
end

#RulePathsObject

file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index: 指定主页生效 file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test/ path 时填充绝对路径,如 /xxx/test.html index 时填充 /

Parameters:

  • RuleType:

    规则类型:

  • RulePaths:

    RuleType 对应类型下的匹配内容:

  • Origin:

    源站列表,支持域名或ipv4地址



10646
10647
10648
# File 'lib/v20180606/models.rb', line 10646

def RulePaths
  @RulePaths
end

#RuleTypeObject

file:指定文件后缀生效 directory:指定路径生效 path:指定绝对路径生效 index: 指定主页生效 file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test/ path 时填充绝对路径,如 /xxx/test.html index 时填充 /

Parameters:

  • RuleType:

    规则类型:

  • RulePaths:

    RuleType 对应类型下的匹配内容:

  • Origin:

    源站列表,支持域名或ipv4地址



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