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.
11129 11130 11131 11132 |
# File 'lib/v20180606/models.rb', line 11129 def initialize(switch=nil, rangerules=nil) @Switch = switch @RangeRules = rangerules end |
Instance Attribute Details
#RangeRules ⇒ Object
on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。
11127 11128 11129 |
# File 'lib/v20180606/models.rb', line 11127 def RangeRules @RangeRules end |
#Switch ⇒ Object
on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。
11127 11128 11129 |
# File 'lib/v20180606/models.rb', line 11127 def Switch @Switch end |
Instance Method Details
#deserialize(params) ⇒ Object
11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 |
# File 'lib/v20180606/models.rb', line 11134 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 |