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
-
#Res ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#TotalCount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
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.
8170 8171 8172 8173 |
# File 'lib/v20180125/models.rb', line 8170 def initialize(res=nil, totalcount=nil) @Res = res @TotalCount = totalcount end |
Instance Attribute Details
#Res ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
8168 8169 8170 |
# File 'lib/v20180125/models.rb', line 8168 def Res @Res end |
#TotalCount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
8168 8169 8170 |
# File 'lib/v20180125/models.rb', line 8168 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 |
# File 'lib/v20180125/models.rb', line 8175 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 |