Class: TencentCloud::Cdn::V20180606::UrlRedirect
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdn::V20180606::UrlRedirect
- Defined in:
- lib/v20180606/models.rb
Overview
访问URL重写配置
Instance Attribute Summary collapse
-
#PathRules ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。.
-
#Switch ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(switch = nil, pathrules = nil) ⇒ UrlRedirect
constructor
A new instance of UrlRedirect.
Constructor Details
#initialize(switch = nil, pathrules = nil) ⇒ UrlRedirect
Returns a new instance of UrlRedirect.
10239 10240 10241 10242 |
# File 'lib/v20180606/models.rb', line 10239 def initialize(switch=nil, pathrules=nil) @Switch = switch @PathRules = pathrules end |
Instance Attribute Details
#PathRules ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。
10237 10238 10239 |
# File 'lib/v20180606/models.rb', line 10237 def PathRules @PathRules end |
#Switch ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。
10237 10238 10239 |
# File 'lib/v20180606/models.rb', line 10237 def Switch @Switch end |
Instance Method Details
#deserialize(params) ⇒ Object
10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 |
# File 'lib/v20180606/models.rb', line 10244 def deserialize(params) @Switch = params['Switch'] unless params['PathRules'].nil? @PathRules = [] params['PathRules'].each do |i| urlredirectrule_tmp = UrlRedirectRule.new urlredirectrule_tmp.deserialize(i) @PathRules << urlredirectrule_tmp end end end |