Class: TencentCloud::Waf::V20180125::CCRuleLists

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

Overview

CC规则总览

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, res = nil) ⇒ CCRuleLists

Returns a new instance of CCRuleLists.



1662
1663
1664
1665
# File 'lib/v20180125/models.rb', line 1662

def initialize(totalcount=nil, res=nil)
  @TotalCount = totalcount
  @Res = res
end

Instance Attribute Details

#ResObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TotalCount:

    总数

  • Res:

    规则



1660
1661
1662
# File 'lib/v20180125/models.rb', line 1660

def Res
  @Res
end

#TotalCountObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TotalCount:

    总数

  • Res:

    规则



1660
1661
1662
# File 'lib/v20180125/models.rb', line 1660

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
# File 'lib/v20180125/models.rb', line 1667

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Res'].nil?
    @Res = []
    params['Res'].each do |i|
      ccruleitems_tmp = CCRuleItems.new
      ccruleitems_tmp.deserialize(i)
      @Res << ccruleitems_tmp
    end
  end
end