Class: TencentCloud::Waf::V20180125::SpartaProtectionPort
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Waf::V20180125::SpartaProtectionPort
- Defined in:
- lib/v20180125/models.rb
Overview
waf斯巴达-编辑防护域名中的端口结构
Instance Attribute Summary collapse
- #NginxServerId ⇒ Object
- #Port ⇒ Object
- #Protocol ⇒ Object
- #UpstreamPort ⇒ Object
- #UpstreamProtocol ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(nginxserverid = nil, port = nil, protocol = nil, upstreamport = nil, upstreamprotocol = nil) ⇒ SpartaProtectionPort
constructor
A new instance of SpartaProtectionPort.
Constructor Details
#initialize(nginxserverid = nil, port = nil, protocol = nil, upstreamport = nil, upstreamprotocol = nil) ⇒ SpartaProtectionPort
Returns a new instance of SpartaProtectionPort.
12466 12467 12468 12469 12470 12471 12472 |
# File 'lib/v20180125/models.rb', line 12466 def initialize(nginxserverid=nil, port=nil, protocol=nil, upstreamport=nil, upstreamprotocol=nil) @NginxServerId = nginxserverid @Port = port @Protocol = protocol @UpstreamPort = upstreamport @UpstreamProtocol = upstreamprotocol end |
Instance Attribute Details
#NginxServerId ⇒ Object
12464 12465 12466 |
# File 'lib/v20180125/models.rb', line 12464 def NginxServerId @NginxServerId end |
#Port ⇒ Object
12464 12465 12466 |
# File 'lib/v20180125/models.rb', line 12464 def Port @Port end |
#Protocol ⇒ Object
12464 12465 12466 |
# File 'lib/v20180125/models.rb', line 12464 def Protocol @Protocol end |
#UpstreamPort ⇒ Object
12464 12465 12466 |
# File 'lib/v20180125/models.rb', line 12464 def UpstreamPort @UpstreamPort end |
#UpstreamProtocol ⇒ Object
12464 12465 12466 |
# File 'lib/v20180125/models.rb', line 12464 def UpstreamProtocol @UpstreamProtocol end |
Instance Method Details
#deserialize(params) ⇒ Object
12474 12475 12476 12477 12478 12479 12480 |
# File 'lib/v20180125/models.rb', line 12474 def deserialize(params) @NginxServerId = params['NginxServerId'] @Port = params['Port'] @Protocol = params['Protocol'] @UpstreamPort = params['UpstreamPort'] @UpstreamProtocol = params['UpstreamProtocol'] end |