Class: TencentCloud::Svp::V20240125::SavingPlanUsageDetail
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Svp::V20240125::SavingPlanUsageDetail
- Defined in:
- lib/v20240125/models.rb
Overview
节省计划使用率数据
Instance Attribute Summary collapse
- #CostAmount ⇒ Object
- #DeductAmount ⇒ Object
- #DosageAmount ⇒ Object
- #LossAmount ⇒ Object
- #NetSavings ⇒ Object
- #PromiseAmount ⇒ Object
- #Region ⇒ Object
- #SpId ⇒ Object
- #SpType ⇒ Object
- #Status ⇒ Object
- #UtilizationRate ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(spid = nil, sptype = nil, status = nil, deductamount = nil, promiseamount = nil, netsavings = nil, utilizationrate = nil, lossamount = nil, dosageamount = nil, costamount = nil, region = nil) ⇒ SavingPlanUsageDetail
constructor
A new instance of SavingPlanUsageDetail.
Constructor Details
#initialize(spid = nil, sptype = nil, status = nil, deductamount = nil, promiseamount = nil, netsavings = nil, utilizationrate = nil, lossamount = nil, dosageamount = nil, costamount = nil, region = nil) ⇒ SavingPlanUsageDetail
Returns a new instance of SavingPlanUsageDetail.
647 648 649 650 651 652 653 654 655 656 657 658 659 |
# File 'lib/v20240125/models.rb', line 647 def initialize(spid=nil, sptype=nil, status=nil, deductamount=nil, promiseamount=nil, netsavings=nil, utilizationrate=nil, lossamount=nil, dosageamount=nil, costamount=nil, region=nil) @SpId = spid @SpType = sptype @Status = status @DeductAmount = deductamount @PromiseAmount = promiseamount @NetSavings = netsavings @UtilizationRate = utilizationrate @LossAmount = lossamount @DosageAmount = dosageamount @CostAmount = costamount @Region = region end |
Instance Attribute Details
#CostAmount ⇒ Object
645 646 647 |
# File 'lib/v20240125/models.rb', line 645 def CostAmount @CostAmount end |
#DeductAmount ⇒ Object
645 646 647 |
# File 'lib/v20240125/models.rb', line 645 def DeductAmount @DeductAmount end |
#DosageAmount ⇒ Object
645 646 647 |
# File 'lib/v20240125/models.rb', line 645 def DosageAmount @DosageAmount end |
#LossAmount ⇒ Object
645 646 647 |
# File 'lib/v20240125/models.rb', line 645 def LossAmount @LossAmount end |
#NetSavings ⇒ Object
645 646 647 |
# File 'lib/v20240125/models.rb', line 645 def NetSavings @NetSavings end |
#PromiseAmount ⇒ Object
645 646 647 |
# File 'lib/v20240125/models.rb', line 645 def PromiseAmount @PromiseAmount end |
#Region ⇒ Object
645 646 647 |
# File 'lib/v20240125/models.rb', line 645 def Region @Region end |
#SpId ⇒ Object
645 646 647 |
# File 'lib/v20240125/models.rb', line 645 def SpId @SpId end |
#SpType ⇒ Object
645 646 647 |
# File 'lib/v20240125/models.rb', line 645 def SpType @SpType end |
#Status ⇒ Object
645 646 647 |
# File 'lib/v20240125/models.rb', line 645 def Status @Status end |
#UtilizationRate ⇒ Object
645 646 647 |
# File 'lib/v20240125/models.rb', line 645 def UtilizationRate @UtilizationRate end |
Instance Method Details
#deserialize(params) ⇒ Object
661 662 663 664 665 666 667 668 669 670 671 672 673 |
# File 'lib/v20240125/models.rb', line 661 def deserialize(params) @SpId = params['SpId'] @SpType = params['SpType'] @Status = params['Status'] @DeductAmount = params['DeductAmount'] @PromiseAmount = params['PromiseAmount'] @NetSavings = params['NetSavings'] @UtilizationRate = params['UtilizationRate'] @LossAmount = params['LossAmount'] @DosageAmount = params['DosageAmount'] @CostAmount = params['CostAmount'] @Region = params['Region'] end |