Class: TencentCloud::Tke::V20180525::IPAddress

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

Overview

IP 地址

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, ip = nil, port = nil) ⇒ IPAddress

Returns a new instance of IPAddress.



12360
12361
12362
12363
12364
# File 'lib/v20180525/models.rb', line 12360

def initialize(type=nil, ip=nil, port=nil)
  @Type = type
  @Ip = ip
  @Port = port
end

Instance Attribute Details

#IpObject

Parameters:

  • Type:

    Ip 地址的类型。可为 advertise, public 等

  • Ip:

    Ip 地址

  • Port:

    网络端口



12358
12359
12360
# File 'lib/v20180525/models.rb', line 12358

def Ip
  @Ip
end

#PortObject

Parameters:

  • Type:

    Ip 地址的类型。可为 advertise, public 等

  • Ip:

    Ip 地址

  • Port:

    网络端口



12358
12359
12360
# File 'lib/v20180525/models.rb', line 12358

def Port
  @Port
end

#TypeObject

Parameters:

  • Type:

    Ip 地址的类型。可为 advertise, public 等

  • Ip:

    Ip 地址

  • Port:

    网络端口



12358
12359
12360
# File 'lib/v20180525/models.rb', line 12358

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



12366
12367
12368
12369
12370
# File 'lib/v20180525/models.rb', line 12366

def deserialize(params)
  @Type = params['Type']
  @Ip = params['Ip']
  @Port = params['Port']
end