Class: TencentCloud::Cfw::V20190904::BanAndAllowRule

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

Overview

封禁列表和放通列表结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(comment = nil, customrule = nil, directionlist = nil, endtime = nil, fwtype = nil, ioc = nil) ⇒ BanAndAllowRule

Returns a new instance of BanAndAllowRule.



434
435
436
437
438
439
440
441
# File 'lib/v20190904/models.rb', line 434

def initialize(comment=nil, customrule=nil, directionlist=nil, endtime=nil, fwtype=nil, ioc=nil)
  @Comment = comment
  @CustomRule = customrule
  @DirectionList = directionlist
  @EndTime = endtime
  @FwType = fwtype
  @Ioc = ioc
end

Instance Attribute Details

#CommentObject

Parameters:

  • Comment:

    规则评论

  • CustomRule:

    自定义白名单规则

  • DirectionList:

    0互联网出站 1互联网入站 5内网访问源 6内网访问目的

  • EndTime:

    规则截止时间

  • FwType:

    放通的引擎: 1针对互联网边界 2针对nat防火墙 4针对vpc防火墙

  • Ioc:

    封禁和放通对象



432
433
434
# File 'lib/v20190904/models.rb', line 432

def Comment
  @Comment
end

#CustomRuleObject

Parameters:

  • Comment:

    规则评论

  • CustomRule:

    自定义白名单规则

  • DirectionList:

    0互联网出站 1互联网入站 5内网访问源 6内网访问目的

  • EndTime:

    规则截止时间

  • FwType:

    放通的引擎: 1针对互联网边界 2针对nat防火墙 4针对vpc防火墙

  • Ioc:

    封禁和放通对象



432
433
434
# File 'lib/v20190904/models.rb', line 432

def CustomRule
  @CustomRule
end

#DirectionListObject

Parameters:

  • Comment:

    规则评论

  • CustomRule:

    自定义白名单规则

  • DirectionList:

    0互联网出站 1互联网入站 5内网访问源 6内网访问目的

  • EndTime:

    规则截止时间

  • FwType:

    放通的引擎: 1针对互联网边界 2针对nat防火墙 4针对vpc防火墙

  • Ioc:

    封禁和放通对象



432
433
434
# File 'lib/v20190904/models.rb', line 432

def DirectionList
  @DirectionList
end

#EndTimeObject

Parameters:

  • Comment:

    规则评论

  • CustomRule:

    自定义白名单规则

  • DirectionList:

    0互联网出站 1互联网入站 5内网访问源 6内网访问目的

  • EndTime:

    规则截止时间

  • FwType:

    放通的引擎: 1针对互联网边界 2针对nat防火墙 4针对vpc防火墙

  • Ioc:

    封禁和放通对象



432
433
434
# File 'lib/v20190904/models.rb', line 432

def EndTime
  @EndTime
end

#FwTypeObject

Parameters:

  • Comment:

    规则评论

  • CustomRule:

    自定义白名单规则

  • DirectionList:

    0互联网出站 1互联网入站 5内网访问源 6内网访问目的

  • EndTime:

    规则截止时间

  • FwType:

    放通的引擎: 1针对互联网边界 2针对nat防火墙 4针对vpc防火墙

  • Ioc:

    封禁和放通对象



432
433
434
# File 'lib/v20190904/models.rb', line 432

def FwType
  @FwType
end

#IocObject

Parameters:

  • Comment:

    规则评论

  • CustomRule:

    自定义白名单规则

  • DirectionList:

    0互联网出站 1互联网入站 5内网访问源 6内网访问目的

  • EndTime:

    规则截止时间

  • FwType:

    放通的引擎: 1针对互联网边界 2针对nat防火墙 4针对vpc防火墙

  • Ioc:

    封禁和放通对象



432
433
434
# File 'lib/v20190904/models.rb', line 432

def Ioc
  @Ioc
end

Instance Method Details

#deserialize(params) ⇒ Object



443
444
445
446
447
448
449
450
451
452
453
# File 'lib/v20190904/models.rb', line 443

def deserialize(params)
  @Comment = params['Comment']
  unless params['CustomRule'].nil?
    @CustomRule = CustomWhiteRule.new
    @CustomRule.deserialize(params['CustomRule'])
  end
  @DirectionList = params['DirectionList']
  @EndTime = params['EndTime']
  @FwType = params['FwType']
  @Ioc = params['Ioc']
end