Class: TencentCloud::Cynosdb::V20190107::PolicyRule

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

Overview

安全组规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action = nil, cidrip = nil, portrange = nil, ipprotocol = nil, servicemodule = nil, addressmodule = nil, id = nil, desc = nil) ⇒ PolicyRule

Returns a new instance of PolicyRule.



12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
# File 'lib/v20190107/models.rb', line 12444

def initialize(action=nil, cidrip=nil, portrange=nil, ipprotocol=nil, servicemodule=nil, addressmodule=nil, id=nil, desc=nil)
  @Action = action
  @CidrIp = cidrip
  @PortRange = portrange
  @IpProtocol = ipprotocol
  @ServiceModule = servicemodule
  @AddressModule = addressmodule
  @Id = id
  @Desc = desc
end

Instance Attribute Details

#ActionObject

Parameters:

  • Action:

    策略,ACCEPT或者DROP

  • CidrIp:

    来源Ip或Ip段,例如192.168.0.0/16

  • PortRange:

    端口

  • IpProtocol:

    网络协议,支持udp、tcp等

  • ServiceModule:

    协议端口ID或者协议端口组ID。

  • AddressModule:

    IP地址ID或者ID地址组ID。

  • Id:

    id

  • Desc:

    描述



12442
12443
12444
# File 'lib/v20190107/models.rb', line 12442

def Action
  @Action
end

#AddressModuleObject

Parameters:

  • Action:

    策略,ACCEPT或者DROP

  • CidrIp:

    来源Ip或Ip段,例如192.168.0.0/16

  • PortRange:

    端口

  • IpProtocol:

    网络协议,支持udp、tcp等

  • ServiceModule:

    协议端口ID或者协议端口组ID。

  • AddressModule:

    IP地址ID或者ID地址组ID。

  • Id:

    id

  • Desc:

    描述



12442
12443
12444
# File 'lib/v20190107/models.rb', line 12442

def AddressModule
  @AddressModule
end

#CidrIpObject

Parameters:

  • Action:

    策略,ACCEPT或者DROP

  • CidrIp:

    来源Ip或Ip段,例如192.168.0.0/16

  • PortRange:

    端口

  • IpProtocol:

    网络协议,支持udp、tcp等

  • ServiceModule:

    协议端口ID或者协议端口组ID。

  • AddressModule:

    IP地址ID或者ID地址组ID。

  • Id:

    id

  • Desc:

    描述



12442
12443
12444
# File 'lib/v20190107/models.rb', line 12442

def CidrIp
  @CidrIp
end

#DescObject

Parameters:

  • Action:

    策略,ACCEPT或者DROP

  • CidrIp:

    来源Ip或Ip段,例如192.168.0.0/16

  • PortRange:

    端口

  • IpProtocol:

    网络协议,支持udp、tcp等

  • ServiceModule:

    协议端口ID或者协议端口组ID。

  • AddressModule:

    IP地址ID或者ID地址组ID。

  • Id:

    id

  • Desc:

    描述



12442
12443
12444
# File 'lib/v20190107/models.rb', line 12442

def Desc
  @Desc
end

#IdObject

Parameters:

  • Action:

    策略,ACCEPT或者DROP

  • CidrIp:

    来源Ip或Ip段,例如192.168.0.0/16

  • PortRange:

    端口

  • IpProtocol:

    网络协议,支持udp、tcp等

  • ServiceModule:

    协议端口ID或者协议端口组ID。

  • AddressModule:

    IP地址ID或者ID地址组ID。

  • Id:

    id

  • Desc:

    描述



12442
12443
12444
# File 'lib/v20190107/models.rb', line 12442

def Id
  @Id
end

#IpProtocolObject

Parameters:

  • Action:

    策略,ACCEPT或者DROP

  • CidrIp:

    来源Ip或Ip段,例如192.168.0.0/16

  • PortRange:

    端口

  • IpProtocol:

    网络协议,支持udp、tcp等

  • ServiceModule:

    协议端口ID或者协议端口组ID。

  • AddressModule:

    IP地址ID或者ID地址组ID。

  • Id:

    id

  • Desc:

    描述



12442
12443
12444
# File 'lib/v20190107/models.rb', line 12442

def IpProtocol
  @IpProtocol
end

#PortRangeObject

Parameters:

  • Action:

    策略,ACCEPT或者DROP

  • CidrIp:

    来源Ip或Ip段,例如192.168.0.0/16

  • PortRange:

    端口

  • IpProtocol:

    网络协议,支持udp、tcp等

  • ServiceModule:

    协议端口ID或者协议端口组ID。

  • AddressModule:

    IP地址ID或者ID地址组ID。

  • Id:

    id

  • Desc:

    描述



12442
12443
12444
# File 'lib/v20190107/models.rb', line 12442

def PortRange
  @PortRange
end

#ServiceModuleObject

Parameters:

  • Action:

    策略,ACCEPT或者DROP

  • CidrIp:

    来源Ip或Ip段,例如192.168.0.0/16

  • PortRange:

    端口

  • IpProtocol:

    网络协议,支持udp、tcp等

  • ServiceModule:

    协议端口ID或者协议端口组ID。

  • AddressModule:

    IP地址ID或者ID地址组ID。

  • Id:

    id

  • Desc:

    描述



12442
12443
12444
# File 'lib/v20190107/models.rb', line 12442

def ServiceModule
  @ServiceModule
end

Instance Method Details

#deserialize(params) ⇒ Object



12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
# File 'lib/v20190107/models.rb', line 12455

def deserialize(params)
  @Action = params['Action']
  @CidrIp = params['CidrIp']
  @PortRange = params['PortRange']
  @IpProtocol = params['IpProtocol']
  @ServiceModule = params['ServiceModule']
  @AddressModule = params['AddressModule']
  @Id = params['Id']
  @Desc = params['Desc']
end