Class: TencentCloud::Waf::V20180125::SpartaProtectionPort

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

Overview

waf斯巴达-编辑防护域名中的端口结构

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#NginxServerIdObject

Parameters:

  • NginxServerId:

    nginx Id

  • Port:

    端口

  • Protocol:

    协议

  • UpstreamPort:

    后端端口

  • UpstreamProtocol:

    后端协议



11424
11425
11426
# File 'lib/v20180125/models.rb', line 11424

def NginxServerId
  @NginxServerId
end

#PortObject

Parameters:

  • NginxServerId:

    nginx Id

  • Port:

    端口

  • Protocol:

    协议

  • UpstreamPort:

    后端端口

  • UpstreamProtocol:

    后端协议



11424
11425
11426
# File 'lib/v20180125/models.rb', line 11424

def Port
  @Port
end

#ProtocolObject

Parameters:

  • NginxServerId:

    nginx Id

  • Port:

    端口

  • Protocol:

    协议

  • UpstreamPort:

    后端端口

  • UpstreamProtocol:

    后端协议



11424
11425
11426
# File 'lib/v20180125/models.rb', line 11424

def Protocol
  @Protocol
end

#UpstreamPortObject

Parameters:

  • NginxServerId:

    nginx Id

  • Port:

    端口

  • Protocol:

    协议

  • UpstreamPort:

    后端端口

  • UpstreamProtocol:

    后端协议



11424
11425
11426
# File 'lib/v20180125/models.rb', line 11424

def UpstreamPort
  @UpstreamPort
end

#UpstreamProtocolObject

Parameters:

  • NginxServerId:

    nginx Id

  • Port:

    端口

  • Protocol:

    协议

  • UpstreamPort:

    后端端口

  • UpstreamProtocol:

    后端协议



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