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.
8474 8475 8476 8477 |
# File 'lib/v20180606/models.rb', line 8474 def initialize(switch=nil, rangerules=nil) @Switch = switch @RangeRules = rangerules end |
Instance Attribute Details
#RangeRules ⇒ Object
on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。
8472 8473 8474 |
# File 'lib/v20180606/models.rb', line 8472 def RangeRules @RangeRules end |
#Switch ⇒ Object
on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。
8472 8473 8474 |
# File 'lib/v20180606/models.rb', line 8472 def Switch @Switch end |
Instance Method Details
#deserialize(params) ⇒ Object
8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 |
# File 'lib/v20180606/models.rb', line 8479 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 |