Class: TencentCloud::Antiddos::V20200309::DescribeDDoSBlackWhiteIpListResponse

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

Overview

DescribeDDoSBlackWhiteIpList返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(blackiplist = nil, whiteiplist = nil, requestid = nil) ⇒ DescribeDDoSBlackWhiteIpListResponse



4147
4148
4149
4150
4151
# File 'lib/v20200309/models.rb', line 4147

def initialize(blackiplist=nil, whiteiplist=nil, requestid=nil)
  @BlackIpList = blackiplist
  @WhiteIpList = whiteiplist
  @RequestId = requestid
end

Instance Attribute Details

#BlackIpListObject



4145
4146
4147
# File 'lib/v20200309/models.rb', line 4145

def BlackIpList
  @BlackIpList
end

#RequestIdObject



4145
4146
4147
# File 'lib/v20200309/models.rb', line 4145

def RequestId
  @RequestId
end

#WhiteIpListObject



4145
4146
4147
# File 'lib/v20200309/models.rb', line 4145

def WhiteIpList
  @WhiteIpList
end

Instance Method Details

#deserialize(params) ⇒ Object



4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
# File 'lib/v20200309/models.rb', line 4153

def deserialize(params)
  unless params['BlackIpList'].nil?
    @BlackIpList = []
    params['BlackIpList'].each do |i|
      ipsegment_tmp = IpSegment.new
      ipsegment_tmp.deserialize(i)
      @BlackIpList << ipsegment_tmp
    end
  end
  unless params['WhiteIpList'].nil?
    @WhiteIpList = []
    params['WhiteIpList'].each do |i|
      ipsegment_tmp = IpSegment.new
      ipsegment_tmp.deserialize(i)
      @WhiteIpList << ipsegment_tmp
    end
  end
  @RequestId = params['RequestId']
end