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.



13953
13954
13955
13956
13957
13958
13959
# File 'lib/v20180125/models.rb', line 13953

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:

    策略数组



13951
13952
13953
# File 'lib/v20180125/models.rb', line 13951

def ActionType
  @ActionType
end

#DomainObject

Parameters:

  • RuleId:

    规则ID

  • Name:

    规则名称

  • Domain:

    域名

  • ActionType:

    Action 值

  • Strategies:

    策略数组



13951
13952
13953
# File 'lib/v20180125/models.rb', line 13951

def Domain
  @Domain
end

#NameObject

Parameters:

  • RuleId:

    规则ID

  • Name:

    规则名称

  • Domain:

    域名

  • ActionType:

    Action 值

  • Strategies:

    策略数组



13951
13952
13953
# File 'lib/v20180125/models.rb', line 13951

def Name
  @Name
end

#RuleIdObject

Parameters:

  • RuleId:

    规则ID

  • Name:

    规则名称

  • Domain:

    域名

  • ActionType:

    Action 值

  • Strategies:

    策略数组



13951
13952
13953
# File 'lib/v20180125/models.rb', line 13951

def RuleId
  @RuleId
end

#StrategiesObject

Parameters:

  • RuleId:

    规则ID

  • Name:

    规则名称

  • Domain:

    域名

  • ActionType:

    Action 值

  • Strategies:

    策略数组



13951
13952
13953
# File 'lib/v20180125/models.rb', line 13951

def Strategies
  @Strategies
end

Instance Method Details

#deserialize(params) ⇒ Object



13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
# File 'lib/v20180125/models.rb', line 13961

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