Class: TencentCloud::Cdn::V20180606::RangeOriginPull
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdn::V20180606::RangeOriginPull
- Defined in:
- lib/v20180606/models.rb
Overview
分片回源配置,默认为开启状态
Instance Attribute Summary collapse
-
#RangeRules ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。.
-
#Switch ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(switch = nil, rangerules = nil) ⇒ RangeOriginPull
constructor
A new instance of RangeOriginPull.
Constructor Details
#initialize(switch = nil, rangerules = nil) ⇒ RangeOriginPull
Returns a new instance of RangeOriginPull.
11148 11149 11150 11151 |
# File 'lib/v20180606/models.rb', line 11148 def initialize(switch=nil, rangerules=nil) @Switch = switch @RangeRules = rangerules end |
Instance Attribute Details
#RangeRules ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。
11146 11147 11148 |
# File 'lib/v20180606/models.rb', line 11146 def RangeRules @RangeRules end |
#Switch ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。
11146 11147 11148 |
# File 'lib/v20180606/models.rb', line 11146 def Switch @Switch end |
Instance Method Details
#deserialize(params) ⇒ Object
11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 |
# File 'lib/v20180606/models.rb', line 11153 def deserialize(params) @Switch = params['Switch'] unless params['RangeRules'].nil? @RangeRules = [] params['RangeRules'].each do |i| rangeoriginpullrule_tmp = RangeOriginPullRule.new rangeoriginpullrule_tmp.deserialize(i) @RangeRules << rangeoriginpullrule_tmp end end end |