Class: TencentCloud::Clb::V20180317::Resource

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

Overview

资源详细信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, isp = nil, availabilityset = nil, typeset = nil) ⇒ Resource

Returns a new instance of Resource.



7599
7600
7601
7602
7603
7604
# File 'lib/v20180317/models.rb', line 7599

def initialize(type=nil, isp=nil, availabilityset=nil, typeset=nil)
  @Type = type
  @Isp = isp
  @AvailabilitySet = availabilityset
  @TypeSet = typeset
end

Instance Attribute Details

#AvailabilitySetObject

Parameters:

  • Type:

    运营商内具体资源信息,如“CMCC”, “CUCC”, “CTCC”, “BGP”, “INTERNAL”。

  • Isp:

    运营商信息,如“CMCC”, “CUCC”, “CTCC”, “BGP”, “INTERNAL”。

  • AvailabilitySet:

    可用资源。

  • TypeSet:

    运营商类型信息



7597
7598
7599
# File 'lib/v20180317/models.rb', line 7597

def AvailabilitySet
  @AvailabilitySet
end

#IspObject

Parameters:

  • Type:

    运营商内具体资源信息,如“CMCC”, “CUCC”, “CTCC”, “BGP”, “INTERNAL”。

  • Isp:

    运营商信息,如“CMCC”, “CUCC”, “CTCC”, “BGP”, “INTERNAL”。

  • AvailabilitySet:

    可用资源。

  • TypeSet:

    运营商类型信息



7597
7598
7599
# File 'lib/v20180317/models.rb', line 7597

def Isp
  @Isp
end

#TypeObject

Parameters:

  • Type:

    运营商内具体资源信息,如“CMCC”, “CUCC”, “CTCC”, “BGP”, “INTERNAL”。

  • Isp:

    运营商信息,如“CMCC”, “CUCC”, “CTCC”, “BGP”, “INTERNAL”。

  • AvailabilitySet:

    可用资源。

  • TypeSet:

    运营商类型信息



7597
7598
7599
# File 'lib/v20180317/models.rb', line 7597

def Type
  @Type
end

#TypeSetObject

Parameters:

  • Type:

    运营商内具体资源信息,如“CMCC”, “CUCC”, “CTCC”, “BGP”, “INTERNAL”。

  • Isp:

    运营商信息,如“CMCC”, “CUCC”, “CTCC”, “BGP”, “INTERNAL”。

  • AvailabilitySet:

    可用资源。

  • TypeSet:

    运营商类型信息



7597
7598
7599
# File 'lib/v20180317/models.rb', line 7597

def TypeSet
  @TypeSet
end

Instance Method Details

#deserialize(params) ⇒ Object



7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
# File 'lib/v20180317/models.rb', line 7606

def deserialize(params)
  @Type = params['Type']
  @Isp = params['Isp']
  unless params['AvailabilitySet'].nil?
    @AvailabilitySet = []
    params['AvailabilitySet'].each do |i|
      resourceavailability_tmp = ResourceAvailability.new
      resourceavailability_tmp.deserialize(i)
      @AvailabilitySet << resourceavailability_tmp
    end
  end
  unless params['TypeSet'].nil?
    @TypeSet = []
    params['TypeSet'].each do |i|
      typeinfo_tmp = TypeInfo.new
      typeinfo_tmp.deserialize(i)
      @TypeSet << typeinfo_tmp
    end
  end
end