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.
7402 7403 7404 7405 7406 7407 |
# File 'lib/v20180317/models.rb', line 7402 def initialize(type=nil, isp=nil, availabilityset=nil, typeset=nil) @Type = type @Isp = isp @AvailabilitySet = availabilityset @TypeSet = typeset end |
Instance Attribute Details
#AvailabilitySet ⇒ Object
7400 7401 7402 |
# File 'lib/v20180317/models.rb', line 7400 def AvailabilitySet @AvailabilitySet end |
#Isp ⇒ Object
7400 7401 7402 |
# File 'lib/v20180317/models.rb', line 7400 def Isp @Isp end |
#Type ⇒ Object
7400 7401 7402 |
# File 'lib/v20180317/models.rb', line 7400 def Type @Type end |
#TypeSet ⇒ Object
7400 7401 7402 |
# File 'lib/v20180317/models.rb', line 7400 def TypeSet @TypeSet end |
Instance Method Details
#deserialize(params) ⇒ Object
7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 |
# File 'lib/v20180317/models.rb', line 7409 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 |