Class: TencentCloud::Cvm::V20170312::ReservedInstanceConfigInfoItem
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cvm::V20170312::ReservedInstanceConfigInfoItem
- Defined in:
- lib/v20170312/models.rb
Overview
预留实例静态配置信息。预留实例当前只针对国际站白名单用户开放。
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(type = nil, typename = nil, order = nil, instancefamilies = nil) ⇒ ReservedInstanceConfigInfoItem
constructor
A new instance of ReservedInstanceConfigInfoItem.
Constructor Details
#initialize(type = nil, typename = nil, order = nil, instancefamilies = nil) ⇒ ReservedInstanceConfigInfoItem
Returns a new instance of ReservedInstanceConfigInfoItem.
7475 7476 7477 7478 7479 7480 |
# File 'lib/v20170312/models.rb', line 7475 def initialize(type=nil, typename=nil, order=nil, instancefamilies=nil) @Type = type @TypeName = typename @Order = order @InstanceFamilies = instancefamilies end |
Instance Attribute Details
#InstanceFamilies ⇒ Object
7473 7474 7475 |
# File 'lib/v20170312/models.rb', line 7473 def InstanceFamilies @InstanceFamilies end |
#Order ⇒ Object
7473 7474 7475 |
# File 'lib/v20170312/models.rb', line 7473 def Order @Order end |
#Type ⇒ Object
7473 7474 7475 |
# File 'lib/v20170312/models.rb', line 7473 def Type @Type end |
#TypeName ⇒ Object
7473 7474 7475 |
# File 'lib/v20170312/models.rb', line 7473 def TypeName @TypeName end |
Instance Method Details
#deserialize(params) ⇒ Object
7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 |
# File 'lib/v20170312/models.rb', line 7482 def deserialize(params) @Type = params['Type'] @TypeName = params['TypeName'] @Order = params['Order'] unless params['InstanceFamilies'].nil? @InstanceFamilies = [] params['InstanceFamilies'].each do |i| reservedinstancefamilyitem_tmp = ReservedInstanceFamilyItem.new reservedinstancefamilyitem_tmp.deserialize(i) @InstanceFamilies << reservedinstancefamilyitem_tmp end end end |