Class: TencentCloud::Clb::V20180317::Resource
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Clb::V20180317::Resource
- Defined in:
- lib/v20180317/models.rb
Overview
资源详细信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(type = nil, isp = nil, availabilityset = nil, typeset = nil) ⇒ Resource
constructor
A new instance of Resource.
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
#AvailabilitySet ⇒ Object
7597 7598 7599 |
# File 'lib/v20180317/models.rb', line 7597 def AvailabilitySet @AvailabilitySet end |
#Isp ⇒ Object
7597 7598 7599 |
# File 'lib/v20180317/models.rb', line 7597 def Isp @Isp end |
#Type ⇒ Object
7597 7598 7599 |
# File 'lib/v20180317/models.rb', line 7597 def Type @Type end |
#TypeSet ⇒ Object
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 |