Class: TencentCloud::Waf::V20180125::IpAccessControlData

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) ⇒ 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

#ResObject

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

Parameters:

  • Res:

    ip黑白名单

  • TotalCount:

    计数



8168
8169
8170
# File 'lib/v20180125/models.rb', line 8168

def Res
  @Res
end

#TotalCountObject

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

Parameters:

  • Res:

    ip黑白名单

  • TotalCount:

    计数



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