Class: TencentCloud::Svp::V20240125::DescribeSavingPlanDeductResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Svp::V20240125::DescribeSavingPlanDeductResponse
- Defined in:
- lib/v20240125/models.rb
Overview
DescribeSavingPlanDeduct返回参数结构体
Instance Attribute Summary collapse
-
#Deducts ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#RequestId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Total ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(total = nil, deducts = nil, requestid = nil) ⇒ DescribeSavingPlanDeductResponse
constructor
A new instance of DescribeSavingPlanDeductResponse.
Constructor Details
#initialize(total = nil, deducts = nil, requestid = nil) ⇒ DescribeSavingPlanDeductResponse
Returns a new instance of DescribeSavingPlanDeductResponse.
156 157 158 159 160 |
# File 'lib/v20240125/models.rb', line 156 def initialize(total=nil, deducts=nil, requestid=nil) @Total = total @Deducts = deducts @RequestId = requestid end |
Instance Attribute Details
#Deducts ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
154 155 156 |
# File 'lib/v20240125/models.rb', line 154 def Deducts @Deducts end |
#RequestId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
154 155 156 |
# File 'lib/v20240125/models.rb', line 154 def RequestId @RequestId end |
#Total ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
154 155 156 |
# File 'lib/v20240125/models.rb', line 154 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
162 163 164 165 166 167 168 169 170 171 172 173 |
# File 'lib/v20240125/models.rb', line 162 def deserialize(params) @Total = params['Total'] unless params['Deducts'].nil? @Deducts = [] params['Deducts'].each do |i| savingplandeductdetail_tmp = SavingPlanDeductDetail.new savingplandeductdetail_tmp.deserialize(i) @Deducts << savingplandeductdetail_tmp end end @RequestId = params['RequestId'] end |