Class: TencentCloud::Waf::V20180125::DescribeAntiInfoLeakRulesResponse

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

Overview

DescribeAntiInfoLeakRules返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, rulelist = nil, requestid = nil) ⇒ DescribeAntiInfoLeakRulesResponse

Returns a new instance of DescribeAntiInfoLeakRulesResponse.



3543
3544
3545
3546
3547
# File 'lib/v20180125/models.rb', line 3543

def initialize(totalcount=nil, rulelist=nil, requestid=nil)
  @TotalCount = totalcount
  @RuleList = rulelist
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • TotalCount:

    记录条数

  • RuleList:

    规则列表

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



3541
3542
3543
# File 'lib/v20180125/models.rb', line 3541

def RequestId
  @RequestId
end

#RuleListObject

Parameters:

  • TotalCount:

    记录条数

  • RuleList:

    规则列表

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



3541
3542
3543
# File 'lib/v20180125/models.rb', line 3541

def RuleList
  @RuleList
end

#TotalCountObject

Parameters:

  • TotalCount:

    记录条数

  • RuleList:

    规则列表

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



3541
3542
3543
# File 'lib/v20180125/models.rb', line 3541

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
# File 'lib/v20180125/models.rb', line 3549

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['RuleList'].nil?
    @RuleList = []
    params['RuleList'].each do |i|
      describeantiinfoleakrulesruleitem_tmp = DescribeAntiInfoLeakRulesRuleItem.new
      describeantiinfoleakrulesruleitem_tmp.deserialize(i)
      @RuleList << describeantiinfoleakrulesruleitem_tmp
    end
  end
  @RequestId = params['RequestId']
end