Class: TencentCloud::Cdn::V20180606::RangeOriginPull

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(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

#RangeRulesObject

on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    分片回源配置开关,取值有:

  • RangeRules:

    分路径分片回源配置



11146
11147
11148
# File 'lib/v20180606/models.rb', line 11146

def RangeRules
  @RangeRules
end

#SwitchObject

on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    分片回源配置开关,取值有:

  • RangeRules:

    分路径分片回源配置



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