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.



4581
4582
4583
4584
4585
# File 'lib/v20180125/models.rb', line 4581

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。



4579
4580
4581
# File 'lib/v20180125/models.rb', line 4579

def RequestId
  @RequestId
end

#RuleListObject

Parameters:

  • RuleList:

    规则详情

  • TotalCount:

    规则条数

  • RequestId:

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



4579
4580
4581
# File 'lib/v20180125/models.rb', line 4579

def RuleList
  @RuleList
end

#TotalCountObject

Parameters:

  • RuleList:

    规则详情

  • TotalCount:

    规则条数

  • RequestId:

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



4579
4580
4581
# File 'lib/v20180125/models.rb', line 4579

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
# File 'lib/v20180125/models.rb', line 4587

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