Class: TencentCloud::Waf::V20180125::IpAccessControlData
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Waf::V20180125::IpAccessControlData
- Defined in:
- lib/v20180125/models.rb
Overview
数据封装
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(res = nil, totalcount = nil) ⇒ IpAccessControlData
constructor
A new instance of IpAccessControlData.
Constructor Details
#initialize(res = nil, totalcount = nil) ⇒ IpAccessControlData
Returns a new instance of IpAccessControlData.
12686 12687 12688 12689 |
# File 'lib/v20180125/models.rb', line 12686 def initialize(res=nil, totalcount=nil) @Res = res @TotalCount = totalcount end |
Instance Attribute Details
#Res ⇒ Object
12684 12685 12686 |
# File 'lib/v20180125/models.rb', line 12684 def Res @Res end |
#TotalCount ⇒ Object
12684 12685 12686 |
# File 'lib/v20180125/models.rb', line 12684 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 |
# File 'lib/v20180125/models.rb', line 12691 def deserialize(params) unless params['Res'].nil? @Res = [] params['Res'].each do |i| ipaccesscontrolitem_tmp = IpAccessControlItem.new ipaccesscontrolitem_tmp.deserialize(i) @Res << ipaccesscontrolitem_tmp end end @TotalCount = params['TotalCount'] end |