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.
7520 7521 7522 7523 7524 7525 |
# File 'lib/v20180317/models.rb', line 7520 def initialize(type=nil, isp=nil, availabilityset=nil, typeset=nil) @Type = type @Isp = isp @AvailabilitySet = availabilityset @TypeSet = typeset end |
Instance Attribute Details
#AvailabilitySet ⇒ Object
7518 7519 7520 |
# File 'lib/v20180317/models.rb', line 7518 def AvailabilitySet @AvailabilitySet end |
#Isp ⇒ Object
7518 7519 7520 |
# File 'lib/v20180317/models.rb', line 7518 def Isp @Isp end |
#Type ⇒ Object
7518 7519 7520 |
# File 'lib/v20180317/models.rb', line 7518 def Type @Type end |
#TypeSet ⇒ Object
7518 7519 7520 |
# File 'lib/v20180317/models.rb', line 7518 def TypeSet @TypeSet end |
Instance Method Details
#deserialize(params) ⇒ Object
7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 |
# File 'lib/v20180317/models.rb', line 7527 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 |