Class: TencentCloud::Cdn::V20180606::ParamFilter

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, filterrules = nil) ⇒ ParamFilter

Returns a new instance of ParamFilter.



10584
10585
10586
10587
# File 'lib/v20180606/models.rb', line 10584

def initialize(switch=nil, filterrules=nil)
  @Switch = switch
  @FilterRules = filterrules
end

Instance Attribute Details

#FilterRulesObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    参数黑名单开关

  • FilterRules:

    参数黑名单规则



10582
10583
10584
# File 'lib/v20180606/models.rb', line 10582

def FilterRules
  @FilterRules
end

#SwitchObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    参数黑名单开关

  • FilterRules:

    参数黑名单规则



10582
10583
10584
# File 'lib/v20180606/models.rb', line 10582

def Switch
  @Switch
end

Instance Method Details

#deserialize(params) ⇒ Object



10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
# File 'lib/v20180606/models.rb', line 10589

def deserialize(params)
  @Switch = params['Switch']
  unless params['FilterRules'].nil?
    @FilterRules = []
    params['FilterRules'].each do |i|
      paramfilterrule_tmp = ParamFilterRule.new
      paramfilterrule_tmp.deserialize(i)
      @FilterRules << paramfilterrule_tmp
    end
  end
end