Class: TencentCloud::Cvm::V20170312::ReservedInstanceTypeItem
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cvm::V20170312::ReservedInstanceTypeItem
- Defined in:
- lib/v20170312/models.rb
Overview
预留实例类型信息。预留实例当前只针对国际站白名单用户开放。
Instance Attribute Summary collapse
- #Cpu ⇒ Object
- #CpuModelName ⇒ Object
- #Externals ⇒ Object
- #Fpga ⇒ Object
- #Frequency ⇒ Object
- #Gpu ⇒ Object
- #InstanceType ⇒ Object
- #MaxBandwidth ⇒ Object
- #Memory ⇒ Object
- #NetworkCard ⇒ Object
- #Pps ⇒ Object
- #Prices ⇒ Object
- #Remark ⇒ Object
- #StorageBlock ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instancetype = nil, cpu = nil, memory = nil, gpu = nil, fpga = nil, storageblock = nil, networkcard = nil, maxbandwidth = nil, frequency = nil, cpumodelname = nil, pps = nil, externals = nil, remark = nil, prices = nil) ⇒ ReservedInstanceTypeItem
constructor
A new instance of ReservedInstanceTypeItem.
Constructor Details
#initialize(instancetype = nil, cpu = nil, memory = nil, gpu = nil, fpga = nil, storageblock = nil, networkcard = nil, maxbandwidth = nil, frequency = nil, cpumodelname = nil, pps = nil, externals = nil, remark = nil, prices = nil) ⇒ ReservedInstanceTypeItem
Returns a new instance of ReservedInstanceTypeItem.
7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 |
# File 'lib/v20170312/models.rb', line 7631 def initialize(instancetype=nil, cpu=nil, memory=nil, gpu=nil, fpga=nil, storageblock=nil, networkcard=nil, maxbandwidth=nil, frequency=nil, cpumodelname=nil, pps=nil, externals=nil, remark=nil, prices=nil) @InstanceType = instancetype @Cpu = cpu @Memory = memory @Gpu = gpu @Fpga = fpga @StorageBlock = storageblock @NetworkCard = networkcard @MaxBandwidth = maxbandwidth @Frequency = frequency @CpuModelName = cpumodelname @Pps = pps @Externals = externals @Remark = remark @Prices = prices end |
Instance Attribute Details
#Cpu ⇒ Object
7629 7630 7631 |
# File 'lib/v20170312/models.rb', line 7629 def Cpu @Cpu end |
#CpuModelName ⇒ Object
7629 7630 7631 |
# File 'lib/v20170312/models.rb', line 7629 def CpuModelName @CpuModelName end |
#Externals ⇒ Object
7629 7630 7631 |
# File 'lib/v20170312/models.rb', line 7629 def Externals @Externals end |
#Fpga ⇒ Object
7629 7630 7631 |
# File 'lib/v20170312/models.rb', line 7629 def Fpga @Fpga end |
#Frequency ⇒ Object
7629 7630 7631 |
# File 'lib/v20170312/models.rb', line 7629 def Frequency @Frequency end |
#Gpu ⇒ Object
7629 7630 7631 |
# File 'lib/v20170312/models.rb', line 7629 def Gpu @Gpu end |
#InstanceType ⇒ Object
7629 7630 7631 |
# File 'lib/v20170312/models.rb', line 7629 def InstanceType @InstanceType end |
#MaxBandwidth ⇒ Object
7629 7630 7631 |
# File 'lib/v20170312/models.rb', line 7629 def MaxBandwidth @MaxBandwidth end |
#Memory ⇒ Object
7629 7630 7631 |
# File 'lib/v20170312/models.rb', line 7629 def Memory @Memory end |
#NetworkCard ⇒ Object
7629 7630 7631 |
# File 'lib/v20170312/models.rb', line 7629 def NetworkCard @NetworkCard end |
#Pps ⇒ Object
7629 7630 7631 |
# File 'lib/v20170312/models.rb', line 7629 def Pps @Pps end |
#Prices ⇒ Object
7629 7630 7631 |
# File 'lib/v20170312/models.rb', line 7629 def Prices @Prices end |
#Remark ⇒ Object
7629 7630 7631 |
# File 'lib/v20170312/models.rb', line 7629 def Remark @Remark end |
#StorageBlock ⇒ Object
7629 7630 7631 |
# File 'lib/v20170312/models.rb', line 7629 def StorageBlock @StorageBlock end |
Instance Method Details
#deserialize(params) ⇒ Object
7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 |
# File 'lib/v20170312/models.rb', line 7648 def deserialize(params) @InstanceType = params['InstanceType'] @Cpu = params['Cpu'] @Memory = params['Memory'] @Gpu = params['Gpu'] @Fpga = params['Fpga'] @StorageBlock = params['StorageBlock'] @NetworkCard = params['NetworkCard'] @MaxBandwidth = params['MaxBandwidth'] @Frequency = params['Frequency'] @CpuModelName = params['CpuModelName'] @Pps = params['Pps'] unless params['Externals'].nil? @Externals = Externals.new @Externals.deserialize(params['Externals']) end @Remark = params['Remark'] unless params['Prices'].nil? @Prices = [] params['Prices'].each do |i| reservedinstancepriceitem_tmp = ReservedInstancePriceItem.new reservedinstancepriceitem_tmp.deserialize(i) @Prices << reservedinstancepriceitem_tmp end end end |