Class: TencentCloud::Tke::V20180525::PodDeductionRate
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::PodDeductionRate
- Defined in:
- lib/v20180525/models.rb
Overview
可被预留券抵扣的 Pod 某种规格的抵扣率
Instance Attribute Summary collapse
- #Cpu ⇒ Object
- #DeductionNum ⇒ Object
- #GpuNum ⇒ Object
- #Memory ⇒ Object
- #TotalNum ⇒ Object
- #Type ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(cpu = nil, memory = nil, type = nil, gpunum = nil, totalnum = nil, deductionnum = nil) ⇒ PodDeductionRate
constructor
A new instance of PodDeductionRate.
Constructor Details
#initialize(cpu = nil, memory = nil, type = nil, gpunum = nil, totalnum = nil, deductionnum = nil) ⇒ PodDeductionRate
Returns a new instance of PodDeductionRate.
16841 16842 16843 16844 16845 16846 16847 16848 |
# File 'lib/v20180525/models.rb', line 16841 def initialize(cpu=nil, memory=nil, type=nil, gpunum=nil, totalnum=nil, deductionnum=nil) @Cpu = cpu @Memory = memory @Type = type @GpuNum = gpunum @TotalNum = totalnum @DeductionNum = deductionnum end |
Instance Attribute Details
#Cpu ⇒ Object
16839 16840 16841 |
# File 'lib/v20180525/models.rb', line 16839 def Cpu @Cpu end |
#DeductionNum ⇒ Object
16839 16840 16841 |
# File 'lib/v20180525/models.rb', line 16839 def DeductionNum @DeductionNum end |
#GpuNum ⇒ Object
16839 16840 16841 |
# File 'lib/v20180525/models.rb', line 16839 def GpuNum @GpuNum end |
#Memory ⇒ Object
16839 16840 16841 |
# File 'lib/v20180525/models.rb', line 16839 def Memory @Memory end |
#TotalNum ⇒ Object
16839 16840 16841 |
# File 'lib/v20180525/models.rb', line 16839 def TotalNum @TotalNum end |
#Type ⇒ Object
16839 16840 16841 |
# File 'lib/v20180525/models.rb', line 16839 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
16850 16851 16852 16853 16854 16855 16856 16857 |
# File 'lib/v20180525/models.rb', line 16850 def deserialize(params) @Cpu = params['Cpu'] @Memory = params['Memory'] @Type = params['Type'] @GpuNum = params['GpuNum'] @TotalNum = params['TotalNum'] @DeductionNum = params['DeductionNum'] end |