Class: TencentCloud::Antiddos::V20200309::DeleteDDoSBlackWhiteIpListRequest

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

Overview

DeleteDDoSBlackWhiteIpList请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, iplist = nil, type = nil) ⇒ DeleteDDoSBlackWhiteIpListRequest

Returns a new instance of DeleteDDoSBlackWhiteIpListRequest.



2837
2838
2839
2840
2841
# File 'lib/v20200309/models.rb', line 2837

def initialize(instanceid=nil, iplist=nil, type=nil)
  @InstanceId = instanceid
  @IpList = iplist
  @Type = type
end

Instance Attribute Details

#InstanceIdObject

Parameters:

  • InstanceId:

    资源实例ID

  • IpList:

    IP列表

  • Type:

    IP类型,取值[black(黑名单IP), white(白名单IP)]



2835
2836
2837
# File 'lib/v20200309/models.rb', line 2835

def InstanceId
  @InstanceId
end

#IpListObject

Parameters:

  • InstanceId:

    资源实例ID

  • IpList:

    IP列表

  • Type:

    IP类型,取值[black(黑名单IP), white(白名单IP)]



2835
2836
2837
# File 'lib/v20200309/models.rb', line 2835

def IpList
  @IpList
end

#TypeObject

Parameters:

  • InstanceId:

    资源实例ID

  • IpList:

    IP列表

  • Type:

    IP类型,取值[black(黑名单IP), white(白名单IP)]



2835
2836
2837
# File 'lib/v20200309/models.rb', line 2835

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
# File 'lib/v20200309/models.rb', line 2843

def deserialize(params)
  @InstanceId = params['InstanceId']
  unless params['IpList'].nil?
    @IpList = []
    params['IpList'].each do |i|
      ipsegment_tmp = IpSegment.new
      ipsegment_tmp.deserialize(i)
      @IpList << ipsegment_tmp
    end
  end
  @Type = params['Type']
end