Class: TencentCloud::Iecp::V20210914::PortConfig
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iecp::V20210914::PortConfig
- Defined in:
- lib/v20210914/models.rb
Overview
端口配置
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(protocol = nil, port = nil, targetport = nil, nodeport = nil) ⇒ PortConfig
constructor
A new instance of PortConfig.
Constructor Details
#initialize(protocol = nil, port = nil, targetport = nil, nodeport = nil) ⇒ PortConfig
Returns a new instance of PortConfig.
6150 6151 6152 6153 6154 6155 |
# File 'lib/v20210914/models.rb', line 6150 def initialize(protocol=nil, port=nil, targetport=nil, nodeport=nil) @Protocol = protocol @Port = port @TargetPort = targetport @NodePort = nodeport end |
Instance Attribute Details
#NodePort ⇒ Object
6148 6149 6150 |
# File 'lib/v20210914/models.rb', line 6148 def NodePort @NodePort end |
#Port ⇒ Object
6148 6149 6150 |
# File 'lib/v20210914/models.rb', line 6148 def Port @Port end |
#Protocol ⇒ Object
6148 6149 6150 |
# File 'lib/v20210914/models.rb', line 6148 def Protocol @Protocol end |
#TargetPort ⇒ Object
6148 6149 6150 |
# File 'lib/v20210914/models.rb', line 6148 def TargetPort @TargetPort end |
Instance Method Details
#deserialize(params) ⇒ Object
6157 6158 6159 6160 6161 6162 |
# File 'lib/v20210914/models.rb', line 6157 def deserialize(params) @Protocol = params['Protocol'] @Port = params['Port'] @TargetPort = params['TargetPort'] @NodePort = params['NodePort'] end |