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.
15538 15539 15540 15541 15542 15543 15544 15545 |
# File 'lib/v20180525/models.rb', line 15538 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
15536 15537 15538 |
# File 'lib/v20180525/models.rb', line 15536 def Cpu @Cpu end |
#DeductionNum ⇒ Object
15536 15537 15538 |
# File 'lib/v20180525/models.rb', line 15536 def DeductionNum @DeductionNum end |
#GpuNum ⇒ Object
15536 15537 15538 |
# File 'lib/v20180525/models.rb', line 15536 def GpuNum @GpuNum end |
#Memory ⇒ Object
15536 15537 15538 |
# File 'lib/v20180525/models.rb', line 15536 def Memory @Memory end |
#TotalNum ⇒ Object
15536 15537 15538 |
# File 'lib/v20180525/models.rb', line 15536 def TotalNum @TotalNum end |
#Type ⇒ Object
15536 15537 15538 |
# File 'lib/v20180525/models.rb', line 15536 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
15547 15548 15549 15550 15551 15552 15553 15554 |
# File 'lib/v20180525/models.rb', line 15547 def deserialize(params) @Cpu = params['Cpu'] @Memory = params['Memory'] @Type = params['Type'] @GpuNum = params['GpuNum'] @TotalNum = params['TotalNum'] @DeductionNum = params['DeductionNum'] end |