Class: TencentCloud::Antiddos::V20200309::CreateCcBlackWhiteIpListRequest

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

Overview

CreateCcBlackWhiteIpList请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, iplist = nil, type = nil, ip = nil, domain = nil, protocol = nil) ⇒ CreateCcBlackWhiteIpListRequest

Returns a new instance of CreateCcBlackWhiteIpListRequest.



1633
1634
1635
1636
1637
1638
1639
1640
# File 'lib/v20200309/models.rb', line 1633

def initialize(instanceid=nil, iplist=nil, type=nil, ip=nil, domain=nil, protocol=nil)
  @InstanceId = instanceid
  @IpList = iplist
  @Type = type
  @Ip = ip
  @Domain = domain
  @Protocol = protocol
end

Instance Attribute Details

#DomainObject

Parameters:

  • InstanceId:

    资源实例ID

  • IpList:

    IP列表

  • Type:

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

  • Ip:

    Ip地址

  • Domain:

    域名

  • Protocol:

    协议



1631
1632
1633
# File 'lib/v20200309/models.rb', line 1631

def Domain
  @Domain
end

#InstanceIdObject

Parameters:

  • InstanceId:

    资源实例ID

  • IpList:

    IP列表

  • Type:

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

  • Ip:

    Ip地址

  • Domain:

    域名

  • Protocol:

    协议



1631
1632
1633
# File 'lib/v20200309/models.rb', line 1631

def InstanceId
  @InstanceId
end

#IpObject

Parameters:

  • InstanceId:

    资源实例ID

  • IpList:

    IP列表

  • Type:

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

  • Ip:

    Ip地址

  • Domain:

    域名

  • Protocol:

    协议



1631
1632
1633
# File 'lib/v20200309/models.rb', line 1631

def Ip
  @Ip
end

#IpListObject

Parameters:

  • InstanceId:

    资源实例ID

  • IpList:

    IP列表

  • Type:

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

  • Ip:

    Ip地址

  • Domain:

    域名

  • Protocol:

    协议



1631
1632
1633
# File 'lib/v20200309/models.rb', line 1631

def IpList
  @IpList
end

#ProtocolObject

Parameters:

  • InstanceId:

    资源实例ID

  • IpList:

    IP列表

  • Type:

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

  • Ip:

    Ip地址

  • Domain:

    域名

  • Protocol:

    协议



1631
1632
1633
# File 'lib/v20200309/models.rb', line 1631

def Protocol
  @Protocol
end

#TypeObject

Parameters:

  • InstanceId:

    资源实例ID

  • IpList:

    IP列表

  • Type:

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

  • Ip:

    Ip地址

  • Domain:

    域名

  • Protocol:

    协议



1631
1632
1633
# File 'lib/v20200309/models.rb', line 1631

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
# File 'lib/v20200309/models.rb', line 1642

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']
  @Ip = params['Ip']
  @Domain = params['Domain']
  @Protocol = params['Protocol']
end