Class: TencentCloud::Tem::V20210701::ServicePortMappingItem
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tem::V20210701::ServicePortMappingItem
- Defined in:
- lib/v20210701/models.rb
Overview
服务端口映射条目
Instance Attribute Summary collapse
-
#Port ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Protocol ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#TargetPort ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(port = nil, targetport = nil, protocol = nil) ⇒ ServicePortMappingItem
constructor
A new instance of ServicePortMappingItem.
Constructor Details
#initialize(port = nil, targetport = nil, protocol = nil) ⇒ ServicePortMappingItem
Returns a new instance of ServicePortMappingItem.
4599 4600 4601 4602 4603 |
# File 'lib/v20210701/models.rb', line 4599 def initialize(port=nil, targetport=nil, protocol=nil) @Port = port @TargetPort = targetport @Protocol = protocol end |
Instance Attribute Details
#Port ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
4597 4598 4599 |
# File 'lib/v20210701/models.rb', line 4597 def Port @Port end |
#Protocol ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
4597 4598 4599 |
# File 'lib/v20210701/models.rb', line 4597 def Protocol @Protocol end |
#TargetPort ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
4597 4598 4599 |
# File 'lib/v20210701/models.rb', line 4597 def TargetPort @TargetPort end |
Instance Method Details
#deserialize(params) ⇒ Object
4605 4606 4607 4608 4609 |
# File 'lib/v20210701/models.rb', line 4605 def deserialize(params) @Port = params['Port'] @TargetPort = params['TargetPort'] @Protocol = params['Protocol'] end |