Class: TencentCloud::Tem::V20210701::ServicePortMapping
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tem::V20210701::ServicePortMapping
- Defined in:
- lib/v20210701/models.rb
Overview
端口映射详细信息结构体
Instance Attribute Summary collapse
- #ClusterIp ⇒ Object
- #ExternalDomain ⇒ Object
- #ExternalIp ⇒ Object
- #LoadBalanceId ⇒ Object
- #PortMappingItemList ⇒ Object
- #Ports ⇒ Object
- #ServiceName ⇒ Object
- #SubnetId ⇒ Object
- #Type ⇒ Object
- #VpcId ⇒ Object
- #Yaml ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(type = nil, servicename = nil, clusterip = nil, externalip = nil, subnetid = nil, vpcid = nil, loadbalanceid = nil, yaml = nil, ports = nil, portmappingitemlist = nil, externaldomain = nil) ⇒ ServicePortMapping
constructor
A new instance of ServicePortMapping.
Constructor Details
#initialize(type = nil, servicename = nil, clusterip = nil, externalip = nil, subnetid = nil, vpcid = nil, loadbalanceid = nil, yaml = nil, ports = nil, portmappingitemlist = nil, externaldomain = nil) ⇒ ServicePortMapping
Returns a new instance of ServicePortMapping.
4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 |
# File 'lib/v20210701/models.rb', line 4509 def initialize(type=nil, servicename=nil, clusterip=nil, externalip=nil, subnetid=nil, vpcid=nil, loadbalanceid=nil, yaml=nil, ports=nil, portmappingitemlist=nil, externaldomain=nil) @Type = type @ServiceName = servicename @ClusterIp = clusterip @ExternalIp = externalip @SubnetId = subnetid @VpcId = vpcid @LoadBalanceId = loadbalanceid @Yaml = yaml @Ports = ports @PortMappingItemList = portmappingitemlist @ExternalDomain = externaldomain end |
Instance Attribute Details
#ClusterIp ⇒ Object
4507 4508 4509 |
# File 'lib/v20210701/models.rb', line 4507 def ClusterIp @ClusterIp end |
#ExternalDomain ⇒ Object
4507 4508 4509 |
# File 'lib/v20210701/models.rb', line 4507 def ExternalDomain @ExternalDomain end |
#ExternalIp ⇒ Object
4507 4508 4509 |
# File 'lib/v20210701/models.rb', line 4507 def ExternalIp @ExternalIp end |
#LoadBalanceId ⇒ Object
4507 4508 4509 |
# File 'lib/v20210701/models.rb', line 4507 def LoadBalanceId @LoadBalanceId end |
#PortMappingItemList ⇒ Object
4507 4508 4509 |
# File 'lib/v20210701/models.rb', line 4507 def PortMappingItemList @PortMappingItemList end |
#Ports ⇒ Object
4507 4508 4509 |
# File 'lib/v20210701/models.rb', line 4507 def Ports @Ports end |
#ServiceName ⇒ Object
4507 4508 4509 |
# File 'lib/v20210701/models.rb', line 4507 def ServiceName @ServiceName end |
#SubnetId ⇒ Object
4507 4508 4509 |
# File 'lib/v20210701/models.rb', line 4507 def SubnetId @SubnetId end |
#Type ⇒ Object
4507 4508 4509 |
# File 'lib/v20210701/models.rb', line 4507 def Type @Type end |
#VpcId ⇒ Object
4507 4508 4509 |
# File 'lib/v20210701/models.rb', line 4507 def VpcId @VpcId end |
#Yaml ⇒ Object
4507 4508 4509 |
# File 'lib/v20210701/models.rb', line 4507 def Yaml @Yaml end |
Instance Method Details
#deserialize(params) ⇒ Object
4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 |
# File 'lib/v20210701/models.rb', line 4523 def deserialize(params) @Type = params['Type'] @ServiceName = params['ServiceName'] @ClusterIp = params['ClusterIp'] @ExternalIp = params['ExternalIp'] @SubnetId = params['SubnetId'] @VpcId = params['VpcId'] @LoadBalanceId = params['LoadBalanceId'] @Yaml = params['Yaml'] @Ports = params['Ports'] unless params['PortMappingItemList'].nil? @PortMappingItemList = [] params['PortMappingItemList'].each do |i| serviceportmappingitem_tmp = ServicePortMappingItem.new serviceportmappingitem_tmp.deserialize(i) @PortMappingItemList << serviceportmappingitem_tmp end end @ExternalDomain = params['ExternalDomain'] end |