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
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.
229 230 231 232 233 |
# File 'lib/v20240125/models.rb', line 229 def initialize(total=nil, deducts=nil, requestid=nil) @Total = total @Deducts = deducts @RequestId = requestid end |
Instance Attribute Details
#Deducts ⇒ Object
227 228 229 |
# File 'lib/v20240125/models.rb', line 227 def Deducts @Deducts end |
#RequestId ⇒ Object
227 228 229 |
# File 'lib/v20240125/models.rb', line 227 def RequestId @RequestId end |
#Total ⇒ Object
227 228 229 |
# File 'lib/v20240125/models.rb', line 227 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
235 236 237 238 239 240 241 242 243 244 245 246 |
# File 'lib/v20240125/models.rb', line 235 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 |