Class: TencentCloud::Waf::V20180125::PortItem

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

Overview

防护域名端口配置信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(port = nil, protocol = nil, upstreamport = nil, upstreamprotocol = nil, nginxserverid = nil) ⇒ PortItem

Returns a new instance of PortItem.



11802
11803
11804
11805
11806
11807
11808
# File 'lib/v20180125/models.rb', line 11802

def initialize(port=nil, protocol=nil, upstreamport=nil, upstreamprotocol=nil, nginxserverid=nil)
  @Port = port
  @Protocol = protocol
  @UpstreamPort = upstreamport
  @UpstreamProtocol = upstreamprotocol
  @NginxServerId = nginxserverid
end

Instance Attribute Details

#NginxServerIdObject

Parameters:

  • Port:

    监听端口配置

  • Protocol:

    与Port一一对应,表示端口对应的协议

  • UpstreamPort:

    与Port一一对应, 表示回源端口

  • UpstreamProtocol:

    与Port一一对应, 表示回源协议

  • NginxServerId:

    Nginx的服务器ID



11800
11801
11802
# File 'lib/v20180125/models.rb', line 11800

def NginxServerId
  @NginxServerId
end

#PortObject

Parameters:

  • Port:

    监听端口配置

  • Protocol:

    与Port一一对应,表示端口对应的协议

  • UpstreamPort:

    与Port一一对应, 表示回源端口

  • UpstreamProtocol:

    与Port一一对应, 表示回源协议

  • NginxServerId:

    Nginx的服务器ID



11800
11801
11802
# File 'lib/v20180125/models.rb', line 11800

def Port
  @Port
end

#ProtocolObject

Parameters:

  • Port:

    监听端口配置

  • Protocol:

    与Port一一对应,表示端口对应的协议

  • UpstreamPort:

    与Port一一对应, 表示回源端口

  • UpstreamProtocol:

    与Port一一对应, 表示回源协议

  • NginxServerId:

    Nginx的服务器ID



11800
11801
11802
# File 'lib/v20180125/models.rb', line 11800

def Protocol
  @Protocol
end

#UpstreamPortObject

Parameters:

  • Port:

    监听端口配置

  • Protocol:

    与Port一一对应,表示端口对应的协议

  • UpstreamPort:

    与Port一一对应, 表示回源端口

  • UpstreamProtocol:

    与Port一一对应, 表示回源协议

  • NginxServerId:

    Nginx的服务器ID



11800
11801
11802
# File 'lib/v20180125/models.rb', line 11800

def UpstreamPort
  @UpstreamPort
end

#UpstreamProtocolObject

Parameters:

  • Port:

    监听端口配置

  • Protocol:

    与Port一一对应,表示端口对应的协议

  • UpstreamPort:

    与Port一一对应, 表示回源端口

  • UpstreamProtocol:

    与Port一一对应, 表示回源协议

  • NginxServerId:

    Nginx的服务器ID



11800
11801
11802
# File 'lib/v20180125/models.rb', line 11800

def UpstreamProtocol
  @UpstreamProtocol
end

Instance Method Details

#deserialize(params) ⇒ Object



11810
11811
11812
11813
11814
11815
11816
# File 'lib/v20180125/models.rb', line 11810

def deserialize(params)
  @Port = params['Port']
  @Protocol = params['Protocol']
  @UpstreamPort = params['UpstreamPort']
  @UpstreamProtocol = params['UpstreamProtocol']
  @NginxServerId = params['NginxServerId']
end