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.



8985
8986
8987
8988
8989
8990
# File 'lib/v20180125/models.rb', line 8985

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:

    备注



8983
8984
8985
# File 'lib/v20180125/models.rb', line 8983

def ActionType
  @ActionType
end

#IpListObject

Parameters:

  • IpList:

    IP列表

  • ValidTs:

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

  • ActionType:

    42为黑名单,40为白名单

  • Note:

    备注



8983
8984
8985
# File 'lib/v20180125/models.rb', line 8983

def IpList
  @IpList
end

#NoteObject

Parameters:

  • IpList:

    IP列表

  • ValidTs:

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

  • ActionType:

    42为黑名单,40为白名单

  • Note:

    备注



8983
8984
8985
# File 'lib/v20180125/models.rb', line 8983

def Note
  @Note
end

#ValidTsObject

Parameters:

  • IpList:

    IP列表

  • ValidTs:

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

  • ActionType:

    42为黑名单,40为白名单

  • Note:

    备注



8983
8984
8985
# File 'lib/v20180125/models.rb', line 8983

def ValidTs
  @ValidTs
end

Instance Method Details

#deserialize(params) ⇒ Object



8992
8993
8994
8995
8996
8997
# File 'lib/v20180125/models.rb', line 8992

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