Class: TencentCloud::Clb::V20180317::TypeInfo

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, specavailabilityset = nil) ⇒ TypeInfo

Returns a new instance of TypeInfo.



8710
8711
8712
8713
# File 'lib/v20180317/models.rb', line 8710

def initialize(type=nil, specavailabilityset=nil)
  @Type = type
  @SpecAvailabilitySet = specavailabilityset
end

Instance Attribute Details

#SpecAvailabilitySetObject

Parameters:

  • Type:

    运营商类型

  • SpecAvailabilitySet:

    规格可用性



8708
8709
8710
# File 'lib/v20180317/models.rb', line 8708

def SpecAvailabilitySet
  @SpecAvailabilitySet
end

#TypeObject

Parameters:

  • Type:

    运营商类型

  • SpecAvailabilitySet:

    规格可用性



8708
8709
8710
# File 'lib/v20180317/models.rb', line 8708

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
# File 'lib/v20180317/models.rb', line 8715

def deserialize(params)
  @Type = params['Type']
  unless params['SpecAvailabilitySet'].nil?
    @SpecAvailabilitySet = []
    params['SpecAvailabilitySet'].each do |i|
      specavailability_tmp = SpecAvailability.new
      specavailability_tmp.deserialize(i)
      @SpecAvailabilitySet << specavailability_tmp
    end
  end
end