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.



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

#NginxServerIdObject

Parameters:

  • NginxServerId:

    nginx Id

  • Port:

    端口

  • Protocol:

    协议

  • UpstreamPort:

    后端端口

  • UpstreamProtocol:

    后端协议



12464
12465
12466
# File 'lib/v20180125/models.rb', line 12464

def NginxServerId
  @NginxServerId
end

#PortObject

Parameters:

  • NginxServerId:

    nginx Id

  • Port:

    端口

  • Protocol:

    协议

  • UpstreamPort:

    后端端口

  • UpstreamProtocol:

    后端协议



12464
12465
12466
# File 'lib/v20180125/models.rb', line 12464

def Port
  @Port
end

#ProtocolObject

Parameters:

  • NginxServerId:

    nginx Id

  • Port:

    端口

  • Protocol:

    协议

  • UpstreamPort:

    后端端口

  • UpstreamProtocol:

    后端协议



12464
12465
12466
# File 'lib/v20180125/models.rb', line 12464

def Protocol
  @Protocol
end

#UpstreamPortObject

Parameters:

  • NginxServerId:

    nginx Id

  • Port:

    端口

  • Protocol:

    协议

  • UpstreamPort:

    后端端口

  • UpstreamProtocol:

    后端协议



12464
12465
12466
# File 'lib/v20180125/models.rb', line 12464

def UpstreamPort
  @UpstreamPort
end

#UpstreamProtocolObject

Parameters:

  • NginxServerId:

    nginx Id

  • Port:

    端口

  • Protocol:

    协议

  • UpstreamPort:

    后端端口

  • UpstreamProtocol:

    后端协议



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