Class: TencentCloud::Cfw::V20190904::CreateRuleItem

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(sourcecontent = nil, sourcetype = nil, targetcontent = nil, targettype = nil, protocol = nil, ruleaction = nil, port = nil, direction = nil, orderindex = nil, uuid = nil, enable = nil, description = nil, scope = nil, rulesource = nil, logid = nil, paramtemplateid = nil) ⇒ CreateRuleItem

Returns a new instance of CreateRuleItem.



1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
# File 'lib/v20190904/models.rb', line 1583

def initialize(sourcecontent=nil, sourcetype=nil, targetcontent=nil, targettype=nil, protocol=nil, ruleaction=nil, port=nil, direction=nil, orderindex=nil, uuid=nil, enable=nil, description=nil, scope=nil, rulesource=nil, logid=nil, paramtemplateid=nil)
  @SourceContent = sourcecontent
  @SourceType = sourcetype
  @TargetContent = targetcontent
  @TargetType = targettype
  @Protocol = protocol
  @RuleAction = ruleaction
  @Port = port
  @Direction = direction
  @OrderIndex = orderindex
  @Uuid = uuid
  @Enable = enable
  @Description = description
  @Scope = scope
  @RuleSource = rulesource
  @LogId = logid
  @ParamTemplateId = paramtemplateid
end

Instance Attribute Details

#DescriptionObject

3.domain 请选择七层协议 如HTTP/HTTPS

Parameters:

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察

  • Port:

    访问控制策略的端口。取值: -1/-1:全部端口 80:80端口

  • Direction:

    规则方向:1,入站;0,出站

  • OrderIndex:

    规则序号

  • Uuid:

    规则对应的唯一id,创建规则时无需填写

  • Enable:

    规则状态,true表示启用,false表示禁用

  • Description:

    描述

  • Scope:

    all

  • RuleSource:

    0,正常规则添加;1,入侵检测添加

  • LogId:

    告警Id

  • ParamTemplateId:

    端都协议组ID



1581
1582
1583
# File 'lib/v20190904/models.rb', line 1581

def Description
  @Description
end

#DirectionObject

3.domain 请选择七层协议 如HTTP/HTTPS

Parameters:

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察

  • Port:

    访问控制策略的端口。取值: -1/-1:全部端口 80:80端口

  • Direction:

    规则方向:1,入站;0,出站

  • OrderIndex:

    规则序号

  • Uuid:

    规则对应的唯一id,创建规则时无需填写

  • Enable:

    规则状态,true表示启用,false表示禁用

  • Description:

    描述

  • Scope:

    all

  • RuleSource:

    0,正常规则添加;1,入侵检测添加

  • LogId:

    告警Id

  • ParamTemplateId:

    端都协议组ID



1581
1582
1583
# File 'lib/v20190904/models.rb', line 1581

def Direction
  @Direction
end

#EnableObject

3.domain 请选择七层协议 如HTTP/HTTPS

Parameters:

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察

  • Port:

    访问控制策略的端口。取值: -1/-1:全部端口 80:80端口

  • Direction:

    规则方向:1,入站;0,出站

  • OrderIndex:

    规则序号

  • Uuid:

    规则对应的唯一id,创建规则时无需填写

  • Enable:

    规则状态,true表示启用,false表示禁用

  • Description:

    描述

  • Scope:

    all

  • RuleSource:

    0,正常规则添加;1,入侵检测添加

  • LogId:

    告警Id

  • ParamTemplateId:

    端都协议组ID



1581
1582
1583
# File 'lib/v20190904/models.rb', line 1581

def Enable
  @Enable
end

#LogIdObject

3.domain 请选择七层协议 如HTTP/HTTPS

Parameters:

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察

  • Port:

    访问控制策略的端口。取值: -1/-1:全部端口 80:80端口

  • Direction:

    规则方向:1,入站;0,出站

  • OrderIndex:

    规则序号

  • Uuid:

    规则对应的唯一id,创建规则时无需填写

  • Enable:

    规则状态,true表示启用,false表示禁用

  • Description:

    描述

  • Scope:

    all

  • RuleSource:

    0,正常规则添加;1,入侵检测添加

  • LogId:

    告警Id

  • ParamTemplateId:

    端都协议组ID



1581
1582
1583
# File 'lib/v20190904/models.rb', line 1581

def LogId
  @LogId
end

#OrderIndexObject

3.domain 请选择七层协议 如HTTP/HTTPS

Parameters:

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察

  • Port:

    访问控制策略的端口。取值: -1/-1:全部端口 80:80端口

  • Direction:

    规则方向:1,入站;0,出站

  • OrderIndex:

    规则序号

  • Uuid:

    规则对应的唯一id,创建规则时无需填写

  • Enable:

    规则状态,true表示启用,false表示禁用

  • Description:

    描述

  • Scope:

    all

  • RuleSource:

    0,正常规则添加;1,入侵检测添加

  • LogId:

    告警Id

  • ParamTemplateId:

    端都协议组ID



