Class: TencentCloud::Waf::V20180125::DeleteCustomRuleRequest

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

Overview

DeleteCustomRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain = nil, ruleid = nil, edition = nil, domainruleidlist = nil) ⇒ DeleteCustomRuleRequest

Returns a new instance of DeleteCustomRuleRequest.



2727
2728
2729
2730
2731
2732
# File 'lib/v20180125/models.rb', line 2727

def initialize(domain=nil, ruleid=nil, edition=nil, domainruleidlist=nil)
  @Domain = domain
  @RuleId = ruleid
  @Edition = edition
  @DomainRuleIdList = domainruleidlist
end

Instance Attribute Details

#DomainObject

Parameters:

  • Domain:

    删除的域名

  • RuleId:

    删除的规则ID

  • Edition:

    WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。

  • DomainRuleIdList:

    批量删除的规则列表



2725
2726
2727
# File 'lib/v20180125/models.rb', line 2725

def Domain
  @Domain
end

#DomainRuleIdListObject

Parameters:

  • Domain:

    删除的域名

  • RuleId:

    删除的规则ID

  • Edition:

    WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。

  • DomainRuleIdList:

    批量删除的规则列表



2725
2726
2727
# File 'lib/v20180125/models.rb', line 2725

def DomainRuleIdList
  @DomainRuleIdList
end

#EditionObject

Parameters:

  • Domain:

    删除的域名

  • RuleId:

    删除的规则ID

  • Edition:

    WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。

  • DomainRuleIdList:

    批量删除的规则列表



2725
2726
2727
# File 'lib/v20180125/models.rb', line 2725

def Edition
  @Edition
end

#RuleIdObject

Parameters:

  • Domain:

    删除的域名

  • RuleId:

    删除的规则ID

  • Edition:

    WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。

  • DomainRuleIdList:

    批量删除的规则列表



2725
2726
2727
# File 'lib/v20180125/models.rb', line 2725

def RuleId
  @RuleId
end

Instance Method Details

#deserialize(params) ⇒ Object



2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
# File 'lib/v20180125/models.rb', line 2734

def deserialize(params)
  @Domain = params['Domain']
  @RuleId = params['RuleId']
  @Edition = params['Edition']
  unless params['DomainRuleIdList'].nil?
    @DomainRuleIdList = []
    params['DomainRuleIdList'].each do |i|
      domainruleid_tmp = DomainRuleId.new
      domainruleid_tmp.deserialize(i)
      @DomainRuleIdList << domainruleid_tmp
    end
  end
end