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.



1451
1452
1453
1454
# File 'lib/v20180125/models.rb', line 1451

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

Instance Attribute Details

#ResObject

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

Parameters:

  • TotalCount:

    总数

  • Res:

    规则



1449
1450
1451
# File 'lib/v20180125/models.rb', line 1449

def Res
  @Res
end

#TotalCountObject

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

Parameters:

  • TotalCount:

    总数

  • Res:

    规则



1449
1450
1451
# File 'lib/v20180125/models.rb', line 1449

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
# File 'lib/v20180125/models.rb', line 1456

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