1581
1582
1583
# File 'lib/v20190904/models.rb', line 1581

def OrderIndex
  @OrderIndex
end

#ParamTemplateIdObject

3.domain 请选择七层协议 如HTTP/HTTPS

Parameters:

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察

  • Port:

    访问控制策略的端口。取值: -1/-1:全部端口 80:80端口

  • Direction:

    规则方向:1,入站;0,出站

  • OrderIndex:

    规则序号

  • Uuid:

    规则对应的唯一id,创建规则时无需填写

  • Enable:

    规则状态,true表示启用,false表示禁用

  • Description:

    描述

  • Scope:

    all

  • RuleSource:

    0,正常规则添加;1,入侵检测添加

  • LogId:

    告警Id

  • ParamTemplateId:

    端都协议组ID



1581
1582
1583
# File 'lib/v20190904/models.rb', line 1581

def ParamTemplateId
  @ParamTemplateId
end

#PortObject

3.domain 请选择七层协议 如HTTP/HTTPS

Parameters:

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察

  • Port:

    访问控制策略的端口。取值: -1/-1:全部端口 80:80端口

  • Direction:

    规则方向:1,入站;0,出站

  • OrderIndex:

    规则序号

  • Uuid:

    规则对应的唯一id,创建规则时无需填写

  • Enable:

    规则状态,true表示启用,false表示禁用

  • Description:

    描述

  • Scope:

    all

  • RuleSource:

    0,正常规则添加;1,入侵检测添加

  • LogId:

    告警Id

  • ParamTemplateId:

    端都协议组ID



1581
1582
1583
# File 'lib/v20190904/models.rb', line 1581

def Port
  @Port
end

#ProtocolObject

3.domain 请选择七层协议 如HTTP/HTTPS

Parameters:

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察

  • Port:

    访问控制策略的端口。取值: -1/-1:全部端口 80:80端口

  • Direction:

    规则方向:1,入站;0,出站

  • OrderIndex:

    规则序号

  • Uuid:

    规则对应的唯一id,创建规则时无需填写

  • Enable:

    规则状态,true表示启用,false表示禁用

  • Description:

    描述

  • Scope:

    all

  • RuleSource:

    0,正常规则添加;1,入侵检测添加

  • LogId:

    告警Id

  • ParamTemplateId:

    端都协议组ID



1581
1582
1583
# File 'lib/v20190904/models.rb', line 1581

def Protocol
  @Protocol
end

#RuleActionObject

3.domain 请选择七层协议 如HTTP/HTTPS

Parameters:

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察

  • Port:

    访问控制策略的端口。取值: -1/-1:全部端口 80:80端口

  • Direction:

    规则方向:1,入站;0,出站

  • OrderIndex:

    规则序号

  • Uuid:

    规则对应的唯一id,创建规则时无需填写

  • Enable:

    规则状态,true表示启用,false表示禁用

  • Description:

    描述

  • Scope:

    all

  • RuleSource:

    0,正常规则添加;1,入侵检测添加

  • LogId:

    告警Id

  • ParamTemplateId:

    端都协议组ID



1581
1582
1583
# File 'lib/v20190904/models.rb', line 1581

def RuleAction
  @RuleAction
end

#RuleSourceObject

3.domain 请选择七层协议 如HTTP/HTTPS

Parameters:

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察

  • Port:

    访问控制策略的端口。取值: -1/-1:全部端口 80:80端口

  • Direction:

    规则方向:1,入站;0,出站

  • OrderIndex:

    规则序号

  • Uuid:

    规则对应的唯一id,创建规则时无需填写

  • Enable:

    规则状态,true表示启用,false表示禁用

  • Description:

    描述

  • Scope:

    all

  • RuleSource:

    0,正常规则添加;1,入侵检测添加

  • LogId:

    告警Id

  • ParamTemplateId:

    端都协议组ID



1581
1582
1583
# File 'lib/v20190904/models.rb', line 1581

def RuleSource
  @RuleSource
end

#ScopeObject

3.domain 请选择七层协议 如HTTP/HTTPS

Parameters:

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察

  • Port:

    访问控制策略的端口。取值: -1/-1:全部端口 80:80端口

  • Direction:

    规则方向:1,入站;0,出站

  • OrderIndex:

    规则序号

  • Uuid:

    规则对应的唯一id,创建规则时无需填写

  • Enable:

    规则状态,true表示启用,false表示禁用

  • Description:

    描述

  • Scope:

    all

  • RuleSource:

    0,正常规则添加;1,入侵检测添加

  • LogId:

    告警Id

  • ParamTemplateId:

    端都协议组ID



