Class: TencentCloud::Cfw::V20190904::CfwNatDnatRule
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cfw::V20190904::CfwNatDnatRule
- Defined in:
- lib/v20190904/models.rb
Overview
NAT防火墙Dnat规则
Instance Attribute Summary collapse
- #Description ⇒ Object
- #IpProtocol ⇒ Object
- #PrivateIpAddress ⇒ Object
- #PrivatePort ⇒ Object
- #PublicIpAddress ⇒ Object
- #PublicPort ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(ipprotocol = nil, publicipaddress = nil, publicport = nil, privateipaddress = nil, privateport = nil, description = nil) ⇒ CfwNatDnatRule
constructor
A new instance of CfwNatDnatRule.
Constructor Details
#initialize(ipprotocol = nil, publicipaddress = nil, publicport = nil, privateipaddress = nil, privateport = nil, description = nil) ⇒ CfwNatDnatRule
Returns a new instance of CfwNatDnatRule.
678 679 680 681 682 683 684 685 |
# File 'lib/v20190904/models.rb', line 678 def initialize(ipprotocol=nil, publicipaddress=nil, publicport=nil, privateipaddress=nil, privateport=nil, description=nil) @IpProtocol = ipprotocol @PublicIpAddress = publicipaddress @PublicPort = publicport @PrivateIpAddress = privateipaddress @PrivatePort = privateport @Description = description end |
Instance Attribute Details
#Description ⇒ Object
676 677 678 |
# File 'lib/v20190904/models.rb', line 676 def Description @Description end |
#IpProtocol ⇒ Object
676 677 678 |
# File 'lib/v20190904/models.rb', line 676 def IpProtocol @IpProtocol end |
#PrivateIpAddress ⇒ Object
676 677 678 |
# File 'lib/v20190904/models.rb', line 676 def PrivateIpAddress @PrivateIpAddress end |
#PrivatePort ⇒ Object
676 677 678 |
# File 'lib/v20190904/models.rb', line 676 def PrivatePort @PrivatePort end |
#PublicIpAddress ⇒ Object
676 677 678 |
# File 'lib/v20190904/models.rb', line 676 def PublicIpAddress @PublicIpAddress end |
#PublicPort ⇒ Object
676 677 678 |
# File 'lib/v20190904/models.rb', line 676 def PublicPort @PublicPort end |
Instance Method Details
#deserialize(params) ⇒ Object
687 688 689 690 691 692 693 694 |
# File 'lib/v20190904/models.rb', line 687 def deserialize(params) @IpProtocol = params['IpProtocol'] @PublicIpAddress = params['PublicIpAddress'] @PublicPort = params['PublicPort'] @PrivateIpAddress = params['PrivateIpAddress'] @PrivatePort = params['PrivatePort'] @Description = params['Description'] end |