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.
11426 11427 11428 11429 11430 11431 11432 |
# File 'lib/v20180125/models.rb', line 11426 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
11424 11425 11426 |
# File 'lib/v20180125/models.rb', line 11424 def NginxServerId @NginxServerId end |
#Port ⇒ Object
11424 11425 11426 |
# File 'lib/v20180125/models.rb', line 11424 def Port @Port end |
#Protocol ⇒ Object
11424 11425 11426 |
# File 'lib/v20180125/models.rb', line 11424 def Protocol @Protocol end |
#UpstreamPort ⇒ Object
11424 11425 11426 |
# File 'lib/v20180125/models.rb', line 11424 def UpstreamPort @UpstreamPort end |
#UpstreamProtocol ⇒ Object
11424 11425 11426 |
# File 'lib/v20180125/models.rb', line 11424 def UpstreamProtocol @UpstreamProtocol end |
Instance Method Details
#deserialize(params) ⇒ Object
11434 11435 11436 11437 11438 11439 11440 |
# File 'lib/v20180125/models.rb', line 11434 def deserialize(params) @NginxServerId = params['NginxServerId'] @Port = params['Port'] @Protocol = params['Protocol'] @UpstreamPort = params['UpstreamPort'] @UpstreamProtocol = params['UpstreamProtocol'] end |