1581
1582
1583
# File 'lib/v20190904/models.rb', line 1581

def Scope
  @Scope
end

#SourceContentObject

3.domain 请选择七层协议 如HTTP/HTTPS

Parameters:

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察

  • Port:

    访问控制策略的端口。取值: -1/-1:全部端口 80:80端口

  • Direction:

    规则方向:1,入站;0,出站

  • OrderIndex:

    规则序号

  • Uuid:

    规则对应的唯一id,创建规则时无需填写

  • Enable:

    规则状态,true表示启用,false表示禁用

  • Description:

    描述

  • Scope:

    all

  • RuleSource:

    0,正常规则添加;1,入侵检测添加

  • LogId:

    告警Id

  • ParamTemplateId:

    端都协议组ID



1581
1582
1583
# File 'lib/v20190904/models.rb', line 1581

def SourceContent
  @SourceContent
end

#SourceTypeObject

3.domain 请选择七层协议 如HTTP/HTTPS

Parameters:

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察

  • Port:

    访问控制策略的端口。取值: -1/-1:全部端口 80:80端口

  • Direction:

    规则方向:1,入站;0,出站

  • OrderIndex:

    规则序号

  • Uuid:

    规则对应的唯一id,创建规则时无需填写

  • Enable:

    规则状态,true表示启用,false表示禁用

  • Description:

    描述

  • Scope:

    all

  • RuleSource:

    0,正常规则添加;1,入侵检测添加

  • LogId:

    告警Id

  • ParamTemplateId:

    端都协议组ID



1581
1582
1583
# File 'lib/v20190904/models.rb', line 1581

def SourceType
  @SourceType
end

#TargetContentObject

3.domain 请选择七层协议 如HTTP/HTTPS

Parameters:

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察

  • Port:

    访问控制策略的端口。取值: -1/-1:全部端口 80:80端口

  • Direction:

    规则方向:1,入站;0,出站

  • OrderIndex:

    规则序号

  • Uuid:

    规则对应的唯一id,创建规则时无需填写

  • Enable:

    规则状态,true表示启用,false表示禁用

  • Description:

    描述

  • Scope:

    all

  • RuleSource:

    0,正常规则添加;1,入侵检测添加

  • LogId:

    告警Id

  • ParamTemplateId:

    端都协议组ID



1581
1582
1583
# File 'lib/v20190904/models.rb', line 1581

def TargetContent
  @TargetContent
end

#TargetTypeObject

3.domain 请选择七层协议 如HTTP/HTTPS

Parameters:

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察

  • Port:

    访问控制策略的端口。取值: -1/-1:全部端口 80:80端口

  • Direction:

    规则方向:1,入站;0,出站

  • OrderIndex:

    规则序号

  • Uuid:

    规则对应的唯一id,创建规则时无需填写

  • Enable:

    规则状态,true表示启用,false表示禁用

  • Description:

    描述

  • Scope:

    all

  • RuleSource:

    0,正常规则添加;1,入侵检测添加

  • LogId:

    告警Id

  • ParamTemplateId:

    端都协议组ID



1581
1582
1583
# File 'lib/v20190904/models.rb', line 1581

def TargetType
  @TargetType
end

#UuidObject

3.domain 请选择七层协议 如HTTP/HTTPS

Parameters:

  • RuleAction:

    访问控制策略中设置的流量通过云防火墙的方式。取值: accept:放行 drop:拒绝 log:观察

  • Port:

    访问控制策略的端口。取值: -1/-1:全部端口 80:80端口

  • Direction:

    规则方向:1,入站;0,出站

  • OrderIndex:

    规则序号

  • Uuid:

    规则对应的唯一id,创建规则时无需填写

  • Enable:

    规则状态,true表示启用,false表示禁用

  • Description:

    描述

  • Scope:

    all

  • RuleSource:

    0,正常规则添加;1,入侵检测添加

  • LogId:

    告警Id

  • ParamTemplateId:

    端都协议组ID



1581
1582
1583
# File 'lib/v20190904/models.rb', line 1581

def Uuid
  @Uuid
end

Instance Method Details

#deserialize(params) ⇒ Object



1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
# File 'lib/v20190904/models.rb', line 1602

def deserialize(params)
  @SourceContent = params['SourceContent']
  @SourceType = params['SourceType']
  @TargetContent = params['TargetContent']
  @TargetType = params['TargetType']
  @Protocol = params['Protocol']
  @RuleAction = params['RuleAction']
  @Port = params['Port']
  @Direction = params['Direction']
  @OrderIndex = params['OrderIndex']
  @Uuid = params['Uuid']
  @Enable = params['Enable']
  @Description = params['Description']
  @Scope = params['Scope']
  @RuleSource = params['RuleSource']
  @LogId = params['LogId']
  @ParamTemplateId = params['ParamTemplateId']
end