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.
7463 7464 7465 7466 7467 7468 |
# File 'lib/v20180317/models.rb', line 7463 def initialize(type=nil, isp=nil, availabilityset=nil, typeset=nil) @Type = type @Isp = isp @AvailabilitySet = availabilityset @TypeSet = typeset end |
Instance Attribute Details
#AvailabilitySet ⇒ Object
7461 7462 7463 |
# File 'lib/v20180317/models.rb', line 7461 def AvailabilitySet @AvailabilitySet end |
#Isp ⇒ Object
7461 7462 7463 |
# File 'lib/v20180317/models.rb', line 7461 def Isp @Isp end |
#Type ⇒ Object
7461 7462 7463 |
# File 'lib/v20180317/models.rb', line 7461 def Type @Type end |
#TypeSet ⇒ Object
7461 7462 7463 |
# File 'lib/v20180317/models.rb', line 7461 def TypeSet @TypeSet end |
Instance Method Details
#deserialize(params) ⇒ Object
7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 |
# File 'lib/v20180317/models.rb', line 7470 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 |