Class: TencentCloud::Tem::V20210701::ServicePortMapping

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

Overview

端口映射详细信息结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#ClusterIpObject

Parameters:

  • Type:

    服务类型:如:EXTERNAL,VPC,CLUSTER

  • ServiceName:

    服务名称

  • ClusterIp:

    集群内访问vip

  • ExternalIp:

    集群外方位vip

  • SubnetId:

    子网id

  • VpcId:

    vpc id

  • LoadBalanceId:

    LoadBalance Id

  • Yaml:

    yaml 内容

  • Ports:

    暴露端口列表

  • PortMappingItemList:

    端口映射数组

  • ExternalDomain:

    clb domain



4507
4508
4509
# File 'lib/v20210701/models.rb', line 4507

def ClusterIp
  @ClusterIp
end

#ExternalDomainObject

Parameters:

  • Type:

    服务类型:如:EXTERNAL,VPC,CLUSTER

  • ServiceName:

    服务名称

  • ClusterIp:

    集群内访问vip

  • ExternalIp:

    集群外方位vip

  • SubnetId:

    子网id

  • VpcId:

    vpc id

  • LoadBalanceId:

    LoadBalance Id

  • Yaml:

    yaml 内容

  • Ports:

    暴露端口列表

  • PortMappingItemList:

    端口映射数组

  • ExternalDomain:

    clb domain



4507
4508
4509
# File 'lib/v20210701/models.rb', line 4507

def ExternalDomain
  @ExternalDomain
end

#ExternalIpObject

Parameters:

  • Type:

    服务类型:如:EXTERNAL,VPC,CLUSTER

  • ServiceName:

    服务名称

  • ClusterIp:

    集群内访问vip

  • ExternalIp:

    集群外方位vip

  • SubnetId:

    子网id

  • VpcId:

    vpc id

  • LoadBalanceId:

    LoadBalance Id

  • Yaml:

    yaml 内容

  • Ports:

    暴露端口列表

  • PortMappingItemList:

    端口映射数组

  • ExternalDomain:

    clb domain



4507
4508
4509
# File 'lib/v20210701/models.rb', line 4507

def ExternalIp
  @ExternalIp
end

#LoadBalanceIdObject

Parameters:

  • Type:

    服务类型:如:EXTERNAL,VPC,CLUSTER

  • ServiceName:

    服务名称

  • ClusterIp:

    集群内访问vip

  • ExternalIp:

    集群外方位vip

  • SubnetId:

    子网id

  • VpcId:

    vpc id

  • LoadBalanceId:

    LoadBalance Id

  • Yaml:

    yaml 内容

  • Ports:

    暴露端口列表

  • PortMappingItemList:

    端口映射数组

  • ExternalDomain:

    clb domain



4507
4508
4509
# File 'lib/v20210701/models.rb', line 4507

def LoadBalanceId
  @LoadBalanceId
end

#PortMappingItemListObject

Parameters:

  • Type:

    服务类型:如:EXTERNAL,VPC,CLUSTER

  • ServiceName:

    服务名称

  • ClusterIp:

    集群内访问vip

  • ExternalIp:

    集群外方位vip

  • SubnetId:

    子网id

  • VpcId:

    vpc id

  • LoadBalanceId:

    LoadBalance Id

  • Yaml:

    yaml 内容

  • Ports:

    暴露端口列表

  • PortMappingItemList:

    端口映射数组

  • ExternalDomain:

    clb domain



4507
4508
4509
# File 'lib/v20210701/models.rb', line 4507

def PortMappingItemList
  @PortMappingItemList
end

#PortsObject

Parameters:

  • Type:

    服务类型:如:EXTERNAL,VPC,CLUSTER

  • ServiceName:

    服务名称

  • ClusterIp:

    集群内访问vip

  • ExternalIp:

    集群外方位vip

  • SubnetId:

    子网id

  • VpcId:

    vpc id

  • LoadBalanceId:

    LoadBalance Id

  • Yaml:

    yaml 内容

  • Ports:

    暴露端口列表

  • PortMappingItemList:

    端口映射数组

  • ExternalDomain:

    clb domain



4507
4508
4509
# File 'lib/v20210701/models.rb', line 4507

def Ports
  @Ports
end

#ServiceNameObject

Parameters:

  • Type:

    服务类型:如:EXTERNAL,VPC,CLUSTER

  • ServiceName:

    服务名称

  • ClusterIp:

    集群内访问vip

  • ExternalIp:

    集群外方位vip

  • SubnetId:

    子网id

  • VpcId:

    vpc id

  • LoadBalanceId:

    LoadBalance Id

  • Yaml:

    yaml 内容

  • Ports:

    暴露端口列表

  • PortMappingItemList:

    端口映射数组

  • ExternalDomain:

    clb domain



4507
4508
4509
# File 'lib/v20210701/models.rb', line 4507

def ServiceName
  @ServiceName
end

#SubnetIdObject

Parameters:

  • Type:

    服务类型:如:EXTERNAL,VPC,CLUSTER

  • ServiceName:

    服务名称

  • ClusterIp:

    集群内访问vip

  • ExternalIp:

    集群外方位vip

  • SubnetId:

    子网id

  • VpcId:

    vpc id

  • LoadBalanceId:

    LoadBalance Id

  • Yaml:

    yaml 内容

  • Ports:

    暴露端口列表

  • PortMappingItemList:

    端口映射数组

  • ExternalDomain:

    clb domain



4507
4508
4509
# File 'lib/v20210701/models.rb', line 4507

def SubnetId
  @SubnetId
end

#TypeObject

Parameters:

  • Type:

    服务类型:如:EXTERNAL,VPC,CLUSTER

  • ServiceName:

    服务名称

  • ClusterIp:

    集群内访问vip

  • ExternalIp:

    集群外方位vip

  • SubnetId:

    子网id

  • VpcId:

    vpc id

  • LoadBalanceId:

    LoadBalance Id

  • Yaml:

    yaml 内容

  • Ports:

    暴露端口列表

  • PortMappingItemList:

    端口映射数组

  • ExternalDomain:

    clb domain



4507
4508
4509
# File 'lib/v20210701/models.rb', line 4507

def Type
  @Type
end

#VpcIdObject

Parameters:

  • Type:

    服务类型:如:EXTERNAL,VPC,CLUSTER

  • ServiceName:

    服务名称

  • ClusterIp:

    集群内访问vip

  • ExternalIp:

    集群外方位vip

  • SubnetId:

    子网id

  • VpcId:

    vpc id

  • LoadBalanceId:

    LoadBalance Id

  • Yaml:

    yaml 内容

  • Ports:

    暴露端口列表

  • PortMappingItemList:

    端口映射数组

  • ExternalDomain:

    clb domain



4507
4508
4509
# File 'lib/v20210701/models.rb', line 4507

def VpcId
  @VpcId
end

#YamlObject

Parameters:

  • Type:

    服务类型:如:EXTERNAL,VPC,CLUSTER

  • ServiceName:

    服务名称

  • ClusterIp:

    集群内访问vip

  • ExternalIp:

    集群外方位vip

  • SubnetId:

    子网id

  • VpcId:

    vpc id

  • LoadBalanceId:

    LoadBalance Id

  • Yaml:

    yaml 内容

  • Ports:

    暴露端口列表

  • PortMappingItemList:

    端口映射数组

  • ExternalDomain:

    clb domain



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