Class: TencentCloud::Ecm::V20190719::Internet

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

Overview

实例的网络相关信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(privateipaddressset = nil, publicipaddressset = nil, instancenetworkinfoset = nil) ⇒ Internet

Returns a new instance of Internet.



6546
6547
6548
6549
6550
# File 'lib/v20190719/models.rb', line 6546

def initialize(privateipaddressset=nil, publicipaddressset=nil, instancenetworkinfoset=nil)
  @PrivateIPAddressSet = privateipaddressset
  @PublicIPAddressSet = publicipaddressset
  @InstanceNetworkInfoSet = instancenetworkinfoset
end

Instance Attribute Details

#InstanceNetworkInfoSetObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • PrivateIPAddressSet:

    实例的内网相关信息列表。顺序为主网卡在前,辅助网卡按绑定先后顺序排列。

  • PublicIPAddressSet:

    实例的公网相关信息列表。顺序为主网卡在前,辅助网卡按绑定先后顺序排列。

  • InstanceNetworkInfoSet:

    实例网络相关信息。



6544
6545
6546
# File 'lib/v20190719/models.rb', line 6544

def InstanceNetworkInfoSet
  @InstanceNetworkInfoSet
end

#PrivateIPAddressSetObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • PrivateIPAddressSet:

    实例的内网相关信息列表。顺序为主网卡在前,辅助网卡按绑定先后顺序排列。

  • PublicIPAddressSet:

    实例的公网相关信息列表。顺序为主网卡在前,辅助网卡按绑定先后顺序排列。

  • InstanceNetworkInfoSet:

    实例网络相关信息。



6544
6545
6546
# File 'lib/v20190719/models.rb', line 6544

def PrivateIPAddressSet
  @PrivateIPAddressSet
end

#PublicIPAddressSetObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • PrivateIPAddressSet:

    实例的内网相关信息列表。顺序为主网卡在前,辅助网卡按绑定先后顺序排列。

  • PublicIPAddressSet:

    实例的公网相关信息列表。顺序为主网卡在前,辅助网卡按绑定先后顺序排列。

  • InstanceNetworkInfoSet:

    实例网络相关信息。



6544
6545
6546
# File 'lib/v20190719/models.rb', line 6544

def PublicIPAddressSet
  @PublicIPAddressSet
end

Instance Method Details

#deserialize(params) ⇒ Object



6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
# File 'lib/v20190719/models.rb', line 6552

def deserialize(params)
  unless params['PrivateIPAddressSet'].nil?
    @PrivateIPAddressSet = []
    params['PrivateIPAddressSet'].each do |i|
      privateipaddressinfo_tmp = PrivateIPAddressInfo.new
      privateipaddressinfo_tmp.deserialize(i)
      @PrivateIPAddressSet << privateipaddressinfo_tmp
    end
  end
  unless params['PublicIPAddressSet'].nil?
    @PublicIPAddressSet = []
    params['PublicIPAddressSet'].each do |i|
      publicipaddressinfo_tmp = PublicIPAddressInfo.new
      publicipaddressinfo_tmp.deserialize(i)
      @PublicIPAddressSet << publicipaddressinfo_tmp
    end
  end
  unless params['InstanceNetworkInfoSet'].nil?
    @InstanceNetworkInfoSet = []
    params['InstanceNetworkInfoSet'].each do |i|
      instancenetworkinfo_tmp = InstanceNetworkInfo.new
      instancenetworkinfo_tmp.deserialize(i)
      @InstanceNetworkInfoSet << instancenetworkinfo_tmp
    end
  end
end