Class: TencentCloud::Waf::V20180125::IpAccessControlParam

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

Overview

IP黑白名单参数结构体,主要用于IP黑白名单的导入。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(iplist = nil, validts = nil, actiontype = nil, note = nil) ⇒ IpAccessControlParam

Returns a new instance of IpAccessControlParam.



12788
12789
12790
12791
12792
12793
# File 'lib/v20180125/models.rb', line 12788

def initialize(iplist=nil, validts=nil, actiontype=nil, note=nil)
  @IpList = iplist
  @ValidTs = validts
  @ActionType = actiontype
  @Note = note
end

Instance Attribute Details

#ActionTypeObject

Parameters:

  • IpList:

    IP列表

  • ValidTs:

    valid_ts为有效日期,值为秒级时间戳((如1680570420代表2023-04-04 09:07:00))

  • ActionType:

    42为黑名单,40为白名单

  • Note:

    备注



12786
12787
12788
# File 'lib/v20180125/models.rb', line 12786

def ActionType
  @ActionType
end

#IpListObject

Parameters:

  • IpList:

    IP列表

  • ValidTs:

    valid_ts为有效日期,值为秒级时间戳((如1680570420代表2023-04-04 09:07:00))

  • ActionType:

    42为黑名单,40为白名单

  • Note:

    备注



12786
12787
12788
# File 'lib/v20180125/models.rb', line 12786

def IpList
  @IpList
end

#NoteObject

Parameters:

  • IpList:

    IP列表

  • ValidTs:

    valid_ts为有效日期,值为秒级时间戳((如1680570420代表2023-04-04 09:07:00))

  • ActionType:

    42为黑名单,40为白名单

  • Note:

    备注



12786
12787
12788
# File 'lib/v20180125/models.rb', line 12786

def Note
  @Note
end

#ValidTsObject

Parameters:

  • IpList:

    IP列表

  • ValidTs:

    valid_ts为有效日期,值为秒级时间戳((如1680570420代表2023-04-04 09:07:00))

  • ActionType:

    42为黑名单,40为白名单

  • Note:

    备注



12786
12787
12788
# File 'lib/v20180125/models.rb', line 12786

def ValidTs
  @ValidTs
end

Instance Method Details

#deserialize(params) ⇒ Object



12795
12796
12797
12798
12799
12800
# File 'lib/v20180125/models.rb', line 12795

def deserialize(params)
  @IpList = params['IpList']
  @ValidTs = params['ValidTs']
  @ActionType = params['ActionType']
  @Note = params['Note']
end