Class: TencentCloud::Bm::V20180423::DevicePriceInfo

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180423/models.rb

Overview

服务器价格信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, deviceclasscode = nil, iselastic = nil, cpmpaymode = nil, cpudescription = nil, memdescription = nil, diskdescription = nil, nicdescription = nil, gpudescription = nil, raiddescription = nil, price = nil, normalprice = nil, totalcost = nil, realtotalcost = nil, timespan = nil, timeunit = nil, goodscount = nil) ⇒ DevicePriceInfo



2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
# File 'lib/v20180423/models.rb', line 2740

def initialize(instanceid=nil, deviceclasscode=nil, iselastic=nil, cpmpaymode=nil, cpudescription=nil, memdescription=nil, diskdescription=nil, nicdescription=nil, gpudescription=nil, raiddescription=nil, price=nil, normalprice=nil, totalcost=nil, realtotalcost=nil, timespan=nil, timeunit=nil, goodscount=nil)
  @InstanceId = instanceid
  @DeviceClassCode = deviceclasscode
  @IsElastic = iselastic
  @CpmPayMode = cpmpaymode
  @CpuDescription = cpudescription
  @MemDescription = memdescription
  @DiskDescription = diskdescription
  @NicDescription = nicdescription
  @GpuDescription = gpudescription
  @RaidDescription = raiddescription
  @Price = price
  @NormalPrice = normalprice
  @TotalCost = totalcost
  @RealTotalCost = realtotalcost
  @TimeSpan = timespan
  @TimeUnit = timeunit
  @GoodsCount = goodscount
end

Instance Attribute Details

#CpmPayModeObject



2738
2739
2740
# File 'lib/v20180423/models.rb', line 2738

def CpmPayMode
  @CpmPayMode
end

#CpuDescriptionObject



2738
2739
2740
# File 'lib/v20180423/models.rb', line 2738

def CpuDescription
  @CpuDescription
end

#DeviceClassCodeObject



2738
2739
2740
# File 'lib/v20180423/models.rb', line 2738

def DeviceClassCode
  @DeviceClassCode
end

#DiskDescriptionObject



2738
2739
2740
# File 'lib/v20180423/models.rb', line 2738

def DiskDescription
  @DiskDescription
end

#GoodsCountObject



2738
2739
2740
# File 'lib/v20180423/models.rb', line 2738

def GoodsCount
  @GoodsCount
end

#GpuDescriptionObject



2738
2739
2740
# File 'lib/v20180423/models.rb', line 2738

def GpuDescription
  @GpuDescription
end

#InstanceIdObject



2738
2739
2740
# File 'lib/v20180423/models.rb', line 2738

def InstanceId
  @InstanceId
end

#IsElasticObject



2738
2739
2740
# File 'lib/v20180423/models.rb', line 2738

def IsElastic
  @IsElastic
end

#MemDescriptionObject



2738
2739
2740
# File 'lib/v20180423/models.rb', line 2738

def MemDescription
  @MemDescription
end

#NicDescriptionObject



2738
2739
2740
# File 'lib/v20180423/models.rb', line 2738

def NicDescription
  @NicDescription
end

#NormalPriceObject



2738
2739
2740
# File 'lib/v20180423/models.rb', line 2738

def NormalPrice
  @NormalPrice
end

#PriceObject



2738
2739
2740
# File 'lib/v20180423/models.rb', line 2738

def Price
  @Price
end

#RaidDescriptionObject



2738
2739
2740
# File 'lib/v20180423/models.rb', line 2738

def RaidDescription
  @RaidDescription
end

#RealTotalCostObject



2738
2739
2740
# File 'lib/v20180423/models.rb', line 2738

def RealTotalCost
  @RealTotalCost
end

#TimeSpanObject



2738
2739
2740
# File 'lib/v20180423/models.rb', line 2738

def TimeSpan
  @TimeSpan
end

#TimeUnitObject



2738
2739
2740
# File 'lib/v20180423/models.rb', line 2738

def TimeUnit
  @TimeUnit
end

#TotalCostObject



2738
2739
2740
# File 'lib/v20180423/models.rb', line 2738

def TotalCost
  @TotalCost
end

Instance Method Details

#deserialize(params) ⇒ Object



2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
# File 'lib/v20180423/models.rb', line 2760

def deserialize(params)
  @InstanceId = params['InstanceId']
  @DeviceClassCode = params['DeviceClassCode']
  @IsElastic = params['IsElastic']
  @CpmPayMode = params['CpmPayMode']
  @CpuDescription = params['CpuDescription']
  @MemDescription = params['MemDescription']
  @DiskDescription = params['DiskDescription']
  @NicDescription = params['NicDescription']
  @GpuDescription = params['GpuDescription']
  @RaidDescription = params['RaidDescription']
  @Price = params['Price']
  @NormalPrice = params['NormalPrice']
  @TotalCost = params['TotalCost']
  @RealTotalCost = params['RealTotalCost']
  @TimeSpan = params['TimeSpan']
  @TimeUnit = params['TimeUnit']
  @GoodsCount = params['GoodsCount']
end