Class: TencentCloud::Waf::V20180125::ModifyUserSignatureRuleRequest

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

Overview

ModifyUserSignatureRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain = nil, mainclassid = nil, status = nil, ruleid = nil) ⇒ ModifyUserSignatureRuleRequest

Returns a new instance of ModifyUserSignatureRuleRequest.



11423
11424
11425
11426
11427
11428
# File 'lib/v20180125/models.rb', line 11423

def initialize(domain=nil, mainclassid=nil, status=nil, ruleid=nil)
  @Domain = domain
  @MainClassID = mainclassid
  @Status = status
  @RuleID = ruleid
end

Instance Attribute Details

#DomainObject

Parameters:

  • Domain:

    域名

  • MainClassID:

    主类id

  • Status:

    主类开关0=关闭,1=开启,2=只告警

  • RuleID:

    下发修改的规则列表



11421
11422
11423
# File 'lib/v20180125/models.rb', line 11421

def Domain
  @Domain
end

#MainClassIDObject

Parameters:

  • Domain:

    域名

  • MainClassID:

    主类id

  • Status:

    主类开关0=关闭,1=开启,2=只告警

  • RuleID:

    下发修改的规则列表



11421
11422
11423
# File 'lib/v20180125/models.rb', line 11421

def MainClassID
  @MainClassID
end

#RuleIDObject

Parameters:

  • Domain:

    域名

  • MainClassID:

    主类id

  • Status:

    主类开关0=关闭,1=开启,2=只告警

  • RuleID:

    下发修改的规则列表



11421
11422
11423
# File 'lib/v20180125/models.rb', line 11421

def RuleID
  @RuleID
end

#StatusObject

Parameters:

  • Domain:

    域名

  • MainClassID:

    主类id

  • Status:

    主类开关0=关闭,1=开启,2=只告警

  • RuleID:

    下发修改的规则列表



11421
11422
11423
# File 'lib/v20180125/models.rb', line 11421

def Status
  @Status
end

Instance Method Details

#deserialize(params) ⇒ Object



11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
# File 'lib/v20180125/models.rb', line 11430

def deserialize(params)
  @Domain = params['Domain']
  @MainClassID = params['MainClassID']
  @Status = params['Status']
  unless params['RuleID'].nil?
    @RuleID = []
    params['RuleID'].each do |i|
      requserrule_tmp = ReqUserRule.new
      requserrule_tmp.deserialize(i)
      @RuleID << requserrule_tmp
    end
  end
end