Class: TencentCloud::Waf::V20180125::BatchIpAccessControlData

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

Overview

多域名黑白名单describe返回

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of BatchIpAccessControlData.



1222
1223
1224
1225
# File 'lib/v20180125/models.rb', line 1222

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

Instance Attribute Details

#ResObject

Parameters:

  • TotalCount:

    总数

  • Res:

    黑白名单条目



1220
1221
1222
# File 'lib/v20180125/models.rb', line 1220

def Res
  @Res
end

#TotalCountObject

Parameters:

  • TotalCount:

    总数

  • Res:

    黑白名单条目



1220
1221
1222
# File 'lib/v20180125/models.rb', line 1220

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
# File 'lib/v20180125/models.rb', line 1227

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