Class: TencentCloud::Antiddos::V20200309::Layer4Rule
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Antiddos::V20200309::Layer4Rule
- Defined in:
- lib/v20200309/models.rb
Overview
4层转发规则
Instance Attribute Summary collapse
-
#BackendPort ⇒ Object
TCP(TCP协议) UDP(UDP协议) ].
-
#FrontendPort ⇒ Object
TCP(TCP协议) UDP(UDP协议) ].
-
#InstanceDetailRule ⇒ Object
TCP(TCP协议) UDP(UDP协议) ].
-
#InstanceDetails ⇒ Object
TCP(TCP协议) UDP(UDP协议) ].
-
#Protocol ⇒ Object
TCP(TCP协议) UDP(UDP协议) ].
-
#RealServers ⇒ Object
TCP(TCP协议) UDP(UDP协议) ].
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(backendport = nil, frontendport = nil, protocol = nil, realservers = nil, instancedetails = nil, instancedetailrule = nil) ⇒ Layer4Rule
constructor
A new instance of Layer4Rule.
Constructor Details
#initialize(backendport = nil, frontendport = nil, protocol = nil, realservers = nil, instancedetails = nil, instancedetailrule = nil) ⇒ Layer4Rule
Returns a new instance of Layer4Rule.
6544 6545 6546 6547 6548 6549 6550 6551 |
# File 'lib/v20200309/models.rb', line 6544 def initialize(backendport=nil, frontendport=nil, protocol=nil, realservers=nil, instancedetails=nil, instancedetailrule=nil) @BackendPort = backendport @FrontendPort = frontendport @Protocol = protocol @RealServers = realservers @InstanceDetails = instancedetails @InstanceDetailRule = instancedetailrule end |
Instance Attribute Details
#BackendPort ⇒ Object
TCP(TCP协议) UDP(UDP协议) ]
6542 6543 6544 |
# File 'lib/v20200309/models.rb', line 6542 def BackendPort @BackendPort end |
#FrontendPort ⇒ Object
TCP(TCP协议) UDP(UDP协议) ]
6542 6543 6544 |
# File 'lib/v20200309/models.rb', line 6542 def FrontendPort @FrontendPort end |
#InstanceDetailRule ⇒ Object
TCP(TCP协议) UDP(UDP协议) ]
6542 6543 6544 |
# File 'lib/v20200309/models.rb', line 6542 def InstanceDetailRule @InstanceDetailRule end |
#InstanceDetails ⇒ Object
TCP(TCP协议) UDP(UDP协议) ]
6542 6543 6544 |
# File 'lib/v20200309/models.rb', line 6542 def InstanceDetails @InstanceDetails end |
#Protocol ⇒ Object
TCP(TCP协议) UDP(UDP协议) ]
6542 6543 6544 |
# File 'lib/v20200309/models.rb', line 6542 def Protocol @Protocol end |
#RealServers ⇒ Object
TCP(TCP协议) UDP(UDP协议) ]
6542 6543 6544 |
# File 'lib/v20200309/models.rb', line 6542 def RealServers @RealServers end |
Instance Method Details
#deserialize(params) ⇒ Object
6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 |
# File 'lib/v20200309/models.rb', line 6553 def deserialize(params) @BackendPort = params['BackendPort'] @FrontendPort = params['FrontendPort'] @Protocol = params['Protocol'] unless params['RealServers'].nil? @RealServers = [] params['RealServers'].each do |i| sourceserver_tmp = SourceServer.new sourceserver_tmp.deserialize(i) @RealServers << sourceserver_tmp end end unless params['InstanceDetails'].nil? @InstanceDetails = [] params['InstanceDetails'].each do |i| instancerelation_tmp = InstanceRelation.new instancerelation_tmp.deserialize(i) @InstanceDetails << instancerelation_tmp end end unless params['InstanceDetailRule'].nil? @InstanceDetailRule = [] params['InstanceDetailRule'].each do |i| ruleinstancerelation_tmp = RuleInstanceRelation.new ruleinstancerelation_tmp.deserialize(i) @InstanceDetailRule << ruleinstancerelation_tmp end end end |