Class: TencentCloud::Waf::V20180125::CCRuleData

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

Overview

数据封装

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of CCRuleData.



1469
1470
1471
1472
# File 'lib/v20180125/models.rb', line 1469

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

Instance Attribute Details

#ResObject

Parameters:

  • Res:

    cc规则

  • TotalCount:

    规则数目



1467
1468
1469
# File 'lib/v20180125/models.rb', line 1467

def Res
  @Res
end

#TotalCountObject

Parameters:

  • Res:

    cc规则

  • TotalCount:

    规则数目



1467
1468
1469
# File 'lib/v20180125/models.rb', line 1467

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
# File 'lib/v20180125/models.rb', line 1474

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