Class: TencentCloud::Waf::V20180125::DescribeCustomRuleListResponse

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

Overview

DescribeCustomRuleList返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DescribeCustomRuleListResponse.



4010
4011
4012
4013
4014
# File 'lib/v20180125/models.rb', line 4010

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

Instance Attribute Details

#RequestIdObject

Parameters:

  • RuleList:

    规则详情

  • TotalCount:

    规则条数

  • RequestId:

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



4008
4009
4010
# File 'lib/v20180125/models.rb', line 4008

def RequestId
  @RequestId
end

#RuleListObject

Parameters:

  • RuleList:

    规则详情

  • TotalCount:

    规则条数

  • RequestId:

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



4008
4009
4010
# File 'lib/v20180125/models.rb', line 4008

def RuleList
  @RuleList
end

#TotalCountObject

Parameters:

  • RuleList:

    规则详情

  • TotalCount:

    规则条数

  • RequestId:

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



4008
4009
4010
# File 'lib/v20180125/models.rb', line 4008

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
# File 'lib/v20180125/models.rb', line 4016

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