Class: TencentCloud::Waf::V20180125::ModifyAntiInfoLeakRulesRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180125/models.rb

Overview

ModifyAntiInfoLeakRules请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ruleid = nil, name = nil, domain = nil, actiontype = nil, strategies = nil) ⇒ ModifyAntiInfoLeakRulesRequest

Returns a new instance of ModifyAntiInfoLeakRulesRequest.



8807
8808
8809
8810
8811
8812
8813
# File 'lib/v20180125/models.rb', line 8807

def initialize(ruleid=nil, name=nil, domain=nil, actiontype=nil, strategies=nil)
  @RuleId = ruleid
  @Name = name
  @Domain = domain
  @ActionType = actiontype
  @Strategies = strategies
end

Instance Attribute Details

#ActionTypeObject

Parameters:

  • RuleId:

    规则ID

  • Name:

    规则名称

  • Domain:

    域名

  • ActionType:

    Action 值

  • Strategies:

    策略数组



8805
8806
8807
# File 'lib/v20180125/models.rb', line 8805

def ActionType
  @ActionType
end

#DomainObject

Parameters:

  • RuleId:

    规则ID

  • Name:

    规则名称

  • Domain:

    域名

  • ActionType:

    Action 值

  • Strategies:

    策略数组



8805
8806
8807
# File 'lib/v20180125/models.rb', line 8805

def Domain
  @Domain
end

#NameObject

Parameters:

  • RuleId:

    规则ID

  • Name:

    规则名称

  • Domain:

    域名

  • ActionType:

    Action 值

  • Strategies:

    策略数组



8805
8806
8807
# File 'lib/v20180125/models.rb', line 8805

def Name
  @Name
end

#RuleIdObject

Parameters:

  • RuleId:

    规则ID

  • Name:

    规则名称

  • Domain:

    域名

  • ActionType:

    Action 值

  • Strategies:

    策略数组



8805
8806
8807
# File 'lib/v20180125/models.rb', line 8805

def RuleId
  @RuleId
end

#StrategiesObject

Parameters:

  • RuleId:

    规则ID

  • Name:

    规则名称

  • Domain:

    域名

  • ActionType:

    Action 值

  • Strategies:

    策略数组



8805
8806
8807
# File 'lib/v20180125/models.rb', line 8805

def Strategies
  @Strategies
end

Instance Method Details

#deserialize(params) ⇒ Object



8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
# File 'lib/v20180125/models.rb', line 8815

def deserialize(params)
  @RuleId = params['RuleId']
  @Name = params['Name']
  @Domain = params['Domain']
  @ActionType = params['ActionType']
  unless params['Strategies'].nil?
    @Strategies = []
    params['Strategies'].each do |i|
      strategyforantiinfoleak_tmp = StrategyForAntiInfoLeak.new
      strategyforantiinfoleak_tmp.deserialize(i)
      @Strategies << strategyforantiinfoleak_tmp
    end
  end
end